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 95FE115803E for ; Thu, 4 Jan 2024 00:07:31 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3DDA92BC03B; Thu, 4 Jan 2024 00:07:30 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 1FDDD2BC03B for ; Thu, 4 Jan 2024 00:07:30 +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 022B3343069 for ; Thu, 4 Jan 2024 00:07:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 45B361492 for ; Thu, 4 Jan 2024 00:07:27 +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: <1704326793.4682a1f615e7eacf6242767c7e6a663614359e3c.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-process/lsof/, sys-process/lsof/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-process/lsof/files/lsof-4.98.0-fix-clang-version-parser.patch sys-process/lsof/lsof-4.98.0-r1.ebuild sys-process/lsof/lsof-4.99.0.ebuild sys-process/lsof/lsof-4.99.3.ebuild X-VCS-Directories: sys-process/lsof/files/ sys-process/lsof/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 4682a1f615e7eacf6242767c7e6a663614359e3c X-VCS-Branch: master Date: Thu, 4 Jan 2024 00:07:27 +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: 666e43e4-0cfa-47ce-bcc1-2860ab03befd X-Archives-Hash: 254dbfb9745f3728f312ace71734b9d0 commit: 4682a1f615e7eacf6242767c7e6a663614359e3c Author: Sv. Lockal gmail com> AuthorDate: Mon Dec 25 16:55:23 2023 +0000 Commit: Sam James gentoo org> CommitDate: Thu Jan 4 00:06:33 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4682a1f6 sys-process/lsof: fix compilation with clang when hip runtime is installed Closes: https://bugs.gentoo.org/919253 Signed-off-by: Sv. Lockal gmail.com> Closes: https://github.com/gentoo/gentoo/pull/34471 Signed-off-by: Sam James gentoo.org> .../lsof/files/lsof-4.98.0-fix-clang-version-parser.patch | 15 +++++++++++++++ sys-process/lsof/lsof-4.98.0-r1.ebuild | 10 +++++++++- sys-process/lsof/lsof-4.99.0.ebuild | 13 +++++++++++++ sys-process/lsof/lsof-4.99.3.ebuild | 13 +++++++++++++ 4 files changed, 50 insertions(+), 1 deletion(-) diff --git a/sys-process/lsof/files/lsof-4.98.0-fix-clang-version-parser.patch b/sys-process/lsof/files/lsof-4.98.0-fix-clang-version-parser.patch new file mode 100644 index 000000000000..ebb5d85d2e5d --- /dev/null +++ b/sys-process/lsof/files/lsof-4.98.0-fix-clang-version-parser.patch @@ -0,0 +1,15 @@ +https://bugs.gentoo.org/919253 +https://github.com/lsof-org/lsof/issues/305 + +Ignore HIP or CUDA versions in clang, when checking for compiler version +--- a/configure.ac ++++ b/configure.ac +@@ -410,7 +410,7 @@ AC_CONFIG_FILES([Makefile]) + + # Pass build configurations to version.h.in + AC_SUBST(cc, $CC) +-AC_SUBST(ccv, $($CC -v 2>&1 | sed -n 's/.*version \(.*\)/\1/p')) ++AC_SUBST(ccv, $($CC -v 2>&1 | sed -n 's/.*version \(.*\)/\1/p;q')) + AC_SUBST(ccflags, $CFLAGS) + AC_SUBST(ldflags, "$LDFLAGS$LIBS") + # Reproducible build diff --git a/sys-process/lsof/lsof-4.98.0-r1.ebuild b/sys-process/lsof/lsof-4.98.0-r1.ebuild index 77f81e741013..715ef0c9a4c3 100644 --- a/sys-process/lsof/lsof-4.98.0-r1.ebuild +++ b/sys-process/lsof/lsof-4.98.0-r1.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit flag-o-matic +inherit autotools flag-o-matic MY_P="${P/-/_}" DESCRIPTION="Lists open files for running Unix processes" @@ -30,8 +30,16 @@ RESTRICT="test" PATCHES=( "${FILESDIR}"/${P}-fix-common-include-strftime.patch + "${FILESDIR}"/${PN}-4.98.0-fix-clang-version-parser.patch ) +# TODO: drop this block, "inherit autotools" and clang-version-parser patch after 4.99.3 +# https://github.com/lsof-org/lsof/pull/306 +src_prepare() { + default + eautoreconf +} + src_configure() { # TODO: drop after 4.98.0: https://github.com/lsof-org/lsof/commit/4fbe0b78f63ce115f25cf7a49756745e3bf47fea export ac_cv_header_selinux_selinux_h=$(usex selinux) diff --git a/sys-process/lsof/lsof-4.99.0.ebuild b/sys-process/lsof/lsof-4.99.0.ebuild index d1dba0173182..e77a7a93b7e9 100644 --- a/sys-process/lsof/lsof-4.99.0.ebuild +++ b/sys-process/lsof/lsof-4.99.0.ebuild @@ -3,6 +3,8 @@ EAPI=8 +inherit autotools + MY_P="${P/-/_}" DESCRIPTION="Lists open files for running Unix processes" HOMEPAGE="https://github.com/lsof-org/lsof" @@ -26,6 +28,17 @@ BDEPEND=" # Needs fixing first for sandbox RESTRICT="test" +PATCHES=( + "${FILESDIR}"/${PN}-4.98.0-fix-clang-version-parser.patch +) + +# TODO: drop this block, "inherit autotools" and clang-version-parser patch after 4.99.3 +# https://github.com/lsof-org/lsof/pull/306 +src_prepare() { + default + eautoreconf +} + src_configure() { local myeconfargs=( $(use_with rpc libtirpc) diff --git a/sys-process/lsof/lsof-4.99.3.ebuild b/sys-process/lsof/lsof-4.99.3.ebuild index c22f1df517e3..591b4742d2de 100644 --- a/sys-process/lsof/lsof-4.99.3.ebuild +++ b/sys-process/lsof/lsof-4.99.3.ebuild @@ -3,6 +3,8 @@ EAPI=8 +inherit autotools + MY_P="${P/-/_}" DESCRIPTION="Lists open files for running Unix processes" HOMEPAGE="https://github.com/lsof-org/lsof" @@ -26,6 +28,17 @@ BDEPEND=" # Needs fixing first for sandbox RESTRICT="test" +PATCHES=( + "${FILESDIR}"/${PN}-4.98.0-fix-clang-version-parser.patch +) + +# TODO: drop this block, "inherit autotools" and clang-version-parser patch after 4.99.3 +# https://github.com/lsof-org/lsof/pull/306 +src_prepare() { + default + eautoreconf +} + src_configure() { local myeconfargs=( $(use_with rpc libtirpc)