summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-12-01 14:08:56 +0000
committerSam James <sam@gentoo.org>2024-12-01 14:08:56 +0000
commit0e58fb7e99c863223ea44951fe0646a4d69a049f (patch)
tree6b5a7e404c2d92123ed78e9b2f4e39ce25670618 /media-libs/libsndfile
parentnet-dns/dnsmasq: build w/ -std=gnu17 (diff)
downloadgentoo-0e58fb7e99c863223ea44951fe0646a4d69a049f.tar.gz
gentoo-0e58fb7e99c863223ea44951fe0646a4d69a049f.tar.bz2
gentoo-0e58fb7e99c863223ea44951fe0646a4d69a049f.zip
media-libs/libsndfile: build w/ -std=gnu17
Bug: https://github.com/libsndfile/libsndfile/issues/1049 Closes: https://bugs.gentoo.org/943864 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'media-libs/libsndfile')
-rw-r--r--media-libs/libsndfile/libsndfile-1.2.2-r2.ebuild9
-rw-r--r--media-libs/libsndfile/libsndfile-9999.ebuild9
2 files changed, 16 insertions, 2 deletions
diff --git a/media-libs/libsndfile/libsndfile-1.2.2-r2.ebuild b/media-libs/libsndfile/libsndfile-1.2.2-r2.ebuild
index dc08adbb90a0..cc757814a3f7 100644
--- a/media-libs/libsndfile/libsndfile-1.2.2-r2.ebuild
+++ b/media-libs/libsndfile/libsndfile-1.2.2-r2.ebuild
@@ -12,7 +12,7 @@ else
SRC_URI="https://github.com/libsndfile/libsndfile/releases/download/${PV}/${P}.tar.xz"
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
fi
-inherit python-any-r1 multilib-minimal
+inherit flag-o-matic python-any-r1 multilib-minimal
DESCRIPTION="C library for reading and writing files containing sampled sound"
HOMEPAGE="https://libsndfile.github.io/libsndfile/"
@@ -49,6 +49,13 @@ src_prepare() {
[[ ${PV} == *9999 ]] && eautoreconf
}
+src_configure() {
+ # https://github.com/libsndfile/libsndfile/issues/1049 (bug #943864)
+ append-cflags -std=gnu17
+
+ multilib-minimal_src_configure
+}
+
multilib_src_configure() {
ECONF_SOURCE="${S}" econf \
--disable-octave \
diff --git a/media-libs/libsndfile/libsndfile-9999.ebuild b/media-libs/libsndfile/libsndfile-9999.ebuild
index d75e3910471e..f32a95a3585c 100644
--- a/media-libs/libsndfile/libsndfile-9999.ebuild
+++ b/media-libs/libsndfile/libsndfile-9999.ebuild
@@ -12,7 +12,7 @@ else
SRC_URI="https://github.com/libsndfile/libsndfile/releases/download/${PV}/${P}.tar.xz"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris"
fi
-inherit python-any-r1 multilib-minimal
+inherit flag-o-matic python-any-r1 multilib-minimal
DESCRIPTION="C library for reading and writing files containing sampled sound"
HOMEPAGE="https://libsndfile.github.io/libsndfile/"
@@ -49,6 +49,13 @@ src_prepare() {
[[ ${PV} == *9999 ]] && eautoreconf
}
+src_configure() {
+ # https://github.com/libsndfile/libsndfile/issues/1049 (bug #943864)
+ append-cflags -std=gnu17
+
+ multilib-minimal_src_configure
+}
+
multilib_src_configure() {
ECONF_SOURCE="${S}" econf \
--disable-octave \