Skip to contentSkip to conversation

classpath-native and friends: inherit native last

PATCH In review Douglas 2 participants 2 messages Feb 5, 2021

lore
Share & tools
lore

Douglas

author
#0 lore raw

PATCH 1/1 classpath-native and friends: inherit native last

Fixes QA Issue: classpath-native: native/nativesdk class is not inherited last

---
 recipes-core/cacao/cacao-initial-native_0.98.bb  | 2 +-
 recipes-core/classpath/classpath-native.inc      | 2 +-
 recipes-core/ecj/libecj-bootstrap.inc            | 2 +-
 recipes-core/icedtea/icedtea7-native.inc         | 3 ++-
 recipes-core/jamvm/jamvm-initial-native_1.4.5.bb | 2 +-
 recipes-core/openjdk/openjdk-8-native.inc        | 4 ++--
 6 files changed, 8 insertions(+), 7 deletions(-)
recipes-core/cacao/cacao-initial-native_0.98.bb +1 -1
index 8125e88..a43d3f4 100644
@@ -6,7 +6,7 @@ SECTION  = "interpreters"
 
 PROVIDES = "virtual/java-initial-native"
 
-inherit native autotools-brokensep
+inherit autotools-brokensep native
 
 DEPENDS = "zlib-native libtool-native fastjar-native classpath-initial-native jikes-initial-native"
 
recipes-core/classpath/classpath-native.inc +1 -1
index b1de458..c81e064 100644
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=af0004801732bc4b20d90f351cf80510"
 
 DEPENDS = "fastjar-native zip-native"
 
-inherit autotools native gettext
+inherit autotools gettext native
 
 SRC_URI = "${GNU_MIRROR}/classpath/classpath-${PV}.tar.gz"
 
recipes-core/ecj/libecj-bootstrap.inc +1 -1
index 04425f4..8f84fd0 100644
@@ -9,7 +9,7 @@ DEPENDS = "classpath-initial-native fastjar-native jikes-initial-native virtual/
 
 INC_PR = "r5"
 
-inherit native java
+inherit java native
 
 S = "${WORKDIR}"
 
recipes-core/icedtea/icedtea7-native.inc +2 -1
index 5351fe1..f53715f 100644
@@ -36,9 +36,10 @@ CFLAGS_append = " ${@oe.utils.conditional('HOST_COMPILER_MAJOR', '9', '-Wno-erro
 # Explicitly pass -fcommon since GCC 10 defaults to -fno-common for C sources
 CFLAGS_append = " -fcommon"
 
-inherit native java autotools pkgconfig
+inherit java autotools pkgconfig
 inherit openjdk-build-helper
 inherit python3native
+inherit native
 
 JAVA_HOME[unexport] = "1"
 
recipes-core/jamvm/jamvm-initial-native_1.4.5.bb +1 -1
index bf005db..1f5921f 100644
@@ -20,7 +20,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/jamvm/jamvm-${PV}.tar.gz \
 # This uses 32 bit arm, so force the instruction set to arm, not thumb
 ARM_INSTRUCTION_SET = "arm"
 
-inherit native autotools pkgconfig
+inherit autotools pkgconfig native
 
 # libdir must be modified so that jamvm-initial and -native
 # do not interfere
recipes-core/openjdk/openjdk-8-native.inc +2 -2
index 92d9473..3282257 100644
@@ -32,10 +32,10 @@ EXTRA_OECONF_append = "\
 "
 # --with-boot-jdk=${WORKDIR}/fake-jdk
 
-inherit native
-
 require openjdk-8-common.inc
 
+inherit native
+
 CFLAGS_append = " ${@jdk_cpp_options(d)}"
 CPPFLAGS_append = "${@jdk_cpp_options(d)}"
 CXXFLAGS_append = " ${@jdk_cpp_options(d)}"
Signature · 1 line
2.25.1
#1 lore raw

Hi Douglas,
thanks for you patch!

I will review/test it in the comming days and give feedback!

regards;rl

Quoted 100 lines · Douglas via lists.openembedded.org

Fixes QA Issue: classpath-native: native/nativesdk class is not inherited last

---
 recipes-core/cacao/cacao-initial-native_0.98.bb  | 2 +-
 recipes-core/classpath/classpath-native.inc      | 2 +-
 recipes-core/ecj/libecj-bootstrap.inc            | 2 +-
 recipes-core/icedtea/icedtea7-native.inc         | 3 ++-
 recipes-core/jamvm/jamvm-initial-native_1.4.5.bb | 2 +-
 recipes-core/openjdk/openjdk-8-native.inc        | 4 ++--
 6 files changed, 8 insertions(+), 7 deletions(-)
recipes-core/cacao/cacao-initial-native_0.98.bb +1 -1
index 8125e88..a43d3f4 100644
@@ -6,7 +6,7 @@ SECTION  = "interpreters"
 
 PROVIDES = "virtual/java-initial-native"
 
-inherit native autotools-brokensep
+inherit autotools-brokensep native
 
 DEPENDS = "zlib-native libtool-native fastjar-native classpath-initial-native jikes-initial-native"
 
recipes-core/classpath/classpath-native.inc +1 -1
index b1de458..c81e064 100644
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=af0004801732bc4b20d90f351cf80510"
 
 DEPENDS = "fastjar-native zip-native"
 
-inherit autotools native gettext
+inherit autotools gettext native
 
 SRC_URI = "${GNU_MIRROR}/classpath/classpath-${PV}.tar.gz"
 
recipes-core/ecj/libecj-bootstrap.inc +1 -1
index 04425f4..8f84fd0 100644
@@ -9,7 +9,7 @@ DEPENDS = "classpath-initial-native fastjar-native jikes-initial-native virtual/
 
 INC_PR = "r5"
 
-inherit native java
+inherit java native
 
 S = "${WORKDIR}"
 
recipes-core/icedtea/icedtea7-native.inc +2 -1
index 5351fe1..f53715f 100644
@@ -36,9 +36,10 @@ CFLAGS_append = " ${@oe.utils.conditional('HOST_COMPILER_MAJOR', '9', '-Wno-erro
 # Explicitly pass -fcommon since GCC 10 defaults to -fno-common for C sources
 CFLAGS_append = " -fcommon"
 
-inherit native java autotools pkgconfig
+inherit java autotools pkgconfig
 inherit openjdk-build-helper
 inherit python3native
+inherit native
 
 JAVA_HOME[unexport] = "1"
 
recipes-core/jamvm/jamvm-initial-native_1.4.5.bb +1 -1
index bf005db..1f5921f 100644
@@ -20,7 +20,7 @@ SRC_URI = "${SOURCEFORGE_MIRROR}/jamvm/jamvm-${PV}.tar.gz \
 # This uses 32 bit arm, so force the instruction set to arm, not thumb
 ARM_INSTRUCTION_SET = "arm"
 
-inherit native autotools pkgconfig
+inherit autotools pkgconfig native
 
 # libdir must be modified so that jamvm-initial and -native
 # do not interfere
recipes-core/openjdk/openjdk-8-native.inc +2 -2
index 92d9473..3282257 100644
@@ -32,10 +32,10 @@ EXTRA_OECONF_append = "\
 "
 # --with-boot-jdk=${WORKDIR}/fake-jdk
 
-inherit native
-
 require openjdk-8-common.inc
 
+inherit native
+
 CFLAGS_append = " ${@jdk_cpp_options(d)}"
 CPPFLAGS_append = "${@jdk_cpp_options(d)}"
 CXXFLAGS_append = " ${@jdk_cpp_options(d)}"
Signature · 1 line
2.25.1