> On Feb 10, 2015, at 8:38 PM, Jack Howarth <howarth.at.f...@gmail.com> wrote:
>
> On Tue, Feb 10, 2015 at 10:14 PM, Alexander Hansen
> <alexanderk.han...@gmail.com <mailto:alexanderk.han...@gmail.com>> wrote:
>>
>> On Feb 10, 2015, at 6:44 PM, Jack Howarth <howarth.at.f...@gmail.com> wrote:
>>
>> Hanspeter,
>> Now that a working implementation for the automatic appending of
>> the appropriate X11 include and linker flags to CPPFLAGS and LDFLAGS
>> has been checked in to fink git...
>>
>> http://sourceforge.net/p/fink/patches/158/
>>
>>
>> It’s in a branch covered by a pull request.
>>
>> And before we call it “working”, I’d like to verify that it works _in all
>> aspects_. For example, does your automatic implementation give the right
>> results from “fink dumpinfo -eLDFLAGS <packagename>” and “fink dumpinfo
>> -eCPPFLAGS <packagename>” for packages that BuildDepend on x11-dev?
>>
>>
> Alexander,
> The current code path used during the execution of 'fink dumpinfo -eLDFLAGS'
> and 'fink dumpinfo -eCPPFLAGS' won't be able to detect this auto-append as
> the test for the presence of the BuildDepends on x11-dev must be done in
> resolve_depends() when the dependencies are being collated.
>
> My tests have been done brute force by adding...
>
> echo $CPPFLAGS;
> echo $LDFLAGS;
>
> at the front of the CompileScript in xft2-dev. which on darwin14 produces...
>
> echo $CPPFLAGS;
> -I/sw/include -I/opt/X11/lib
> echo $LDFLAGS;
> -L/sw/lib -L/opt/X11/lib
>
> in the build log while...
>
> % fink dumpinfo -eCPPFLAGS xft2-dev
> Scanning package description files..........
> Information about 10430 packages read in 2 seconds.
> CPPFLAGS=-I/sw/include
>
> % fink dumpinfo -eLDFLAGS xft2-dev
> Scanning package description files..........
> Information about 10430 packages read in 1 seconds.
> LDFLAGS=-L/sw/lib
>
> Jack
>
Read the comments in the pull request: https://github.com/fink/fink/pull/117
<https://github.com/fink/fink/pull/117> . Maybe subscribe to it, too.
I believe the gist is that you’re evaluating whether x11-dev is present in the
aggregate list of dependencies for a _whole batch build_ rather than whether it
is a dependency of an individual package. The latter is what is needed.
--
Alexander Hansen, Ph.D.
Fink User Liaison
------------------------------------------------------------------------------
Dive into the World of Parallel Programming. The Go Parallel Website,
sponsored by Intel and developed in partnership with Slashdot Media, is your
hub for all things parallel software development, from weekly thought
leadership blogs to news, videos, case studies, tutorials and more. Take a
look and join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Fink-devel mailing list
Fink-devel@lists.sourceforge.net
List archive:
http://news.gmane.org/gmane.os.apple.fink.devel
Subscription management:
https://lists.sourceforge.net/lists/listinfo/fink-devel