OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0003944 [cswutils] other feature always 2009-10-06 20:37 2010-09-26 04:52
Reporter skayser View Status public  
Assigned To maciej
Priority normal Resolution fixed  
Status closed  
Summary 0003944: checkpkg needs to check for wrong-arch libs
Description I just noticed sparcv9 libs in an i386 package of neon (0003943). Could checkpkg please be enhanced to also check for such wrong-arch libs in a package.

# pkgchk -v CSWneon
/opt/csw/lib/libneon.so
/opt/csw/lib/libneon.so.26
/opt/csw/lib/libneon.so.26.0.4
/opt/csw/lib/libneon.so.27
/opt/csw/lib/libneon.so.27.2.0
/opt/csw/lib/sparcv9/libneon.so
/opt/csw/lib/sparcv9/libneon.so.26
/opt/csw/lib/sparcv9/libneon.so.26.0.4
/opt/csw/lib/sparcv9/libneon.so.27
/opt/csw/lib/sparcv9/libneon.so.27.2.0
/opt/csw/share/doc/neon
/opt/csw/share/doc/neon/license
/opt/csw/share/locale/cs/LC_MESSAGES/neon.mo
/opt/csw/share/locale/de/LC_MESSAGES/neon.mo
/opt/csw/share/locale/fr/LC_MESSAGES/neon.mo
/opt/csw/share/locale/ja/LC_MESSAGES/neon.mo
/opt/csw/share/locale/nn/LC_MESSAGES/neon.mo
/opt/csw/share/locale/pl/LC_MESSAGES/neon.mo
/opt/csw/share/locale/ru/LC_MESSAGES/neon.mo
/opt/csw/share/locale/tr/LC_MESSAGES/neon.mo
/opt/csw/share/locale/zh_CN/LC_MESSAGES
/opt/csw/share/locale/zh_CN/LC_MESSAGES/neon.mo

# file /opt/csw/lib/sparcv9/libneon.so*
/opt/csw/lib/sparcv9/libneon.so: ELF 64-bit MSB dynamic lib SPARCV9 Version 1, dynamically linked, not stripped
/opt/csw/lib/sparcv9/libneon.so.26: ELF 64-bit MSB dynamic lib SPARCV9 Version 1, dynamically linked, not stripped
/opt/csw/lib/sparcv9/libneon.so.26.0.4: ELF 64-bit MSB dynamic lib SPARCV9 Version 1, dynamically linked, not stripped
/opt/csw/lib/sparcv9/libneon.so.27: ELF 64-bit MSB dynamic lib SPARCV9 Version 1, dynamically linked, not stripped
/opt/csw/lib/sparcv9/libneon.so.27.2.0: ELF 64-bit MSB dynamic lib SPARCV9 Version 1, dynamically linked, not stripped

Additional Information # pkginfo -l CSWcswutils
   PKGINST: CSWcswutils
      NAME: cswutils - Utilities for CSW maintainers
  CATEGORY: application
      ARCH: all
   VERSION: 1.14.3,REV=2009.08.13
   BASEDIR: /
    VENDOR: http://www.opencsw.org/ [^] packaged for CSW by Dagobert Michelsen
    PSTAMP: dam@build8s-20090813093119
  INSTDATE: Sep 17 2009 20:15
   HOTLINE: http://www.opencsw.org/bugtrack/ [^]
     EMAIL: dam@opencsw.org
    STATUS: completely installed
     FILES: 11 installed pathnames
                   1 shared pathnames
                   2 directories
                   8 executables
                 106 blocks used (approx)
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0006864)
skayser (administrator)
2009-10-16 11:03

For another occurence of "wrong arch libs in pkg" see

i386 libraries in mercurial for Solaris sparc
http://thread.gmane.org/gmane.os.solaris.opencsw.user/637 [^]
(0008027)
bwalton (administrator)
2010-06-15 02:36

Is this still happening?
(0008125)
maciej (reporter)
2010-07-20 00:14

Yes, it's still happening, I've just verified. Thanks for reporting this.
(0008126)
maciej (reporter)
2010-07-20 13:25

Done, here's an example run:

maciej@current9s :~/src/opencsw/gar/checkpkg-profiling > bin/checkpkg /home/maciej/neon-0.29.0,REV\=2009.09.14-SunOS5.8-i386-CSW.pkg.gz
INFO:root:Juicing the srv4 package stream files...
100% |#################################################################################################################################################################################################|
INFO:root:Unwrapping candies...
100% |#################################################################################################################################################################################################|
INFO:root:Tasting candies one by one...
100% |#################################################################################################################################################################################################|
INFO:root:Tasting them all at once...
INFO:root:Stuffing the candies under the pillow...
100% |#################################################################################################################################################################################################|
CSWneon:
Applying the overrides and analyzing the results.
If any of the reported errors were false positives, you can override them
pasting the lines below to the GAR recipe.
CHECKPKG_OVERRIDES_CSWneon += bad-rpath-entry|/opt/csw/lib/|opt/csw/lib/libneon.so.26.0.4
CHECKPKG_OVERRIDES_CSWneon += bad-rpath-entry|/opt/csw/lib/|opt/csw/lib/libneon.so.27.2.0
CHECKPKG_OVERRIDES_CSWneon += binary-wrong-architecture|file=opt/csw/lib/sparcv9/libneon.so.27.2.0|pkginfo-says=i386|actual-binary=sparc
CHECKPKG_OVERRIDES_CSWneon += binary-wrong-architecture|file=opt/csw/lib/sparcv9/libneon.so.26.0.4|pkginfo-says=i386|actual-binary=sparc
Please note that checkpkg isn't suggesting you should simply add these overrides
do the Makefile. It only informs what the overrides could look like. You need
to understand what are the reported issues about and use your best judgement to
decide whether to fix the underlying problems or override them. For more
information, scroll up and read the detailed messages.
ERROR: Modular checks are reporting errors.
To run checkpkg in the debug mode, add the '-d' flag, for example:
After you modify any overrides, you need to do gmake remerge repackage
or gmake platforms-remerge platforms-repackage.


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker