From 89ef5d69f308f877fdb58bc6f2b7b23fe72a4ef5 Mon Sep 17 00:00:00 2001 From: Flatcar Buildbot Date: Mon, 17 Mar 2025 07:12:19 +0000 Subject: [PATCH] sys-process/tini: Sync with Gentoo It's from Gentoo commit 86bb4af29fee8a1c83ca9f30f885e0e0b4147329. --- .../tini/files/tini-0.19.0-musl-basename.patch | 13 +++++++++++++ .../sys-process/tini/tini-0.19.0-r1.ebuild | 4 +++- 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 sdk_container/src/third_party/portage-stable/sys-process/tini/files/tini-0.19.0-musl-basename.patch diff --git a/sdk_container/src/third_party/portage-stable/sys-process/tini/files/tini-0.19.0-musl-basename.patch b/sdk_container/src/third_party/portage-stable/sys-process/tini/files/tini-0.19.0-musl-basename.patch new file mode 100644 index 0000000000..69808d773d --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/sys-process/tini/files/tini-0.19.0-musl-basename.patch @@ -0,0 +1,13 @@ +diff --git a/src/tini.c b/src/tini.c +index eb62015..0e7d5da 100644 +--- a/src/tini.c ++++ b/src/tini.c +@@ -18,6 +18,8 @@ + #include "tiniConfig.h" + #include "tiniLicense.h" + ++#define basename(name) (strrchr((name),'/') ? strrchr((name),'/')+1 : (name)) ++ + #if TINI_MINIMAL + #define PRINT_FATAL(...) fprintf(stderr, __VA_ARGS__); fprintf(stderr, "\n"); + #define PRINT_WARNING(...) if (verbosity > 0) { fprintf(stderr, __VA_ARGS__); fprintf(stderr, "\n"); } diff --git a/sdk_container/src/third_party/portage-stable/sys-process/tini/tini-0.19.0-r1.ebuild b/sdk_container/src/third_party/portage-stable/sys-process/tini/tini-0.19.0-r1.ebuild index 0f911be287..f55bbf7f30 100644 --- a/sdk_container/src/third_party/portage-stable/sys-process/tini/tini-0.19.0-r1.ebuild +++ b/sdk_container/src/third_party/portage-stable/sys-process/tini/tini-0.19.0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -19,6 +19,8 @@ SLOT="0" KEYWORDS="amd64 arm arm64 hppa ppc64 ~riscv ~x86" IUSE="+args +static" +PATCHES=("${FILESDIR}/tini-0.19.0-musl-basename.patch") + src_prepare() { [[ -z ${GIT_COMMIT} ]] && die "forgetful maintainer! please define GIT_COMMIT_${PV//./} on bump"