Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Mar 2019 23:19:00 +0000 (UTC)
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r497060 - in head/java/openjdk11: . files
Message-ID:  <201903282319.x2SNJ0OT063720@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jkim
Date: Thu Mar 28 23:19:00 2019
New Revision: 497060
URL: https://svnweb.freebsd.org/changeset/ports/497060

Log:
  Refine r496923.
  
  libinstrument.so and libjdwp.so do not need anything from $LOCALBASE but
  libsplashscreen.so does.  For example,
  
  % cd /usr/local/openjdk11
  % bin/java -jar demo/jfc/SwingSet2/SwingSet2.jar
  ld-elf.so.1: /usr/local/openjdk11/lib/libsplashscreen.so: Undefined symbol
  "libiconv_open"
  
  PR:		236759

Modified:
  head/java/openjdk11/Makefile
  head/java/openjdk11/files/patch-make_autoconf_libraries.m4

Modified: head/java/openjdk11/Makefile
==============================================================================
--- head/java/openjdk11/Makefile	Thu Mar 28 22:51:35 2019	(r497059)
+++ head/java/openjdk11/Makefile	Thu Mar 28 23:19:00 2019	(r497060)
@@ -2,7 +2,7 @@
 
 PORTNAME=	openjdk
 PORTVERSION=	${JDK_MAJOR_VERSION}.${JDK_MINOR_VERSION}.${JDK_PATCH_VERSION}.${JDK_BUILD_NUMBER}.${BSD_JDK_VERSION}
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	java devel
 MASTER_SITES=	https://github.com/battleblow/openjdk-jdk11u/archive/
 PKGNAMESUFFIX?=	${JDK_MAJOR_VERSION}
@@ -111,10 +111,11 @@ BUILD_DEPENDS+=		${BOOTSTRAPJDKDIR}/bin/javac:java/boo
 JDK_BUILD_JVM=	server
 
 .if empty(ICONV_LIB)
-ICONV_CPPFLAGS=	-DLIBICONV_PLUG
+ICONV_CFLAGS=	-DLIBICONV_PLUG
 .else
-ICONV_CPPFLAGS=	-I${LOCALBASE}/include
-ICONV_LDFLAGS=	-L${LOCALBASE}/lib ${ICONV_LIB}
+ICONV_CFLAGS=	-I${LOCALBASE}/include
+ICONV_LDFLAGS=	-L${LOCALBASE}/lib
+ICONV_LIBS=	${ICONV_LIB}
 .endif
 
 post-patch:
@@ -123,6 +124,10 @@ post-patch:
 	@${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|' \
 		${WRKSRC}/configure \
 		${WRKSRC}/src/hotspot/os/bsd/os_bsd.cpp
+	@${REINPLACE_CMD} -e 's|%%ICONV_CFLAGS%%|${ICONV_CFLAGS}|' \
+		-e 's|%%ICONV_LDFLAGS%%|${ICONV_LDFLAGS}|' \
+		-e 's|%%ICONV_LIBS%%|${ICONV_LIBS}|' \
+		${WRKSRC}/make/autoconf/libraries.m4
 
 do-install:
 	@${MKDIR} ${STAGEDIR}${INSTALLDIR}

Modified: head/java/openjdk11/files/patch-make_autoconf_libraries.m4
==============================================================================
--- head/java/openjdk11/files/patch-make_autoconf_libraries.m4	Thu Mar 28 22:51:35 2019	(r497059)
+++ head/java/openjdk11/files/patch-make_autoconf_libraries.m4	Thu Mar 28 23:19:00 2019	(r497060)
@@ -1,11 +1,17 @@
 --- make/autoconf/libraries.m4
 +++ make/autoconf/libraries.m4
-@@ -182,8 +182,8 @@ AC_DEFUN_ONCE([LIB_SETUP_MISC_LIBS],
+@@ -181,9 +181,13 @@ AC_DEFUN_ONCE([LIB_SETUP_MISC_LIBS],
+   LIBS="$save_LIBS"
  
    if test "x$OPENJDK_TARGET_OS" = "xbsd"; then
-     if test "x$OPENJDK_TARGET_OS_ENV" = "xbsd.openbsd"; then
+-    if test "x$OPENJDK_TARGET_OS_ENV" = "xbsd.openbsd"; then
 -      ICONV_CFLAGS="-I$PACKAGE_PATH/include"
 -      ICONV_LDFLAGS="-L$PACKAGE_PATH/lib"
++    if test "x$OPENJDK_TARGET_OS_ENV" = "xbsd.freebsd"; then
++      ICONV_CFLAGS=%%ICONV_CFLAGS%%
++      ICONV_LDFLAGS=%%ICONV_LDFLAGS%%
++      ICONV_LIBS=%%ICONV_LIBS%%
++    elif test "x$OPENJDK_TARGET_OS_ENV" = "xbsd.openbsd"; then
 +      ICONV_CFLAGS="-I/usr/local/include"
 +      ICONV_LDFLAGS="-L/usr/local/lib"
        ICONV_LIBS=-liconv



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903282319.x2SNJ0OT063720>