On 01 Dec 2008, at 21:06, Hanspeter Niederstrasser wrote:

> Thanks for your help. I normally try to use only fink libraries,  
> but there are a couple issues here that make it difficult for this  
> package.  First, in order to use system-openssl, I need to unset  
> LDFLAGS (which has -L/sw/lib).  If I don't unset LDFLAGS, the build  
> log crashes like this (with the latest libiconv installed in Fink):
<snip>
>
> So I _need_ to remove -L/sw/lib and use the system iconv.  This  
> then removes the ability to easily link to Fink's libbz2 and libxml2.
>
> Also, I haven't been able to get it to use Fink's fontconfig2, even  
> if I explicitly put -L/sw/lib/fontconfig2/lib -lfontconfig before  
> X11 in the linker line via pkg-config.
>
> I've uploaded a new info file that conditionals the missing x11  
> flags based on Martin's previous message about 10.4/10.5 gdk- 
> x11-2.0.pc differences.  Could you test it out and let me know the  
> results?  I think I added all the available x*.pc files that are on  
> 10.4, but in case I missed one, it should be easy to add.

Checked with the previous info file, which should be functionally  
equivalent.
First, to get things basically straight, I added to the patchscript  
the line

sed -i'' -e '\XL/usr/libXd' SConstruct

to get rid of that wrong  -L/usr/lib  flag
[was trivial to find : a grep showed it was the only occurrence of / 
usr/lib
in the builddir, and it was in a conditional on macosx (additional  
reason to be wrong ...)]

Added also the required paths (for freetype, fontconfig, etc _ no  
attempt at minimality ..)
  to CFLAGS, and set  CXXFLAGS in the same way to be sure;  +  same  
for LDFLAGS
(cf next point about  -H _ DON'T put that in an official info file ..):

> NoSetCFLAGS: true
> NoSetCXXFLAGS: true
> SetCFLAGS: -H -I%p/lib/system-openssl/include -I%p/lib/pango-ft219/ 
> include-pango-1.0 -I%p/lib/pango-ft219/include -I%p/include/ 
> freetype2 -I%p/lib/fontconfig2/include
> SetCXXFLAGS: -H -I%p/lib/system-openssl/include -I%p/lib/pango- 
> ft219/include-pango-1.0 -I%p/lib/pango-ft219/include -I%p/include/ 
> freetype2 -I%p/lib/fontconfig2/include
> NoSetLDFLAGS: true
> SetLDFLAGS: -L%p/lib/system-openssl/lib -L%p/lib/pango-ft219/lib -L% 
> p/lib/fontconfig2/lib -L%p/lib/freetype219/lib -L/usr/X11R6/lib -lX11


The build went perfectly _ no libiconv issues or whatever _ , and now  
linked to fink's pkgs; thus :
deps now, according to otool :

> # otool_deps linuxdcpp
> atk1-shlibs, bzip2-shlibs, cairo-shlibs, fontconfig2-shlibs,  
> freetype219-shlibs, glib2-shlibs, gtk+2-shlibs, libgettext3-shlibs,  
> libglade2-shlibs, libiconv, libxml2-shlibs, pango1-xft2-ft219- 
> shlibs, xorg-shlibs

and hence also the corresponding bdeps

Finally, to check whether no include files from other pkgs were  
(indirectly) included
(there were -I flags for such pkgs, like  -I/sw/include/pixman-1), I  
used the log file
(was created by "fink -ky rebuild linuxdcpp 2>&1|tee /sw/var/logs/ 
linuxdcpp.log"),
to get the list of all pkgs (except x11) from which headers were used :

> # egrep '^\.+ /' /sw/var/logs/linuxdcpp.log|sort -u|sed -r -e 's,^\. 
> + ,,'|sort -u|egrep -v '^/usr/|system-openssl'|xargs dpkg -S|cut - 
> f1 -d:|sort -u|xargs
> atk1 cairo glib2-dev gtk+2-dev libgettext3-dev libglade2 pango1- 
> xft2-ft219-dev

So indeed nothing else...

Best,

Jean-Francois
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fink-devel mailing list
[email protected]
http://news.gmane.org/gmane.os.apple.fink.devel

Reply via email to