Return-Path: Received: from mail-lj1-f195.google.com (mail-lj1-f195.google.com [209.85.208.195]) by mail.openembedded.org (Postfix) with ESMTP id 41B317D66A for ; Wed, 24 Apr 2019 17:32:45 +0000 (UTC) Received: by mail-lj1-f195.google.com with SMTP id q66so17669762ljq.7 for ; Wed, 24 Apr 2019 10:32:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oleksandr-kravchuk-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=YVe3cJ/vqbMijpEIwBde8sScZzGM/shQYBG57XDemjA=; b=yaakVGjkNpM+0Fzw2WTlw9td/2nfJgE7JuqSD82ytIs/9E/knlarolE66LU5jWXX6N 4VCLXLjTlkwsJEdBaXRsdxLVo80dLkQLkgSBTq7zRQ001VPvNia7YFGOvnS3wFOGq7tf 3BAG5Fla7QhmugimEdiYbc+C5YPHOeOkQXsD6zb83OVyp6GaSxGj7Zy5SpVxHhxSlcPj NH5OwcR7h8dWSNHtV2XDt3APWncaG4F1193r26o87kqLN3nO1WW54ypqp9r8KLd4YCb8 +BaqKKJcaYrA2usibLqsti0rZ0TguErrayBudzrQRRlWtEZVDd5eKRLEJWV6PMfdHRAU Vb0g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=YVe3cJ/vqbMijpEIwBde8sScZzGM/shQYBG57XDemjA=; b=YyubjSf9gBIX3HRj0JPIWiZFHwB4QM57HS/W34G6t0TuLnY3ujvB1m9WZtk9L98uws B/JMGKvkTE9NYsuTzRJiJcILJV3/tn1jk69GQq+wAHDqndSljV4h2xwHV42aZK0jbdm+ /iP8RB4m//5m+LzErtB2H7bz+o4emAAYNeUyPuozg4fiGKK4WEvF55pIwrL5qBDA3WYl szSswhEg9RqnPhSokJlx54KECp/w2n5cgqL794/Rzgzdy07aTF8MtAN+M9qyPWlSab/p 0IO1sfIYXd6OjhUZSWIX5rC/YReF0oX/hBShj/m4a15mei6WOa4AyTprCNhpsaXvc8bO odHg== X-Gm-Message-State: APjAAAULuvgfqwwCxvI5P3Yt5mwweeRPbl606QhSNLysXn1yh0gGN65l IgK/huMqO6prfn8pQ+jzTx9u60Rfp0o= X-Google-Smtp-Source: APXvYqw6YGCi+0X0eXXeDGi2NwvH1HM7qFLDlGchnC+NxWiN28sLeot/4GfQxaHJCkV8tkUoaGv9yA== X-Received: by 2002:a2e:4a1a:: with SMTP id x26mr16104066lja.49.1556127166347; Wed, 24 Apr 2019 10:32:46 -0700 (PDT) Received: from localhost.localdomain (c83-252-117-108.bredband.comhem.se. [83.252.117.108]) by smtp.gmail.com with ESMTPSA id n10sm5188505ljh.36.2019.04.24.10.32.45 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 24 Apr 2019 10:32:45 -0700 (PDT) From: Oleksandr Kravchuk To: openembedded-core@lists.openembedded.org Date: Wed, 24 Apr 2019 19:32:41 +0200 Message-Id: <20190424173241.13587-1-open.source@oleksandr-kravchuk.com> X-Mailer: git-send-email 2.17.1 Cc: Oleksandr Kravchuk Subject: [PATCH v2] coreutils: update to 8.31 X-BeenThere: openembedded-core@lists.openembedded.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: Patches and discussions about the oe-core layer List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Apr 2019 17:32:46 -0000 lc.c license checksum changed due to modified copyright year. musl fix was backported from RHEL5 and is musl specific as the patched file is autogenerated during configure phase. Signed-off-by: Oleksandr Kravchuk --- .../strtod_fix_clash_with_strtold.patch | 56 +++++++++++++++++++ .../{coreutils_8.30.bb => coreutils_8.31.bb} | 8 ++- 2 files changed, 61 insertions(+), 3 deletions(-) create mode 100644 meta/recipes-core/coreutils/coreutils/strtod_fix_clash_with_strtold.patch rename meta/recipes-core/coreutils/{coreutils_8.30.bb => coreutils_8.31.bb} (94%) diff --git a/meta/recipes-core/coreutils/coreutils/strtod_fix_clash_with_strtold.patch b/meta/recipes-core/coreutils/coreutils/strtod_fix_clash_with_strtold.patch new file mode 100644 index 0000000000..19410715f5 --- /dev/null +++ b/meta/recipes-core/coreutils/coreutils/strtod_fix_clash_with_strtold.patch @@ -0,0 +1,56 @@ +From 0562b040fa17f1722ba2b3096067b45d0582ca53 Mon Sep 17 00:00:00 2001 +From: Paul Eggert +Date: Mon, 11 Mar 2019 16:40:29 -0700 +Subject: [PATCH] strtod: fix clash with strtold + +Problem reported for RHEL 5 by Jesse Caldwell (Bug#34817). +* lib/strtod.c (compute_minus_zero, minus_zero): +Simplify by remving the macro / external variable, +and having just a function. User changed. This avoids +the need for an external variable that might clash. + +Upstream-Status: Backported [rhel5] + +Signed-off-by: Oleksandr Kravchuk + +--- + ChangeLog | 9 +++++++++ + lib/strtod.c | 11 +++++------ + 2 files changed, 14 insertions(+), 6 deletions(-) + +diff --git a/lib/strtod.c b/lib/strtod.c +index b9eaa51b4..69b1564e1 100644 +--- a/lib/strtod.c ++++ b/lib/strtod.c +@@ -294,16 +294,15 @@ parse_number (const char *nptr, + ICC 10.0 has a bug when optimizing the expression -zero. + The expression -MIN * MIN does not work when cross-compiling + to PowerPC on Mac OS X 10.5. */ +-#if defined __hpux || defined __sgi || defined __ICC + static DOUBLE +-compute_minus_zero (void) ++minus_zero (void) + { ++#if defined __hpux || defined __sgi || defined __ICC + return -MIN * MIN; +-} +-# define minus_zero compute_minus_zero () + #else +-DOUBLE minus_zero = -0.0; ++ return -0.0; + #endif ++} + + /* Convert NPTR to a DOUBLE. If ENDPTR is not NULL, a pointer to the + character after the last one used in the number is put in *ENDPTR. */ +@@ -479,6 +478,6 @@ STRTOD (const char *nptr, char **endptr) + /* Special case -0.0, since at least ICC miscompiles negation. We + can't use copysign(), as that drags in -lm on some platforms. */ + if (!num && negative) +- return minus_zero; ++ return minus_zero (); + return negative ? -num : num; + } +-- +2.20.1 + 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..4a74f619af 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://strtod_fix_clash_with_strtold.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