summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-02-28 18:21:02 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2023-03-14 14:59:10 +0000
commite0059335fb4408e6b6d72b63cb6102e9183761a0 (patch)
treea93485622bca15d1765767e5d3ca51fc4b8d47a5
parent75022804d84067878626d68f765ead5ccf1644aa (diff)
downloadpoky-e0059335fb4408e6b6d72b63cb6102e9183761a0.tar.gz
apr-util: Fix CFLAGS used in build
We need to use CFLAGS with the correct WORKDIR in them, replace those in the sysroot file with the ones appropriate to the current recipe. (From OE-Core rev: 92fb7261a1c7ebe6330832a9a71d1bed82c85a6a) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 45edf189961aff1858be9bb7b63116073c0a0c10) Signed-off-by: Steve Sakoman <steve@sakoman.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r--meta/lib/oeqa/selftest/cases/reproducible.py1
-rw-r--r--meta/recipes-support/apr/apr-util_1.6.1.bb2
2 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oeqa/selftest/cases/reproducible.py b/meta/lib/oeqa/selftest/cases/reproducible.py
index 4b606e7e64..adaabee47b 100644
--- a/meta/lib/oeqa/selftest/cases/reproducible.py
+++ b/meta/lib/oeqa/selftest/cases/reproducible.py
@@ -39,7 +39,6 @@ exclude_packages = [
39 'gstreamer1.0-python', 39 'gstreamer1.0-python',
40 'hwlatdetect', 40 'hwlatdetect',
41 'kernel-devsrc', 41 'kernel-devsrc',
42 'libaprutil',
43 'libcap-ng', 42 'libcap-ng',
44 'libjson', 43 'libjson',
45 'libproxy', 44 'libproxy',
diff --git a/meta/recipes-support/apr/apr-util_1.6.1.bb b/meta/recipes-support/apr/apr-util_1.6.1.bb
index f7d827a1d8..4e183ca374 100644
--- a/meta/recipes-support/apr/apr-util_1.6.1.bb
+++ b/meta/recipes-support/apr/apr-util_1.6.1.bb
@@ -35,6 +35,7 @@ OE_BINCONFIG_EXTRA_MANGLE = " -e 's:location=source:location=installed:'"
35do_configure_append() { 35do_configure_append() {
36 if [ "${CLASSOVERRIDE}" = "class-target" ]; then 36 if [ "${CLASSOVERRIDE}" = "class-target" ]; then
37 cp ${STAGING_DATADIR}/apr/apr_rules.mk ${B}/build/rules.mk 37 cp ${STAGING_DATADIR}/apr/apr_rules.mk ${B}/build/rules.mk
38 sed -i -e 's#^CFLAGS=.*#CFLAGS=${TARGET_CFLAGS}#g' ${B}/build/rules.mk
38 fi 39 fi
39} 40}
40do_configure_prepend_class-native() { 41do_configure_prepend_class-native() {
@@ -49,6 +50,7 @@ do_configure_append_class-native() {
49 50
50do_configure_prepend_class-nativesdk() { 51do_configure_prepend_class-nativesdk() {
51 cp ${STAGING_DATADIR}/apr/apr_rules.mk ${S}/build/rules.mk 52 cp ${STAGING_DATADIR}/apr/apr_rules.mk ${S}/build/rules.mk
53 sed -i -e 's#^CFLAGS=.*#CFLAGS=${TARGET_CFLAGS}#g' ${S}/build/rules.mk
52} 54}
53 55
54do_configure_append_class-nativesdk() { 56do_configure_append_class-nativesdk() {