public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/dwz/
Date: Thu, 27 Mar 2025 17:01:35 +0000 (UTC)	[thread overview]
Message-ID: <1743094861.f5e4426903441825f7f37080a9712f754d6c4c38.sam@gentoo> (raw)

commit:     f5e4426903441825f7f37080a9712f754d6c4c38
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Mar 27 17:01:01 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Mar 27 17:01:01 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f5e44269

sys-devel/dwz: sync live

Signed-off-by: Sam James <sam <AT> gentoo.org>

 sys-devel/dwz/dwz-9999.ebuild | 21 +++++++++++++++++----
 1 file changed, 17 insertions(+), 4 deletions(-)

diff --git a/sys-devel/dwz/dwz-9999.ebuild b/sys-devel/dwz/dwz-9999.ebuild
index 7692569e9bca..2087550f34b4 100644
--- a/sys-devel/dwz/dwz-9999.ebuild
+++ b/sys-devel/dwz/dwz-9999.ebuild
@@ -14,7 +14,7 @@ else
 	SRC_URI="https://sourceware.org/ftp/dwz/releases/${P}.tar.xz"
 	S="${WORKDIR}/${PN}"
 
-	KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
+	KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
 fi
 
 LICENSE="GPL-2+ GPL-3+"
@@ -25,6 +25,10 @@ RESTRICT="!test? ( test )"
 RDEPEND="
 	dev-libs/elfutils
 	dev-libs/xxhash
+	elibc_musl? (
+		>=sys-libs/error-standalone-2.0
+		sys-libs/obstack-standalone
+	)
 "
 DEPEND="${RDEPEND}"
 BDEPEND="
@@ -33,6 +37,7 @@ BDEPEND="
 		dev-libs/elfutils[utils]
 		dev-util/dejagnu
 	)
+	virtual/pkgconfig
 "
 
 src_prepare() {
@@ -43,13 +48,21 @@ src_prepare() {
 src_compile() {
 	export LANG=C LC_ALL=C  # grep find nothing for non-ascii locales
 
-	emake CFLAGS="${CFLAGS}" srcdir="${S}"
+	tc-export PKG_CONFIG
+
+	export LIBS="-lelf"
+	if use elibc_musl; then
+		export CFLAGS="${CFLAGS} $(${PKG_CONFIG} --cflags obstack-standalone error-standalone)"
+		export LIBS="${LIBS} $(${PKG_CONFIG} --libs obstack-standalone error-standalone)"
+	fi
+
+	emake CFLAGS="${CFLAGS}" LIBS="${LIBS}" srcdir="${S}"
 }
 
 src_test() {
-	emake CFLAGS="${CFLAGS}" srcdir="${S}" check
+	emake CFLAGS="${CFLAGS}" LIBS="${LIBS}" srcdir="${S}" check
 }
 
 src_install() {
-	emake DESTDIR="${D}" CFLAGS="${CFLAGS}" srcdir="${S}" install
+	emake DESTDIR="${D}" CFLAGS="${CFLAGS}" LIBS="${LIBS}" srcdir="${S}" install
 }


             reply	other threads:[~2025-03-27 17:01 UTC|newest]

Thread overview: 62+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-03-27 17:01 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-08-19  0:33 [gentoo-commits] repo/gentoo:master commit in: sys-devel/dwz/ Sam James
2025-07-21  3:22 Sam James
2025-07-21  3:22 Sam James
2025-07-21  3:22 Sam James
2025-07-21  3:22 Sam James
2025-07-21  3:22 Sam James
2025-07-21  2:57 Sam James
2025-07-08 16:49 Mike Gilbert
2025-06-21 12:50 Sam James
2025-06-14 10:05 Sam James
2025-06-14  9:36 Sam James
2025-06-12 12:25 Sam James
2025-06-12 12:25 Sam James
2025-06-11  7:58 Sam James
2025-05-23 11:42 Arthur Zamarin
2025-05-21 16:44 Sam James
2025-05-13  3:24 Sam James
2025-05-13  0:18 Sam James
2025-03-27 17:01 Sam James
2025-01-26  2:01 Sam James
2025-01-26  1:56 Sam James
2025-01-25 14:17 Sam James
2025-01-25 14:15 Sam James
2025-01-25 14:15 Sam James
2025-01-25 13:50 Sam James
2025-01-25 13:43 Sam James
2025-01-07  2:24 Sam James
2025-01-07  2:01 Sam James
2025-01-07  2:01 Sam James
2025-01-05 12:32 WANG Xuerui
2025-01-05 12:32 WANG Xuerui
2024-12-14 10:43 Sam James
2024-12-14 10:43 Sam James
2024-08-31  1:08 Sam James
2024-02-21  2:15 Sam James
2024-02-03 23:23 Jakov Smolić
2024-02-03 21:34 Sam James
2024-02-03 14:19 Arthur Zamarin
2024-02-03 11:32 Arthur Zamarin
2024-02-03 11:07 Sam James
2024-02-03 11:05 Arthur Zamarin
2024-02-03 11:05 Arthur Zamarin
2024-02-03 11:03 Arthur Zamarin
2024-02-03 10:21 Arthur Zamarin
2024-02-03  8:22 Arthur Zamarin
2024-02-03  8:22 Arthur Zamarin
2024-02-03  8:22 Arthur Zamarin
2024-02-03  8:22 Arthur Zamarin
2023-11-29  4:23 Sam James
2023-03-19 20:51 Arsen Arsenović
2023-03-19 20:51 Arsen Arsenović
2023-03-19 15:25 Arsen Arsenović
2021-11-30  7:27 Joonas Niilola
2021-11-30  7:27 Joonas Niilola
2021-11-30  7:27 Joonas Niilola
2020-09-23 21:54 Conrad Kostecki
2020-09-22 21:19 Conrad Kostecki
2020-09-22 21:19 Conrad Kostecki
2019-04-13 10:36 Tiziano Müller
2019-04-13 10:36 Tiziano Müller
2018-07-15 20:30 Tiziano Müller

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=1743094861.f5e4426903441825f7f37080a9712f754d6c4c38.sam@gentoo \
    --to=sam@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