Skip to contentSkip to conversation

icedtea7-native: add patch to fix xattr include path

PATCH New Richard Leitner 1 participant 2 messages Jan 21, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 icedtea7-native: add patch to fix xattr include path

As attr dropped the <attr/xattr.h> header use <sys/xattr.h> instead.

http://git.savannah.nongnu.org/cgit/attr.git/commit/include?id=7921157890d07858d092f4003ca4c6bae9fd2c38

---
 .../icedtea-jdk-fix-xattr-include.patch               | 11 +++++++++++
 .../icedtea-m4-fix-xattr-include-path.patch           | 11 +++++++++++
 recipes-core/icedtea/openjdk-7-release-03b147.inc     |  3 +++
 3 files changed, 25 insertions(+)
 create mode 100644 recipes-core/icedtea/openjdk-7-03b147/icedtea-jdk-fix-xattr-include.patch
 create mode 100644 recipes-core/icedtea/openjdk-7-03b147/icedtea-m4-fix-xattr-include-path.patch
recipes-core/icedtea/openjdk-7-03b147/icedtea-jdk-fix-xattr-include.patch new file +11 -0
new file mode 100644
index 0000000..9b94dc8
@@ -0,0 +1,11 @@
+--- openjdk/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
++++ openjdk/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
+@@ -37,7 +37,7 @@
+ 
+ #ifdef COMPILE_AGAINST_SYSCALLS
+ #include <sys/types.h>
+-#include <attr/xattr.h>
++#include <sys/xattr.h>
+ #else
+ #include <syscalls_fp.h>
+ #endif
recipes-core/icedtea/openjdk-7-03b147/icedtea-m4-fix-xattr-include-path.patch new file +11 -0
new file mode 100644
index 0000000..5164012
@@ -0,0 +1,11 @@
+--- a/acinclude.m4
++++ b/acinclude.m4
+@@ -2102,7 +2102,7 @@
+     dnl Check for syscalls
+     AC_CHECK_FUNCS([openat64 fstatat64 fgetxattr fsetxattr fremovexattr flistxattr unlinkat renameat futimesat fdopendir epoll_create epoll_ctl epoll_wait],,
+       [AC_MSG_ERROR([Could not find required syscalls; check config.log and use --disable-compile-against-syscalls if necessary.])])
+-    AC_CHECK_HEADERS([sys/epoll.h attr/xattr.h],
++    AC_CHECK_HEADERS([sys/epoll.h sys/xattr.h],
+       , [AC_MSG_ERROR([Could not find required system headers; install the appropriate files from glibc-headers, libc6-dev and/or libattr-devel, libattr1-dev or use --disable-compile-against-syscalls if necessary.])])
+   fi
+   AM_CONDITIONAL(USE_SYSCALL_COMPILATION, test x"${ENABLE_SYSCALL_COMPILATION}" = "xyes")
recipes-core/icedtea/openjdk-7-release-03b147.inc +3 -0
index 2bc7065..9816c0c 100644
@@ -72,6 +72,7 @@ ICEDTEA_PATCHES = " \
         file://icedtea-sane-x86-arch-name.patch \
 	file://fix-checksums.patch \
 	file://icedtea-makefile-unzip.patch \
+	file://icedtea-m4-fix-xattr-include-path.patch \
         "
 
 OPENJDK_PATCHES = " \
@@ -80,6 +81,7 @@ OPENJDK_PATCHES = " \
 	file://icedtea-corba-parallel-make.patch;apply=no \
         file://icedtea-hotspot-make-arch-sane-for-x86.patch;apply=no \
         file://icedtea-jdk-sane-x86-arch.patch;apply=no \
+        file://icedtea-jdk-fix-xattr-include.patch;apply=no \
 	file://icedtea-flags.patch;apply=no \
 	file://icedtea-openjdk-remove-currency-data-generation-expi.patch;apply=no \
 	file://icedtea-change-to-gdb-debug-format.patch;apply=no \
@@ -106,6 +108,7 @@ export DISTRIBUTION_PATCHES = " \
 	patches/icedtea-corba-parallel-make.patch \
         patches/icedtea-hotspot-make-arch-sane-for-x86.patch \
         patches/icedtea-jdk-sane-x86-arch.patch \
+        patches/icedtea-jdk-fix-xattr-include.patch \
 	patches/icedtea-flags.patch \
 	patches/icedtea-openjdk-remove-currency-data-generation-expi.patch \
 	patches/icedtea-change-to-gdb-debug-format.patch \
Signature · 1 line
2.24.1
#1 lore raw

PATCH 2/2 openjdk-7: add patch to fix xattr include path

As attr dropped the <attr/xattr.h> header use <sys/xattr.h> instead.

http://git.savannah.nongnu.org/cgit/attr.git/commit/include?id=7921157890d07858d092f4003ca4c6bae9fd2c38

---
 recipes-core/openjdk/openjdk-7_99b00-2.6.5.bb         |  3 +++
 .../icedtea-jdk-fix-xattr-include.patch               | 11 +++++++++++
 .../icedtea-m4-fix-xattr-include-path.patch           | 11 +++++++++++
 3 files changed, 25 insertions(+)
 create mode 100644 recipes-core/openjdk/patches-openjdk-7/icedtea-jdk-fix-xattr-include.patch
 create mode 100644 recipes-core/openjdk/patches-openjdk-7/icedtea-m4-fix-xattr-include-path.patch
recipes-core/openjdk/openjdk-7_99b00-2.6.5.bb +3 -0
index 87de6be..d774cc2 100644
@@ -41,6 +41,7 @@ OEPATCHES = "\
     file://build-hacks.patch \
     file://fix_hotspot_crosscompile.patch \
     file://icedtea-makefile-unzip.patch \
+    file://icedtea-m4-fix-xattr-include-path.patch \
 "
 
 ICEDTEAPATCHES = "\
@@ -50,6 +51,7 @@ ICEDTEAPATCHES = "\
     file://icedtea-crosscompile-fix.patch;apply=no \
     file://icedtea-xawt-crosscompile-fix.patch;apply=no \
     file://icedtea-jdk-unzip.patch;apply=no \
+    file://icedtea-jdk-fix-xattr-include.patch;apply=no \
     file://icedtea-dtrace-std_h.patch;apply=no \
     file://icedtea-hotspot-fix-string-literal-marcos.patch;apply=no \
     file://icedtea-flags-to-compile-with-GCC-6.patch;apply=no \
@@ -63,6 +65,7 @@ DISTRIBUTION_PATCHES = "\
     patches/icedtea-crosscompile-fix.patch \
     patches/icedtea-xawt-crosscompile-fix.patch \
     patches/icedtea-jdk-unzip.patch \
+    patches/icedtea-jdk-fix-xattr-include.patch \
     patches/icedtea-dtrace-std_h.patch \
     patches/icedtea-hotspot-fix-string-literal-marcos.patch \
     patches/icedtea-flags-to-compile-with-GCC-6.patch \
recipes-core/openjdk/patches-openjdk-7/icedtea-jdk-fix-xattr-include.patch new file +11 -0
new file mode 100644
index 0000000..ef44e7e
@@ -0,0 +1,11 @@
+--- openjdk/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
++++ openjdk/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c
+@@ -38,7 +38,7 @@
+ 
+ #ifdef COMPILE_AGAINST_SYSCALLS
+ #include <sys/types.h>
+-#include <attr/xattr.h>
++#include <sys/xattr.h>
+ #else
+ #include <syscalls_fp.h>
+ #endif
recipes-core/openjdk/patches-openjdk-7/icedtea-m4-fix-xattr-include-path.patch new file +11 -0
new file mode 100644
index 0000000..f9b526f
@@ -0,0 +1,11 @@
+--- a/acinclude.m4
++++ b/acinclude.m4
+@@ -2234,7 +2234,7 @@
+     dnl Check for syscalls
+     AC_CHECK_FUNCS([openat64 fstatat64 fgetxattr fsetxattr fremovexattr flistxattr unlinkat renameat futimesat fdopendir epoll_create epoll_ctl epoll_wait],,
+       [AC_MSG_ERROR([Could not find required syscalls; check config.log and use --disable-compile-against-syscalls if necessary.])])
+-    AC_CHECK_HEADERS([sys/epoll.h attr/xattr.h],
++    AC_CHECK_HEADERS([sys/epoll.h sys/xattr.h],
+       , [AC_MSG_ERROR([Could not find required system headers; install the appropriate files from glibc-headers, libc6-dev and/or libattr-devel, libattr1-dev or use --disable-compile-against-syscalls if necessary.])])
+     ENABLE_SYSCALL_COMPILATION=true
+   fi
Signature · 1 line
2.24.1