Skip to contentSkip to conversation

make 3.82: set DEFAULT_PREFERENCE = "-1"

PATCH RESEND In review Michael Smith 2 participants 8 messages Oct 8, 2010 – Oct 15, 2010

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/4 make 3.82: set DEFAULT_PREFERENCE = "-1"

This version has introduced several backwards incompatibilities and some packages are known not to build with 3.82. In particular:

- glibc-initial fails in do_install when prefix="".
- eglibc manual/Makefile has not yet been patched (see 3a06f50f)

---
 recipes/make/make_3.82.bb |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
recipes/make/make_3.82.bb +3 -0
index 3cdc0a0..86c58d6 100644
@@ -1,5 +1,8 @@
 require make.inc
 
+# Stock eglibc fails to build with make 3.82.
+DEFAULT_PREFERENCE = "-1"
+
 BBCLASSEXTEND = "native"
 SRC_URI[md5sum] = "1a11100f3c63fcf5753818e59d63088f"
 SRC_URI[sha256sum] = "e2c1a73f179c40c71e2fe8abf8a8a0688b8499538512984da4a76958d0402966"
Signature · 1 line
1.7.0.4
#1 lore raw

PATCH RESEND 2/4 base.bbclass: add make-native to default dependencies

This should work around package incompatibilities with whatever version of make is installed on the build system.

---
 classes/base.bbclass |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
classes/base.bbclass +2 -1
index 964fe1c..2e49a3c 100644
@@ -71,7 +71,8 @@ def base_deps(d):
 	if not bb.data.getVar('INHIBIT_DEFAULT_DEPS', d):
 		if (bb.data.getVar('HOST_SYS', d, 1) !=
 	     	    bb.data.getVar('BUILD_SYS', d, 1)):
-			deps += " virtual/${TARGET_PREFIX}gcc virtual/libc "
+			deps += (" virtual/${TARGET_PREFIX}gcc virtual/libc "
+				"make-native")
 		elif bb.data.inherits_class('native', d) and \
 				bb.data.getVar('PN', d, True) not in \
 				("linux-libc-headers-native", "quilt-native",
Signature · 1 line
1.7.0.4
#2 lore raw

Re: [PATCH resend 2/4] base.bbclass: add make-native to default dependencies

ping

Quoted 22 lines · Michael Smith

This should work around package incompatibilities with whatever version of make is installed on the build system.

---
 classes/base.bbclass |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
classes/base.bbclass +2 -1
index 964fe1c..2e49a3c 100644
@@ -71,7 +71,8 @@ def base_deps(d):
 	if not bb.data.getVar('INHIBIT_DEFAULT_DEPS', d):
 		if (bb.data.getVar('HOST_SYS', d, 1) !=
 	     	    bb.data.getVar('BUILD_SYS', d, 1)):
-			deps += " virtual/${TARGET_PREFIX}gcc virtual/libc "
+			deps += (" virtual/${TARGET_PREFIX}gcc virtual/libc "
+				"make-native")
 		elif bb.data.inherits_class('native', d) and \
 				bb.data.getVar('PN', d, True) not in \
 				("linux-libc-headers-native", "quilt-native",
#3 lore raw

PATCH RESEND 3/4 glibc, glibc-initial: depend on make-native

In reply to Michael Smith

In case the version of make installed on the build host is incompatible, we'll use make-native.

---
 recipes/glibc/glibc-initial.inc |    2 +-
 recipes/glibc/glibc.inc         |    4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)
recipes/glibc/glibc-initial.inc +1 -1
index effebf1..c95a161 100644
@@ -1,5 +1,5 @@
 SECTION = "libs"
-DEPENDS = "virtual/${TARGET_PREFIX}gcc-initial linux-libc-headers"
+DEPENDS = "virtual/${TARGET_PREFIX}gcc-initial linux-libc-headers make-native"
 PROVIDES = "virtual/${TARGET_PREFIX}libc-initial"
 
 PACKAGES = ""
recipes/glibc/glibc.inc +3 -1
index f3c0c08..8055442 100644
@@ -4,7 +4,9 @@ SECTION = "libs"
 PRIORITY = "required"
 LICENSE = "LGPL"
 # nptl needs unwind support in gcc, which can't be built without glibc.
-DEPENDS = "virtual/${TARGET_PREFIX}gcc-intermediate linux-libc-headers"
+DEPENDS = "virtual/${TARGET_PREFIX}gcc-intermediate \
+		linux-libc-headers \
+		make-native"
 #this leads to circular deps, so lets not add it yet
 #RDEPENDS_ldd += " bash"
 PROVIDES = "virtual/libc virtual/${TARGET_PREFIX}libc-for-gcc"
Signature · 1 line
1.7.0.4
#4 lore raw

PATCH RESEND 4/4 eglibc, eglibc-initial: depend on make-native

In reply to Michael Smith

In case the version of make installed on the build host is incompatible, we'll use make-native.

---
 recipes/eglibc/eglibc-initial.inc |    2 +-
 recipes/eglibc/eglibc.inc         |    4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)
recipes/eglibc/eglibc-initial.inc +1 -1
index 2a68fd6..935fa3a 100644
@@ -1,5 +1,5 @@
 SECTION = "libs"
-DEPENDS = "linux-libc-headers virtual/${TARGET_PREFIX}gcc-initial"
+DEPENDS = "linux-libc-headers virtual/${TARGET_PREFIX}gcc-initial make-native"
 PROVIDES = "virtual/${TARGET_PREFIX}libc-initial"
 
 PACKAGES = ""
recipes/eglibc/eglibc.inc +3 -1
index 754a12b..00202d7 100644
@@ -5,7 +5,9 @@ PRIORITY = "required"
 LICENSE = "LGPL"
 INC_PR = "r15"
 # nptl needs unwind support in gcc, which can't be built without glibc.
-DEPENDS = "virtual/${TARGET_PREFIX}gcc-intermediate linux-libc-headers"
+DEPENDS = "virtual/${TARGET_PREFIX}gcc-intermediate \
+		linux-libc-headers \
+		make-native"
 #this leads to circular deps, so lets not add it yet
 #RDEPENDS_ldd += " bash"
 # nptl needs libgcc but dlopens it, so our shlibs code doesn't detect this
Signature · 1 line
1.7.0.4
#5 lore raw
In reply to Michael Smith

ping

Quoted 24 lines · Michael Smith

This version has introduced several backwards incompatibilities and some packages are known not to build with 3.82. In particular:

- glibc-initial fails in do_install when prefix="".
- eglibc manual/Makefile has not yet been patched (see 3a06f50f)

---
 recipes/make/make_3.82.bb |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
recipes/make/make_3.82.bb +3 -0
index 3cdc0a0..86c58d6 100644
@@ -1,5 +1,8 @@
 require make.inc
 
+# Stock eglibc fails to build with make 3.82.
+DEFAULT_PREFERENCE = "-1"
+
 BBCLASSEXTEND = "native"
 SRC_URI[md5sum] = "1a11100f3c63fcf5753818e59d63088f"
 SRC_URI[sha256sum] = "e2c1a73f179c40c71e2fe8abf8a8a0688b8499538512984da4a76958d0402966"
#6 lore raw
In reply to Michael Smith

Am Freitag, den 08.10.2010, 09:39 -0400 schrieb Michael Smith:

Quoted 5 lines

This version has introduced several backwards incompatibilities and some packages are known not to build with 3.82. In particular:

- glibc-initial fails in do_install when prefix="".
- eglibc manual/Makefile has not yet been patched (see 3a06f50f)

Are there patches for these problems available upstream?

recipes/make/make_3.82.bb line 3

Quoted 13 lines
---
 recipes/make/make_3.82.bb |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
recipes/make/make_3.82.bb +1 -0
index 3cdc0a0..86c58d6 100644
@@ -1,5 +1,8 @@
 require make.inc
 
+# Stock eglibc fails to build with make 3.82.

What do you mean by »stock«? The pristine upstream version or the version in OE?

recipes/make/make_3.82.bb line 8

Quoted 5 lines
recipes/make/make_3.82.bb +2 -0
+DEFAULT_PREFERENCE = "-1"
+
 BBCLASSEXTEND = "native"
 SRC_URI[md5sum] = "1a11100f3c63fcf5753818e59d63088f"
 SRC_URI[sha256sum] = "e2c1a73f179c40c71e2fe8abf8a8a0688b8499538512984da4a76958d0402966"

Thanks,

Paul

#7 lore raw
Quoted 8 lines · Paul Menzel

Am Freitag, den 08.10.2010, 09:39 -0400 schrieb Michael Smith:

Quoted 5 lines

This version has introduced several backwards incompatibilities and some packages are known not to build with 3.82. In particular:

- glibc-initial fails in do_install when prefix="".
- eglibc manual/Makefile has not yet been patched (see 3a06f50f)

Are there patches for these problems available upstream?

For eglibc, yes. For glibc-initial, no - this one seems like a make bug and I don't have time to hunt it down.

Quoted 12 lines
Quoted 12 lines
---
 recipes/make/make_3.82.bb |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
recipes/make/make_3.82.bb +0 -0
index 3cdc0a0..86c58d6 100644
@@ -1,5 +1,8 @@
 require make.inc
 
Quoted 4 lines

recipes/make/make_3.82.bb line 3

Quoted 1 line
recipes/make/make_3.82.bb +1 -0
+# Stock eglibc fails to build with make 3.82.

What do you mean by »stock«? The pristine upstream version or the version in OE?

The older versions in OE. Later upstream versions might have the patch.

Quoted 11 lines

recipes/make/make_3.82.bb line 8

Quoted 6 lines
recipes/make/make_3.82.bb +2 -0
+DEFAULT_PREFERENCE = "-1"
+
 BBCLASSEXTEND = "native"
 SRC_URI[md5sum] = "1a11100f3c63fcf5753818e59d63088f"
 SRC_URI[sha256sum] = "e2c1a73f179c40c71e2fe8abf8a8a0688b8499538512984da4a76958d0402966"

Thanks,

Paul