Re: ports tree build ignores /etc/make.conf

2009-01-09 Thread Lowell Gilbert
Anton Shterenlikht  writes:

>   I have:
>
> # uname -srm
> FreeBSD 6.4-STABLE alpha
> #
>
>   In /etc/make.conf I have
>
> .if ${.CURDIR:M*/lang/gcc*}
> NOT_FOR_ARCHS=
> .endif
>
>   However, I get:
>
> # cd /usr/ports/lang/gcc43
> # make
> ===>  gcc-4.3.3_20090101 does not run on alpha ia64, while you are running 
> alpha.
> *** Error code 1
>
> Stop in /usr/ports/lang/gcc43.
> # 
>
>   So it seems make ignores NOT_FOR_ARCHS= setting.
> When I add this to the gcc43/Makefile directly, build
> goes ahead.
>
>   What's the problem?

The port's makefile is overriding the setting you put in make.conf.
That variable is intended for use in ports, not by end-users (otherwise,
the port makefile would use a different assignment operator to avoid
overwriting existing settings).

If you really think you can fix the build for that architecture, you
should be modifying the original makefile. 

-- 
Lowell Gilbert, embedded/networking software engineer, Boston area
http://be-well.ilk.org/~lowell/
___
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"


ports tree build ignores /etc/make.conf

2009-01-08 Thread Anton Shterenlikht
I have:

# uname -srm
FreeBSD 6.4-STABLE alpha
#

In /etc/make.conf I have

.if ${.CURDIR:M*/lang/gcc*}
NOT_FOR_ARCHS=
.endif

However, I get:

# cd /usr/ports/lang/gcc43
# make
===>  gcc-4.3.3_20090101 does not run on alpha ia64, while you are running 
alpha.
*** Error code 1

Stop in /usr/ports/lang/gcc43.
# 

So it seems make ignores NOT_FOR_ARCHS= setting.
When I add this to the gcc43/Makefile directly, build
goes ahead.

What's the problem?

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"