Re: java-1.6.0-sun-compat for Sun SDK 1.6.0_21

Marcos Hack <[email protected]>
Newsgroups gmane.linux.jpackage.general
Message-ID <[email protected]>
Hummm... my fault. I'm supposed to use the
"java-1.6.0-sun-compat-1.6.0.03-1jpp.src.rpm" package and not
"java-1.6.0-sun-1.6.0.14-1jpp.nosrc.rpm". Sorry by that!


On Fri, Sep 10, 2010 at 11:07, Marcos Hack <[email protected]> wrote:
> Hello everybody,
>
> I'm trying to build the package
> "java-1.6.0-sun-1.6.0.14-1jpp.nosrc.rpm" for the update 21 of
> Sun/Oracle JDK. I changed the parameter "buildver" to 21 and copied
> (and renamed) the binary self-extract RPM to
> SOURCES/jdk-6u21-linux-i586.bin (the original binary name is
> jdk-6u21-linux-i586-rpm.bin, may I change the "Source0" ?).
>
> When I run "rpmbuild -ba SPECS/java-1.6.0-sun.spec" I get the following error:
>
> =============
> [mhack@centos redhat]$ rpmbuild -ba SPECS/java-1.6.0-sun.spec
> Executing(%prep): /bin/sh -e /home/mhack/redhat/tmp/rpm-tmp.8810
> + umask 022
> + cd /home/mhack/redhat/BUILD
> + rm -rf /home/mhack/redhat/BUILD/jdk1.6.0_21
> + export MORE=10000
> + MORE=10000
> + sh /home/mhack/redhat/SOURCES/jdk-6u21-linux-i586.bin
> error: can't create transaction lock on /var/lib/rpm/__db.000
> + cd /home/mhack/redhat/BUILD
> + cd jdk1.6.0_21
> /home/mhack/redhat/tmp/rpm-tmp.8810: line 30: cd: jdk1.6.0_21: No such
> file or directory
> error: Bad exit status from /home/mhack/redhat/tmp/rpm-tmp.8810 (%prep)
>
> RPM build errors:
>     Bad exit status from /home/mhack/redhat/tmp/rpm-tmp.8810 (%prep)
> =============
>
> It looks like %prep step is looking for a "jdk1.6.0_21" directory, but
> the binary just expands to the following files:
>
> =============
> jdk-6u21-linux-i586.rpm
> sun-javadb-client-10.5.3-0.2.i386.rpm
> sun-javadb-common-10.5.3-0.2.i386.rpm
> sun-javadb-core-10.5.3-0.2.i386.rpm
> sun-javadb-demo-10.5.3-0.2.i386.rpm
> sun-javadb-docs-10.5.3-0.2.i386.rpm
> sun-javadb-javadoc-10.5.3-0.2.i386.rpm
> =============
>
> Could someone please give me a hand on this?
>
> Thanks!
> Hack
>
_______________________________________________
JPackage-discuss mailing list
[email protected]
https://www.zarb.org/mailman/listinfo/jpackage-discuss
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.