universal_variant no not being honored?
jmr at macports.org
Sat Jul 4 20:57:51 PDT 2009
On 2009-7-5 10:34, Jeremy Huddleston wrote:
> On Jul 4, 2009, at 15:53, Bryan Blackburn wrote:
>> On Sat, Jul 04, 2009 at 03:24:53PM -0700, Jeremy Huddleston said:
>>> samba3 has 'universal_variant no' set, but it looks like it's still
>>> trying to build universal (I'm using base trunk):
>> Just tried it here, and only see
>> Using FLAGS = -pipe -O2 -arch i386 -fno-common -O
>> -D_SAMBA_BUILD_=3 -fno-common
>> -Iinclude -I./include -I. -I. -I./lib/replace -I./lib/talloc
>> -I./lib/tdb/include -I./libaddns -I./librpc -DHAVE_CONFIG_H
>> -I/mp/include -DHAVE_STRUCT_TIMESPEC -Iinclude -I./include -I. -I.
>> -I./lib/replace -I./lib/talloc -I./lib/tdb/include -I./libaddns
>> -I./librpc -I./popt -DLDAP_DEPRECATED -I/include
>> My universal_archs is set to 'ppc i386' so it doesn't seem to be picking
>> that up; my install is also trunk, last installed a little over 12 hours
>> ago. Do you have any of samba3's dependencies installed +universal?
>> it's getting some CFLAGS from one of those?
> Nope, it's definitely getting CFLAGS from base. I switched it over to
> muniversal, and it's now building correctly. (did you try it before I
> pushed the muniversal change or after?)
Might have been a bug in portconfigure that I just tried to fix. It was
checking [variant_isset universal], but a variant can be set without
existing in the port. Now it checks with variant_exists as well.
But... this is still a problem. If you look at configure.cflags before
you declare the universal variant (like in all ports that use the
default one, for instance), you don't see the universal_cflags in there.
And if you append to cflags in the same place, the universal flags never
Might have to go back to appending them in the variant so they at least
get in there by configure time.
More information about the macports-dev