openjdk: fix SUPPORTED_OS_VERSION for 5.x kernel

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2019-04-13 02:34:52 +02:00
parent 8bdc8e533e
commit 4e892b9a47
No known key found for this signature in database
GPG Key ID: DE55AD8DBEBB4EE8
1 changed files with 4 additions and 4 deletions

View File

@ -140,10 +140,10 @@ CFLAGS+=" -Wno-deprecated-declarations -Wno-stringop-overflow -Wno-return-type"
post_extract() {
cd ${XBPS_BUILDDIR}/jdk-${_repo_ver}
# gcc6 complains about the signed shift left
sed -i src/share/native/com/sun/java/util/jar/pack/constants.h \
vsed -i src/share/native/com/sun/java/util/jar/pack/constants.h \
-e's;(-1)<<13;~0u<<13;g'
# wrong "return false;" instead of "return null;"
sed -i src/share/native/com/sun/java/util/jar/pack/jni.cpp \
vsed -i src/share/native/com/sun/java/util/jar/pack/jni.cpp \
-e"295s;false;null;"
cd ${wrksrc}
chmod +x configure
@ -154,8 +154,8 @@ post_extract() {
# https://bugs.openjdk.java.net/browse/JDK-8041658
patch -p1 < ${FILESDIR}/002_gcc.make-4.9.patch
# patch supported os versions to include 4 and 4.1
sed -i ${wrksrc}/hotspot/make/linux/Makefile \
-e "/SUPPORTED_OS_VERSION =/s;\(.*\);\1 4% 4.1%;"
vsed -i ${wrksrc}/hotspot/make/linux/Makefile \
-e "/SUPPORTED_OS_VERSION =/s;\(.*\);\1 4% 4.1% 5%;"
}
do_build() {