Fix coreutils build on uclibc
cover Fix coreutils build on uclibc
coreutils after upgrade has started to fail to build on uclibc targets, this series of patches fix the build on uclibc as well as on eglibc is working normal.
The following changes since commit 2587a33134fde80dd1367629d9def45ac70256ee:
site: add endianness information for libmemcached (2013-04-04 23:58:00 +0100)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contrib kraj/coreutils
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=kraj/coreutils
Khem Raj (1):
coreutils: Fix build on uclibc after upgrade to 8.21
...d-ltr-and-lpthread-for-getting-spawn-func.patch | 15 ++++ ...sys_time.in.h-Fix-use-of-restrict-keyword.patch | 51 +++++++++++++ .../coreutils/coreutils-8.21/gcc-uclibc.patch | 77 ++++++++++++++++++++ meta/recipes-core/coreutils/coreutils_8.21.bb | 5 +- 4 files changed, 147 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-core/coreutils/coreutils-8.21/0001-local.mk-Add-ltr-and-lpthread-for-getting-spawn-func.patch create mode 100644 meta/recipes-core/coreutils/coreutils-8.21/0001-sys_time.in.h-Fix-use-of-restrict-keyword.patch create mode 100644 meta/recipes-core/coreutils/coreutils-8.21/gcc-uclibc.patch
Signature · 1 line
1.7.9.5
PATCH 1/1 coreutils: Fix build on uclibc after upgrade to 8.21
This upgrade started to breaking build on uclibc the patches in there fixes the build. What patches do are explained in patch headers
--- ...d-ltr-and-lpthread-for-getting-spawn-func.patch | 15 ++++ ...sys_time.in.h-Fix-use-of-restrict-keyword.patch | 51 +++++++++++++ .../coreutils/coreutils-8.21/gcc-uclibc.patch | 77 ++++++++++++++++++++ meta/recipes-core/coreutils/coreutils_8.21.bb | 5 +- 4 files changed, 147 insertions(+), 1 deletion(-) create mode 100644 meta/recipes-core/coreutils/coreutils-8.21/0001-local.mk-Add-ltr-and-lpthread-for-getting-spawn-func.patch create mode 100644 meta/recipes-core/coreutils/coreutils-8.21/0001-sys_time.in.h-Fix-use-of-restrict-keyword.patch create mode 100644 meta/recipes-core/coreutils/coreutils-8.21/gcc-uclibc.patch
meta/recipes-core/coreutils/coreutils-8.21/0001-local.mk-Add-ltr-and-lpthread-for-getting-spawn-func.patch new file +15 -0
@@ -0,0 +1,15 @@ +Index: coreutils-8.21/src/local.mk +=================================================================== +--- coreutils-8.21.orig/src/local.mk 2013-01-30 16:46:24.000000000 -0800 ++++ coreutils-8.21/src/local.mk 2013-04-03 09:32:17.775482144 -0700 +@@ -302,6 +302,10 @@ + # for pthread + src_sort_LDADD += $(LIB_PTHREAD) + ++# uclibc ++src_timeout_LDADD += $(YIELD_LIB) $(LIBMULTITHREAD) ++src_sort_LDADD += $(YIELD_LIB) $(LIBMULTITHREAD) ++ + # Get the release year from lib/version-etc.c. + RELEASE_YEAR = \ + `sed -n '/.*COPYRIGHT_YEAR = \([0-9][0-9][0-9][0-9]\) };/s//\1/p' \
meta/recipes-core/coreutils/coreutils-8.21/0001-sys_time.in.h-Fix-use-of-restrict-keyword.patch new file +51 -0
51 lines not on this page · raw message
meta/recipes-core/coreutils/coreutils-8.21/gcc-uclibc.patch new file +77 -0
77 lines not on this page · raw message
meta/recipes-core/coreutils/coreutils_8.21.bb +4 -1
@@ -17,6 +17,9 @@ SRC_URI = "${GNU_MIRROR}/coreutils/${BP}.tar.xz \ file://remove-usr-local-lib-from-m4.patch \ file://coreutils-build-with-acl.patch \ file://dummy_help2man.patch \ + file://0001-sys_time.in.h-Fix-use-of-restrict-keyword.patch \ + file://0001-local.mk-Add-ltr-and-lpthread-for-getting-spawn-func.patch \ + file://gcc-uclibc.patch \ " SRC_URI[md5sum] = "065ba41828644eca5dd8163446de5d64"
@@ -24,7 +27,7 @@ SRC_URI[sha256sum] = "adaa44bdab3fa5eb352e80d8a31fdbf957b78653d0c2cd30d63e161444 EXTRA_OECONF = "--disable-acl" EXTRA_OECONF_class-native = "--disable-acl --without-gmp" - +LDFLAGS_libc-uclibc = "-lrt -pthread" # [ df mktemp base64 gets a special treatment and is not included in this bindir_progs = "basename chcon cksum comm csplit cut dir dircolors dirname du \ env expand expr factor fmt fold groups head hostid id install \
Signature · 1 line
1.7.9.5
I think Henning's patch to site config will solve the same problem we do not need this patch
Quoted 28 lines · Khem Raj
coreutils after upgrade has started to fail to build on uclibc targets, this series of patches fix the build on uclibc as well as on eglibc is working normal.
The following changes since commit
2587a33134fde80dd1367629d9def45ac70256ee:site: add endianness information for libmemcached (2013-04-04 23:58:00 +0100)
are available in the git repository at:
git://git.openembedded.org/openembedded-core-contribkraj/coreutils
http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=kraj/coreutilsKhem Raj (1):
coreutils: Fix build on uclibc after upgrade to 8.21...d-ltr-and-lpthread-for-getting-spawn-func.patch | 15 ++++ ...sys_time.in.h-Fix-use-of-restrict-keyword.patch | 51 +++++++++++++ .../coreutils/coreutils-8.21/gcc-uclibc.patch | 77 ++++++++++++++++++++ meta/recipes-core/coreutils/coreutils_8.21.bb | 5 +- 4 files changed, 147 insertions(+), 1 deletion(-)create mode 100644
meta/recipes-core/coreutils/coreutils-8.21/0001-local.mk-Add-ltr-and-lpthread-for-getting-spawn-func.patchcreate mode 100644meta/recipes-core/coreutils/coreutils-8.21/0001-sys_time.in.h-Fix-use-of-restrict-keyword.patchcreate mode 100644meta/recipes-core/coreutils/coreutils-8.21/gcc-uclibc.patchSignature · 1 line
1.7.9.5