diff options
author | Matthieu Crapet <Matthieu.Crapet@ingenico.com> | 2014-06-19 10:33:59 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2014-06-24 19:53:01 +0100 |
commit | 8f17b78005bca46ce4b54be3f74bfb39571359c6 (patch) | |
tree | fe48de9a9adc1b1ce23e260ed669ec98010a8e5d /meta/recipes-core/eglibc | |
parent | cc4b0936c7a6a1563dc88d62d8c9020791eaa446 (diff) | |
download | openembedded-core-8f17b78005bca46ce4b54be3f74bfb39571359c6.tar.gz openembedded-core-8f17b78005bca46ce4b54be3f74bfb39571359c6.tar.bz2 openembedded-core-8f17b78005bca46ce4b54be3f74bfb39571359c6.zip |
eglibc (2.19): fix hardcoded /sbin path
Apply for ldconfig and sln packages.
Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core/eglibc')
-rw-r--r-- | meta/recipes-core/eglibc/eglibc-2.19/fix_am_rootsbindir.patch | 32 | ||||
-rw-r--r-- | meta/recipes-core/eglibc/eglibc-package.inc | 2 | ||||
-rw-r--r-- | meta/recipes-core/eglibc/eglibc.inc | 13 | ||||
-rw-r--r-- | meta/recipes-core/eglibc/eglibc_2.19.bb | 3 |
4 files changed, 42 insertions, 8 deletions
diff --git a/meta/recipes-core/eglibc/eglibc-2.19/fix_am_rootsbindir.patch b/meta/recipes-core/eglibc/eglibc-2.19/fix_am_rootsbindir.patch new file mode 100644 index 0000000000..ac1e2e82f9 --- /dev/null +++ b/meta/recipes-core/eglibc/eglibc-2.19/fix_am_rootsbindir.patch @@ -0,0 +1,32 @@ +sysdeps/gnu/configure.ac: handle correctly $libc_cv_rootsbindir + +Upstream-Status:Pending +Signed-off-by: Matthieu Crapet <Matthieu.Crapet@ingenico.com> + +diff --git a/libc/sysdeps/gnu/configure b/libc/sysdeps/gnu/configure +index e7f0e43..687beab 100644 +--- a/libc/sysdeps/gnu/configure ++++ b/libc/sysdeps/gnu/configure +@@ -42,6 +42,6 @@ case "$prefix" in + else + libc_cv_localstatedir=$localstatedir + fi +- libc_cv_rootsbindir=/sbin ++ test -n "$libc_cv_rootsbindir" || libc_cv_rootsbindir=/sbin + ;; + esac +diff --git a/libc/sysdeps/gnu/configure.ac b/libc/sysdeps/gnu/configure.ac +index ce251df..57c1e77 100644 +--- a/libc/sysdeps/gnu/configure.ac ++++ b/libc/sysdeps/gnu/configure.ac +@@ -42,6 +42,6 @@ case "$prefix" in + else + libc_cv_localstatedir=$localstatedir + fi +- libc_cv_rootsbindir=/sbin ++ test -n "$libc_cv_rootsbindir" || libc_cv_rootsbindir=/sbin + ;; + esac +-- +2.0.0 + diff --git a/meta/recipes-core/eglibc/eglibc-package.inc b/meta/recipes-core/eglibc/eglibc-package.inc index 6721819d2e..d5d407f5e7 100644 --- a/meta/recipes-core/eglibc/eglibc-package.inc +++ b/meta/recipes-core/eglibc/eglibc-package.inc @@ -39,7 +39,7 @@ FILES_libsegfault = "${base_libdir}/libSegFault*" FILES_libcidn = "${base_libdir}/libcidn-*.so ${base_libdir}/libcidn.so.*" FILES_libmemusage = "${base_libdir}/libmemusage.so" FILES_eglibc-extra-nss = "${base_libdir}/libnss_*-*.so ${base_libdir}/libnss_*.so.*" -FILES_sln = "/sbin/sln" +FILES_sln = "${base_sbindir}/sln" FILES_${PN}-pic = "${libdir}/*_pic.a ${libdir}/*_pic.map ${libdir}/libc_pic/*.o" FILES_libsotruss = "${libdir}/audit/sotruss-lib.so" FILES_SOLIBSDEV = "${libdir}/lib*${SOLIBSDEV}" diff --git a/meta/recipes-core/eglibc/eglibc.inc b/meta/recipes-core/eglibc/eglibc.inc index 3a623bb8c7..68128e9755 100644 --- a/meta/recipes-core/eglibc/eglibc.inc +++ b/meta/recipes-core/eglibc/eglibc.inc @@ -43,11 +43,14 @@ require eglibc-options.inc LEAD_SONAME = "libc.so" -CACHED_CONFIGUREVARS += "ac_cv_path_KSH=${base_bindir}/bash \ - ac_cv_path_BASH_SHELL=${base_bindir}/bash \ - libc_cv_localedir=${localedir} \ - libc_cv_ssp=no \ - " +CACHED_CONFIGUREVARS += " \ + ac_cv_path_KSH=${base_bindir}/bash \ + ac_cv_path_BASH_SHELL=${base_bindir}/bash \ + libc_cv_slibdir=${base_libdir} \ + libc_cv_rootsbindir=${base_sbindir} \ + libc_cv_localedir=${localedir} \ + libc_cv_ssp=no \ +" GLIBC_EXTRA_OECONF ?= "" GLIBC_EXTRA_OECONF_class-nativesdk = "" diff --git a/meta/recipes-core/eglibc/eglibc_2.19.bb b/meta/recipes-core/eglibc/eglibc_2.19.bb index 10b4bb1a7f..2d354cbec5 100644 --- a/meta/recipes-core/eglibc/eglibc_2.19.bb +++ b/meta/recipes-core/eglibc/eglibc_2.19.bb @@ -26,6 +26,7 @@ SRC_URI = "http://downloads.yoctoproject.org/releases/eglibc/eglibc-${PV}-svnr25 file://fix-tibetian-locales.patch \ file://ppce6500-32b_slow_ieee754_sqrt.patch \ file://grok_gold.patch \ + file://fix_am_rootsbindir.patch;striplevel=2 \ " SRC_URI[md5sum] = "197836c2ba42fb146e971222647198dd" SRC_URI[sha256sum] = "baaa030531fc308f7820c46acdf8e1b2f8e3c1f40bcd28b6e440d1c95d170d4c" @@ -66,8 +67,6 @@ python __anonymous () { d.getVar('TARGET_OS', True)) } -export libc_cv_slibdir = "${base_libdir}" - EXTRA_OECONF = "--enable-kernel=${OLDEST_KERNEL} \ --without-cvs --disable-profile \ --disable-debug --without-gd \ |