pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/openjdk11 openjdk11: Internal libraries should no...
details: https://anonhg.NetBSD.org/pkgsrc/rev/4e529db967c9
branches: trunk
changeset: 456626:4e529db967c9
user: ryoon <ryoon%pkgsrc.org@localhost>
date: Wed Aug 04 17:06:35 2021 +0000
description:
openjdk11: Internal libraries should not use PREFIX/lib for rpath
libjsound.so on NetBSD uses PREFIX/lib/libasound.so and add PREFIX/lib
to rpath of libjsound.so.
Fix confusion against devel/libnet.
Reported by manu@ on tech-pkg@.
Bump PKGREVISON.
diffstat:
lang/openjdk11/Makefile | 6 +++-
lang/openjdk11/distinfo | 3 +-
lang/openjdk11/patches/patch-make_autoconf_lib-alsa.m4 | 24 ++++++++++++++++++
3 files changed, 30 insertions(+), 3 deletions(-)
diffs (68 lines):
diff -r 4ee0c1e9d3f2 -r 4e529db967c9 lang/openjdk11/Makefile
--- a/lang/openjdk11/Makefile Wed Aug 04 16:08:43 2021 +0000
+++ b/lang/openjdk11/Makefile Wed Aug 04 17:06:35 2021 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.34 2021/06/27 08:53:54 tnn Exp $
+# $NetBSD: Makefile,v 1.35 2021/08/04 17:06:35 ryoon Exp $
DISTNAME= openjdk-jdk11u-${GITHUB_TAG:C/\+/-/}
PKGNAME= openjdk11-1.${GITHUB_TAG:C/\+/./:C/jdk-([.0-9]+).*/\1/}
+PKGREVISION= 1
CATEGORIES= lang
MASTER_SITES= ${MASTER_SITE_GITHUB:=battleblow/}
GITHUB_PROJECT= openjdk-jdk11u
@@ -59,7 +60,8 @@
CONFIGURE_ARGS+= --disable-precompiled-headers
CONFIGURE_ARGS+= --disable-ccache
CONFIGURE_ARGS+= --disable-javac-server
-CONFIGURE_ARGS+= --with-extra-ldflags=${LDFLAGS:Q}
+# Do not include ${PREFIX} (/usr/pkg) for internal libraries.
+#CONFIGURE_ARGS+= --with-extra-ldflags=${LDFLAGS:Q}
CONFIGURE_ARGS+= --with-extra-cflags=${CFLAGS:Q}
CONFIGURE_ARGS+= --with-extra-cxxflags=${CXXFLAGS:Q}
CONFIGURE_ARGS+= --disable-warnings-as-errors
diff -r 4ee0c1e9d3f2 -r 4e529db967c9 lang/openjdk11/distinfo
--- a/lang/openjdk11/distinfo Wed Aug 04 16:08:43 2021 +0000
+++ b/lang/openjdk11/distinfo Wed Aug 04 17:06:35 2021 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.24 2021/06/28 22:53:05 tnn Exp $
+$NetBSD: distinfo,v 1.25 2021/08/04 17:06:35 ryoon Exp $
SHA1 (bootstrap-jdk-1.11.0.5.8-netbsd-7-amd64-20190928.tar.xz) = d76599619b8bea879b8202b3efc38a82335d2e8c
RMD160 (bootstrap-jdk-1.11.0.5.8-netbsd-7-amd64-20190928.tar.xz) = a1b998e4e7edfb73ec35b0cc94895d9af16a8cd8
@@ -19,6 +19,7 @@
SHA1 (patch-make_autoconf_basics.m4) = 5a8d3cd229f73eef34fb3860dfae1a813ec39ab5
SHA1 (patch-make_autoconf_flags-cflags.m4) = 3b37853298805e2ffb92d3babd700d0048f24d8d
SHA1 (patch-make_autoconf_jdk-options.m4) = d0d9fbaf29cc521fa4b62b1ea2616dc8f3b07618
+SHA1 (patch-make_autoconf_lib-alsa.m4) = 999fbf951363f6b49b22aad81537728f22d7c381
SHA1 (patch-make_autoconf_lib-bundled.m4) = 8720c3f674955e8a51b2ab7dba80c36d34ba8594
SHA1 (patch-make_autoconf_lib-freetype.m4) = 3dbdfea4011dc69593ab302626b9ec4dfc7a7d54
SHA1 (patch-make_autoconf_lib-x11.m4) = f609a726f2d795f1d05cc933df587d3440c09b9f
diff -r 4ee0c1e9d3f2 -r 4e529db967c9 lang/openjdk11/patches/patch-make_autoconf_lib-alsa.m4
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/lang/openjdk11/patches/patch-make_autoconf_lib-alsa.m4 Wed Aug 04 17:06:35 2021 +0000
@@ -0,0 +1,24 @@
+$NetBSD: patch-make_autoconf_lib-alsa.m4,v 1.1 2021/08/04 17:06:35 ryoon Exp $
+
+* Fix RPATH for libasound.so. These should use COMPILER_RPATH_FLAG.
+
+--- make/autoconf/lib-alsa.m4.orig 2021-04-24 02:47:22.000000000 +0000
++++ make/autoconf/lib-alsa.m4
+@@ -52,7 +52,7 @@ AC_DEFUN_ONCE([LIB_SETUP_ALSA],
+ fi
+
+ if test "x${with_alsa}" != x; then
+- ALSA_LIBS="-L${with_alsa}/lib -lasound"
++ ALSA_LIBS="-L${with_alsa}/lib -Wl,-rpath,${with_alsa}/lib -lasound"
+ ALSA_CFLAGS="-I${with_alsa}/include"
+ ALSA_FOUND=yes
+ fi
+@@ -61,7 +61,7 @@ AC_DEFUN_ONCE([LIB_SETUP_ALSA],
+ ALSA_FOUND=yes
+ fi
+ if test "x${with_alsa_lib}" != x; then
+- ALSA_LIBS="-L${with_alsa_lib} -lasound"
++ ALSA_LIBS="-L${with_alsa_lib} -Wl,-rpath,${with_alsa}/lib -lasound"
+ ALSA_FOUND=yes
+ fi
+ # Do not try pkg-config if we have a sysroot set.
Home |
Main Index |
Thread Index |
Old Index