overwriting NOT_FOR_ARCHS via /etc/make.conf has no effect
I'm trying to overwrite a Makefile variable via /etc/make.conf It doesn't seem to work: # cd /usr/ports/lang/gcc43 # grep NOT Makefile NOT_FOR_ARCHS= alpha ia64 # grep -C1 NOT /etc/make.conf .if ${.CURDIR:M*/lang/gcc4*} NOT_FOR_ARCHS= ia64 .endif # make === gcc-4.3.3_20090122 does not run on alpha ia64, while you are running alpha. *** Error code 1 Stop in /usr/ports/lang/gcc43. # What am I doing wrong? many thanks anton -- Anton Shterenlikht Room 2.6, Queen's Building Mech Eng Dept Bristol University University Walk, Bristol BS8 1TR, UK Tel: +44 (0)117 928 8233 Fax: +44 (0)117 929 4423 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: overwriting NOT_FOR_ARCHS via /etc/make.conf has no effect
On Mon, 26 Jan 2009 12:55:29 +, Anton Shterenlikht me...@bristol.ac.uk wrote: I'm trying to overwrite a Makefile variable via /etc/make.conf It doesn't seem to work: This behaviour is correct. The local makefiles have precedence before the /etc/make.conf settings. What am I doing wrong? You could modify the port's Makefile itself, or create Makefile.local in the port's dicrectory with your specific settings, but I don't now if this mechanism is still supported. -- Polytropon From Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ... ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: overwriting NOT_FOR_ARCHS via /etc/make.conf has no effect
On Monday 26 January 2009 05:06:48 Polytropon wrote: On Mon, 26 Jan 2009 12:55:29 +, Anton Shterenlikht me...@bristol.ac.uk wrote: I'm trying to overwrite a Makefile variable via /etc/make.conf It doesn't seem to work: This behaviour is correct. The local makefiles have precedence before the /etc/make.conf settings. They don't, even though it seems so. The Makefile is *read* after /etc/make.conf. The Makefile sets this variable unconditionally, therefore cannot be overridden by anything that is read before the Makefile. If the Makefile defined it like so: NOT_FOR_ARCHS?=alpha ia64 then /etc/make.conf would work, since the variable is defined at the time the Makefile is read. What am I doing wrong? You could modify the port's Makefile itself, or create Makefile.local in the port's dicrectory with your specific settings, but I don't now if this mechanism is still supported. It is and since Makefile.local is read *after* the Makefile, you can override the variable there. -- Mel Problem with today's modular software: they start with the modules and never get to the software part. ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org