From 409752f315cbccc383111723eb2904ade5b84410 Mon Sep 17 00:00:00 2001 From: Flatcar Buildbot Date: Mon, 11 May 2026 08:18:46 +0000 Subject: [PATCH] sys-apps/sed: Sync with Gentoo It's from Gentoo commit 42180ca23536000bf109392278f2472f6f64377e. Signed-off-by: Flatcar Buildbot --- .../portage-stable/sys-apps/sed/Manifest | 2 + .../sys-apps/sed/sed-4.10.ebuild | 82 +++++++++++++++++++ 2 files changed, 84 insertions(+) create mode 100644 sdk_container/src/third_party/portage-stable/sys-apps/sed/sed-4.10.ebuild diff --git a/sdk_container/src/third_party/portage-stable/sys-apps/sed/Manifest b/sdk_container/src/third_party/portage-stable/sys-apps/sed/Manifest index 2ecd59ea0c..83f027d171 100644 --- a/sdk_container/src/third_party/portage-stable/sys-apps/sed/Manifest +++ b/sdk_container/src/third_party/portage-stable/sys-apps/sed/Manifest @@ -1,2 +1,4 @@ +DIST sed-4.10.tar.xz 1732800 BLAKE2B 6decea38a3e6eb3b672af2380ec3f32759b60350dba528d28a57b74806db33208baed69a8497d423bc7626105930e3e9c9ea68f68b8bcd4a3270f2d8922a2487 SHA512 20224df834b363ca1357024234bb93df3929c252c40c7ef3d23e78fc05177c7986e3145a5049d63db746a4dc2c97befb0324a87ea081507292ff6cd5383ee9db +DIST sed-4.10.tar.xz.sig 833 BLAKE2B 8c4af8f8d8c9d1dac9f1808aafa8e5cdda5af1a77af5f5c4bea599c64a3b1df8d6417ade8a819c2cb405191d83660e8144473d1d6a977cac8532803658418a85 SHA512 7a4fef4601f9c9c7bb45426eb5505f1ba2a4caa875e933b2a476623691a93671de36470bc51bda8f8a7467e7d1f2f382c6e43a1b98e9bb958556039ec43ba17c DIST sed-4.9.tar.xz 1397092 BLAKE2B 6c7c7dc782b87c3bd0b5e826ba46c2f1dc7bd8c1159945fcf14b394711742964628774cf9f27d844b672721d7849e6c31992d82fafb9ed4118b7feb60406d1e1 SHA512 36157a4b4a2430cf421b7bd07f1675d680d9f1616be96cf6ad6ee74a9ec0fe695f8d0b1e1f0b008bbb33cc7fcde5e1c456359bbbc63f8aebdd4fedc3982cf6dc DIST sed-4.9.tar.xz.sig 833 BLAKE2B 256bb112aa3aec1a8d40544ef1b0a7570f35d66369047ed3d261c57f938042dcb4a169137eaed6639bcfb472e4a6fc6ebec2de243b2c4d4c0ba0e9081f92556d SHA512 ceb235850184b99017783486e182ade9db38313d20b2b34d23f54d8affe180f7a191139b993e8ec7718ca33eff732f547ca4b3b59aaf865feaae611dfeae5c46 diff --git a/sdk_container/src/third_party/portage-stable/sys-apps/sed/sed-4.10.ebuild b/sdk_container/src/third_party/portage-stable/sys-apps/sed/sed-4.10.ebuild new file mode 100644 index 0000000000..cfc652ba51 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/sys-apps/sed/sed-4.10.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/sed.asc +inherit branding flag-o-matic verify-sig + +DESCRIPTION="Super-useful stream editor" +HOMEPAGE="https://www.gnu.org/software/sed/" + +if [[ ${PV} == *_p* ]] ; then + # Note: could put this in devspace, but if it's gone, we don't want + # it in tree anyway. It's just for testing. + MY_SNAPSHOT="$(ver_cut 1-2).87-682d" + SRC_URI=" + https://meyering.net/sed/sed-${MY_SNAPSHOT}.tar.xz -> ${P}.tar.xz + verify-sig? ( + https://meyering.net/sed/sed-${MY_SNAPSHOT}.tar.xz.sig -> ${P}.tar.xz.sig + ) + " + S="${WORKDIR}"/${PN}-${MY_SNAPSHOT} +else + SRC_URI="mirror://gnu/sed/${P}.tar.xz" + SRC_URI+=" verify-sig? ( mirror://gnu/sed/${P}.tar.xz.sig )" + + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos" +fi + +LICENSE="GPL-3+" +SLOT="0" +IUSE="acl nls selinux static test-full" + +RDEPEND=" + !static? ( + acl? ( virtual/acl ) + nls? ( virtual/libintl ) + selinux? ( sys-libs/libselinux ) + ) +" +DEPEND="${RDEPEND} + static? ( + acl? ( virtual/acl[static-libs(+)] ) + nls? ( virtual/libintl[static-libs(+)] ) + selinux? ( sys-libs/libselinux[static-libs(+)] ) + ) +" +BDEPEND=" + nls? ( sys-devel/gettext ) + verify-sig? ( sec-keys/openpgp-keys-sed ) +" + +src_configure() { + use static && append-ldflags -static + + local myconf=( + --exec-prefix="${EPREFIX}" + $(use_enable acl) + $(use_enable nls) + $(use_with selinux) + # rename to gsed for better BSD compatibility + --program-prefix=g + ) + econf "${myconf[@]}" +} + +src_test() { + local -x RUN_{VERY_,}EXPENSIVE_TESTS=$(usex test-full yes no) + + # We don't want to automagically use Valgrind for tests. + sed -i -e 's:valgrind --error-exitcode=1:false:' init.cfg || die + + emake VERBOSE=yes check +} + +src_install() { + default + + # symlink to the standard name + dosym gsed /bin/sed + dosym gsed.1 /usr/share/man/man1/sed.1 +}