On Oct 15, 2012, at 6:27 AM, Ryan Schmidt <ryandes...@macports.org> wrote:

> On Oct 15, 2012, at 08:21, Blair Zajac wrote:
> 
>> On Oct 15, 2012, at 5:34 AM, Ryan Schmidt wrote:
>> 
>>> apr does respect configure.compiler, but it bakes the discovered value into 
>>> its apr-config script, which other programs, like serf1, then later use to 
>>> determine the compiler. So it is serf1 and maybe other ports that use apr 
>>> that need to be fixed to respect configure.compiler.
>> 
>> I wouldn't say serf1, or any other port, is broken by trusting apr-config's 
>> compiler, that should be a correct value.
> 
> They are broken, though.

They are broken because apr is broken.

> We expect portfile authors to be able to specify configure.compiler and to 
> have the build system respect that. As of MacPorts 2.1 I think I remember 
> hearing that we also expect users to be able to specify the compiler by 
> editing macports.conf. Neither of these things work when software asks some 
> other piece of software's config script what compiler to use. 

It's a standard pattern to ask packages how to build against them.  I think you 
want MacPorts to wag the dog.  As a developer myself, what apr, python, perl do 
that bakes in a compiler is reasonable.

> 
> 
>> Fixing it in serf1 isn't the real fix either.   It's one thing for us to 
>> modify serf1, but people that have closed source, commercial code, like I 
>> do, that compiles and links against apr shouldn't need to fix or change 
>> apr-config's results, it should be a good value.  So I like the idea of 
>> post-activate tweaking apr-config, it solves all of the issues (that I'm 
>> aware of).
> 
> We can do that. I just don't understand for what purpose apr installs a 
> program that offers information about what compiler was used. It's not apr's 
> business to do that.

Why do you say that, of course it is.  As a programmer that uses a package, you 
want to know what tools you can reliably use to compile your program with apr. 


> Or I would say no other program should care what compiler apr was compiled 
> with.

Disagree.  We don't have this problem, but if apr was compiled with a special 
compiler, say Intel's, and you needed to use the same compiler for your 
package, you would want apr to tell you.

Blair

_______________________________________________
macports-dev mailing list
macports-dev@lists.macosforge.org
http://lists.macosforge.org/mailman/listinfo/macports-dev

Reply via email to