public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Zac Medico" <zmedico@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/tini/, sys-process/tini/files/
Date: Wed, 05 Mar 2025 02:49:09 +0000 (UTC)	[thread overview]
Message-ID: <1741142944.86bb4af29fee8a1c83ca9f30f885e0e0b4147329.zmedico@gentoo> (raw)

commit:     86bb4af29fee8a1c83ca9f30f885e0e0b4147329
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Wed Mar  5 02:44:16 2025 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Wed Mar  5 02:49:04 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=86bb4af2

sys-process/tini: Patch basename for musl

Closes: https://bugs.gentoo.org/934990
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 sys-process/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(-)

diff --git a/sys-process/tini/files/tini-0.19.0-musl-basename.patch b/sys-process/tini/files/tini-0.19.0-musl-basename.patch
new file mode 100644
index 000000000000..69808d773de9
--- /dev/null
+++ b/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/sys-process/tini/tini-0.19.0-r1.ebuild b/sys-process/tini/tini-0.19.0-r1.ebuild
index 0f911be28766..f55bbf7f30f0 100644
--- a/sys-process/tini/tini-0.19.0-r1.ebuild
+++ b/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"


             reply	other threads:[~2025-03-05  2:49 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-05  2:49 Zac Medico [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-11-25 14:40 [gentoo-commits] repo/gentoo:master commit in: sys-process/tini/, sys-process/tini/files/ Manuel Rüger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1741142944.86bb4af29fee8a1c83ca9f30f885e0e0b4147329.zmedico@gentoo \
    --to=zmedico@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox