public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Thomas Beierlein" <tomjbe@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libzia/
Date: Tue, 11 Oct 2022 05:34:02 +0000 (UTC)	[thread overview]
Message-ID: <1665466425.9c5cb3e5ae603af9a954b70a122bbe0c974f75d2.tomjbe@gentoo> (raw)

commit:     9c5cb3e5ae603af9a954b70a122bbe0c974f75d2
Author:     Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
AuthorDate: Tue Oct 11 05:31:54 2022 +0000
Commit:     Thomas Beierlein <tomjbe <AT> gentoo <DOT> org>
CommitDate: Tue Oct 11 05:33:45 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c5cb3e5

dev-libs/libzia: Fix build with MUSL

Closes: https://bugs.gentoo.org/832235
Signed-off-by: Thomas Beierlein <tomjbe <AT> gentoo.org>

 dev-libs/libzia/libzia-4.34.ebuild | 10 ++++++++--
 dev-libs/libzia/libzia-4.36.ebuild | 10 ++++++++--
 2 files changed, 16 insertions(+), 4 deletions(-)

diff --git a/dev-libs/libzia/libzia-4.34.ebuild b/dev-libs/libzia/libzia-4.34.ebuild
index 7d83b69f0dae..e877cfb8b8ca 100644
--- a/dev-libs/libzia/libzia-4.34.ebuild
+++ b/dev-libs/libzia/libzia-4.34.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit autotools
+inherit autotools flag-o-matic
 
 DESCRIPTION="Platform abstraction code for tucnak package"
 HOMEPAGE="http://tucnak.nagano.cz"
@@ -18,7 +18,8 @@ RDEPEND="dev-libs/glib:2
 	x11-libs/gtk+:2
 	media-libs/libsdl
 	media-libs/libpng:0
-	ftdi? ( dev-embedded/libftdi:1 )"
+	ftdi? ( dev-embedded/libftdi:1 )
+	elibc_musl? ( sys-libs/libunwind )"
 DEPEND="${RDEPEND}"
 BDEPEND="virtual/pkgconfig"
 
@@ -32,10 +33,15 @@ src_prepare() {
 	# Fix QA-Warning "QA Notice: pkg-config files with wrong LDFLAGS detected"
 	sed -i -e 's/@LDFLAGS@//' libzia.pc.in || die
 
+	# fix build for MUSL (bug #832235)
+	if use elibc_musl ; then
+		sed -i -e "s/ backtrace(/ unw_backtrace(/" src/zbfd.c || die
+	fi
 	eautoreconf
 }
 
 src_configure() {
+	use elibc_musl && append-libs -lunwind
 	econf \
 		$(use_with ftdi) --with-sdl \
 		--with-png --without-bfd \

diff --git a/dev-libs/libzia/libzia-4.36.ebuild b/dev-libs/libzia/libzia-4.36.ebuild
index 7d83b69f0dae..e877cfb8b8ca 100644
--- a/dev-libs/libzia/libzia-4.36.ebuild
+++ b/dev-libs/libzia/libzia-4.36.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit autotools
+inherit autotools flag-o-matic
 
 DESCRIPTION="Platform abstraction code for tucnak package"
 HOMEPAGE="http://tucnak.nagano.cz"
@@ -18,7 +18,8 @@ RDEPEND="dev-libs/glib:2
 	x11-libs/gtk+:2
 	media-libs/libsdl
 	media-libs/libpng:0
-	ftdi? ( dev-embedded/libftdi:1 )"
+	ftdi? ( dev-embedded/libftdi:1 )
+	elibc_musl? ( sys-libs/libunwind )"
 DEPEND="${RDEPEND}"
 BDEPEND="virtual/pkgconfig"
 
@@ -32,10 +33,15 @@ src_prepare() {
 	# Fix QA-Warning "QA Notice: pkg-config files with wrong LDFLAGS detected"
 	sed -i -e 's/@LDFLAGS@//' libzia.pc.in || die
 
+	# fix build for MUSL (bug #832235)
+	if use elibc_musl ; then
+		sed -i -e "s/ backtrace(/ unw_backtrace(/" src/zbfd.c || die
+	fi
 	eautoreconf
 }
 
 src_configure() {
+	use elibc_musl && append-libs -lunwind
 	econf \
 		$(use_with ftdi) --with-sdl \
 		--with-png --without-bfd \


             reply	other threads:[~2022-10-11  5:34 UTC|newest]

Thread overview: 113+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-11  5:34 Thomas Beierlein [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-02-15 17:35 [gentoo-commits] repo/gentoo:master commit in: dev-libs/libzia/ Thomas Beierlein
2025-01-10  7:44 Thomas Beierlein
2024-12-28 13:03 Sam James
2024-12-28 12:27 Sam James
2024-10-26  9:40 Thomas Beierlein
2024-10-11 15:54 Thomas Beierlein
2024-09-05 12:22 Sam James
2024-09-05 12:22 Sam James
2024-07-29 13:43 Thomas Beierlein
2024-07-06  8:28 Thomas Beierlein
2024-06-22 14:40 Thomas Beierlein
2024-05-30 18:06 Thomas Beierlein
2024-05-29 11:47 Sam James
2024-05-29 11:47 Sam James
2024-05-28 17:16 Thomas Beierlein
2024-04-17  6:54 Sam James
2024-04-13  6:48 Arthur Zamarin
2024-04-12 17:21 Thomas Beierlein
2024-03-12  7:35 Thomas Beierlein
2024-03-12  7:35 Thomas Beierlein
2024-03-10 13:19 Sam James
2024-03-10 12:04 Arthur Zamarin
2024-01-31 14:15 Thomas Beierlein
2024-01-08 13:08 Thomas Beierlein
2024-01-08 13:08 Thomas Beierlein
2024-01-06  9:50 Michał Górny
2024-01-06  9:02 Sam James
2023-11-25 16:37 Thomas Beierlein
2023-11-09 20:09 Thomas Beierlein
2023-11-09 20:09 Thomas Beierlein
2023-11-08 20:23 Arthur Zamarin
2023-11-08 20:23 Arthur Zamarin
2023-10-03 14:57 Thomas Beierlein
2023-07-29  2:24 Sam James
2023-07-28 18:56 Sam James
2023-06-18 11:06 Thomas Beierlein
2023-06-13 17:26 Thomas Beierlein
2023-06-10 13:35 Sam James
2023-06-10 13:35 Sam James
2023-04-30 14:53 Thomas Beierlein
2023-03-27 11:54 Thomas Beierlein
2023-03-27 11:54 Thomas Beierlein
2023-01-29 15:48 Thomas Beierlein
2023-01-28 17:41 Arthur Zamarin
2023-01-28 17:04 Jakov Smolić
2022-12-22  7:53 Thomas Beierlein
2022-12-21 13:39 Thomas Beierlein
2022-10-24 17:00 Thomas Beierlein
2022-07-07 19:44 Sam James
2022-07-07 19:44 Sam James
2022-05-05  6:04 Thomas Beierlein
2022-05-05  5:55 Thomas Beierlein
2022-01-29 21:54 Jakov Smolić
2022-01-29 21:42 Jakov Smolić
2021-12-24  8:26 Thomas Beierlein
2021-12-23 11:47 Thomas Beierlein
2021-11-11 17:57 Jakov Smolić
2021-10-10 17:18 Thomas Beierlein
2021-09-26 14:57 Thomas Beierlein
2021-09-25 23:46 Sam James
2021-09-24 22:47 Sam James
2021-07-15  5:26 Thomas Beierlein
2021-06-29 18:05 Thomas Beierlein
2021-06-18 21:07 David Seifert
2021-05-30  0:06 Sam James
2021-05-30  0:06 Sam James
2021-05-29 17:51 Thomas Beierlein
2021-04-27 18:07 Thomas Beierlein
2021-04-17 18:10 Thomas Beierlein
2021-04-17 18:10 Thomas Beierlein
2021-03-28 18:18 Sam James
2021-03-28 18:18 Sam James
2021-02-04 18:15 Thomas Beierlein
2020-12-28 16:25 Thomas Beierlein
2020-12-25 14:49 Thomas Beierlein
2020-12-13 18:57 Thomas Beierlein
2020-11-20  1:34 Thomas Deutschmann
2020-11-19 22:58 Sam James
2020-10-07  7:09 Agostino Sarubbo
2020-10-07  6:42 Agostino Sarubbo
2020-09-26 11:44 Thomas Beierlein
2020-08-28 16:27 Thomas Beierlein
2020-07-22 13:23 Thomas Beierlein
2020-07-22 13:23 Thomas Beierlein
2020-07-19 12:18 Agostino Sarubbo
2020-07-17 15:17 Agostino Sarubbo
2020-07-08 16:04 Thomas Beierlein
2020-05-23 14:48 Thomas Beierlein
2020-04-25 16:32 Thomas Beierlein
2020-04-13 10:20 Agostino Sarubbo
2020-04-13  8:58 Agostino Sarubbo
2020-01-31 12:29 Thomas Beierlein
2020-01-21 18:18 Thomas Beierlein
2020-01-21 18:14 Thomas Beierlein
2019-12-30 12:29 Agostino Sarubbo
2019-12-26 18:45 Agostino Sarubbo
2019-10-27 17:21 Thomas Beierlein
2019-09-03  5:32 Thomas Beierlein
2019-09-03  5:32 Thomas Beierlein
2019-08-23 10:37 Agostino Sarubbo
2019-08-23 10:03 Agostino Sarubbo
2019-05-20 11:18 Mikle Kolyada
2019-05-19 15:48 Thomas Deutschmann
2019-04-19 13:13 Thomas Beierlein
2019-04-19 13:13 Thomas Beierlein
2018-12-04 17:36 Thomas Beierlein
2018-12-04 17:06 Mikle Kolyada
2018-11-27 21:55 Thomas Deutschmann
2018-07-14  8:13 Thomas Beierlein
2018-06-16 11:10 Thomas Beierlein
2017-12-19 13:48 Jason Zaman
2017-10-13 13:23 Thomas Beierlein

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=1665466425.9c5cb3e5ae603af9a954b70a122bbe0c974f75d2.tomjbe@gentoo \
    --to=tomjbe@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