coreutils: Upgrade to upstream version 8.17
PATCH 1/1 coreutils: Upgrade to upstream version 8.17
---
.../coreutils-8.17/realpath-works-yes.patch | 21 ++++++++++++++++++++
.../remove-gets.patch | 20 ++++++++++---------
.../remove-usr-local-lib-from-m4.patch | 0
.../{coreutils_8.14.bb => coreutils_8.17.bb} | 9 +++++----
4 files changed, 37 insertions(+), 13 deletions(-)
create mode 100644 meta/recipes-core/coreutils/coreutils-8.17/realpath-works-yes.patch
rename meta/recipes-core/coreutils/{coreutils-8.14 => coreutils-8.17}/remove-gets.patch (47%)
rename meta/recipes-core/coreutils/{coreutils-8.14 => coreutils-8.17}/remove-usr-local-lib-from-m4.patch (100%)
rename meta/recipes-core/coreutils/{coreutils_8.14.bb => coreutils_8.17.bb} (91%)meta/recipes-core/coreutils/coreutils-8.17/realpath-works-yes.patch new file +21 -0
@@ -0,0 +1,21 @@ +Signed-off-by: Radu Moisan <[email protected]> +Upstream status: pending + +The new version of coreutils, adds use of canonicalize_file_name() function defined in canonicalize.h +The problem: the function is redefined to rpl_canonicalize_file_name by means of a macro,which gives +an undefined reference error at compile time. Macro definition depends in the end on +gl_cv_func_realpath_works but assumed true only when set to "yes" + +Index: coreutils-8.17/m4/canonicalize.m4 +=================================================================== +--- coreutils-8.17.orig/m4/canonicalize.m4 2012-05-08 12:05:23.000000000 +0300 ++++ coreutils-8.17/m4/canonicalize.m4 2012-08-17 14:20:22.000000000 +0300 +@@ -95,7 +95,7 @@ + [gl_cv_func_realpath_works=no], + [case "$host_os" in + # Guess yes on glibc systems. +- *-gnu*) gl_cv_func_realpath_works="guessing yes" ;; ++ *-gnu*) gl_cv_func_realpath_works="yes" ;; + # If we don't know, assume the worst. + *) gl_cv_func_realpath_works="guessing no" ;; + esac
meta/recipes-core/coreutils/coreutils-8.17/remove-gets.patch renamed from meta/recipes-core/coreutils/coreutils-8.14/remove-gets.patch +11 -9
@@ -3,19 +3,21 @@ use gets iff its defined. eglibc 2.16 removed gets Signed-off-by: Khem Raj <[email protected]> Upstream-Status: Pending -Index: coreutils-8.14/lib/stdio.in.h +Index: coreutils-8.17/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 +--- coreutils-8.17.orig/lib/stdio.in.h ++++ coreutils-8.17/lib/stdio.in.h +@@ -698,13 +698,14 @@ _GL_WARN_ON_USE (getline, "getline is un + "use gnulib module getline for portability"); # endif + #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. */ + so any use of gets warrants an unconditional warning; besides, C11 + removed it. */ + #undef gets + #if HAVE_RAW_DECL_GETS _GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead"); +# endif #endif
meta/recipes-core/coreutils/coreutils-8.17/remove-usr-local-lib-from-m4.patch renamed from meta/recipes-core/coreutils/coreutils-8.14/remove-usr-local-lib-from-m4.patch +0 -0
meta/recipes-core/coreutils/coreutils_8.17.bb renamed from meta/recipes-core/coreutils/coreutils_8.14.bb +5 -4
@@ -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;startline=5;endline=16;md5=30c84fd2942cad91041e5e2dcd19ced6" +PR = "r0" DEPENDS = "gmp libcap" DEPENDS_virtclass-native = ""
@@ -16,9 +16,10 @@ inherit autotools gettext SRC_URI = "${GNU_MIRROR}/coreutils/${BP}.tar.xz \ file://remove-usr-local-lib-from-m4.patch \ file://remove-gets.patch \ + file://realpath-works-yes.patch \ " -SRC_URI[md5sum] = "bcb135ce553493a45aba01b39eb3920a" -SRC_URI[sha256sum] = "0d120817c19292edb19e92ae6b8eac9020e03d51e0af9cb116cf82b65d18b02d" +SRC_URI[md5sum] = "bbda656ce8ca2c6903948f9faa204ba3" +SRC_URI[sha256sum] = "4e075a0d238072a5bd079046e1f024dc5e0d9133d43a39c73d0b86b0d1e2c5e5" EXTRA_OECONF_virtclass-native = "--without-gmp"
Signature · 1 line
1.7.9.5
Quoted 17 lines · Radu Moisan
meta/recipes-core/coreutils/coreutils-8.17/realpath-works-yes.patch new file +11
-0@@ -0,0 +1,21 @@ +Signed-off-by: Radu Moisan <[email protected]> +Upstream status: pending + +The new version of coreutils, adds use of canonicalize_file_name() function defined in canonicalize.h +The problem: the function is redefined to rpl_canonicalize_file_name by means of a macro,which gives +an undefined reference error at compile time. Macro definition depends in the end on +gl_cv_func_realpath_works but assumed true only when set to "yes" + +Index: coreutils-8.17/m4/canonicalize.m4 +=================================================================== +--- coreutils-8.17.orig/m4/canonicalize.m4 2012-05-08 12:05:23.000000000 +0300
meta/recipes-core/coreutils/coreutils-8.17/realpath-works-yes.patch line 21
Quoted 10 lines
meta/recipes-core/coreutils/coreutils-8.17/realpath-works-yes.patch new file +10
-0++++ coreutils-8.17/m4/canonicalize.m4 2012-08-17 14:20:22.000000000 +0300 +@@ -95,7 +95,7 @@ + [gl_cv_func_realpath_works=no], + [case "$host_os" in + # Guess yes on glibc systems. +- *-gnu*) gl_cv_func_realpath_works="guessing yes" ;; ++ *-gnu*) gl_cv_func_realpath_works="yes" ;; + # If we don't know, assume the worst. + *) gl_cv_func_realpath_works="guessing no" ;; + esac
Wouldn't it be better to provide a cached test result in the site files for this test, rather than relying on a host_os based guess?
Signature · 1 line
Christopher Larson
Quoted 22 lines · Chris Larson
Quoted 21 lines · Radu Moisan
meta/recipes-core/coreutils/coreutils-8.17/realpath-works-yes.patch new file +15
-0@@ -0,0 +1,21 @@ +Signed-off-by: Radu Moisan <[email protected]> +Upstream status: pending + +The new version of coreutils, adds use of canonicalize_file_name() function defined in canonicalize.h +The problem: the function is redefined to rpl_canonicalize_file_name by means of a macro,which gives +an undefined reference error at compile time. Macro definition depends in the end on +gl_cv_func_realpath_works but assumed true only when set to "yes" + +Index: coreutils-8.17/m4/canonicalize.m4 +=================================================================== +--- coreutils-8.17.orig/m4/canonicalize.m4 2012-05-08 12:05:23.000000000 +0300 ++++ coreutils-8.17/m4/canonicalize.m4 2012-08-17 14:20:22.000000000 +0300 +@@ -95,7 +95,7 @@ + [gl_cv_func_realpath_works=no], + [case "$host_os" in
Quoted 8 lines
meta/recipes-core/coreutils/coreutils-8.17/realpath-works-yes.patch line 21
Quoted 6 lines
meta/recipes-core/coreutils/coreutils-8.17/realpath-works-yes.patch new file +6
-0+ # Guess yes on glibc systems. +- *-gnu*) gl_cv_func_realpath_works="guessing yes" ;; ++ *-gnu*) gl_cv_func_realpath_works="yes" ;; + # If we don't know, assume the worst. + *) gl_cv_func_realpath_works="guessing no" ;; + esacWouldn't it be better to provide a cached test result in the site files for this test, rather than relying on a
host_osbased guess?
I really don't know the answer to your question. The patch was intended to provide minimally invasive change to the original file. If you elaborate more on your proposal, I would gladly take into consideration a future patch to address this issue.
radu
-Khem
Quoted 32 lines · Radu Moisan
Quoted 22 lines · Chris Larson
Quoted 21 lines · Radu Moisan
meta/recipes-core/coreutils/coreutils-8.17/realpath-works-yes.patch new file +15
-0@@ -0,0 +1,21 @@ +Signed-off-by: Radu Moisan <[email protected]> +Upstream status: pending + +The new version of coreutils, adds use of canonicalize_file_name() function defined in canonicalize.h +The problem: the function is redefined to rpl_canonicalize_file_name by means of a macro,which gives +an undefined reference error at compile time. Macro definition depends in the end on +gl_cv_func_realpath_works but assumed true only when set to "yes" + +Index: coreutils-8.17/m4/canonicalize.m4 +=================================================================== +--- coreutils-8.17.orig/m4/canonicalize.m4 2012-05-08 12:05:23.000000000 +0300 ++++ coreutils-8.17/m4/canonicalize.m4 2012-08-17 14:20:22.000000000 +0300 +@@ -95,7 +95,7 @@ + [gl_cv_func_realpath_works=no], + [case "$host_os" inQuoted 8 lines
meta/recipes-core/coreutils/coreutils-8.17/realpath-works-yes.patch line 21
Quoted 6 lines
meta/recipes-core/coreutils/coreutils-8.17/realpath-works-yes.patch new file +6
-0+ # Guess yes on glibc systems. +- *-gnu*) gl_cv_func_realpath_works="guessing yes" ;; ++ *-gnu*) gl_cv_func_realpath_works="yes" ;; + # If we don't know, assume the worst. + *) gl_cv_func_realpath_works="guessing no" ;; + esacWouldn't it be better to provide a cached test result in the site files for this test, rather than relying on a
host_osbased guess?
Quoted 1 line
I really don't know the answer to your question. The patch was intended to provide minimally invasive change to the original file. If you elaborate more on your proposal, I would gladly take into consideration a future patch to address this issue.
Add CACHED_CONFIGUREVARS in the recipe search in metadata for existing examples
Quoted 7 lines
radu
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
Quoted 29 lines · Khem Raj
Quoted 29 lines
Quoted 29 lines
Quoted 17 lines
meta/recipes-core/coreutils/coreutils-8.17/realpath-works-yes.patch new file +11
-0@@ -0,0 +1,21 @@ +Signed-off-by: Radu Moisan <[email protected]> +Upstream status: pending + +The new version of coreutils, adds use of canonicalize_file_name() function defined in canonicalize.h +The problem: the function is redefined to rpl_canonicalize_file_name by means of a macro,which gives +an undefined reference error at compile time. Macro definition depends in the end on +gl_cv_func_realpath_works but assumed true only when set to "yes" + +Index: coreutils-8.17/m4/canonicalize.m4 +=================================================================== +--- coreutils-8.17.orig/m4/canonicalize.m4 2012-05-08 12:05:23.000000000 +0300meta/recipes-core/coreutils/coreutils-8.17/realpath-works-yes.patch line 21
Quoted 10 lines
meta/recipes-core/coreutils/coreutils-8.17/realpath-works-yes.patch new file +10
-0++++ coreutils-8.17/m4/canonicalize.m4 2012-08-17 14:20:22.000000000 +0300 +@@ -95,7 +95,7 @@ + [gl_cv_func_realpath_works=no], + [case "$host_os" in + # Guess yes on glibc systems. +- *-gnu*) gl_cv_func_realpath_works="guessing yes" ;; ++ *-gnu*) gl_cv_func_realpath_works="yes" ;; + # If we don't know, assume the worst. + *) gl_cv_func_realpath_works="guessing no" ;; + esacWouldn't it be better to provide a cached test result in the site files for this test, rather than relying on a
host_osbased guess?
Quoted 4 lines
Quoted 1 line
I really don't know the answer to your question. The patch was intended to provide minimally invasive change to the original file. If you elaborate more on your proposal, I would gladly take into consideration a future patch to address this issue.
Add
CACHED_CONFIGUREVARSin the recipe search in metadata for existing examples
That's a good route, but only if we know realpath works in 100% of cases. Which, admittedly, one would certainly hope is the case :)
Signature · 1 line
Christopher Larson
Quoted 30 lines · Chris Larson
Quoted 29 lines · Khem Raj
Quoted 29 lines
Quoted 29 lines
Quoted 17 lines
meta/recipes-core/coreutils/coreutils-8.17/realpath-works-yes.patch new file +11
-0@@ -0,0 +1,21 @@ +Signed-off-by: Radu Moisan <[email protected]> +Upstream status: pending + +The new version of coreutils, adds use of canonicalize_file_name() function defined in canonicalize.h +The problem: the function is redefined to rpl_canonicalize_file_name by means of a macro,which gives +an undefined reference error at compile time. Macro definition depends in the end on +gl_cv_func_realpath_works but assumed true only when set to "yes" + +Index: coreutils-8.17/m4/canonicalize.m4 +=================================================================== +--- coreutils-8.17.orig/m4/canonicalize.m4 2012-05-08 12:05:23.000000000 +0300meta/recipes-core/coreutils/coreutils-8.17/realpath-works-yes.patch line 21
Quoted 10 lines
meta/recipes-core/coreutils/coreutils-8.17/realpath-works-yes.patch new file +10
-0++++ coreutils-8.17/m4/canonicalize.m4 2012-08-17 14:20:22.000000000 +0300 +@@ -95,7 +95,7 @@ + [gl_cv_func_realpath_works=no], + [case "$host_os" in + # Guess yes on glibc systems. +- *-gnu*) gl_cv_func_realpath_works="guessing yes" ;; ++ *-gnu*) gl_cv_func_realpath_works="yes" ;; + # If we don't know, assume the worst. + *) gl_cv_func_realpath_works="guessing no" ;; + esacWouldn't it be better to provide a cached test result in the site files for this test, rather than relying on a
host_osbased guess?
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
I really don't know the answer to your question. The patch was intended to provide minimally invasive change to the original file. If you elaborate more on your proposal, I would gladly take into consideration a future patch to address this issue.
Add
CACHED_CONFIGUREVARSin the recipe search in metadata for existing examplesThat's a good route, but only if we know realpath works in 100% of cases. Which, admittedly, one would certainly hope is the case :)
As far as I know realpath has worked well, for at least the last 6 years (likely much longer).
--Mark
Quoted 44 lines · Mark Hatle
Quoted 43 lines · Chris Larson
Quoted 41 lines · Khem Raj
Quoted 37 lines
Quoted 29 lines
Quoted 29 lines
meta/recipes-core/coreutils/coreutils-8.17/realpath-works-yes.patch +0
-0new file mode 100644
index 0000000..e32f612
---/dev/null
+++b/meta/recipes-core/coreutils/coreutils-8.17/realpath-works-yes.patchmeta/recipes-core/coreutils/coreutils-8.17/realpath-works-yes.patch +4
-0@@ -0,0 +1,21 @@ +Signed-off-by: Radu Moisan <[email protected]> +Upstream status: pending + +The new version of coreutils, adds use of
canonicalize_file_name()function defined incanonicalize.h+The problem: the function is redefined torpl_canonicalize_file_nameby means of a macro,which gives +an undefined reference error at compile time. Macro definition depends in the end onmeta/recipes-core/coreutils/coreutils-8.17/realpath-works-yes.patch +5
-0+gl_cv_func_realpath_works but assumed true only when set to "yes" + +Index: coreutils-8.17/m4/canonicalize.m4 +=================================================================== +--- coreutils-8.17.orig/m4/canonicalize.m4 2012-05-0812:05:23.000000000 +0300
++++ coreutils-8.17/m4/canonicalize.m4 2012-08-17 14:20:22.000000000 +0300
+@@ -95,7 +95,7 @@meta/recipes-core/coreutils/coreutils-8.17/realpath-works-yes.patch +2
-0+ [gl_cv_func_realpath_works=no], + [case "$host_os" inQuoted 8 lines
meta/recipes-core/coreutils/coreutils-8.17/realpath-works-yes.patch line 21
Quoted 6 lines
meta/recipes-core/coreutils/coreutils-8.17/realpath-works-yes.patch +6
-0+ # Guess yes on glibc systems. +- *-gnu*) gl_cv_func_realpath_works="guessing yes" ;; ++ *-gnu*) gl_cv_func_realpath_works="yes" ;; + # If we don't know, assume the worst. + *) gl_cv_func_realpath_works="guessing no" ;; + esacWouldn't it be better to provide a cached test result in the site files for this test, rather than relying on a
host_osbased guess?Quoted 1 line
I really don't know the answer to your question. The patch was intended to provide minimally invasive change to the original file. If you elaborate more on your proposal, I would gladly take into consideration a future patch to address this issue.
Add
CACHED_CONFIGUREVARSin the recipe search in metadata for existing examples
Quoted 8 lines
Quoted 3 lines
That's a good route, but only if we know realpath works in 100% of cases. Which, admittedly, one would certainly hope is the case :)
As far as I know realpath has worked well, for at least the last 6 years (likely much longer).
--Mark
What's the status here? Is it going to be merged?
radu
Quoted 14 lines · Radu Moisan
Quoted 12 lines · Mark Hatle
Quoted 11 lines · Chris Larson
Quoted 10 lines · Khem Raj
Quoted 10 lines
Quoted 10 lines
Quoted 10 lines
diff --git
a/meta/recipes-core/coreutils/coreutils-8.17/realpath-works-yes.patchb/meta/recipes-core/coreutils/coreutils-8.17/realpath-works-yes.patchnew file mode 100644
index 0000000..e32f612
---/dev/null
+++b/meta/recipes-core/coreutils/coreutils-8.17/realpath-works-yes.patch
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Quoted 4 lines
Review line 3
Quoted 4 lines
(quoted diff) +3
-0@@ -0,0 +1,21 @@ +Signed-off-by: Radu Moisan <[email protected]> +Upstream status: pending +
Should be Upstream-Status
Quoted 38 lines
Quoted 38 lines
Quoted 37 lines
Quoted 25 lines
Quoted 25 lines
Quoted 25 lines
Quoted 15 lines
(quoted diff) +1
-0+The new version of coreutils, adds use of
canonicalize_file_name()function defined incanonicalize.h+The problem: the function is redefined torpl_canonicalize_file_nameby means of a macro,which gives +an undefined reference error at compile time. Macro definition depends in the end on(quoted diff) +5
-0+gl_cv_func_realpath_works but assumed true only when set to "yes" + +Index: coreutils-8.17/m4/canonicalize.m4 +=================================================================== +--- coreutils-8.17.orig/m4/canonicalize.m4 2012-05-0812:05:23.000000000 +0300
++++ coreutils-8.17/m4/canonicalize.m4 2012-08-17 14:20:22.000000000 +0300
+@@ -95,7 +95,7 @@Review
Quoted 8 lines
(quoted diff) +8
-0+ [gl_cv_func_realpath_works=no], + [case "$host_os" in + # Guess yes on glibc systems. +- *-gnu*) gl_cv_func_realpath_works="guessing yes" ;; ++ *-gnu*) gl_cv_func_realpath_works="yes" ;; + # If we don't know, assume the worst. + *) gl_cv_func_realpath_works="guessing no" ;; + esacWouldn't it be better to provide a cached test result in the site files for this test, rather than relying on a
host_osbased guess?Quoted 8 lines
Quoted 4 lines
I really don't know the answer to your question. The patch was intended to provide minimally invasive change to the original file. If you elaborate more on your proposal, I would gladly take into consideration a future patch to address this issue.
Add
CACHED_CONFIGUREVARSin the recipe search in metadata for existing examplesThat's a good route, but only if we know realpath works in 100% of cases. Which, admittedly, one would certainly hope is the case :)
Quoted 7 lines
Quoted 5 lines
As far as I know realpath has worked well, for at least the last 6 years (likely much longer).
--Mark
What's the status here? Is it going to be merged?
I think that you need to fix the recipe as suggested by the comments above, (ie use CACHED_CONFIGUREVARS).
Sau!
Quoted 8 lines
radu
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core