[OE-core] [PATCH] coreutils: update to 8.31

Burton, Ross ross.burton at intel.com
Wed Apr 24 10:45:11 UTC 2019


The new patch needs an explanation, a Upstream-Status, and your
signed-off-by.  Also if a musl-fixing patch doesn't hinder builds
using glibc in some way then apply it always.  The problem with
patches-in-overrides is that they tend to not be tested enough on
upgrades.

Ross

On Wed, 24 Apr 2019 at 07:23, Oleksandr Kravchuk
<open.source at oleksandr-kravchuk.com> wrote:
>
> Musl fix was suggested by:
> https://www.mail-archive.com/bug-coreutils@gnu.org/msg30888.html
>
> Signed-off-by: Oleksandr Kravchuk <open.source at oleksandr-kravchuk.com>
> ---
>  .../coreutils/fix-minus_zero-first-defined-here.patch | 11 +++++++++++
>  .../{coreutils_8.30.bb => coreutils_8.31.bb}          |  8 +++++---
>  2 files changed, 16 insertions(+), 3 deletions(-)
>  create mode 100644 meta/recipes-core/coreutils/coreutils/fix-minus_zero-first-defined-here.patch
>  rename meta/recipes-core/coreutils/{coreutils_8.30.bb => coreutils_8.31.bb} (94%)
>
> diff --git a/meta/recipes-core/coreutils/coreutils/fix-minus_zero-first-defined-here.patch b/meta/recipes-core/coreutils/coreutils/fix-minus_zero-first-defined-here.patch
> new file mode 100644
> index 0000000000..fa9d047d4a
> --- /dev/null
> +++ b/meta/recipes-core/coreutils/coreutils/fix-minus_zero-first-defined-here.patch
> @@ -0,0 +1,11 @@
> +--- a/lib/strtod.c
> ++++ b/lib/strtod.c
> +@@ -302,7 +302,7 @@ compute_minus_zero (void)
> + }
> + # define minus_zero compute_minus_zero ()
> + #else
> +-DOUBLE minus_zero = -0.0;
> ++static DOUBLE minus_zero = -0.0;
> + #endif
> +
> + /* Convert NPTR to a DOUBLE.  If ENDPTR is not NULL, a pointer to the
> diff --git a/meta/recipes-core/coreutils/coreutils_8.30.bb b/meta/recipes-core/coreutils/coreutils_8.31.bb
> similarity index 94%
> rename from meta/recipes-core/coreutils/coreutils_8.30.bb
> rename to meta/recipes-core/coreutils/coreutils_8.31.bb
> index 8f4ee55712..fa4c0d9007 100644
> --- a/meta/recipes-core/coreutils/coreutils_8.30.bb
> +++ b/meta/recipes-core/coreutils/coreutils_8.31.bb
> @@ -6,7 +6,7 @@ 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;beginline=1;endline=15;md5=dbe356a88b09c29232b083d1ff8ac82a"
> +                    file://src/ls.c;beginline=1;endline=15;md5=c456f9896277a0543e3866777ccc0255"
>  DEPENDS = "gmp libcap"
>  DEPENDS_class-native = ""
>
> @@ -20,8 +20,10 @@ SRC_URI = "${GNU_MIRROR}/coreutils/${BP}.tar.xz \
>             file://0001-local.mk-fix-cross-compiling-problem.patch \
>            "
>
> -SRC_URI[md5sum] = "ab06d68949758971fe744db66b572816"
> -SRC_URI[sha256sum] = "e831b3a86091496cdba720411f9748de81507798f6130adeaef872d206e1b057"
> +SRC_URI_append_libc-musl = "file://fix-minus_zero-first-defined-here.patch"
> +
> +SRC_URI[md5sum] = "0009a224d8e288e8ec406ef0161f9293"
> +SRC_URI[sha256sum] = "ff7a9c918edce6b4f4b2725e3f9b37b0c4d193531cac49a48b56c4d0d3a9e9fd"
>
>  EXTRA_OECONF_class-native = "--without-gmp"
>  EXTRA_OECONF_class-target = "--enable-install-program=arch,hostname --libexecdir=${libdir}"
> --
> 2.17.1
>
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core at lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


More information about the Openembedded-core mailing list