On Wed, 2006-04-12 at 08:35 +0100, Paul Howarth wrote: > On Tue, 2006-04-11 at 18:21 -0400, Dan wrote: > > Kam Leo wrote: > > > On 4/11/06, Kazimieras <kazimieras.vaina@xxxxxxxxx> wrote: > > > > > >> Hi, > > >> > > >> The > > >> rpm -ivh > > >> http://www.mirrorservice.org/sites/jpackage.org/1.6/generic/non-free/RPMS/java-1.5.0-sun-compat-1.5.0.06-1jpp.i586.rpm > > >> > > >> fails with: > > >> error: unpacking of archive failed on > > >> file /usr/lib/jvm/java-1.5.0-sun-1.5.0.06/jre/lib/i386: cpio: rename > > >> failed - Is a directory > > >> > > >> Did anyone get similar error ? > > >> > > >> > > >> -- > > >> Kazimieras <kazimieras.vaina@xxxxxxxxx> > > >> > > >> > > > > > > Read the "Build Instructions" at jpackage.org. Among other items > > > besides reading the instructions is to install the fedora-rpmdevltools > > > package from Extras and download the .bin file from Sun. > > > > > > > > I wrote a quick and painless guide to install JPackage's > > Fedora-sanctioned Sun Java at > > http://www.fedorasolved.com/viewtopic.php?t=204 . Let me know if > > anything is confusing. > > Very similar to mine :-) > http://www.city-fan.org/tips/JpackageJava > > The rpath problem you allude to at the bottom of the guide happened if > you had an old version of fedora-rpmdevtools installed, which was fixed > before FC5 came out and hence that's why you've not seen it on FC5. > > Paul. > > Both guides look really good. I tried the java-1.5.0-sun-1.5.0.06-1jpp.nosrc.rpm as well and it works good. However I didn't like this kind of packaging, because it puts java files in different locations than jdk-1_5_0_06-linux-i586.rpm does. I was looking only for a solution which automatically updates alternatives (/usr/sbin/alternatives). I thought java-1.5.0-sun-compat-1.5.0.06-1jpp.src.rpm would be a proper solution... I built this package myself I downloaded pre-built package and none of them did work for me. Well, I think that's not rpath problem (maybe I'm wrong) - the the source package builds without an error, but error appears at installation time. Maybe the problem is related with symliks ? The /usr/lib/jvm/java-1.5.0-sun-1.5.0.06/jre/lib/i386 file is a symlink to a directory... One more suspicious thing: rpm -qlp jdk-1_5_0_06-linux-i586.rpm | grep pack gives: /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 It seems that there is a bug in cpio or in rpm tool. -- Kazimieras <kazimieras.vaina@xxxxxxxxx>