gnu: icedtea-7: Patch code to enable build with newer glibc.

* gnu/packages/java.scm (icedtea-7)[arguments]: Add build phase
"patch-bitrot".
(icedtea-8)[arguments]: Remove phase "patch-bitrot".
This commit is contained in:
Ricardo Wurmus 2019-09-07 16:25:47 +02:00
parent 64ad3989d7
commit 6b7e09ae6b
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -1125,6 +1125,18 @@ (define-public icedtea-7
((name . _) name)) ((name . _) name))
inputs)))) inputs))))
#t))) #t)))
(add-after 'unpack 'patch-bitrot
(lambda _
(substitute* '("patches/boot/revert-6973616.patch"
"openjdk.src/jdk/make/common/shared/Defs-versions.gmk")
(("REQUIRED_FREETYPE_VERSION = 2.2.1")
"REQUIRED_FREETYPE_VERSION = 2.10.1"))
;; As of attr 2.4.48 this header is no longer
;; included. It is provided by the libc instead.
(substitute* '("configure"
"openjdk.src/jdk/src/solaris/native/sun/nio/fs/LinuxNativeDispatcher.c")
(("attr/xattr.h") "sys/xattr.h"))
#t))
(add-after 'unpack 'fix-x11-extension-include-path (add-after 'unpack 'fix-x11-extension-include-path
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(substitute* "openjdk.src/jdk/make/sun/awt/mawt.gmk" (substitute* "openjdk.src/jdk/make/sun/awt/mawt.gmk"
@ -1604,6 +1616,7 @@ (define-public icedtea-8
(delete 'patch-paths) (delete 'patch-paths)
(delete 'set-additional-paths) (delete 'set-additional-paths)
(delete 'patch-patches) (delete 'patch-patches)
(delete 'patch-bitrot)
;; Prevent the keytool from recording the current time when ;; Prevent the keytool from recording the current time when
;; adding certificates at build time. ;; adding certificates at build time.
(add-after 'unpack 'patch-keystore (add-after 'unpack 'patch-keystore