summaryrefslogtreecommitdiffstats
path: root/recipes-core
diff options
context:
space:
mode:
authorAndré Draszik <andre.draszik@jci.com>2019-01-13 11:13:08 +0000
committerRichard Leitner <richard.leitner@skidata.com>2019-12-27 12:05:54 +0100
commit7a3a8322a747c8803dbfbf3aa4912cf9f8158695 (patch)
tree0b30eb3e80156f051006977d7782b4c61a4bac9f /recipes-core
parent7bb0903d1a96d0bee47236f59128db62072a7043 (diff)
downloadmeta-java-7a3a8322a747c8803dbfbf3aa4912cf9f8158695.tar.gz
remove True option to getVar calls
getVar() has been defaulting to expanding by default for a long time (2016), thus remove the True option from getVar() calls with a regex search and replace. Search & replace made using the following command: sed -e 's|\(d\.getVar \?\)( \?\([^,()]*\), \?True)|\1(\2)|g' \ -i $(git grep -E 'getVar ?\( ?([^,()]*), ?True\)' \ | cut -d':' -f1 \ | sort -u) Signed-off-by: André Draszik <andre.draszik@jci.com> Signed-off-by: Richard Leitner <richard.leitner@skidata.com>
Diffstat (limited to 'recipes-core')
-rw-r--r--recipes-core/openjdk/openjdk-7-common.inc2
-rw-r--r--recipes-core/openjdk/openjdk-8-common.inc4
-rw-r--r--recipes-core/openjdk/openjdk-8-cross.inc10
3 files changed, 8 insertions, 8 deletions
diff --git a/recipes-core/openjdk/openjdk-7-common.inc b/recipes-core/openjdk/openjdk-7-common.inc
index 9d2dd8f..c87266d 100644
--- a/recipes-core/openjdk/openjdk-7-common.inc
+++ b/recipes-core/openjdk/openjdk-7-common.inc
@@ -93,7 +93,7 @@ export ALT_CUPS_HEADERS_PATH = "${STAGING_INCDIR}"
93export ALT_FREETYPE_HEADERS_PATH = "${STAGING_INCDIR}/freetype2" 93export ALT_FREETYPE_HEADERS_PATH = "${STAGING_INCDIR}/freetype2"
94export ALT_FREETYPE_LIB_PATH = "${STAGING_LIBDIR}" 94export ALT_FREETYPE_LIB_PATH = "${STAGING_LIBDIR}"
95export CACAO_CONFIGURE_ARGS = " \ 95export CACAO_CONFIGURE_ARGS = " \
96 ${@['','--enable-softfloat'][d.getVar('TARGET_FPU', True) == 'soft']}" 96 ${@['','--enable-softfloat'][d.getVar('TARGET_FPU') == 'soft']}"
97 97
98JAVA_HOME[unexport] = "1" 98JAVA_HOME[unexport] = "1"
99 99
diff --git a/recipes-core/openjdk/openjdk-8-common.inc b/recipes-core/openjdk/openjdk-8-common.inc
index 4d8f935..1fbe7fe 100644
--- a/recipes-core/openjdk/openjdk-8-common.inc
+++ b/recipes-core/openjdk/openjdk-8-common.inc
@@ -163,8 +163,8 @@ export DEBUG_BINARIES = "true"
163 163
164ALTERNATIVE_PRIORITY = "50" 164ALTERNATIVE_PRIORITY = "50"
165 165
166OPENJDK_UPDATE_VERSION = "${@d.getVar('PV', True).split('b')[0]}" 166OPENJDK_UPDATE_VERSION = "${@d.getVar('PV').split('b')[0]}"
167OPENJDK_BUILD_NUMBER = "b${@d.getVar('PV', True).split('b')[1]}" 167OPENJDK_BUILD_NUMBER = "b${@d.getVar('PV').split('b')[1]}"
168EXTRA_OECONF_append = "\ 168EXTRA_OECONF_append = "\
169 --with-build-number=${OPENJDK_BUILD_NUMBER} \ 169 --with-build-number=${OPENJDK_BUILD_NUMBER} \
170 --with-update-version=${OPENJDK_UPDATE_VERSION} \ 170 --with-update-version=${OPENJDK_UPDATE_VERSION} \
diff --git a/recipes-core/openjdk/openjdk-8-cross.inc b/recipes-core/openjdk/openjdk-8-cross.inc
index 7552930..18b99fd 100644
--- a/recipes-core/openjdk/openjdk-8-cross.inc
+++ b/recipes-core/openjdk/openjdk-8-cross.inc
@@ -110,14 +110,14 @@ EXTRA_OEMAKE_append = '\
110' 110'
111 111
112python remove_debuglink() { 112python remove_debuglink() {
113 dvar = d.getVar('PKGD', True) 113 dvar = d.getVar('PKGD')
114 objcopy = d.getVar("OBJCOPY", True) 114 objcopy = d.getVar("OBJCOPY")
115 115
116 # Remove the previous debuglink if it has existed, because it has a different file name with that we will add. 116 # Remove the previous debuglink if it has existed, because it has a different file name with that we will add.
117 if d.getVar('PN', True).find("jre") != -1: 117 if d.getVar('PN').find("jre") != -1:
118 file = dvar + d.getVar("JRE_HOME", True) + "/lib/" + d.getVar("JDK_ARCH", True) + "/server/libjvm.so" 118 file = dvar + d.getVar("JRE_HOME") + "/lib/" + d.getVar("JDK_ARCH") + "/server/libjvm.so"
119 else: 119 else:
120 file = dvar + d.getVar("JDK_HOME", True) + "/jre/lib/" + d.getVar("JDK_ARCH", True) + "/server/libjvm.so" 120 file = dvar + d.getVar("JDK_HOME") + "/jre/lib/" + d.getVar("JDK_ARCH") + "/server/libjvm.so"
121 121
122 cmd = "'%s' --remove-section .gnu_debuglink '%s'" % (objcopy, file) 122 cmd = "'%s' --remove-section .gnu_debuglink '%s'" % (objcopy, file)
123 oe.utils.getstatusoutput(cmd) 123 oe.utils.getstatusoutput(cmd)