summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2017-06-08 19:05:54 +0100
committerSergei Trofimovich <slyfox@gentoo.org>2017-06-08 19:08:42 +0100
commit8b9209b71f8b151cf6dfdd20539dfdcd1bf31b63 (patch)
tree0b3955480a9587b10289c172a0b26eb95536635c /media-libs/audiofile
parentdev-ml/ocaml-cstruct: bump to 3.0.0 (diff)
downloadgentoo-8b9209b71f8b151cf6dfdd20539dfdcd1bf31b63.tar.gz
gentoo-8b9209b71f8b151cf6dfdd20539dfdcd1bf31b63.tar.bz2
gentoo-8b9209b71f8b151cf6dfdd20539dfdcd1bf31b63.zip
media-libs/audiofile: fix mingw32 build
Pick upstream patch for s/bzero()/memset()/ Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'media-libs/audiofile')
-rw-r--r--media-libs/audiofile/audiofile-0.3.6-r3.ebuild1
-rw-r--r--media-libs/audiofile/files/audiofile-0.3.6-mingw32.patch20
2 files changed, 21 insertions, 0 deletions
diff --git a/media-libs/audiofile/audiofile-0.3.6-r3.ebuild b/media-libs/audiofile/audiofile-0.3.6-r3.ebuild
index 036e5f2b0430..c61e55f0a423 100644
--- a/media-libs/audiofile/audiofile-0.3.6-r3.ebuild
+++ b/media-libs/audiofile/audiofile-0.3.6-r3.ebuild
@@ -22,6 +22,7 @@ PATCHES=(
"${FILESDIR}"/${PN}-0.3.6-gcc6-build-fixes.patch
"${FILESDIR}"/${PN}-0.3.6-system-gtest.patch
"${FILESDIR}"/${PN}-0.3.6-CVE-2015-7747.patch
+ "${FILESDIR}"/${PN}-0.3.6-mingw32.patch
)
src_prepare() {
diff --git a/media-libs/audiofile/files/audiofile-0.3.6-mingw32.patch b/media-libs/audiofile/files/audiofile-0.3.6-mingw32.patch
new file mode 100644
index 000000000000..8ed7cb0534ff
--- /dev/null
+++ b/media-libs/audiofile/files/audiofile-0.3.6-mingw32.patch
@@ -0,0 +1,20 @@
+bzero() is a POSIX-specific fuinction.
+x86_64-w64-mingw32-gcc does not provide one.
+
+https://github.com/mpruett/audiofile/commit/d9363a5d16af4ce55eb35c5aad9ca19bb9c53cbe
+
+commit d9363a5d16af4ce55eb35c5aad9ca19bb9c53cbe
+Author: Daniel Verkamp <daniel@drv.nu>
+Date: Mon Jul 4 21:57:44 2016 -0500
+
+ Replace bzero() with memset().
+
+diff --git a/libaudiofile/CAF.cpp b/libaudiofile/CAF.cpp
+index d2b62ea..5752117 100644
+--- a/libaudiofile/CAF.cpp
++++ b/libaudiofile/CAF.cpp
+@@ -720,3 +720,3 @@ void CAFFile::initALACCompressionParams()
+ m_codecData = new Buffer(codecDataSize);
+- bzero(m_codecData->data(), m_codecData->size());
++ memset(m_codecData->data(), 0, m_codecData->size());
+