autoconf: Remove patch=1 from SRC_URI
PATCH 2/3 autoconf: Remove code checking for hardcoded /usr/local
In reply to Khem RajThis code is only relevant for AIX and causes problems with OE QA sniffer which detects -L/usr/local/lib on linker commandline during cross compile and rightly barfs
This only happens when getloadavg() is not found in libc so we do not reach that code with eglibc but only with uclibc
--- .../autoconf/remove-usr-local-lib-from-m4.patch | 29 ++++++++++++++++++++ meta/recipes-devtools/autoconf/autoconf_2.68.bb | 3 +- 2 files changed, 31 insertions(+), 1 deletions(-) create mode 100644 meta/recipes-devtools/autoconf/autoconf/remove-usr-local-lib-from-m4.patch
meta/recipes-devtools/autoconf/autoconf/remove-usr-local-lib-from-m4.patch new file +29 -0
@@ -0,0 +1,29 @@ +We have problem using hardcoded directories like /usr/local here +which will be checked for cross builds. This is a special case which +is valid for AIX only. We do not have AIX as one of our supported +build host or target. Therefore we get rid of the hardcoded paths +and make life easier for cross compilation process. + +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Inappropriate [Upstream does care for AIX while we may not] +Index: autoconf-2.68/lib/autoconf/functions.m4 +=================================================================== +--- autoconf-2.68.orig/lib/autoconf/functions.m4 2010-09-22 14:52:19.000000000 -0700 ++++ autoconf-2.68/lib/autoconf/functions.m4 2011-08-03 11:57:05.822199513 -0700 +@@ -749,15 +749,6 @@ if test $ac_have_func = no; then + [LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes]) + fi + +-if test $ac_have_func = no; then +- # There is a commonly available library for RS/6000 AIX. +- # Since it is not a standard part of AIX, it might be installed locally. +- ac_getloadavg_LIBS=$LIBS +- LIBS="-L/usr/local/lib $LIBS" +- AC_CHECK_LIB(getloadavg, getloadavg, +- [LIBS="-lgetloadavg $LIBS"], [LIBS=$ac_getloadavg_LIBS]) +-fi +- + # Make sure it is really in the library, if we think we found it, + # otherwise set up the replacement function. + AC_CHECK_FUNCS(getloadavg, [],
meta/recipes-devtools/autoconf/autoconf_2.68.bb +2 -1
@@ -1,6 +1,6 @@ require autoconf.inc -PR = "r1" +PR = "r2" PARALLEL_MAKE = ""
@@ -16,6 +16,7 @@ SRC_URI += "file://autoreconf-include.patch \ file://autoheader-nonfatal-warnings.patch \ ${@['file://path_prog_fixes.patch', ''][bb.data.inherits_class('native', d)]} \ file://config_site.patch \ + file://remove-usr-local-lib-from-m4.patch \ " SRC_URI[md5sum] = "864d785215aa60d627c91fcb21b05b07"
Signature · 1 line
1.7.4.1
PATCH 1/3 autoconf: Remove patch=1 from SRC_URI
Edit summary field s/produced/produce/
Fix the license related warning
WARNING: autoconf-native: No generic license file exists for:
GPLv2|GPLv3 at /b/openembedded-core/meta/files/common-licenses
WARNING: autoconf-native: There is also no SPDXLICENSEMAP for this license type: GPLv2|GPLv3 at /b/openembedded-core/meta/files/common-licenses
--- meta/recipes-devtools/autoconf/autoconf.inc | 4 ++-- meta/recipes-devtools/autoconf/autoconf_2.68.bb | 19 ++++++++++--------- 2 files changed, 12 insertions(+), 11 deletions(-)
meta/recipes-devtools/autoconf/autoconf.inc +2 -2
@@ -1,4 +1,4 @@ -SUMMARY = "A GNU tool that procuded shell scripts to automatically configure software." +SUMMARY = "A GNU tool that procude shell scripts to automatically configure software." DESCRIPTION = "Autoconf is an extensible package of M4 macros that produce shell scripts to automatically \ configure software source code packages. Autoconf creates a configuration script for a package from a template \ file that lists the operating system features that the package can use, in the form of M4 macro calls."
@@ -9,6 +9,6 @@ DEPENDS += "m4-native" RDEPENDS_${PN} = "m4 gnu-config" SRC_URI = "${GNU_MIRROR}/autoconf/autoconf-${PV}.tar.bz2 \ - file://program_prefix.patch;patch=1" + file://program_prefix.patch" inherit autotools
meta/recipes-devtools/autoconf/autoconf_2.68.bb +10 -9
@@ -6,16 +6,17 @@ PARALLEL_MAKE = "" DEPENDS += "m4-native" RDEPENDS_${PN} = "m4 gnu-config" -LICENSE = "GPLv2|GPLv3" +LICENSE = "GPLv2 & GPLv3" LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \ file://COPYINGv3;md5=d32239bcb673463ab874e80d47fae504" -SRC_URI += "file://autoreconf-include.patch;patch=1 \ - file://autoreconf-exclude.patch;patch=1 \ - file://autoreconf-foreign.patch;patch=1 \ - file://autoreconf-gnuconfigize.patch;patch=1 \ - file://autoheader-nonfatal-warnings.patch;patch=1 \ - ${@['file://path_prog_fixes.patch;patch=1', ''][bb.data.inherits_class('native', d)]} \ - file://config_site.patch;patch=1" +SRC_URI += "file://autoreconf-include.patch \ + file://autoreconf-exclude.patch \ + file://autoreconf-foreign.patch \ + file://autoreconf-gnuconfigize.patch \ + file://autoheader-nonfatal-warnings.patch \ + ${@['file://path_prog_fixes.patch', ''][bb.data.inherits_class('native', d)]} \ + file://config_site.patch \ + " SRC_URI[md5sum] = "864d785215aa60d627c91fcb21b05b07" SRC_URI[sha256sum] = "c491fb273fd6d4ca925e26ceed3d177920233c76d542b150ff35e571454332c8"
@@ -23,6 +24,6 @@ SRC_URI[sha256sum] = "c491fb273fd6d4ca925e26ceed3d177920233c76d542b150ff35e57145 DEPENDS_virtclass-native = "m4-native gnu-config-native" RDEPENDS_${PN}_virtclass-native = "m4-native gnu-config-native" -SRC_URI_append_virtclass-native = " file://fix_path_xtra.patch;patch=1" +SRC_URI_append_virtclass-native = " file://fix_path_xtra.patch" BBCLASSEXTEND = "native"
Signature · 1 line
1.7.4.1
PATCH 3/3 coreutils: Fix build on uclibc
coreutils has getloadavg.m4 of its own. So we need to make sure that we remove the portions which look into hardcoded /usr/local/lib paths. These tests are only for AIX so we dont lose much
--- .../remove-usr-local-lib-from-m4.patch | 31 ++++++++++++++++++++ meta/recipes-core/coreutils/coreutils_8.12.bb | 6 ++- 2 files changed, 35 insertions(+), 2 deletions(-) create mode 100644 meta/recipes-core/coreutils/coreutils-8.12/remove-usr-local-lib-from-m4.patch
meta/recipes-core/coreutils/coreutils-8.12/remove-usr-local-lib-from-m4.patch new file +31 -0
@@ -0,0 +1,31 @@ +We have problem using hardcoded directories like /usr/local here +which will be checked for cross builds. This is a special case which +is valid for AIX only. We do not have AIX as one of our supported +build host or target. Therefore we get rid of the hardcoded paths +and make life easier for cross compilation process. + +Signed-off-by: Khem Raj <[email protected]> + +Upstream-Status: Inappropriate [Upstream does care for AIX while we may not] + +Index: coreutils-8.12/m4/getloadavg.m4 +=================================================================== +--- coreutils-8.12.orig/m4/getloadavg.m4 2011-08-03 14:03:59.982197767 -0700 ++++ coreutils-8.12/m4/getloadavg.m4 2011-08-03 14:04:20.402197763 -0700 +@@ -44,16 +44,6 @@ AC_CHECK_FUNC([getloadavg], [], + [LIBS="-lutil $LIBS" gl_have_func=yes]) + fi + +- if test $gl_have_func = no; then +- # There is a commonly available library for RS/6000 AIX. +- # Since it is not a standard part of AIX, it might be installed locally. +- gl_getloadavg_LIBS=$LIBS +- LIBS="-L/usr/local/lib $LIBS" +- AC_CHECK_LIB([getloadavg], [getloadavg], +- [LIBS="-lgetloadavg $LIBS" gl_have_func=yes], +- [LIBS=$gl_getloadavg_LIBS]) +- fi +- + # Set up the replacement function if necessary. + if test $gl_have_func = no; then + AC_LIBOBJ([getloadavg])
meta/recipes-core/coreutils/coreutils_8.12.bb +4 -2
@@ -7,13 +7,15 @@ BUGTRACKER = "http://debbugs.gnu.org/coreutils" LICENSE = "GPLv3+" LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504\ file://src/ls.c;startline=5;endline=16;md5=e1a509558876db58fb6667ba140137ad" -PR = "r2" +PR = "r3" DEPENDS = "gmp" DEPENDS_virtclass-native = "" inherit autotools gettext -SRC_URI = "${GNU_MIRROR}/coreutils/${BP}.tar.gz" +SRC_URI = "${GNU_MIRROR}/coreutils/${BP}.tar.gz \ + file://remove-usr-local-lib-from-m4.patch \ + " SRC_URI[md5sum] = "fce7999953a67243d00d75cc86dbcaa6" SRC_URI[sha256sum] = "9e233a62c98a3378a7b0483d2ae3d662dbaf6cd3917d3830d3514665e12a85c8"
Signature · 1 line
1.7.4.1