chkpkg and soname-unused

slowfranklin slowfranklin at opencsw.org
Mon Nov 4 17:15:31 CET 2013


Hi Rafi

Am 04.11.2013 um 16:50 schrieb Rafael Ostertag <raos at opencsw.org>:
> I recently got complains from chkpkg about soname-unused on sparc. The same
> build recipes do not make chkpkg complain on i386. As far as I can tell, `-z
> ignore' is in LD_OPTIONS on both, sparc and i386.

oh, so I’m not the only one!

I wanted to do a simple minor version bump of tracker when I ran into this. I’m currently adding a lot of GARCH dependent overrides in order to work around this becausei I gave up figurin out the cause after 8 hours.
According to elfdump -d the unused libs are definitely linked into the resulting program/library even though no symbol is used as verified with nm -d.

> Any ideas what's going on?

No.

slowfranklin at unstable10s [unstable10s]:~/opencsw/tracker/trunk > svn diff                                                                                                                                                                       
Index: Makefile
===================================================================
--- Makefile    (revision 22354)
+++ Makefile    (working copy)
@@ -58,6 +58,10 @@
 RUNTIME_DEP_PKGS_CSWtracker += CSWlibtracker-common
 RUNTIME_DEP_PKGS_CSWtracker += CSWdbus
 RUNTIME_DEP_PKGS_CSWtracker += CSWdconf
+RUNTIME_DEP_PKGS_CSWtracker_sparc += CSWlibicui18n51
+RUNTIME_DEP_PKGS_CSWtracker_sparc += CSWlibicuuc51
+RUNTIME_DEP_PKGS_CSWtracker_sparc += CSWlibz1
+RUNTIME_DEP_PKGS_CSWtracker += $(RUNTIME_DEP_PKGS_CSWtracker_$(GARCH))
 
 RUNTIME_DEP_PKGS_CSWlibtracker-sparql0-16-0 += CSWlibuuid1
 RUNTIME_DEP_PKGS_CSWlibtracker-sparql0-16-0 += CSWlibgobject2-0-0
@@ -65,6 +69,13 @@
 RUNTIME_DEP_PKGS_CSWlibtracker-sparql0-16-0 += CSWlibgcc-s1
 RUNTIME_DEP_PKGS_CSWlibtracker-sparql0-16-0 += CSWlibglib2-0-0
 RUNTIME_DEP_PKGS_CSWlibtracker-sparql0-16-0 += CSWlibtracker-common
+RUNTIME_DEP_PKGS_CSWlibtracker-sparql0-16-0_sparc += CSWlibsqlite3-0
+RUNTIME_DEP_PKGS_CSWlibtracker-sparql0-16-0_sparc += CSWlibicudata51
+RUNTIME_DEP_PKGS_CSWlibtracker-sparql0-16-0_sparc += CSWlibz1
+RUNTIME_DEP_PKGS_CSWlibtracker-sparql0-16-0_sparc += CSWlibintl8
+RUNTIME_DEP_PKGS_CSWlibtracker-sparql0-16-0_sparc += CSWlibicuuc51
+RUNTIME_DEP_PKGS_CSWlibtracker-sparql0-16-0_sparc += CSWlibicui18n51
+RUNTIME_DEP_PKGS_CSWlibtracker-sparql0-16-0 += $(RUNTIME_DEP_PKGS_CSWlibtracker-sparql0-16-0_$(GARCH))
 
 RUNTIME_DEP_PKGS_CSWlibtracker-extract0-16-0 += CSWlibgmodule2-0-0
 RUNTIME_DEP_PKGS_CSWlibtracker-extract0-16-0 += CSWlibgobject2-0-0
@@ -80,10 +91,14 @@
 RUNTIME_DEP_PKGS_CSWlibtracker-extract0-16-0 += CSWlibgif4
 RUNTIME_DEP_PKGS_CSWlibtracker-extract0-16-0 += CSWlibiptcdata
 RUNTIME_DEP_PKGS_CSWlibtracker-extract0-16-0 += CSWlibpoppler-glib8
-# RUNTIME_DEP_PKGS_CSWlibtracker-extract0-16-0 += CSWexempi
-# RUNTIME_DEP_PKGS_CSWlibtracker-extract0-16-0 += CSWgstreamer
 RUNTIME_DEP_PKGS_CSWlibtracker-extract0-16-0 += CSWlibtracker-sparql0-16-0
 RUNTIME_DEP_PKGS_CSWlibtracker-extract0-16-0 += CSWlibtracker-common
+RUNTIME_DEP_PKGS_CSWlibtracker-extract0-16-0_sparc += CSWlibintl8
+RUNTIME_DEP_PKGS_CSWlibtracker-extract0-16-0_sparc += CSWlibicui18n51
+RUNTIME_DEP_PKGS_CSWlibtracker-extract0-16-0_sparc += CSWlibicuuc51
+RUNTIME_DEP_PKGS_CSWlibtracker-extract0-16-0_sparc += CSWlibicudata51
+RUNTIME_DEP_PKGS_CSWlibtracker-extract0-16-0_sparc += CSWlibcairo2
+RUNTIME_DEP_PKGS_CSWlibtracker-extract0-16-0 += $(RUNTIME_DEP_PKGS_CSWlibtracker-extract0-16-0_$(GARCH))
 
 RUNTIME_DEP_PKGS_CSWlibtracker-miner0-16-0 += CSWlibintl8
 RUNTIME_DEP_PKGS_CSWlibtracker-miner0-16-0 += CSWlibgobject2-0-0
@@ -107,6 +122,9 @@
 RUNTIME_DEP_PKGS_CSWlibtracker-common += CSWlibgio2-0-0
 RUNTIME_DEP_PKGS_CSWlibtracker-common += CSWlibgcc-s1
 RUNTIME_DEP_PKGS_CSWlibtracker-common += CSWlibglib2-0-0
+RUNTIME_DEP_PKGS_CSWlibtracker-common_sparc += CSWlibicudata51
+RUNTIME_DEP_PKGS_CSWlibtracker-common_sparc += CSWlibz1
+RUNTIME_DEP_PKGS_CSWlibtracker-common += $(RUNTIME_DEP_PKGS_CSWlibtracker-common_$(GARCH))
 
 PATCHFILES += 0001-Force-linking-with-CC-not-CXX.patch
 PATCHFILES += 0003-Replace-uuid_unparse_lower-with-uuid_unparse.patch
@@ -161,6 +179,87 @@
 # exempi links with stlport while glib links with libCstd, both at once are incomp.
 # and both would be linked at once in libtracker-extract, so we have to disable it
 CONFIGURE_ARGS += --disable-exempi
+# not needed
+CONFIGURE_ARGS += --disable-miner-thunderbird
+CONFIGURE_ARGS += --disable-miner-firefox
 
+# after spending a day trying to figure out why all these libs are linked unneededly only on SPARC
+# I gave up and applied the overrides
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libintl.so.8|is|needed|by|/opt/csw/lib/tracker-0.16/extract-modules/libextract-mplayer.so|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libintl.so.8|is|needed|by|/opt/csw/lib/tracker-0.16/extract-modules/libextract-mp3.so|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libintl.so.8|is|needed|by|/opt/csw/lib/tracker-0.16/extract-modules/libextract-jpeg.so|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libintl.so.8|is|needed|by|/opt/csw/lib/tracker-0.16/extract-modules/libextract-icon.so|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libintl.so.8|is|needed|by|/opt/csw/lib/tracker-0.16/extract-modules/libextract-html.so|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libintl.so.8|is|needed|by|/opt/csw/lib/tracker-0.16/extract-modules/libextract-gif.so|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libxml2.so.2|is|needed|by|/opt/csw/lib/tracker-0.16/extract-modules/libextract-epub.so|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libtracker-common.so.0|is|needed|by|/opt/csw/lib/tracker-0.16/extract-modules/libextract-epub.so|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libintl.so.8|is|needed|by|/opt/csw/lib/tracker-0.16/extract-modules/libextract-epub.so|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libgsf-1.so.114|is|needed|by|/opt/csw/lib/tracker-0.16/extract-modules/libextract-epub.so|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libgobject-2.0.so.0|is|needed|by|/opt/csw/lib/tracker-0.16/extract-modules/libextract-epub.so|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libtracker-common.so.0|is|needed|by|/opt/csw/lib/tracker-0.16/extract-modules/libextract-dvi.so|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libintl.so.8|is|needed|by|/opt/csw/lib/tracker-0.16/extract-modules/libextract-dvi.so|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libintl.so.8|is|needed|by|/opt/csw/lib/tracker-0.16/extract-modules/libextract-abw.so|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libthread.so.1|is|needed|by|/opt/csw/lib/libtracker-extract-0.16.so.0.1600.3|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libintl.so.8|is|needed|by|/opt/csw/lib/libtracker-extract-0.16.so.0.1600.3|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libicuuc.so.51|is|needed|by|/opt/csw/lib/libtracker-extract-0.16.so.0.1600.3|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libicui18n.so.51|is|needed|by|/opt/csw/lib/libtracker-extract-0.16.so.0.1600.3|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libicudata.so.51|is|needed|by|/opt/csw/lib/libtracker-extract-0.16.so.0.1600.3|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libintl.so.8|is|needed|by|/opt/csw/lib/tracker-0.16/extract-modules/libextract-msoffice-xml.so|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libtracker-common.so.0|is|needed|by|/opt/csw/lib/tracker-0.16/extract-modules/libextract-msoffice-xml.so|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libintl.so.8|is|needed|by|/opt/csw/lib/tracker-0.16/extract-modules/libextract-msoffice.so|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libxml2.so.2|is|needed|by|/opt/csw/lib/tracker-0.16/extract-modules/libextract-msoffice.so|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libgobject-2.0.so.0|is|needed|by|/opt/csw/lib/tracker-0.16/extract-modules/libextract-oasis.so|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libgsf-1.so.114|is|needed|by|/opt/csw/lib/tracker-0.16/extract-modules/libextract-oasis.so|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libintl.so.8|is|needed|by|/opt/csw/lib/tracker-0.16/extract-modules/libextract-oasis.so|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libtracker-common.so.0|is|needed|by|/opt/csw/lib/tracker-0.16/extract-modules/libextract-oasis.so|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libxml2.so.2|is|needed|by|/opt/csw/lib/tracker-0.16/extract-modules/libextract-oasis.so|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libcairo.so.2|is|needed|by|/opt/csw/lib/tracker-0.16/extract-modules/libextract-pdf.so|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libintl.so.8|is|needed|by|/opt/csw/lib/tracker-0.16/extract-modules/libextract-pdf.so|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libintl.so.8|is|needed|by|/opt/csw/lib/tracker-0.16/extract-modules/libextract-png.so|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libintl.so.8|is|needed|by|/opt/csw/lib/tracker-0.16/extract-modules/libextract-ps.so|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libintl.so.8|is|needed|by|/opt/csw/lib/tracker-0.16/extract-modules/libextract-text.so|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libintl.so.8|is|needed|by|/opt/csw/lib/tracker-0.16/extract-modules/libextract-tiff.so|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_sparc += soname-unused|libintl.so.8|is|needed|by|/opt/csw/lib/tracker-0.16/extract-modules/libextract-totem.so|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0 += $(CHECKPKG_OVERRIDES_CSWlibtracker-extract0-16-0_$(GARCH))
+CHECKPKG_OVERRIDES_CSWtracker_sparc += soname-unused|libicui18n.so.51|is|needed|by|/opt/csw/bin/tracker-control|but|never|used
+CHECKPKG_OVERRIDES_CSWtracker_sparc += soname-unused|libicuuc.so.51|is|needed|by|/opt/csw/bin/tracker-control|but|never|used
+CHECKPKG_OVERRIDES_CSWtracker_sparc += soname-unused|libtracker-sparql-0.16.so.0|is|needed|by|/opt/csw/bin/tracker-control|but|never|used
+CHECKPKG_OVERRIDES_CSWtracker_sparc += soname-unused|libicui18n.so.51|is|needed|by|/opt/csw/bin/tracker-import|but|never|used
+CHECKPKG_OVERRIDES_CSWtracker_sparc += soname-unused|libicuuc.so.51|is|needed|by|/opt/csw/bin/tracker-import|but|never|used
+CHECKPKG_OVERRIDES_CSWtracker_sparc += soname-unused|libicui18n.so.51|is|needed|by|/opt/csw/bin/tracker-info|but|never|used
+CHECKPKG_OVERRIDES_CSWtracker_sparc += soname-unused|libicuuc.so.51|is|needed|by|/opt/csw/bin/tracker-info|but|never|used
+CHECKPKG_OVERRIDES_CSWtracker_sparc += soname-unused|libicui18n.so.51|is|needed|by|/opt/csw/bin/tracker-search|but|never|used
+CHECKPKG_OVERRIDES_CSWtracker_sparc += soname-unused|libicuuc.so.51|is|needed|by|/opt/csw/bin/tracker-search|but|never|used
+CHECKPKG_OVERRIDES_CSWtracker_sparc += soname-unused|libicui18n.so.51|is|needed|by|/opt/csw/bin/tracker-sparql|but|never|used
+CHECKPKG_OVERRIDES_CSWtracker_sparc += soname-unused|libicuuc.so.51|is|needed|by|/opt/csw/bin/tracker-sparql|but|never|used
+CHECKPKG_OVERRIDES_CSWtracker_sparc += soname-unused|libicui18n.so.51|is|needed|by|/opt/csw/bin/tracker-stats|but|never|used
+CHECKPKG_OVERRIDES_CSWtracker_sparc += soname-unused|libicuuc.so.51|is|needed|by|/opt/csw/bin/tracker-stats|but|never|used
+CHECKPKG_OVERRIDES_CSWtracker_sparc += soname-unused|libicui18n.so.51|is|needed|by|/opt/csw/bin/tracker-tag|but|never|used
+CHECKPKG_OVERRIDES_CSWtracker_sparc += soname-unused|libicuuc.so.51|is|needed|by|/opt/csw/bin/tracker-tag|but|never|used
+CHECKPKG_OVERRIDES_CSWtracker_sparc += soname-unused|libicui18n.so.51|is|needed|by|/opt/csw/libexec/tracker-extract|but|never|used
+CHECKPKG_OVERRIDES_CSWtracker_sparc += soname-unused|libicuuc.so.51|is|needed|by|/opt/csw/libexec/tracker-extract|but|never|used
+CHECKPKG_OVERRIDES_CSWtracker_sparc += soname-unused|libthread.so.1|is|needed|by|/opt/csw/libexec/tracker-extract|but|never|used
+CHECKPKG_OVERRIDES_CSWtracker_sparc += soname-unused|libz.so.1|is|needed|by|/opt/csw/libexec/tracker-extract|but|never|used
+CHECKPKG_OVERRIDES_CSWtracker_sparc += soname-unused|libicui18n.so.51|is|needed|by|/opt/csw/libexec/tracker-miner-fs|but|never|used
+CHECKPKG_OVERRIDES_CSWtracker_sparc += soname-unused|libicuuc.so.51|is|needed|by|/opt/csw/libexec/tracker-miner-fs|but|never|used
+CHECKPKG_OVERRIDES_CSWtracker_sparc += soname-unused|libthread.so.1|is|needed|by|/opt/csw/libexec/tracker-miner-fs|but|never|used
+CHECKPKG_OVERRIDES_CSWtracker_sparc += soname-unused|libicui18n.so.51|is|needed|by|/opt/csw/libexec/tracker-store|but|never|used
+CHECKPKG_OVERRIDES_CSWtracker_sparc += soname-unused|libicuuc.so.51|is|needed|by|/opt/csw/libexec/tracker-store|but|never|used
+CHECKPKG_OVERRIDES_CSWtracker_sparc += soname-unused|libthread.so.1|is|needed|by|/opt/csw/libexec/tracker-store|but|never|used
+CHECKPKG_OVERRIDES_CSWtracker_sparc += soname-unused|libicui18n.so.51|is|needed|by|/opt/csw/libexec/tracker-writeback|but|never|used
+CHECKPKG_OVERRIDES_CSWtracker_sparc += soname-unused|libicuuc.so.51|is|needed|by|/opt/csw/libexec/tracker-writeback|but|never|used
+CHECKPKG_OVERRIDES_CSWtracker_sparc += soname-unused|libthread.so.1|is|needed|by|/opt/csw/libexec/tracker-writeback|but|never|used
+CHECKPKG_OVERRIDES_CSWtracker += $(CHECKPKG_OVERRIDES_CSWtracker_$(GARCH))
+CHECKPKG_OVERRIDES_CSWlibtracker-common_sparc += soname-unused|libicudata.so.51|is|needed|by|/opt/csw/lib/tracker-0.16/libtracker-data.so.0.1600.3|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-common_sparc += soname-unused|libintl.so.8|is|needed|by|/opt/csw/lib/tracker-0.16/libtracker-data.so.0.1600.3|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-common_sparc += soname-unused|libz.so.1|is|needed|by|/opt/csw/lib/tracker-0.16/libtracker-data.so.0.1600.3|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-common += $(CHECKPKG_OVERRIDES_CSWlibtracker-common_$(GARCH))
+CHECKPKG_OVERRIDES_CSWlibtracker-sparql0-16-0_sparc += soname-unused|libicudata.so.51|is|needed|by|/opt/csw/lib/libtracker-sparql-0.16.so.0.1600.3|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-sparql0-16-0_sparc += soname-unused|libicui18n.so.51|is|needed|by|/opt/csw/lib/libtracker-sparql-0.16.so.0.1600.3|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-sparql0-16-0_sparc += soname-unused|libicuuc.so.51|is|needed|by|/opt/csw/lib/libtracker-sparql-0.16.so.0.1600.3|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-sparql0-16-0_sparc += soname-unused|libintl.so.8|is|needed|by|/opt/csw/lib/libtracker-sparql-0.16.so.0.1600.3|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-sparql0-16-0_sparc += soname-unused|libsqlite3.so.0|is|needed|by|/opt/csw/lib/libtracker-sparql-0.16.so.0.1600.3|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-sparql0-16-0_sparc += soname-unused|libz.so.1|is|needed|by|/opt/csw/lib/libtracker-sparql-0.16.so.0.1600.3|but|never|used
+CHECKPKG_OVERRIDES_CSWlibtracker-sparql0-16-0 += $(CHECKPKG_OVERRIDES_CSWlibtracker-sparql0-16-0_$(GARCH))




More information about the maintainers mailing list