Bug 188885 - rpm lists wrong file names of sun jdk rpm packages
rpm lists wrong file names of sun jdk rpm packages
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
5
x86_64 Linux
medium Severity medium
: ---
: ---
Assigned To: Paul Nasrat
Mike McLean
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2006-04-13 02:46 EDT by Kazimieras Vaina
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2006-04-13 08:15:26 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
rpm2cpio jdk-1_5_0_06-linux-i586.rpm | cpio -itv (308.92 KB, text/plain)
2006-04-13 08:07 EDT, Kazimieras Vaina
no flags Details

  None (edit)
Description Kazimieras Vaina 2006-04-13 02:46:45 EDT
Description of problem:

rpm -qlp jdk-1_5_0_06-linux-i586.rpm | grep pack

/usr/java/jdk1.5.0_06/bin/pack200
/usr/java/jdk1.5.0_06/bin/unpack200
/usr/java/jdk1.5.0_06/jre/bin/pack200
/usr/java/jdk1.5.0_06/jre/bin/unpack200
/usr/java/jdk1.5.0_06/jre/lib/charsets.pack
/usr/java/jdk1.5.0_06/jre/lib/deploy.pack
/usr/java/jdk1.5.0_06/jre/lib/ext/localedata.pack
/usr/java/jdk1.5.0_06/jre/lib/i386/libunpack.so
/usr/java/jdk1.5.0_06/jre/lib/javaws.pack
/usr/java/jdk1.5.0_06/jre/lib/jsse.pack
/usr/java/jdk1.5.0_06/jre/lib/plugin.pack
/usr/java/jdk1.5.0_06/jre/lib/rt.pack
/usr/java/jdk1.5.0_06/lib/tools.pack
/usr/java/jdk1.5.0_06/man/ja_JP.eucJP/man1/pack200.1
/usr/java/jdk1.5.0_06/man/ja_JP.eucJP/man1/unpack200.1
/usr/java/jdk1.5.0_06/man/man1/pack200.1
/usr/java/jdk1.5.0_06/man/man1/unpack200.1

We see incorrect named files such as rt.pack (should be rt.jar), plugin.pack and
so on.

Version-Release number of selected component (if applicable):
rpm-4.4.2-15.2

How reproducible:
allways

Steps to Reproduce:
1.Install Fc5 x86_64
2.Dowlnload Sun's jdk rpm in bin format and unpack it. 
3.Run: rpm -qlp jdk-1_5_0_06-linux-i586.rpm | grep pack
  
Actual results:
/usr/java/jdk1.5.0_06/bin/pack200
/usr/java/jdk1.5.0_06/bin/unpack200
/usr/java/jdk1.5.0_06/jre/bin/pack200
/usr/java/jdk1.5.0_06/jre/bin/unpack200
/usr/java/jdk1.5.0_06/jre/lib/charsets.pack
/usr/java/jdk1.5.0_06/jre/lib/deploy.pack
/usr/java/jdk1.5.0_06/jre/lib/ext/localedata.pack
/usr/java/jdk1.5.0_06/jre/lib/i386/libunpack.so
/usr/java/jdk1.5.0_06/jre/lib/javaws.pack
/usr/java/jdk1.5.0_06/jre/lib/jsse.pack
/usr/java/jdk1.5.0_06/jre/lib/plugin.pack
/usr/java/jdk1.5.0_06/jre/lib/rt.pack
/usr/java/jdk1.5.0_06/lib/tools.pack
/usr/java/jdk1.5.0_06/man/ja_JP.eucJP/man1/pack200.1
/usr/java/jdk1.5.0_06/man/ja_JP.eucJP/man1/unpack200.1
/usr/java/jdk1.5.0_06/man/man1/pack200.1
/usr/java/jdk1.5.0_06/man/man1/unpack200.1

Expected results:
...
/usr/java/jdk1.5.0_06/jre/lib/rt.jar
...

Additional info:
Comment 1 Jeff Johnson 2006-04-13 06:46:49 EDT
Why do you think the listed names are "wrong"?

What does
   rpm2cpio jdk-1_5_0_06-linux-i586.rpm | cpio -itv
say?

What does
    rpm -Vp jdk-1_5_0_06-linux-i586.rpm
say?
Comment 2 Kazimieras Vaina 2006-04-13 08:04:43 EDT
1. Some of these file names have pack extension (eg. rt.pack), but they ought to
have jar extension (eg. rt.jar). 
To be more precise:
rpm -qlp jdk-1_5_0_06-linux-i586.rpm | grep [.]pack
/usr/java/jdk1.5.0_06/jre/lib/charsets.pack
/usr/java/jdk1.5.0_06/jre/lib/deploy.pack
/usr/java/jdk1.5.0_06/jre/lib/ext/localedata.pack
/usr/java/jdk1.5.0_06/jre/lib/javaws.pack
/usr/java/jdk1.5.0_06/jre/lib/jsse.pack
/usr/java/jdk1.5.0_06/jre/lib/plugin.pack
/usr/java/jdk1.5.0_06/jre/lib/rt.pack
/usr/java/jdk1.5.0_06/lib/tools.pack

All of those file names shall have a jar extension.
I installed the jdk-1_5_0_06-linux-i586.rpm so I can show that files above have
different extensions:
/usr/java/jdk1.5.0_06/jre/lib/charsets.jar
/usr/java/jdk1.5.0_06/jre/lib/deploy.jar
/usr/java/jdk1.5.0_06/jre/lib/ext/dnsns.jar
/usr/java/jdk1.5.0_06/jre/lib/ext/j3dcore.jar
/usr/java/jdk1.5.0_06/jre/lib/ext/j3dutils.jar
/usr/java/jdk1.5.0_06/jre/lib/ext/localedata.jar
/usr/java/jdk1.5.0_06/jre/lib/ext/sunjce_provider.jar
/usr/java/jdk1.5.0_06/jre/lib/ext/sunpkcs11.jar
/usr/java/jdk1.5.0_06/jre/lib/ext/vecmath.jar
/usr/java/jdk1.5.0_06/jre/lib/im/indicim.jar
/usr/java/jdk1.5.0_06/jre/lib/im/thaiim.jar
/usr/java/jdk1.5.0_06/jre/lib/javaws.jar
/usr/java/jdk1.5.0_06/jre/lib/jce.jar
/usr/java/jdk1.5.0_06/jre/lib/jsse.jar
/usr/java/jdk1.5.0_06/jre/lib/plugin.jar
/usr/java/jdk1.5.0_06/jre/lib/rt.jar
/usr/java/jdk1.5.0_06/jre/lib/security/local_policy.jar
/usr/java/jdk1.5.0_06/jre/lib/security/US_export_policy.jar
Comment 3 Kazimieras Vaina 2006-04-13 08:07:20 EDT
Created attachment 127702 [details]
rpm2cpio jdk-1_5_0_06-linux-i586.rpm | cpio -itv

command output
Comment 4 Kazimieras Vaina 2006-04-13 08:09:07 EDT
3. rpm -Vp jdk-1_5_0_06-linux-i586.rpm
missing     /usr/java/jdk1.5.0_06/jre/lib/charsets.pack
missing     /usr/java/jdk1.5.0_06/jre/lib/deploy.pack
missing     /usr/java/jdk1.5.0_06/jre/lib/ext/localedata.pack
missing     /usr/java/jdk1.5.0_06/jre/lib/javaws.pack
missing     /usr/java/jdk1.5.0_06/jre/lib/jsse.pack
missing     /usr/java/jdk1.5.0_06/jre/lib/plugin.pack
missing     /usr/java/jdk1.5.0_06/jre/lib/rt.pack
missing     /usr/java/jdk1.5.0_06/lib/tools.pack
Comment 5 Paul Nasrat 2006-04-13 08:15:26 EDT
Blame sun for their packaging.

rpm --scripts -qp jdk-1_5_06-linux-i586.rpm shows amongs others:

UNPACK_EXE=/usr/java/jdk1.5.0_06/bin/unpack200
if [ -f $UNPACK_EXE ]; then
    chmod +x $UNPACK_EXE

    PACKED_JARS="lib/tools.jar jre/lib/rt.jar jre/lib/jsse.jar
jre/lib/charsets.jar jre/lib/ext/localedata.jar jre/lib/plugin.jar
jre/lib/javaws.jar jre/lib/deploy.jar"
    for i in $PACKED_JARS; do
        srcFile=/usr/java/jdk1.5.0_06/`dirname $i`/`basename $i .jar`.pack
        dstFile=/usr/java/jdk1.5.0_06/$i
        $UNPACK_EXE $srcFile $dstFile
        if [ ! -f  $dstFile ]; then
            printf "Error: unpack could not create %s. Please refer to the
Troubleshooting\n" $dstFile
            printf "Section of the Installation Instructions on the download
page.\n"
            exit 1
        fi

        rm -f $srcFile
    done

else
    printf "Error: unpack command could not be found. Please refer to the \n"
    printf "TroubleShooting Section of the Installation Instructions on \n"
    printf "the download page.\n"
    printf "Please do not attempt to install this archive file.\n"
    exit 2
fi

Note You need to log in before you can comment on or make changes to this bug.