I have submitted OpenJDK8.tar.gz to SBo. I am also attaching a patch here
for Strahil's openjdk8 script.
As for openjdk(6,7), my scripts share a common problem when building on
32-bit. They both fail to link with gcc5 libstdc++.so.6, insisting instead
on trying to link with /usr/lib/libstdc++.so.6, which belongs to gcc11.
Building on 64-bit doesn't show this problem.
On Mon, Apr 4, 2022 at 10:39 AM Matteo Bernardini <
[email protected]> wrote:
> Il giorno lun 4 apr 2022 alle ore 16:29 Lenard Spencer <
> [email protected]> ha scritto:
>
>> openjdk8 now also requires gcc5, and will build with zulu-openjdk7 with a
>> minor script edit (BOOT_JAVA to point to zulu-openjdk7). If the maintainer
>> approves I can send the patch.
>>
>> I also have an SBo script that builds OpenJDK8 without using icedtea,
>> using zulu-openjdk7 (a repackaged binary). If there is interest I can
>> submit it.
>>
>>
>> On Mon, Apr 4, 2022, 09:10 Habs <[email protected]> wrote:
>>
>>> Hello everyone, good day
>>>
>>> Slackware 15, clean, fully updated
>>>
>>> The build either manually or via sbotools fails at the same place at the
>>> openjdk7 part.
>>>
>>> (part of the buildlog is below up until it bails out).
>>>
>>> Is it something I'm doing or something in the slackbuild and associate
>>> files and is there a quick 'fix' to try please ?
>>>
>>> Regards
>>> Habs
>>>
>>>
>>>
>>> /tmp/SBo/openjdk7/icedtea-build/bootstrap/jdk1.6.0/bin/jar cf
>>> /tmp/SBo/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir/linux_amd64_compiler2/product/../generated/sa-jdi.jar
>>>
>>> -C
>>> /tmp/SBo/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir/linux_amd64_compiler2/product/../generated/saclasses/
>>>
>>> .
>>> /tmp/SBo/openjdk7/icedtea-build/bootstrap/jdk1.6.0/bin/jar uf
>>> /tmp/SBo/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir/linux_amd64_compiler2/product/../generated/sa-jdi.jar
>>>
>>> -C
>>> /tmp/SBo/openjdk7/icedtea-build/openjdk/hotspot/agent/src/share/classes
>>> META-INF/services/com.sun.jdi.connect.Connector
>>> java.util.zip.ZipException: invalid entry CRC (expected 0x3943b2a7 but
>>> got
>>> 0xc7a06d31)
>>> at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:413)
>>> at java.util.zip.ZipInputStream.read(ZipInputStream.java:195)
>>> at java.io.FilterInputStream.read(FilterInputStream.java:107)
>>> at sun.tools.jar.Main.copy(Main.java:822)
>>> at sun.tools.jar.Main.update(Main.java:584)
>>> at sun.tools.jar.Main.run(Main.java:224)
>>> at sun.tools.jar.Main.main(Main.java:1231)
>>> gmake[8]: ***
>>> [/tmp/SBo/openjdk7/icedtea-build/openjdk/hotspot/make/linux/makefiles/sa.make:86:
>>>
>>> /tmp/SBo/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir/linux_amd64_compiler2/product/../generated/sa-jdi.jar]
>>>
>>> Error 1
>>> gmake[8]: Leaving directory
>>>
>>> '/tmp/SBo/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir/linux_amd64_compiler2/product'
>>> gmake[7]: ***
>>> [/tmp/SBo/openjdk7/icedtea-build/openjdk/hotspot/make/linux/makefiles/sa.make:64:
>>>
>>> all] Error 2
>>> gmake[7]: Leaving directory
>>>
>>> '/tmp/SBo/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir/linux_amd64_compiler2/product'
>>> gmake[6]: ***
>>> [/tmp/SBo/openjdk7/icedtea-build/openjdk/hotspot/make/linux/makefiles/top.make:103:
>>>
>>> sa_stuff] Error 2
>>> gmake[6]: Leaving directory
>>>
>>> '/tmp/SBo/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir/linux_amd64_compiler2/product'
>>> gmake[5]: ***
>>> [/tmp/SBo/openjdk7/icedtea-build/openjdk/hotspot/make/linux/Makefile:323:
>>>
>>> product] Error 2
>>> gmake[5]: Leaving directory
>>> '/tmp/SBo/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir'
>>> gmake[4]: *** [Makefile:203: generic_build2] Error 2
>>> gmake[4]: Leaving directory
>>> '/tmp/SBo/openjdk7/icedtea-build/openjdk/hotspot/make'
>>> gmake[3]: *** [Makefile:158: product] Error 2
>>> gmake[3]: Leaving directory
>>> '/tmp/SBo/openjdk7/icedtea-build/openjdk/hotspot/make'
>>> gmake[2]: *** [make/hotspot-rules.gmk:128: hotspot-build] Error 2
>>> gmake[2]: Leaving directory '/tmp/SBo/openjdk7/icedtea-build/openjdk'
>>> gmake[1]: *** [Makefile:251: build_product_image] Error 2
>>> gmake[1]: Leaving directory '/tmp/SBo/openjdk7/icedtea-build/openjdk'
>>> make: *** [Makefile:2357: stamps/icedtea.stamp] Error 2
>>>
>>
> Hi Lenard,
>
> yes, and please have a look at openjdk7 too because here, testing the
> build locally, I got the same error as Habs:
>
> cp
> /tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk/hotspot/agent/src/share/classes/sun/jvm/hotspot/ui/resources/*.png
> /tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir/linux_amd64_compiler2/product/../generated/saclasses/sun/jvm/hotspot/ui/resources/
> cp -r
> /tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk/hotspot/agent/src/share/classes/images/*
> /tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir/linux_amd64_compiler2/product/../generated/saclasses/
> /tmp/sbopkg.i7xegz/openjdk7/icedtea-build/bootstrap/jdk1.6.0/bin/jar cf
> /tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir/linux_amd64_compiler2/product/../generated/sa-jdi.jar
> -C
> /tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir/linux_amd64_compiler2/product/../generated/saclasses/
> .
> /tmp/sbopkg.i7xegz/openjdk7/icedtea-build/bootstrap/jdk1.6.0/bin/jar uf
> /tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir/linux_amd64_compiler2/product/../generated/sa-jdi.jar
> -C
> /tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk/hotspot/agent/src/share/classes
> META-INF/services/com.sun.jdi.connect.Connector
> java.util.zip.ZipException: invalid entry CRC (expected 0x3943b2a7 but got
> 0xc7a06d31)
> at java.util.zip.ZipInputStream.readEnd(ZipInputStream.java:413)
> at java.util.zip.ZipInputStream.read(ZipInputStream.java:195)
> at java.io.FilterInputStream.read(FilterInputStream.java:107)
> at sun.tools.jar.Main.copy(Main.java:822)
> at sun.tools.jar.Main.update(Main.java:584)
> at sun.tools.jar.Main.run(Main.java:224)
> at sun.tools.jar.Main.main(Main.java:1231)
> gmake[8]: ***
> [/tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk/hotspot/make/linux/makefiles/sa.make:86:
> /tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir/linux_amd64_compiler2/product/../generated/sa-jdi.jar]
> Error 1
> gmake[8]: Leaving directory
> '/tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir/linux_amd64_compiler2/product'
> gmake[7]: ***
> [/tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk/hotspot/make/linux/makefiles/sa.make:64:
> all] Error 2
> gmake[7]: Leaving directory
> '/tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir/linux_amd64_compiler2/product'
> gmake[6]: ***
> [/tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk/hotspot/make/linux/makefiles/top.make:103:
> sa_stuff] Error 2
> gmake[6]: Leaving directory
> '/tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir/linux_amd64_compiler2/product'
> gmake[5]: ***
> [/tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk/hotspot/make/linux/Makefile:323:
> product] Error 2
> gmake[5]: Leaving directory
> '/tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk.build/hotspot/outputdir'
> gmake[4]: *** [Makefile:203: generic_build2] Error 2
> gmake[4]: Leaving directory
> '/tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk/hotspot/make'
> gmake[3]: *** [Makefile:158: product] Error 2
> gmake[3]: Leaving directory
> '/tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk/hotspot/make'
> gmake[2]: *** [make/hotspot-rules.gmk:128: hotspot-build] Error 2
> gmake[2]: Leaving directory
> '/tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk'
> gmake[1]: *** [Makefile:251: build_product_image] Error 2
> gmake[1]: Leaving directory
> '/tmp/sbopkg.i7xegz/openjdk7/icedtea-build/openjdk'
> make: *** [Makefile:2357: stamps/icedtea.stamp] Error 2
>
> Matteo
> _______________________________________________
> SlackBuilds-users mailing list
> [email protected]
> https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
> Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
> FAQ - https://slackbuilds.org/faq/
>
>
diff -Nur openjdk8-master/README openjdk8/README
--- openjdk8-master/README 2022-04-04 14:42:56.522467000 -0400
+++ openjdk8/README 2022-04-04 23:53:19.765958700 -0400
@@ -7,9 +7,6 @@
PATH, JAVA_HOME and MANPATH variables (this includes the 'openjdk7'
dependency package -- you may wish to remove it after you're done.)
-If you already have 'openjdk8' on your system (and are compiling a
-newer version, for example) you don't need the 'openjdk7' dependency.
-
After installing the package you will need to logout/login to your
machine as it will add new files to the /etc/profile.d folder.
@@ -23,10 +20,4 @@
are used by Java applications. It is taken from the CentOS package
'ca-certificates-2015.2.4-65.0.1.el6_6.noarch.rpm'.
-If you get an error like
-
-Internal compiler error: java.lang.NullPointerException at
-org.eclipse.jdt.internal.compiler.ReadManager.run(ReadManager.java:166)
-
-simply run the build again. This happens early so it shouldn't be much
-of a problem. At least 1 out of 5 runs so far have always succeeded.
+Requires zulu-openjdk7 to build.
diff -Nur openjdk8-master/openjdk8.SlackBuild openjdk8/openjdk8.SlackBuild
--- openjdk8-master/openjdk8.SlackBuild 2022-04-04 14:44:48.980413900 -0400
+++ openjdk8/openjdk8.SlackBuild 2022-04-04 23:59:45.294648300 -0400
@@ -25,13 +25,13 @@
cd $(dirname $0) ; CWD=$(pwd)
PRGNAM=openjdk8
-VERSION=${VERSION:-8u292}
+VERSION=${VERSION:-8u322}
BUILD=${BUILD:-1}
TAG=${TAG:-_SBo}
PKGTYPE=${PKGTYPE:-tgz}
DVER=1.8.0_$(printf $VERSION | cut -du -f2)
-ICEDTEA=icedtea-3.20.0
+ICEDTEA=icedtea-3.22.0
if [ -z "$ARCH" ]; then
case "$( uname -m )" in
@@ -59,7 +59,7 @@
LIBDIRSUFFIX=""
fi
-BOOT_JAVA=/usr/lib${LIBDIRSUFFIX}/openjdk7
+BOOT_JAVA=/usr/lib${LIBDIRSUFFIX}/zulu-openjdk7
[ ! -d ${BOOT_JAVA} ] && BOOT_JAVA=${BOOT_JAVA%?}8
[ ! -d ${BOOT_JAVA} ] && { echo "Boot java not found"; exit 1; }
@@ -83,14 +83,7 @@
--disable-system-pcsc \
--disable-system-sctp \
--enable-nss \
- --with-openjdk-src-zip="$CWD/openjdk.tar.xz" \
- --with-corba-src-zip="$CWD/corba.tar.xz" \
- --with-jaxp-src-zip="$CWD/jaxp.tar.xz" \
- --with-jaxws-src-zip="$CWD/jaxws.tar.xz" \
- --with-jdk-src-zip="$CWD/jdk.tar.xz" \
- --with-langtools-src-zip="$CWD/langtools.tar.xz" \
- --with-nashorn-src-zip="$CWD/nashorn.tar.xz" \
- --with-hotspot-src-zip="$CWD/hotspot.tar.xz"
+ --with-openjdk-src-zip=$CWD/openjdk-git.tar.xz
JAVA_HOME=${BOOT_JAVA} PATH=${BOOT_JAVA}/bin:$PATH LOG=trace make
cd $PKG
diff -Nur openjdk8-master/openjdk8.info openjdk8/openjdk8.info
--- openjdk8-master/openjdk8.info 2022-04-04 14:42:56.506468400 -0400
+++ openjdk8/openjdk8.info 2022-04-04 22:27:44.428838100 -0400
@@ -1,26 +1,12 @@
PRGNAM="openjdk8"
-VERSION="8u292"
+VERSION="8u322"
HOMEPAGE="https://openjdk.java.net"
-DOWNLOAD="https://icedtea.classpath.org/download/source/icedtea-3.20.0.tar.xz \
- https://icedtea.classpath.org/download/drops/icedtea8/3.20.0/openjdk.tar.xz \
- https://icedtea.classpath.org/download/drops/icedtea8/3.20.0/corba.tar.xz \
- https://icedtea.classpath.org/download/drops/icedtea8/3.20.0/jaxp.tar.xz \
- https://icedtea.classpath.org/download/drops/icedtea8/3.20.0/jaxws.tar.xz \
- https://icedtea.classpath.org/download/drops/icedtea8/3.20.0/jdk.tar.xz \
- https://icedtea.classpath.org/download/drops/icedtea8/3.20.0/langtools.tar.xz \
- https://icedtea.classpath.org/download/drops/icedtea8/3.20.0/nashorn.tar.xz \
- https://icedtea.classpath.org/download/drops/icedtea8/3.20.0/hotspot.tar.xz"
-MD5SUM="b7719f8912b319899a0814c09368dbb6 \
- 124f11361a962fa05ba97bedb46cf7bd \
- e3934a65e4d3323a1d961ddfc735a5ea \
- d4dbf6f52ea70cae737dfbfef1564c03 \
- 553293c4dfd39a5baef5c83f455f509d \
- 4bd34b4bf6a5548f25800b557e23a73b \
- e9f980be64655f61f73ce8787fa37ce2 \
- 3981e230c9c549ee1d0bb8caf3157fed \
- c03cad0f108737daf4516c0e4f81d136"
+DOWNLOAD="https://icedtea.classpath.org/download/source/icedtea-3.22.0.tar.xz \
+ https://icedtea.classpath.org/download/drops/icedtea8/3.22.0/openjdk-git.tar.xz"
+MD5SUM="a3893aba4fbd2e77a6a1d65816f6c8a2 \
+ 83c0c7340787fac8f819d68e01735b16"
DOWNLOAD_x86_64=""
MD5SUM_x86_64=""
-REQUIRES="openjdk7"
+REQUIRES="zulu-openjdk7"
MAINTAINER="Strahil Yordanov"
EMAIL="[email protected]"
_______________________________________________
SlackBuilds-users mailing list
[email protected]
https://lists.slackbuilds.org/mailman/listinfo/slackbuilds-users
Archives - https://lists.slackbuilds.org/pipermail/slackbuilds-users/
FAQ - https://slackbuilds.org/faq/