Skip to contentSkip to conversation

populate_sdk_ext: use ConfigParser instead of SafeConfigParser

PATCH New Ross Burton 1 participant 2 messages Nov 7, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 populate_sdk_ext: use ConfigParser instead of SafeConfigParser

SafeConfigParser was renamed to ConfigParser in 3.2, and the SafeConfigParser alias will be removed in 3.12.

---
 meta/classes-recipe/populate_sdk_ext.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes-recipe/populate_sdk_ext.bbclass +1 -1
index 925cb313fcd..01d8a693a72 100644
@@ -233,7 +233,7 @@ python copy_buildsystem () {
 
     # Write out config file for devtool
     import configparser
-    config = configparser.SafeConfigParser()
+    config = configparser.ConfigParser()
     config.add_section('General')
     config.set('General', 'bitbake_subdir', conf_bbpath)
     config.set('General', 'init_path', conf_initpath)
Signature · 1 line
2.34.1
#1 lore raw

PATCH 2/2 stress-ng: improve makefile use

Set VERBOSE=1 so the compile logs are useful, perform the configure in do_configure, and set bindir correctly.

---
 meta/recipes-extended/stress-ng/stress-ng_0.14.06.bb | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)
meta/recipes-extended/stress-ng/stress-ng_0.14.06.bb +5 -2
index 359560b9e24..b4068b0598b 100644
@@ -18,12 +18,15 @@ RCONFLICTS:${PN} = "stress"
 
 inherit bash-completion
 
-do_compile:prepend() {
+EXTRA_OEMAKE = "VERBOSE=1"
+
+do_configure() {
     mkdir -p configs
     touch configs/HAVE_APPARMOR
+    oe_runmake makeconfig
 }
 
 do_install() {
-    oe_runmake DESTDIR=${D} install
+    oe_runmake DESTDIR=${D} BINDIR=${bindir} install
     ln -s stress-ng ${D}${bindir}/stress
 }
Signature · 1 line
2.34.1