summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Beierlein <tomjbe@gentoo.org>2022-10-11 07:31:54 +0200
committerThomas Beierlein <tomjbe@gentoo.org>2022-10-11 07:33:45 +0200
commit9c5cb3e5ae603af9a954b70a122bbe0c974f75d2 (patch)
tree7122e38cebf71ecf789f1ec0a8a562ae8ef6d1cb /dev-libs/libzia
parentdev-ruby/rspec-rails: add 6.0.0 (diff)
downloadgentoo-9c5cb3e5ae603af9a954b70a122bbe0c974f75d2.tar.gz
gentoo-9c5cb3e5ae603af9a954b70a122bbe0c974f75d2.tar.bz2
gentoo-9c5cb3e5ae603af9a954b70a122bbe0c974f75d2.zip
dev-libs/libzia: Fix build with MUSL
Closes: https://bugs.gentoo.org/832235 Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>
Diffstat (limited to 'dev-libs/libzia')
-rw-r--r--dev-libs/libzia/libzia-4.34.ebuild10
-rw-r--r--dev-libs/libzia/libzia-4.36.ebuild10
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 \