精華區beta FB_stable 關於我們 聯絡資訊
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 _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -------------------------------------------------------------------------- < 發信人: nipsy@tamu.edu (Mark Nipper), 看板: FB_stable 標 題: Re: portupgrade and PHP 發信站: NCTU CSIE FreeBSD Server (Thu Nov 6 08:49:13 2003) 轉信站: ptt!FreeBSD.csie.NCTU!not-for-mail 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---- _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -------------------------------------------------------------------------- < 發信人: cguttesen@yahoo.dk (Claus Guttesen), 看板: FB_stable 標 題: Re: portupgrade and PHP 發信站: NCTU CSIE FreeBSD Server (Thu Nov 6 08:49:13 2003) 轉信站: ptt!FreeBSD.csie.NCTU!not-for-mail 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 _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -------------------------------------------------------------------------- < 發信人: emechler@techometer.net (Erick Mechler), 看板: FB_stable 標 題: Re: portupgrade and PHP 發信站: NCTU CSIE FreeBSD Server (Thu Nov 6 08:49:13 2003) 轉信站: ptt!FreeBSD.csie.NCTU!not-for-mail :: > 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 _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -------------------------------------------------------------------------- < 發信人: cguttesen@yahoo.dk (Claus Guttesen), 看板: FB_stable 標 題: Re: portupgrade and PHP 發信站: NCTU CSIE FreeBSD Server (Thu Nov 6 08:49:13 2003) 轉信站: ptt!FreeBSD.csie.NCTU!not-for-mail Hi. > > 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 Thanks alot! Wasn't aware of that. Kept a copy in my homedir. Learn a bit everyday. ;-) Yahoo! Mail (http://dk.mail.yahoo.com) - Gratis: 6 MB lagerplads, spamfilter og virusscan _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -------------------------------------------------------------------------- < 發信人: dwhite@gumbysoft.com (Doug White), 看板: FB_stable 標 題: Re: portupgrade and PHP 發信站: NCTU CSIE FreeBSD Server (Thu Nov 6 08:49:13 2003) 轉信站: ptt!FreeBSD.csie.NCTU!not-for-mail 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 _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" > -------------------------------------------------------------------------- < 發信人: galen_sampson@yahoo.com (Galen Sampson), 看板: FB_stable 標 題: Re: portupgrade and PHP 發信站: NCTU CSIE FreeBSD Server (Thu Nov 6 08:49:13 2003) 轉信站: ptt!FreeBSD.csie.NCTU!not-for-mail --0-305261347-1067981412=:8000 Content-Type: text/plain; charset=us-ascii Content-Id: Content-Disposition: inline --- Claus Guttesen <cguttesen@yahoo.dk> wrote: > 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. > Maybe what is needed is something that would let you create "Makefile.local" in the ports directory. In this case you would create /usr/port/lang/php4/Makefile.local. In Makefile.local you would set the make variables that you desire (Doug says this port is set up to do this already, but not with Makefile.local). It would be nice to have all ports include "Makefile.local" in the current port directory if it exists. Right now if the port's Makefile .include's <bsd.port.mk> then you have partial functionality. You can create /usr/ports/Makefile.local, and set the variables in it. I'm suggesting taking it a step further, see attached. This is attachment is _not_ supposed to work, this is just to give people the general idea. Regards, Galen __________________________________ Do you Yahoo!? Protect your identity with Yahoo! Mail AddressGuard http://antispam.yahoo.com/whatsnewfree --0-305261347-1067981412=:8000 Content-Type: text/plain; name="bsd.port.mk.diff" Content-Description: bsd.port.mk.diff Content-Disposition: inline; filename="bsd.port.mk.diff" --- bsd.port.mk.orginal Tue Nov 4 13:15:01 2003 +++ bsd.port.mk Tue Nov 4 13:16:31 2003 @@ -927,6 +927,11 @@ USE_SUBMAKE= yes .endif +.if exists(${.CURDIR}/Makefile.local) +.include "${.CURDIR}/Makefile.local" +USE_SUBMAKE= yes +.endif + .if !defined(PORTNAME) || !defined(PORTVERSION) || defined(PKGNAME) .BEGIN: @${ECHO_CMD} "${PKGNAME}: You need to define PORTNAME and PORTVERSION instead of PKGNAME." --0-305261347-1067981412=:8000 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org" --0-305261347-1067981412=:8000-- > -------------------------------------------------------------------------- < 發信人: hartzell@kestrel.alerce.com (George Hartzell), 看板: FB_stable 標 題: Re: portupgrade and PHP 發信站: NCTU CSIE FreeBSD Server (Thu Nov 6 08:49:13 2003) 轉信站: ptt!FreeBSD.csie.NCTU!not-for-mail 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. _______________________________________________ freebsd-stable@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-stable To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"