8210924: Remove PACKAGE_PATH
authorihse
Thu, 20 Sep 2018 00:19:46 +0200
changeset 51811 4be08a5102b0
parent 51810 414bd559dba8
child 51812 30e6079a9a12
8210924: Remove PACKAGE_PATH Reviewed-by: tbell
make/autoconf/spec.gmk.in
make/autoconf/toolchain.m4
make/launcher/LauncherCommon.gmk
make/lib/Awt2dLibraries.gmk
make/lib/CoreLibraries.gmk
src/java.base/macosx/native/libjli/java_md_macosx.h
src/java.base/unix/native/libjli/java_md_solinux.h
--- a/make/autoconf/spec.gmk.in	Thu Sep 20 00:16:23 2018 +0200
+++ b/make/autoconf/spec.gmk.in	Thu Sep 20 00:19:46 2018 +0200
@@ -357,8 +357,6 @@
 LIBFFI_LIB_FILE:=@LIBFFI_LIB_FILE@
 GRAALUNIT_LIB := @GRAALUNIT_LIB@
 
-PACKAGE_PATH=@PACKAGE_PATH@
-
 # Source file for cacerts
 CACERTS_FILE=@CACERTS_FILE@
 
--- a/make/autoconf/toolchain.m4	Thu Sep 20 00:16:23 2018 +0200
+++ b/make/autoconf/toolchain.m4	Thu Sep 20 00:19:46 2018 +0200
@@ -996,11 +996,6 @@
 # Do some additional checks on the detected tools.
 AC_DEFUN_ONCE([TOOLCHAIN_MISC_CHECKS],
 [
-  # The package path is used only on macosx?
-  # FIXME: clean this up, and/or move it elsewhere.
-  PACKAGE_PATH=/opt/local
-  AC_SUBST(PACKAGE_PATH)
-
   # Check for extra potential brokenness.
   if test  "x$TOOLCHAIN_TYPE" = xmicrosoft; then
     # On Windows, double-check that we got the right compiler.
--- a/make/launcher/LauncherCommon.gmk	Thu Sep 20 00:16:23 2018 +0200
+++ b/make/launcher/LauncherCommon.gmk	Thu Sep 20 00:19:46 2018 +0200
@@ -128,7 +128,6 @@
       $1_PLIST_FILE := Info-cmdline.plist
     endif
 
-    $1_CFLAGS += -DPACKAGE_PATH='"$(PACKAGE_PATH)"'
     $1_LDFLAGS += -Wl,-all_load \
         -sectcreate __TEXT __info_plist $(MACOSX_PLIST_DIR)/$$($1_PLIST_FILE)
     ifeq ($(STATIC_BUILD), true)
--- a/make/lib/Awt2dLibraries.gmk	Thu Sep 20 00:16:23 2018 +0200
+++ b/make/lib/Awt2dLibraries.gmk	Thu Sep 20 00:19:46 2018 +0200
@@ -292,7 +292,6 @@
         #
 
     LIBAWT_XAWT_CFLAGS += -DXAWT -DXAWT_HACK \
-        -DPACKAGE_PATH=\"$(PACKAGE_PATH)\" \
         $(FONTCONFIG_CFLAGS) \
         $(CUPS_CFLAGS)
 
@@ -459,7 +458,7 @@
       #
 
   LIBAWT_HEADLESS_CFLAGS := $(CUPS_CFLAGS) $(FONTCONFIG_CFLAGS) $(X_CFLAGS) \
-      -DHEADLESS=true -DPACKAGE_PATH=\"$(PACKAGE_PATH)\"
+      -DHEADLESS=true
 
   $(eval $(call SetupJdkLibrary, BUILD_LIBAWT_HEADLESS, \
       NAME := awt_headless, \
--- a/make/lib/CoreLibraries.gmk	Thu Sep 20 00:16:23 2018 +0200
+++ b/make/lib/CoreLibraries.gmk	Thu Sep 20 00:19:46 2018 +0200
@@ -202,8 +202,6 @@
 
   BUILD_LIBJLI_java_md_macosx.c_CFLAGS := -x objective-c
   BUILD_LIBJLI_STATIC_java_md_macosx.c_CFLAGS := -x objective-c
-
-  LIBJLI_CFLAGS += -DPACKAGE_PATH=\"$(PACKAGE_PATH)\"
 endif
 
 ifeq ($(OPENJDK_TARGET_OS), windows)
--- a/src/java.base/macosx/native/libjli/java_md_macosx.h	Thu Sep 20 00:16:23 2018 +0200
+++ b/src/java.base/macosx/native/libjli/java_md_macosx.h	Thu Sep 20 00:19:46 2018 +0200
@@ -38,7 +38,6 @@
  *      A collection of useful strings. One should think of these as #define
  *      entries, but actual strings can be more efficient (with many compilers).
  */
-static const char *system_dir  = PACKAGE_PATH "/openjdk7";
 static const char *user_dir    = "/java";
 
 #include <dlfcn.h>
--- a/src/java.base/unix/native/libjli/java_md_solinux.h	Thu Sep 20 00:16:23 2018 +0200
+++ b/src/java.base/unix/native/libjli/java_md_solinux.h	Thu Sep 20 00:19:46 2018 +0200
@@ -46,10 +46,8 @@
  *      entries, but actual strings can be more efficient (with many compilers).
  */
 #ifdef __solaris__
-static const char *system_dir   = "/usr/jdk";
 static const char *user_dir     = "/jdk";
 #else /* !__solaris__, i.e. Linux, AIX,.. */
-static const char *system_dir   = "/usr/java";
 static const char *user_dir     = "/java";
 #endif