Skip to contentSkip to conversation

util-linux: replace += with _append to EXTRA_OECONF_virtclass-native

PATCH Superseded Ming Liu 3 participants 5 messages Jul 17, 2013

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Ming Liu

author
#0 lore raw

PATCH 1/1 util-linux: replace += with _append to EXTRA_OECONF_virtclass-native

The native/nativesdk overrides of EXTRA_OECONF should take effect before append operator, otherwise, it will cause EXTRA_OECONF be overridden instead of be appended at native/nativesdk build time.

---
 meta/recipes-core/util-linux/util-linux_2.23.1.bb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
meta/recipes-core/util-linux/util-linux_2.23.1.bb +2 -2
index 12f5021..ae80450 100644
@@ -18,5 +18,5 @@ SRC_URI[md5sum] = "6741eeaff93ff5a6bacdd3816bdd87c4"
 SRC_URI[sha256sum] = "ad4a7831d7b27d0172996fd343e809716c2403b32a94e15194d8ea797223c4af"
 
 CACHED_CONFIGUREVARS += "scanf_cv_alloc_modifier=as"
-EXTRA_OECONF_class-native += "--disable-fallocate --disable-use-tty-group"
-EXTRA_OECONF_class-nativesdk += "--disable-fallocate --disable-use-tty-group"
+EXTRA_OECONF_append_class-native += "--disable-fallocate --disable-use-tty-group"
+EXTRA_OECONF_append_class-nativesdk += "--disable-fallocate --disable-use-tty-group"
Signature · 1 line
1.7.1
#1 lore raw

Hi Ming,

Quoted 22 lines · On Wednesday 17 July 2013 16:19:39 Ming Liu wrote:

The native/nativesdk overrides of EXTRA_OECONF should take effect before append operator, otherwise, it will cause EXTRA_OECONF be overridden instead of be appended at native/nativesdk build time.

---
 meta/recipes-core/util-linux/util-linux_2.23.1.bb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/meta/recipes-core/util-linux/util-linux_2.23.1.bb index 12f5021..ae80450 100644

meta/recipes-core/util-linux/util-linux_2.23.1.bb +0 -0
@@ -18,5 +18,5 @@ SRC_URI[md5sum] = "6741eeaff93ff5a6bacdd3816bdd87c4"
 SRC_URI[sha256sum] =

"ad4a7831d7b27d0172996fd343e809716c2403b32a94e15194d8ea797223c4af"

CACHED_CONFIGUREVARS += "scanf_cv_alloc_modifier=as"

meta/recipes-core/util-linux/util-linux_2.23.1.bb +0 -3
-EXTRA_OECONF_class-native += "--disable-fallocate --disable-use-tty-group"
-EXTRA_OECONF_class-nativesdk += "--disable-fallocate
--disable-use-tty-group" +EXTRA_OECONF_append_class-native +=
Quoted 3 lines

"--disable-fallocate --disable-use-tty-group" +EXTRA_OECONF_append_class-nativesdk += "--disable-fallocate --disable-use-tty-group"

Could you please avoid the += in conjunction with _append? It's confusing. (You'll need to add a leading space to the value to compensate of course.)

Thanks,
Paul

Signature · 2 lines
Paul Eggleton
Intel Open Source Technology Centre
author
#2 lore raw
Quoted 21 lines · Paul Eggleton

Hi Ming,

Quoted 18 lines · On Wednesday 17 July 2013 16:19:39 Ming Liu wrote:

The native/nativesdk overrides of EXTRA_OECONF should take effect before append operator, otherwise, it will cause EXTRA_OECONF be overridden instead of be appended at native/nativesdk build time.

---
  meta/recipes-core/util-linux/util-linux_2.23.1.bb |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)
(quoted diff) +0 -0

b/meta/recipes-core/util-linux/util-linux_2.23.1.bb index 12f5021..ae80450 100644

meta/recipes-core/util-linux/util-linux_2.23.1.bb +0 -0
@@ -18,5 +18,5 @@ SRC_URI[md5sum] = "6741eeaff93ff5a6bacdd3816bdd87c4"
  SRC_URI[sha256sum] =

"ad4a7831d7b27d0172996fd343e809716c2403b32a94e15194d8ea797223c4af"

Quoted 9 lines
Quoted 7 lines

CACHED_CONFIGUREVARS += "scanf_cv_alloc_modifier=as"

meta/recipes-core/util-linux/util-linux_2.23.1.bb +0 -3
-EXTRA_OECONF_class-native += "--disable-fallocate --disable-use-tty-group"
-EXTRA_OECONF_class-nativesdk += "--disable-fallocate
--disable-use-tty-group" +EXTRA_OECONF_append_class-native +=

"--disable-fallocate --disable-use-tty-group" +EXTRA_OECONF_append_class-nativesdk += "--disable-fallocate --disable-use-tty-group"

Could you please avoid the += in conjunction with _append? It's confusing. (You'll need to add a leading space to the value to compensate of course.)

Yes, sorry, my misktake. I will send V2.

the best,
thank you

Quoted 3 lines

Thanks,
Paul

#3 lore raw
In reply to Ming Liu
Quoted 14 lines · Ming Liu

The native/nativesdk overrides of EXTRA_OECONF should take effect before append operator, otherwise, it will cause EXTRA_OECONF be overridden instead of be appended at native/nativesdk build time.

---
 meta/recipes-core/util-linux/util-linux_2.23.1.bb |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
meta/recipes-core/util-linux/util-linux_2.23.1.bb +0 -0
index 12f5021..ae80450 100644

meta/recipes-core/util-linux/util-linux_2.23.1.bb SRC_URI[md5sum] = "6741eeaff93ff5a6bacdd3816bdd87c4" · line 22

Quoted 7 lines
meta/recipes-core/util-linux/util-linux_2.23.1.bb +2 -2
@@ -18,5 +18,5 @@ SRC_URI[md5sum] = "6741eeaff93ff5a6bacdd3816bdd87c4"
 SRC_URI[sha256sum] = "ad4a7831d7b27d0172996fd343e809716c2403b32a94e15194d8ea797223c4af"
 
 CACHED_CONFIGUREVARS += "scanf_cv_alloc_modifier=as"
-EXTRA_OECONF_class-native += "--disable-fallocate --disable-use-tty-group"
-EXTRA_OECONF_class-nativesdk += "--disable-fallocate --disable-use-tty-group"
+EXTRA_OECONF_append_class-native += "--disable-fallocate --disable-use-tty-group"
+EXTRA_OECONF_append_class-nativesdk += "--disable-fallocate --disable-use-tty-group"

You should change += to =, because append + += is confusing.

Signature · 1 line
Martin 'JaMa' Jansa     jabber: [email protected]
author
#4 lore raw
Quoted 17 lines · Martin Jansa
Quoted 16 lines · Ming Liu

The native/nativesdk overrides of EXTRA_OECONF should take effect before append operator, otherwise, it will cause EXTRA_OECONF be overridden instead of be appended at native/nativesdk build time.

---
  meta/recipes-core/util-linux/util-linux_2.23.1.bb |    4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)
meta/recipes-core/util-linux/util-linux_2.23.1.bb +0 -0
index 12f5021..ae80450 100644
@@ -18,5 +18,5 @@ SRC_URI[md5sum] = "6741eeaff93ff5a6bacdd3816bdd87c4"
  SRC_URI[sha256sum] = "ad4a7831d7b27d0172996fd343e809716c2403b32a94e15194d8ea797223c4af"
 
Quoted 6 lines

meta/recipes-core/util-linux/util-linux_2.23.1.bb SRC_URI[md5sum] = "6741eeaff93ff5a6bacdd3816bdd87c4" · line 22

Quoted 5 lines
meta/recipes-core/util-linux/util-linux_2.23.1.bb +2 -2
  CACHED_CONFIGUREVARS += "scanf_cv_alloc_modifier=as"
-EXTRA_OECONF_class-native += "--disable-fallocate --disable-use-tty-group"
-EXTRA_OECONF_class-nativesdk += "--disable-fallocate --disable-use-tty-group"
+EXTRA_OECONF_append_class-native += "--disable-fallocate --disable-use-tty-group"
+EXTRA_OECONF_append_class-nativesdk += "--disable-fallocate --disable-use-tty-group"

You should change += to =, because append + += is confusing.

Yes, thanks for pointing this, it's my mistake.

the best,
thank you

Quoted 1 line