commit: 4a482237f391e7d38fb0e948e503ccca50db4934 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Sat Mar 22 20:12:17 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Sat Mar 22 20:15:27 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4a482237
app-misc/dtach: fix build w/ gcc-15 Closes: https://bugs.gentoo.org/944323 Signed-off-by: Sam James <sam <AT> gentoo.org> app-misc/dtach/dtach-0.9-r1.ebuild | 6 +++++- app-misc/dtach/files/dtach-0.9-c23.patch | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/app-misc/dtach/dtach-0.9-r1.ebuild b/app-misc/dtach/dtach-0.9-r1.ebuild index 748df1cc1c29..19698e7382a3 100644 --- a/app-misc/dtach/dtach-0.9-r1.ebuild +++ b/app-misc/dtach/dtach-0.9-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 @@ -11,6 +11,10 @@ SLOT="0" LICENSE="GPL-2+" KEYWORDS="~alpha amd64 arm arm64 ~hppa ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos" +PATCHES=( + "${FILESDIR}"/${PN}-0.9-c23.patch +) + src_install() { dobin dtach doman dtach.1 diff --git a/app-misc/dtach/files/dtach-0.9-c23.patch b/app-misc/dtach/files/dtach-0.9-c23.patch new file mode 100644 index 000000000000..fcdf89520637 --- /dev/null +++ b/app-misc/dtach/files/dtach-0.9-c23.patch @@ -0,0 +1,20 @@ +https://bugs.gentoo.org/944323 +https://github.com/crigler/dtach/pull/21 + +From 6d80909a8c0fd19717010a3c76fec560f988ca48 Mon Sep 17 00:00:00 2001 +From: Rudi Heitbaum <[email protected]> +Date: Mon, 9 Dec 2024 12:35:09 +0000 +Subject: [PATCH] fix gcc-15 build + +--- a/attach.c ++++ b/attach.c +@@ -96,7 +96,7 @@ die(int sig) + + /* Window size change. */ + static RETSIGTYPE +-win_change() ++win_change(int sig) + { + signal(SIGWINCH, win_change); + win_changed = 1; +
