Hello, When I run portupgrade -ra and PHP needs upgrading I am faced with having to select all the options I want PHP compiled with (again). I hate this. How can I continually compile PHP with the same options as the last time? Thanks! Rick
On 03 Nov 2003, Rick Updegrove wrote:> When I run portupgrade -ra and PHP needs upgrading I am faced with > having to select all the options I want PHP compiled with (again). I > hate this. > > How can I continually compile PHP with the same options as the last time?If you haven't cvsup'ped your ports in awhile to the latest available, I highly recommend doing so. Check out /usr/ports/lang/php4/Makefile and you'll see different ways to deal with this problem. My Makefile is v 1.32 from 2003/10/13 05:59:45 and has all the scoop on how to avoid this problem. -- Mark Nipper e-contacts: Computing and Information Services nipsy@tamu.edu Texas A&M University http://ops.tamu.edu/nipsy/ College Station, TX 77843-3142 AIM/Yahoo: texasnipsy ICQ: 66971617 (979)575-3193 MSN: nipsy@tamu.edu -----BEGIN GEEK CODE BLOCK----- GG/IT d- s++:+ a- C++$ UBL+++$ P--->+++ L+++$ E--- W++ N+ o K++ w(---) O++ M V(--) PS+++(+) PE(--) Y+ PGP++(+) t 5 X R tv b+++ DI+(++) D+ G e h r++ y+(**) ------END GEEK CODE BLOCK------ ---begin random quote of the moment--- "We are not enemies, but friends. We must not be enemies. Though passion may have strained, it must not break our bonds of affection. The mystic cords of memory will swell when again touched as surely they will be by the better angels of our nature." -- modified quote of Abraham Lincoln from his first inaugural address, 04 March 1861; taken from "American History X" ----end random quote of the moment----
Hi.> How can I continually compile PHP with the same > options as the last time? >Edit /usr/ports/lang/php4/Makefile and change the line PHP4_OPTIONS?= according to your needs. regards Claus Yahoo! Mail (http://dk.mail.yahoo.com) - Gratis: 6 MB lagerplads, spamfilter og virusscan
:: > How can I continually compile PHP with the same :: > options as the last time? :: :: Edit /usr/ports/lang/php4/Makefile and change the line :: PHP4_OPTIONS?= according to your needs. Except that the next time you upgrade your ports tree, your changes will be overwritten. Check out the /usr/local/etc/pkgtools.conf file. This is how you can use your own make(1) options using portupgrade consistently. The options you can use for each port can be found in its respective Makefile. Cheers - Erick
On Tue, 4 Nov 2003, Erick Mechler wrote:> :: > How can I continually compile PHP with the same > :: > options as the last time? > :: > :: Edit /usr/ports/lang/php4/Makefile and change the line > :: PHP4_OPTIONS?= according to your needs. > > Except that the next time you upgrade your ports tree, your changes will > be overwritten. Check out the /usr/local/etc/pkgtools.conf file. This is > how you can use your own make(1) options using portupgrade consistently. > The options you can use for each port can be found in its respective > Makefile.The php4 port also has support for a separate configuration file, outside of the pkgtools heirarchy. -- Doug White | FreeBSD: The Power to Serve dwhite@gumbysoft.com | www.FreeBSD.org
Erick Mechler writes: > :: > How can I continually compile PHP with the same > :: > options as the last time? > :: > :: Edit /usr/ports/lang/php4/Makefile and change the line > :: PHP4_OPTIONS?= according to your needs. > > Except that the next time you upgrade your ports tree, your changes will > be overwritten. Check out the /usr/local/etc/pkgtools.conf file. This is > how you can use your own make(1) options using portupgrade consistently. > The options you can use for each port can be found in its respective > Makefile. Or, if the port is set up to respect Makefile.local, put the PHP4_OPTIONS?= according to your needs. in there. Not all ports seem to get this right though, so check it before you trust it. g.
You can put compilations options (variables) into /etc/make.conf. I use /etc/make.conf without problems, conditionally within .if ${.CURDIR:N*/ports/______} == "" .endif /etc/make.conf is used by make before any other system makefile. Rolandas Naujikas On Tue, Nov 04, 2003 at 01:39:24PM -0800, George Hartzell wrote:> Erick Mechler writes: > > :: > How can I continually compile PHP with the same > > :: > options as the last time? > > :: > > :: Edit /usr/ports/lang/php4/Makefile and change the line > > :: PHP4_OPTIONS?= according to your needs. > > > > Except that the next time you upgrade your ports tree, your changes will > > be overwritten. Check out the /usr/local/etc/pkgtools.conf file. This is > > how you can use your own make(1) options using portupgrade consistently. > > The options you can use for each port can be found in its respective > > Makefile. > > Or, if the port is set up to respect Makefile.local, put the > > PHP4_OPTIONS?= according to your needs. > > in there. Not all ports seem to get this right though, so check it > before you trust it. > > g. > > > ------------------------------
At 2003-11-03T18:54:17Z, Rick Updegrove <dislists@updegrove.net> writes:> Hello, > > When I run portupgrade -ra and PHP needs upgrading I am faced with having > to select all the options I want PHP compiled with (again). I hate this. > > How can I continually compile PHP with the same options as the last time?OK, you've gotten several technically-correct-but-ungood answers. There's a much better way to manage this port. Recent versions of lang/php4 read their configuration from /root/php4-options. Here's an excerpt from mine: WITH_BCMATH=ON WITH_BZIP2=ON WITH_CURL=ON WITH_GD=ON WITH_GETTEXT=ON WITH_ICONV=ON WITH_IMAP=ON WITH_MCAL=ON When you begin the build, the port uses the contents of that file to set the default menu options. Configure it once, note the choices you made in that file, and you're done. Easy, huh? At one point, the exact name of the options file was in flux, so I nailed it down by setting: PHP4_OPTFILE= /root/php4_options in /etc/make.conf. This seems to be unnecessary now. -- Kirk Strauser "94 outdated ports on the box, 94 outdated ports. Portupgrade one, an hour 'til done, 82 outdated ports on the box." -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 188 bytes Desc: not available Url : http://lists.freebsd.org/pipermail/freebsd-stable/attachments/20031106/6fe499a0/attachment.bin
Pat Lashley wrote: >> Do you happen to know where I can get the complete list? > > > Copy /usr/ports/lang/php4/scripts/php4_options to /root and edit > it to set your preferred defaults. Ahh, I did a "locate php4-options" which of course won't find "php4_options" Thanks again!
Rick Updegrove
2003-Nov-07 12:15 UTC
portupgrade and PHP solved! (was Re: portupgrade and PHP)
Rick Updegrove wrote: > How can I continually compile PHP with the same options as the last time? This /root/php4_options file which I copied from /usr/ports/lang/php4/scripts/php4_options Has made my life much easier. Thanks Kirk Strauser! Rick
On Mon, 3 Nov 2003, Rick Updegrove wrote: RU> When I run portupgrade -ra and PHP needs upgrading I am faced with RU> having to select all the options I want PHP compiled with (again). I RU> hate this. RU> RU> How can I continually compile PHP with the same options as the last time? /usr/local/etc/pkgtools.conf, section MAKE_ARGS ? Sincerely, D.Marck [DM5020, MCK-RIPE, DM3-RIPN] ------------------------------------------------------------------------ *** Dmitry Morozovsky --- D.Marck --- Wild Woozle --- marck@rinet.ru *** ------------------------------------------------------------------------