From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 7CF0B15800A for ; Fri, 1 Sep 2023 14:05:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C237E2BC014; Fri, 1 Sep 2023 14:05:12 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A5F9D2BC014 for ; Fri, 1 Sep 2023 14:05:12 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id ABA6A335D50 for ; Fri, 1 Sep 2023 14:05:11 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1A0BD10DF for ; Fri, 1 Sep 2023 14:05:10 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1693577093.a3a11cfe962d506e6e6e5c96cdab2376c8167110.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/coreutils/files/, sys-apps/coreutils/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-apps/coreutils/coreutils-9.4.ebuild sys-apps/coreutils/files/coreutils-9.4-gnulib-openssl-1.1.patch X-VCS-Directories: sys-apps/coreutils/ sys-apps/coreutils/files/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: a3a11cfe962d506e6e6e5c96cdab2376c8167110 X-VCS-Branch: master Date: Fri, 1 Sep 2023 14:05:10 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: d13b3f21-24f7-48a2-8553-0ee9a7ce28ca X-Archives-Hash: c38d620732d4e8b7386c835096839bb8 commit: a3a11cfe962d506e6e6e5c96cdab2376c8167110 Author: Sam James gentoo org> AuthorDate: Fri Sep 1 14:00:13 2023 +0000 Commit: Sam James gentoo org> CommitDate: Fri Sep 1 14:04:53 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a3a11cfe sys-apps/coreutils: fix build w/ gentoo.org> sys-apps/coreutils/coreutils-9.4.ebuild | 1 + .../files/coreutils-9.4-gnulib-openssl-1.1.patch | 165 +++++++++++++++++++++ 2 files changed, 166 insertions(+) diff --git a/sys-apps/coreutils/coreutils-9.4.ebuild b/sys-apps/coreutils/coreutils-9.4.ebuild index 1eeb24a0282e..65deec47eb27 100644 --- a/sys-apps/coreutils/coreutils-9.4.ebuild +++ b/sys-apps/coreutils/coreutils-9.4.ebuild @@ -111,6 +111,7 @@ src_prepare() { # TODO: past 2025, we may need to add our own hack for bug #907474. local PATCHES=( # Upstream patches + "${FILESDIR}"/${P}-gnulib-openssl-1.1.patch ) if ! use vanilla && [[ -d "${WORKDIR}"/${MY_PATCH} ]] ; then diff --git a/sys-apps/coreutils/files/coreutils-9.4-gnulib-openssl-1.1.patch b/sys-apps/coreutils/files/coreutils-9.4-gnulib-openssl-1.1.patch new file mode 100644 index 000000000000..3576c7d0d1eb --- /dev/null +++ b/sys-apps/coreutils/files/coreutils-9.4-gnulib-openssl-1.1.patch @@ -0,0 +1,165 @@ +https://bugs.gentoo.org/913368 +https://debbugs.gnu.org/65674 +https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=ce20e238f0b4448a098bd7c076c131edbc759764 + +From ce20e238f0b4448a098bd7c076c131edbc759764 Mon Sep 17 00:00:00 2001 +From: Bruno Haible +Date: Fri, 1 Sep 2023 12:55:30 +0200 +Subject: crypto/{sha*,md5,sm3}-buffer: Fix --with-openssl (regr. 2023-08-26). + +Reported by Agostino Sarubbo via Sam James in +. + +* lib/sha1.h: Test the OpenSSL major version before attempting to +include . +* lib/sha256.h: Likewise. +* lib/sha512.h: Likewise. +* lib/md5.h: Likewise. +* lib/sm3.h: Likewise. +--- a/lib/md5.h ++++ b/lib/md5.h +@@ -33,14 +33,18 @@ + # define OPENSSL_API_COMPAT 0x10101000L /* FIXME: Use OpenSSL 1.1+ API. */ + # endif + /* If would give a compile-time error, don't use OpenSSL. */ +-# include +-# if (OPENSSL_CONFIGURED_API \ +- < (OPENSSL_API_COMPAT < 0x900000L ? OPENSSL_API_COMPAT : \ +- ((OPENSSL_API_COMPAT >> 28) & 0xF) * 10000 \ +- + ((OPENSSL_API_COMPAT >> 20) & 0xFF) * 100 \ +- + ((OPENSSL_API_COMPAT >> 12) & 0xFF))) +-# undef HAVE_OPENSSL_MD5 +-# else ++# include ++# if OPENSSL_VERSION_MAJOR >= 3 ++# include ++# if (OPENSSL_CONFIGURED_API \ ++ < (OPENSSL_API_COMPAT < 0x900000L ? OPENSSL_API_COMPAT : \ ++ ((OPENSSL_API_COMPAT >> 28) & 0xF) * 10000 \ ++ + ((OPENSSL_API_COMPAT >> 20) & 0xFF) * 100 \ ++ + ((OPENSSL_API_COMPAT >> 12) & 0xFF))) ++# undef HAVE_OPENSSL_MD5 ++# endif ++# endif ++# if HAVE_OPENSSL_MD5 + # include + # endif + # endif +--- a/lib/sha1.h ++++ b/lib/sha1.h +@@ -32,14 +32,18 @@ + # define OPENSSL_API_COMPAT 0x10101000L /* FIXME: Use OpenSSL 1.1+ API. */ + # endif + /* If would give a compile-time error, don't use OpenSSL. */ +-# include +-# if (OPENSSL_CONFIGURED_API \ +- < (OPENSSL_API_COMPAT < 0x900000L ? OPENSSL_API_COMPAT : \ +- ((OPENSSL_API_COMPAT >> 28) & 0xF) * 10000 \ +- + ((OPENSSL_API_COMPAT >> 20) & 0xFF) * 100 \ +- + ((OPENSSL_API_COMPAT >> 12) & 0xFF))) +-# undef HAVE_OPENSSL_SHA1 +-# else ++# include ++# if OPENSSL_VERSION_MAJOR >= 3 ++# include ++# if (OPENSSL_CONFIGURED_API \ ++ < (OPENSSL_API_COMPAT < 0x900000L ? OPENSSL_API_COMPAT : \ ++ ((OPENSSL_API_COMPAT >> 28) & 0xF) * 10000 \ ++ + ((OPENSSL_API_COMPAT >> 20) & 0xFF) * 100 \ ++ + ((OPENSSL_API_COMPAT >> 12) & 0xFF))) ++# undef HAVE_OPENSSL_SHA1 ++# endif ++# endif ++# if HAVE_OPENSSL_SHA1 + # include + # endif + # endif +--- a/lib/sha256.h ++++ b/lib/sha256.h +@@ -31,14 +31,18 @@ + # define OPENSSL_API_COMPAT 0x10101000L /* FIXME: Use OpenSSL 1.1+ API. */ + # endif + /* If would give a compile-time error, don't use OpenSSL. */ +-# include +-# if (OPENSSL_CONFIGURED_API \ +- < (OPENSSL_API_COMPAT < 0x900000L ? OPENSSL_API_COMPAT : \ +- ((OPENSSL_API_COMPAT >> 28) & 0xF) * 10000 \ +- + ((OPENSSL_API_COMPAT >> 20) & 0xFF) * 100 \ +- + ((OPENSSL_API_COMPAT >> 12) & 0xFF))) +-# undef HAVE_OPENSSL_SHA256 +-# else ++# include ++# if OPENSSL_VERSION_MAJOR >= 3 ++# include ++# if (OPENSSL_CONFIGURED_API \ ++ < (OPENSSL_API_COMPAT < 0x900000L ? OPENSSL_API_COMPAT : \ ++ ((OPENSSL_API_COMPAT >> 28) & 0xF) * 10000 \ ++ + ((OPENSSL_API_COMPAT >> 20) & 0xFF) * 100 \ ++ + ((OPENSSL_API_COMPAT >> 12) & 0xFF))) ++# undef HAVE_OPENSSL_SHA256 ++# endif ++# endif ++# if HAVE_OPENSSL_SHA256 + # include + # endif + # endif +--- a/lib/sha512.h ++++ b/lib/sha512.h +@@ -31,14 +31,18 @@ + # define OPENSSL_API_COMPAT 0x10101000L /* FIXME: Use OpenSSL 1.1+ API. */ + # endif + /* If would give a compile-time error, don't use OpenSSL. */ +-# include +-# if (OPENSSL_CONFIGURED_API \ +- < (OPENSSL_API_COMPAT < 0x900000L ? OPENSSL_API_COMPAT : \ +- ((OPENSSL_API_COMPAT >> 28) & 0xF) * 10000 \ +- + ((OPENSSL_API_COMPAT >> 20) & 0xFF) * 100 \ +- + ((OPENSSL_API_COMPAT >> 12) & 0xFF))) +-# undef HAVE_OPENSSL_SHA512 +-# else ++# include ++# if OPENSSL_VERSION_MAJOR >= 3 ++# include ++# if (OPENSSL_CONFIGURED_API \ ++ < (OPENSSL_API_COMPAT < 0x900000L ? OPENSSL_API_COMPAT : \ ++ ((OPENSSL_API_COMPAT >> 28) & 0xF) * 10000 \ ++ + ((OPENSSL_API_COMPAT >> 20) & 0xFF) * 100 \ ++ + ((OPENSSL_API_COMPAT >> 12) & 0xFF))) ++# undef HAVE_OPENSSL_SHA512 ++# endif ++# endif ++# if HAVE_OPENSSL_SHA512 + # include + # endif + # endif +--- a/lib/sm3.h ++++ b/lib/sm3.h +@@ -40,14 +40,18 @@ + # define OPENSSL_API_COMPAT 0x10101000L /* FIXME: Use OpenSSL 1.1+ API. */ + # endif + /* If would give a compile-time error, don't use OpenSSL. */ +-# include +-# if (OPENSSL_CONFIGURED_API \ +- < (OPENSSL_API_COMPAT < 0x900000L ? OPENSSL_API_COMPAT : \ +- ((OPENSSL_API_COMPAT >> 28) & 0xF) * 10000 \ +- + ((OPENSSL_API_COMPAT >> 20) & 0xFF) * 100 \ +- + ((OPENSSL_API_COMPAT >> 12) & 0xFF))) +-# undef HAVE_OPENSSL_SM3 +-# else ++# include ++# if OPENSSL_VERSION_MAJOR >= 3 ++# include ++# if (OPENSSL_CONFIGURED_API \ ++ < (OPENSSL_API_COMPAT < 0x900000L ? OPENSSL_API_COMPAT : \ ++ ((OPENSSL_API_COMPAT >> 28) & 0xF) * 10000 \ ++ + ((OPENSSL_API_COMPAT >> 20) & 0xFF) * 100 \ ++ + ((OPENSSL_API_COMPAT >> 12) & 0xFF))) ++# undef HAVE_OPENSSL_SM3 ++# endif ++# endif ++# if HAVE_OPENSSL_SM3 + # include + # endif + # endif +-- +cgit v1.1