diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-05-10 00:01:14 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-05-10 00:01:14 +0100 |
commit | 17e5f1ea4a2e1c5664f96480ca46348d008e8711 (patch) | |
tree | 7166d1b58a582290a4ad23ff5882cca911b8035c /media-libs/audiofile | |
parent | a0ce545d52f231499bf9f3644493113d8af58ec9 (diff) |
gentoo auto-resync : 10:05:2024 - 00:01:13
Diffstat (limited to 'media-libs/audiofile')
-rw-r--r-- | media-libs/audiofile/Manifest | 2 | ||||
-rw-r--r-- | media-libs/audiofile/audiofile-0.3.6-r6.ebuild | 59 | ||||
-rw-r--r-- | media-libs/audiofile/files/audiofile-0.3.6-clang-deprecation.patch | 69 |
3 files changed, 130 insertions, 0 deletions
diff --git a/media-libs/audiofile/Manifest b/media-libs/audiofile/Manifest index 1175cf17f759..39b8c26e0311 100644 --- a/media-libs/audiofile/Manifest +++ b/media-libs/audiofile/Manifest @@ -1,9 +1,11 @@ AUX audiofile-0.3.6-CVE-2015-7747.patch 4286 BLAKE2B 407ed02b63a8164324bbf2bcecc3533b711ebc3ffd44896f26a286496d01490b35efe8a4ea9b00eed69a484deb2516157bb23de94eb00e19f79cb8782f5ba33b SHA512 5def88fec10355224716783c84933c2b3adfc7608635b8d352c0728bf0e7765d146addaecf13a4f650a95f6aeb8f528ee1e8cfa785c1cdae3f6d75552e46faba AUX audiofile-0.3.6-CVE-2017-68xx.patch 12634 BLAKE2B d66ef71b5ce0d8b7356c856eb9496443918892c638213b836dbf83f79e5689e4e8b66533eeb65ad0e9b4668a745ae0a2b89a6f627a90311671e349a5ebc3aee8 SHA512 11259f5cf2de2b13836696cd045e78ad4a2a0c4ecf24d59152b99f01fdead97b1b7877728868538355440f4460e9b0f8a9399fe4ac348de658cbc2fb9f5ace52 AUX audiofile-0.3.6-CVE-2018-13440-CVE-2018-17095.patch 2702 BLAKE2B f56d2bd5651193984e00904ff916c4d1658d49da4db531d8cfa43b936857dc4ed142e83114890dc59f1c7a1b8d5cdf07127465ec9851323e50c37bd6045a7c07 SHA512 0fc8252ddab1430e960551093de1f4d5dc281440b0a583dde8ecf7ef3e6bad78667c049957cac24a2ff8731a22090d998406a6e4e84d80a9e2d5580663cd1f67 +AUX audiofile-0.3.6-clang-deprecation.patch 1964 BLAKE2B 0180012b4e6d75b4144ae4b51d990d3251963f72769ded1d1663bc89e28afa18a93b9c6282ad16da604058ae17d0ca11cf9cf804101bbbf68138857523f3f5e4 SHA512 c1bbee46aae5179ef8421e6de548520d8590f80efdbfab0ef42247869798ab5b82b90bc0a4a0f07effba30ca840542c031c79c2072f4404bb64ed2c7a57567b1 AUX audiofile-0.3.6-gcc6-build-fixes.patch 3785 BLAKE2B 7f016bfa9af8a440e31bcc395c654c9bb25a1d914a6b57bc191ad36e55ca191f924d57d48834a05ea30913ddd744056e244654a96529b1c3632ef5b162252c76 SHA512 60837bcc9aa53d546708210e87a4f24db56c8a4b0c6896c8e39e0d213aafa15f59a65a60726e6abbf16681fc1fa6ca59cf1748a63caf5ff2652d55f10f62a976 AUX audiofile-0.3.6-mingw32.patch 687 BLAKE2B dec0680a401890f64a659a7303b089d03a40001d2b73da66c174663f818e5e72b7b8985e8fa220c15685b4cd857ba24cefb341c95059a4d9e10ae81a580a8f50 SHA512 b568b189f7316a41c724b02ee881adcdcb0e01fe22d4d6adc82fefef3296c34822943ec1cb299169dfd8fcdac9c260e1dd69fc9b5b6b4058382cc2f246c382f8 AUX audiofile-0.3.6-strict-prototypes.patch 2339 BLAKE2B ff14877c949bdb218ddd75ee95a0ddcd4014838d461fd19dc2c62feee2c1d3cb2796b12945b172d1a41a137dc197538f68e6e5280f67b39e698d22b46ee5b001 SHA512 26fd421be981208a18bd970054efc50e5b370937af9cd972e7a9206e3b92f389032808e4207726d17807e0c60cdc562826a77c288d85c0ae06534f7f036e2d78 DIST audiofile-0.3.6.tar.xz 530760 BLAKE2B 5263e66b92471c8b7e8ad73a5065966fc93fd92d70481df804451353bafe44d670ec48b183bc19a7ac60025ea73b234d6aef1017fb220c16d14c68a27db027e4 SHA512 f3b58210a4ef3ac8e08a368a78e0f4b8345456d084bdebfd20d1631fa75e562aa58d31863a502b6ff18178327aa5b87403566bd34566fa52bdfc8e01de400bcb EBUILD audiofile-0.3.6-r5.ebuild 1500 BLAKE2B c3232545abbe95cb22e6b888bcb7d7bc0e0c16df9dcd870267f7c9f12f998ba184746ea8da5595a4b8a58377a2833ae102fad4b4694e7748a1872e11ea9ffa16 SHA512 56a1b26e1602e62b92bc8a12b228f6b0d9d74d2a94d51124895292f8ef34e278b8477314800b8c28ec0f98cc2d518b87553b226708f13bb9012be7c01960a88b +EBUILD audiofile-0.3.6-r6.ebuild 1558 BLAKE2B e785bcac71fd7d644e37b2f019235a134432ddfde7aab26ea7b6de9df57688cabb3bc49d1b2448acdfaffc76be1947c244ea8979912d22d7c91d5ef6218bf7f0 SHA512 e4f3bb7cae2aeb371b2d9d8d136454948c63642bf4e72e5e61476ea03b2016c1027d620c172cf9f604ae3239649fdb09064dd3601fdd1ec63ac06e1f2f502d54 MISC metadata.xml 336 BLAKE2B 18b66d291c0365b27f19c51c65e78aa7b2c205a2a5283c9e80ed0e76f38ad360b84f63957776a22bf104e06a4512c1ee68f34166c6287cf480627dadffda8cf6 SHA512 dc6c56768595088eb45ef8ce040bd95e7fff676ec410909b6f79250cb04daa523fd03cb9a827dfd9fbb10d2fe50dcfe6a070dbf877d790f5d74439f34a217d82 diff --git a/media-libs/audiofile/audiofile-0.3.6-r6.ebuild b/media-libs/audiofile/audiofile-0.3.6-r6.ebuild new file mode 100644 index 000000000000..e9ff8016277a --- /dev/null +++ b/media-libs/audiofile/audiofile-0.3.6-r6.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools gnome.org multilib-minimal + +DESCRIPTION="An elegant API for accessing audio files" +HOMEPAGE="https://audiofile.68k.org/" + +LICENSE="GPL-2 LGPL-2.1" +SLOT="0/1" # subslot = soname major version +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos" +IUSE="flac" + +RDEPEND="flac? ( >=media-libs/flac-1.2.1:=[${MULTILIB_USEDEP}] )" +DEPEND="${RDEPEND}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-0.3.6-gcc6-build-fixes.patch + "${FILESDIR}"/${PN}-0.3.6-CVE-2015-7747.patch + "${FILESDIR}"/${PN}-0.3.6-mingw32.patch + "${FILESDIR}"/${PN}-0.3.6-CVE-2017-68xx.patch + "${FILESDIR}"/${PN}-0.3.6-CVE-2018-13440-CVE-2018-17095.patch + "${FILESDIR}"/${PN}-0.3.6-strict-prototypes.patch + "${FILESDIR}"/${PN}-0.3.6-clang-deprecation.patch +) + +src_prepare() { + default + eautoreconf +} + +multilib_src_configure() { + # Tests depend on statically compiled binaries to work, so we'll have to + # delete them later rather than not compile them at all + local myconf=( + --enable-largefile + # static needed for tests, bug #869677 + --enable-static + --disable-werror + --disable-examples + $(use_enable flac) + ) + ECONF_SOURCE="${S}" econf "${myconf[@]}" +} + +multilib_src_test() { + emake check +} + +multilib_src_install_all() { + einstalldocs + + # package provides .pc file + find "${ED}" -name '*.la' -delete || die + find "${ED}" -name '*.a' -delete || die +} diff --git a/media-libs/audiofile/files/audiofile-0.3.6-clang-deprecation.patch b/media-libs/audiofile/files/audiofile-0.3.6-clang-deprecation.patch new file mode 100644 index 000000000000..1fd2655d2e80 --- /dev/null +++ b/media-libs/audiofile/files/audiofile-0.3.6-clang-deprecation.patch @@ -0,0 +1,69 @@ +https://github.com/mpruett/audiofile/issues/65 +https://bugs.gentoo.org/914349 +--- a/libaudiofile/modules/SimpleModule.h ++++ b/libaudiofile/modules/SimpleModule.h +@@ -125,13 +125,17 @@ struct signConverter + static const int kScaleBits = (Format + 1) * CHAR_BIT - 1; + static const int kMinSignedValue = -1 << kScaleBits; + +- struct signedToUnsigned : public std::unary_function<SignedType, UnsignedType> ++ struct signedToUnsigned + { ++ typedef SignedType argument_type; ++ typedef UnsignedType result_type; + UnsignedType operator()(SignedType x) { return x - kMinSignedValue; } + }; + +- struct unsignedToSigned : public std::unary_function<SignedType, UnsignedType> ++ struct unsignedToSigned + { ++ typedef SignedType argument_type; ++ typedef UnsignedType result_type; + SignedType operator()(UnsignedType x) { return x + kMinSignedValue; } + }; + }; +@@ -323,8 +327,10 @@ private: + }; + + template <typename Arg, typename Result> +-struct intToFloat : public std::unary_function<Arg, Result> ++struct intToFloat + { ++ typedef Arg argument_type; ++ typedef Result result_type; + Result operator()(Arg x) const { return x; } + }; + +@@ -389,14 +395,18 @@ private: + }; + + template <typename Arg, typename Result, unsigned shift> +-struct lshift : public std::unary_function<Arg, Result> ++struct lshift + { ++ typedef Arg argument_type; ++ typedef Result result_type; + Result operator()(const Arg &x) const { return x << shift; } + }; + + template <typename Arg, typename Result, unsigned shift> +-struct rshift : public std::unary_function<Arg, Result> ++struct rshift + { ++ typedef Arg argument_type; ++ typedef Result result_type; + Result operator()(const Arg &x) const { return x >> shift; } + }; + +@@ -491,8 +501,10 @@ private: + }; + + template <typename Arg, typename Result> +-struct floatToFloat : public std::unary_function<Arg, Result> ++struct floatToFloat + { ++ typedef Arg argument_type; ++ typedef Result result_type; + Result operator()(Arg x) const { return x; } + }; + |