Skip to contentSkip to conversation

no-static-libs: Ensure correct whitespace is set for _append

PATCH In review Saul Wold 3 participants 3 messages Mar 7, 2016 – Mar 8, 2016

lore
Share & tools
lore

Saul Wold

author
#0 lore raw

PATCH v2 1/1 no-static-libs: Ensure correct whitespace is set for _append

Adjusted white space in the DISABLE_STATIC to make output of the -e option more readable.

Before:
" --enable-opt1 --with_opt1=${libdir}${DISABLE_STATIC}
After
" --enable-opt1 --with_opt1=${libdir} ${DISABLE_STATIC}

---
v2: Fixed commit message to show what was getting fixed

 meta/conf/distro/include/no-static-libs.inc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta/conf/distro/include/no-static-libs.inc +3 -3
index 6c0f859..0ab99c0 100644
@@ -1,4 +1,4 @@
-DISABLE_STATIC = " --disable-static"
+DISABLE_STATIC = "--disable-static"
 
 # qemu aborts on unrecognised option
 DISABLE_STATIC_pn-qemu = ""
@@ -27,6 +27,6 @@ DISABLE_STATIC_pn-nativesdk-openssl = ""
 # libssp-static-dev included in build-appliance
 DISABLE_STATIC_pn-gcc-runtime = ""
 
-EXTRA_OECONF_append = "${DISABLE_STATIC}"
+EXTRA_OECONF_append = " ${DISABLE_STATIC}"
 
-EXTRA_OECMAKE_append_pn-libical = "-DSHARED_ONLY=True"
+EXTRA_OECMAKE_append_pn-libical = " -DSHARED_ONLY=True"
Signature · 1 line
2.5.0
#1 lore raw

Just a note that doing it this way will result in do_configure checksums changing for everything when no-static-libs gets included, even if DISABLE_STATIC is explicitly set to the empty string, as there'll be a trailing space always added to EXTRA_OECONF. If that's okay, so be it, but I wanted to make sure it was considered.

Quoted 44 lines · Saul Wold

Adjusted white space in the DISABLE_STATIC to make output of the -e option more readable.

Before:
" --enable-opt1 --with_opt1=${libdir}${DISABLE_STATIC}
After
" --enable-opt1 --with_opt1=${libdir} ${DISABLE_STATIC}

---
v2: Fixed commit message to show what was getting fixed

 meta/conf/distro/include/no-static-libs.inc | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
meta/conf/distro/include/no-static-libs.inc +3 -4
index 6c0f859..0ab99c0 100644
@@ -1,4 +1,4 @@
-DISABLE_STATIC = " --disable-static"
+DISABLE_STATIC = "--disable-static"
 
 # qemu aborts on unrecognised option
 DISABLE_STATIC_pn-qemu = ""
@@ -27,6 +27,6 @@ DISABLE_STATIC_pn-nativesdk-openssl = ""
 # libssp-static-dev included in build-appliance
 DISABLE_STATIC_pn-gcc-runtime = ""
 
-EXTRA_OECONF_append = "${DISABLE_STATIC}"
+EXTRA_OECONF_append = " ${DISABLE_STATIC}"
 
-EXTRA_OECMAKE_append_pn-libical = "-DSHARED_ONLY=True"
+EXTRA_OECMAKE_append_pn-libical = " -DSHARED_ONLY=True"
--

2.5.0

--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core

#2 lore raw
Quoted 6 lines · Christopher Larson

Just a note that doing it this way will result in do_configure checksums changing for everything when no-static-libs gets included, even if DISABLE_STATIC is explicitly set to the empty string, as there'll be a trailing space always added to EXTRA_OECONF. If that's okay, so be it, but I wanted to make sure it was considered.

Mostly agreed. The libical change is right, but keeping the no-impact behaviour for the DISABLE_STATIC variable seems like the right thing to do.

Ross