From: Marko Lindqvist <cazfi74@gmail.com>
To: openembedded-core@lists.openembedded.org
Subject: [PATCH] coreutils: update to upstream version 8.20
Date: Fri, 30 Nov 2012 13:08:54 +0200 [thread overview]
Message-ID: <1354273734-7103-1-git-send-email-cazfi74@gmail.com> (raw)
* remove-gets.patch removed as issue is fixed upstream
* cross-prime-list.patch added to fix cross-compilation
* noman.patch added to disable manpage creation that does not
work while cross-compiling
* License texts are identical to old, but old md5sum was
erronously calculated from the beginning of the ls.c file, and
not from the beginning of license text segment.
Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
---
.../coreutils/coreutils-8.14/remove-gets.patch | 23 ----------------
.../coreutils-build-with-acl.patch | 0
.../coreutils-8.20/cross-prime-list.patch | 29 ++++++++++++++++++++
.../coreutils/coreutils-8.20/noman.patch | 19 +++++++++++++
.../remove-usr-local-lib-from-m4.patch | 0
.../{coreutils_8.14.bb => coreutils_8.20.bb} | 11 ++++----
6 files changed, 54 insertions(+), 28 deletions(-)
delete mode 100644 meta/recipes-core/coreutils/coreutils-8.14/remove-gets.patch
rename meta/recipes-core/coreutils/{coreutils-8.14 => coreutils-8.20}/coreutils-build-with-acl.patch (100%)
create mode 100644 meta/recipes-core/coreutils/coreutils-8.20/cross-prime-list.patch
create mode 100644 meta/recipes-core/coreutils/coreutils-8.20/noman.patch
rename meta/recipes-core/coreutils/{coreutils-8.14 => coreutils-8.20}/remove-usr-local-lib-from-m4.patch (100%)
rename meta/recipes-core/coreutils/{coreutils_8.14.bb => coreutils_8.20.bb} (91%)
diff --git a/meta/recipes-core/coreutils/coreutils-8.14/remove-gets.patch b/meta/recipes-core/coreutils/coreutils-8.14/remove-gets.patch
deleted file mode 100644
index 4f61c92..0000000
--- a/meta/recipes-core/coreutils/coreutils-8.14/remove-gets.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-use gets iff its defined. eglibc 2.16 removed gets
-
-Signed-off-by: Khem Raj <raj.khem@gmail.com>
-Upstream-Status: Pending
-
-Index: coreutils-8.14/lib/stdio.in.h
-===================================================================
---- coreutils-8.14.orig/lib/stdio.in.h 2011-09-24 04:20:48.000000000 -0700
-+++ coreutils-8.14/lib/stdio.in.h 2012-07-03 10:36:19.886296576 -0700
-@@ -713,11 +713,13 @@
- _GL_CXXALIAS_SYS (gets, char *, (char *s));
- # undef gets
- # endif
-+# if defined gets
- _GL_CXXALIASWARN (gets);
- /* It is very rare that the developer ever has full control of stdin,
- so any use of gets warrants an unconditional warning. Assume it is
- always declared, since it is required by C89. */
- _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
-+# endif
- #endif
-
-
diff --git a/meta/recipes-core/coreutils/coreutils-8.14/coreutils-build-with-acl.patch b/meta/recipes-core/coreutils/coreutils-8.20/coreutils-build-with-acl.patch
similarity index 100%
rename from meta/recipes-core/coreutils/coreutils-8.14/coreutils-build-with-acl.patch
rename to meta/recipes-core/coreutils/coreutils-8.20/coreutils-build-with-acl.patch
diff --git a/meta/recipes-core/coreutils/coreutils-8.20/cross-prime-list.patch b/meta/recipes-core/coreutils/coreutils-8.20/cross-prime-list.patch
new file mode 100644
index 0000000..524c636
--- /dev/null
+++ b/meta/recipes-core/coreutils/coreutils-8.20/cross-prime-list.patch
@@ -0,0 +1,29 @@
+Build make-prime-list for build system
+
+make-prime-list is used in build time only for generating the prime list.
+Build it executable in build system.
+
+Upstream-Status: Pending
+
+Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
+diff -Nurd coreutils-8.20/src/local.mk coreutils-8.20/src/local.mk
+--- coreutils-8.20/src/local.mk 2012-10-23 17:14:12.000000000 +0300
++++ coreutils-8.20/src/local.mk 2012-11-30 11:47:11.155372281 +0200
+@@ -37,7 +37,6 @@
+ # Needed by the testsuite.
+ noinst_PROGRAMS = \
+ src/getlimits \
+- src/make-prime-list \
+ src/setuidgid
+
+ noinst_HEADERS = \
+@@ -370,6 +369,9 @@
+ src_libstdbuf_so_LDFLAGS = -shared
+ src_libstdbuf_so_CFLAGS = -fPIC $(AM_CFLAGS)
+
++src/make-prime-list: src/make-prime-list.c
++ $(CC_FOR_BUILD) -o src/make-prime-list -I$(top_builddir)/lib $(srcdir)/src/make-prime-list.c
++
+ BUILT_SOURCES += src/dircolors.h
+ src/dircolors.h: src/dcgen src/dircolors.hin
+ $(AM_V_GEN)rm -f $@ $@-t
diff --git a/meta/recipes-core/coreutils/coreutils-8.20/noman.patch b/meta/recipes-core/coreutils/coreutils-8.20/noman.patch
new file mode 100644
index 0000000..90521e2
--- /dev/null
+++ b/meta/recipes-core/coreutils/coreutils-8.20/noman.patch
@@ -0,0 +1,19 @@
+Do not build man pages
+
+Coreutils manpage creation does not work when cross-compiling and
+produced binaries are not executable in build system. Don't even try.
+
+Upstream-Status: Inappropriate [Other]
+Workaround suitable for OpenEmbedded, but not acceptable in generic case
+
+Signed-off-by: Marko Lindqvist <cazfi74@gmail.com>
+diff -Nurd coreutils-8.20/Makefile.am coreutils-8.20/Makefile.am
+--- coreutils-8.20/Makefile.am 2012-10-23 17:14:12.000000000 +0300
++++ coreutils-8.20/Makefile.am 2012-11-30 11:58:00.123358042 +0200
+@@ -205,5 +205,5 @@
+ include $(top_srcdir)/lib/local.mk
+ include $(top_srcdir)/src/local.mk
+ include $(top_srcdir)/doc/local.mk
+-include $(top_srcdir)/man/local.mk
++# include $(top_srcdir)/man/local.mk
+ include $(top_srcdir)/tests/local.mk
diff --git a/meta/recipes-core/coreutils/coreutils-8.14/remove-usr-local-lib-from-m4.patch b/meta/recipes-core/coreutils/coreutils-8.20/remove-usr-local-lib-from-m4.patch
similarity index 100%
rename from meta/recipes-core/coreutils/coreutils-8.14/remove-usr-local-lib-from-m4.patch
rename to meta/recipes-core/coreutils/coreutils-8.20/remove-usr-local-lib-from-m4.patch
diff --git a/meta/recipes-core/coreutils/coreutils_8.14.bb b/meta/recipes-core/coreutils/coreutils_8.20.bb
similarity index 91%
rename from meta/recipes-core/coreutils/coreutils_8.14.bb
rename to meta/recipes-core/coreutils/coreutils_8.20.bb
index 3f58cfd..456d928 100644
--- a/meta/recipes-core/coreutils/coreutils_8.14.bb
+++ b/meta/recipes-core/coreutils/coreutils_8.20.bb
@@ -6,8 +6,8 @@ HOMEPAGE = "http://www.gnu.org/software/coreutils/"
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 = "r5"
+ file://src/ls.c;beginline=4;endline=15;md5=2e9acd8818fe6db4c2981d20ca632553"
+PR = "r0"
DEPENDS = "gmp libcap"
DEPENDS_class-native = ""
@@ -15,11 +15,12 @@ inherit autotools gettext
SRC_URI = "${GNU_MIRROR}/coreutils/${BP}.tar.xz \
file://remove-usr-local-lib-from-m4.patch \
- file://remove-gets.patch \
file://coreutils-build-with-acl.patch \
+ file://cross-prime-list.patch \
+ file://noman.patch \
"
-SRC_URI[md5sum] = "bcb135ce553493a45aba01b39eb3920a"
-SRC_URI[sha256sum] = "0d120817c19292edb19e92ae6b8eac9020e03d51e0af9cb116cf82b65d18b02d"
+SRC_URI[md5sum] = "3d69af8f561fce512538a9fe85f147ff"
+SRC_URI[sha256sum] = "dbcb798764827a0f74be738662ecb516705cf520330cd3d7b2640fdffa499eb2"
EXTRA_OECONF_class-native = "--without-gmp"
--
1.7.10.4
next reply other threads:[~2012-11-30 11:23 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-30 11:08 Marko Lindqvist [this message]
2012-11-30 11:14 ` [PATCH] coreutils: update to upstream version 8.20 Marko Lindqvist
2012-11-30 11:38 ` Paul Eggleton
2012-12-02 9:08 ` Ross Burton
2012-12-02 6:14 ` Marko Lindqvist
2012-12-12 4:21 ` Saul Wold
2012-12-12 22:48 ` Marko Lindqvist
2013-01-04 17:13 ` Marko Lindqvist
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1354273734-7103-1-git-send-email-cazfi74@gmail.com \
--to=cazfi74@gmail.com \
--cc=openembedded-core@lists.openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox