[bug-notifications] [cswutils 0003944]: checkpkg needs to check for wrong-arch libs

Mantis Bug Tracker noreply at opencsw.org
Sun Sep 26 04:52:33 CEST 2010


The following issue has been CLOSED 
====================================================================== 
https://www.opencsw.org/mantis/view.php?id=3944 
====================================================================== 
Reported By:                skayser
Assigned To:                maciej
====================================================================== 
Project:                    cswutils
Issue ID:                   3944
Category:                   other
Reproducibility:            always
Severity:                   feature
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-10-06 20:37 CEST
Last Modified:              2010-09-26 04:52 CEST
====================================================================== 
Summary:                    checkpkg needs to check for wrong-arch libs
Description: 
I just noticed sparcv9 libs in an i386 package of neon
(https://www.opencsw.org/mantis/view.php?id=3943). 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


====================================================================== 

---------------------------------------------------------------------- 
 (0008126) maciej (developer) - 2010-07-20 13:25
 https://www.opencsw.org/mantis/view.php?id=3944#c8126 
---------------------------------------------------------------------- 
Done, here's an example run:

maciej at 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.



More information about the bug-notifications mailing list