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:
parent
8bdc8e533e
commit
4e892b9a47
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue