#59400 closed defect (fixed)
xar overlinks with libxml2's dependencies
Reported by: | jmroot (Joshua Root) | Owned by: | Schamschula (Marius Schamschula) |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | xar |
Description
Xar doesn't use icu directly, but ends up linked with it. This is because it uses xml2-config, which has no --static option and so always output the libs needed for static linking. Using pkg-config instead would fix this.
Change History (10)
comment:1 Changed 5 years ago by Schamschula (Marius Schamschula)
comment:2 Changed 5 years ago by Schamschula (Marius Schamschula)
Looking at the config.log
I still see
checking for xml2-config... /opt/local/bin/xml2-config
so apparently --without-xml2-config
is ignored.
No mention of pkg-config
...
comment:3 Changed 5 years ago by jmroot (Joshua Root)
The configure script doesn't currently have any code to check for libxml2 using pkg-config.
comment:4 Changed 5 years ago by Schamschula (Marius Schamschula)
Resolution: | → fixed |
---|---|
Status: | assigned → closed |
comment:5 Changed 5 years ago by jmroot (Joshua Root)
Sorry, perhaps I didn't explain well: using --static with pkg-config is incorrect because we are not linking statically. It will return link flags for all the indirect dependencies just like xml2-config does.
comment:6 Changed 5 years ago by jmroot (Joshua Root)
Resolution: | fixed |
---|---|
Status: | closed → reopened |
comment:7 Changed 5 years ago by Schamschula (Marius Schamschula)
OK. So we don't want the --static
flag?
That would be an easy edit of the patch file.
comment:8 Changed 5 years ago by Schamschula (Marius Schamschula)
Resolution: | → fixed |
---|---|
Status: | reopened → closed |
comment:9 Changed 5 years ago by Schamschula (Marius Schamschula)
Indeed:
otool -L /opt/local/lib/libxar.1.dylib /opt/local/lib/libxar.1.dylib: /opt/local/lib/libxar.1.dylib (compatibility version 1.0.0, current version 1.0.0) /opt/local/lib/liblzma.5.dylib (compatibility version 8.0.0, current version 8.4.0) /opt/local/lib/libbz2.1.0.dylib (compatibility version 1.0.0, current version 1.0.8) /opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11) /opt/local/lib/libcrypto.1.1.dylib (compatibility version 1.1.0, current version 1.1.0) /opt/local/lib/libxml2.2.dylib (compatibility version 12.0.0, current version 12.9.0) /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1252.250.1)
comment:10 Changed 5 years ago by ryandesign (Ryan Carsten Schmidt)
Note: See
TracTickets for help on using
tickets.
I disabled
xml2-config
by addingconfigure.args --without-xml2-config
and added
depends_build port:pkgconfig
for pkg-config, but I end up with the same set of libraries as before: