diff --git a/srcpkgs/openjdk/template b/srcpkgs/openjdk/template index 3fde590ef43..060558fed70 100644 --- a/srcpkgs/openjdk/template +++ b/srcpkgs/openjdk/template @@ -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() {