Date: Wednesday, November 23, 2022 @ 09:16:53
  Author: freswa
Revision: 462292

use system giflib

fixes FS#76646

Modified:
  java8-openjdk/trunk/PKGBUILD

----------+
 PKGBUILD |   30 +++++++++++++++++++++++-------
 1 file changed, 23 insertions(+), 7 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD    2022-11-23 08:54:53 UTC (rev 462291)
+++ PKGBUILD    2022-11-23 09:16:53 UTC (rev 462292)
@@ -10,12 +10,25 @@
 _minorver=352
 _updatever=08
 pkgver=${_majorver}.${_minorver}.u${_updatever}
-pkgrel=1
+pkgrel=2
 arch=('x86_64')
 url='https://openjdk.java.net/'
 license=('custom')
-makedepends=('java-environment=8' 'ccache' 'cpio' 'unzip' 'zip' 'git' 'bash'
-             'libxrender' 'libxtst' 'fontconfig' 'libcups' 'alsa-lib')
+makedepends=(
+  'alsa-lib'
+  'bash'
+  'ccache'
+  'cpio'
+  'fontconfig'
+  'giflib'
+  'git'
+  'java-environment=8'
+  'libcups'
+  'libxrender'
+  'libxtst'
+  'unzip'
+  'zip'
+)
 options=(!lto)
 
source=(https://github.com/openjdk/jdk${_majorver}u/archive/refs/tags/jdk${_majorver}u${_minorver}-b${_updatever}.tar.gz
         gcc11.patch)
@@ -62,14 +75,12 @@
     --with-build-number="b${_updatever}" \
     --with-milestone="fcs" \
     --enable-unlimited-crypto \
+    --with-giflib=system \
     --with-zlib=system \
     --with-extra-cflags="${CFLAGS}" \
     --with-extra-cxxflags="${CXXFLAGS}" \
     --with-extra-ldflags="${LDFLAGS}"
 
-  # TODO OpenJDK does not want last version of giflib (add 'giflib' as 
dependency once fixed)
-  #--with-giflib=system \
-
   # These help to debug builds: LOG=trace HOTSPOT_BUILD_JOBS=1
   # Without 'DEBUG_BINARIES', i686 won't build: 
http://mail.openjdk.java.net/pipermail/core-libs-dev/2013-July/019203.html
   make
@@ -174,7 +185,12 @@
 
 package_jre8-openjdk() {
   pkgdesc='OpenJDK Java 8 full runtime environment'
-  depends=("jre8-openjdk-headless=${pkgver}-${pkgrel}" 'xdg-utils' 
'hicolor-icon-theme')
+  depends=(
+    "jre8-openjdk-headless=${pkgver}-${pkgrel}"
+    'xdg-utils' 
+    'hicolor-icon-theme'
+    'giflib'
+  )
   optdepends=('icedtea-web: web browser plugin + Java Web Start'
               'alsa-lib: for basic sound support'
               'gtk2: for the Gtk+ look and feel - desktop usage'

Reply via email to