* [gentoo-commits] repo/gentoo:master commit in: media-libs/libmp4v2/files/, media-libs/libmp4v2/
@ 2017-06-19 16:16 Alexis Ballier
0 siblings, 0 replies; 2+ messages in thread
From: Alexis Ballier @ 2017-06-19 16:16 UTC (permalink / raw
To: gentoo-commits
commit: 8c6cbd5792afee41a77f740ec53459de27bd6650
Author: Alexis Ballier <aballier <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 19 16:15:50 2017 +0000
Commit: Alexis Ballier <aballier <AT> gentoo <DOT> org>
CommitDate: Mon Jun 19 16:16:06 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8c6cbd57
media-libs/libmp4v2: Fix build with gcc7, patch by Collin Day in bug #600892
Package-Manager: Portage-2.3.6, Repoman-2.3.2
media-libs/libmp4v2/files/gcc7.patch | 13 +++++++++++++
media-libs/libmp4v2/libmp4v2-2.0.0.ebuild | 5 +++--
2 files changed, 16 insertions(+), 2 deletions(-)
diff --git a/media-libs/libmp4v2/files/gcc7.patch b/media-libs/libmp4v2/files/gcc7.patch
new file mode 100644
index 00000000000..fbfae97e58c
--- /dev/null
+++ b/media-libs/libmp4v2/files/gcc7.patch
@@ -0,0 +1,13 @@
+https://bugs.gentoo.org/show_bug.cgi?id=600892
+
+--- mp4v2-2.0.0/src/rtphint.cpp 2012-05-20 16:11:53.000000000 -0600
++++ /tmp/rtphint.cpp 2017-05-16 10:25:26.930705191 -0600
+@@ -339,7 +339,7 @@
+ pSlash = strchr(pSlash, '/');
+ if (pSlash != NULL) {
+ pSlash++;
+- if (pSlash != '\0') {
++ if (*pSlash != '\0') {
+ length = (uint32_t)strlen(pRtpMap) - (pSlash - pRtpMap);
+ *ppEncodingParams = (char *)MP4Calloc(length + 1);
+ strncpy(*ppEncodingParams, pSlash, length);
diff --git a/media-libs/libmp4v2/libmp4v2-2.0.0.ebuild b/media-libs/libmp4v2/libmp4v2-2.0.0.ebuild
index de5efb03d9e..b45b0b997ee 100644
--- a/media-libs/libmp4v2/libmp4v2-2.0.0.ebuild
+++ b/media-libs/libmp4v2/libmp4v2-2.0.0.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=4
-inherit libtool
+inherit libtool eutils
MY_P=${P/lib}
@@ -25,6 +25,7 @@ DOCS="doc/*.txt README"
S=${WORKDIR}/${MY_P}
src_prepare() {
+ epatch "${FILESDIR}/gcc7.patch"
elibtoolize
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: media-libs/libmp4v2/files/, media-libs/libmp4v2/
@ 2018-11-04 21:54 Andreas Sturmlechner
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Sturmlechner @ 2018-11-04 21:54 UTC (permalink / raw
To: gentoo-commits
commit: d3d96d6889dadd57403a98f1d3469308ca658373
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 4 21:50:31 2018 +0000
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
CommitDate: Sun Nov 4 21:53:23 2018 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d3d96d68
media-libs/libmp4v2: Fix build with clang
Thanks-to: David Carlos Manuelda <StormByte <AT> gmail.com>
Closes: https://bugs.gentoo.org/669148
Package-Manager: Portage-2.3.51, Repoman-2.3.12
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
.../libmp4v2/files/libmp4v2-2.0.0-clang.patch | 36 ++++++++++++++++++++++
.../files/libmp4v2-2.0.0-mp4tags-corruption.patch | 2 +-
media-libs/libmp4v2/libmp4v2-2.0.0-r1.ebuild | 7 +++--
3 files changed, 42 insertions(+), 3 deletions(-)
diff --git a/media-libs/libmp4v2/files/libmp4v2-2.0.0-clang.patch b/media-libs/libmp4v2/files/libmp4v2-2.0.0-clang.patch
new file mode 100644
index 00000000000..34aa81cc5e0
--- /dev/null
+++ b/media-libs/libmp4v2/files/libmp4v2-2.0.0-clang.patch
@@ -0,0 +1,36 @@
+From edc4f0ad8f37bb8aeae4e3ea34766dc6cdbb2f15 Mon Sep 17 00:00:00 2001
+From: David Carlos Manuelda <StormByte@gmail.com>
+Date: Tue, 7 Aug 2018 05:42:28 +0200
+Subject: [PATCH] Fix clang compilation
+
+---
+ src/mp4.cpp | 2 +-
+ src/mp4util.h | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/mp4.cpp b/src/mp4.cpp
+index 1016f79..d576103 100644
+--- a/src/mp4.cpp
++++ b/src/mp4.cpp
+@@ -896,7 +896,7 @@ MP4FileHandle MP4ReadProvider( const char* fileName, const MP4FileProvider* file
+ }
+
+ catch (...) {
+- return MP4_INVALID_TRACK_ID;
++ return (mp4v2_ismacrypParams *)MP4_INVALID_TRACK_ID;
+ }
+ }
+
+diff --git a/src/mp4util.h b/src/mp4util.h
+index 1fbbd81..b33bb44 100644
+--- a/src/mp4util.h
++++ b/src/mp4util.h
+@@ -33,7 +33,7 @@ namespace mp4v2 { namespace impl {
+ #ifndef ASSERT
+ # define ASSERT(expr) \
+ if (!(expr)) { \
+- throw new Exception("assert failure: "LIBMPV42_STRINGIFY((expr)), __FILE__, __LINE__, __FUNCTION__ ); \
++ throw new Exception("assert failure: " LIBMPV42_STRINGIFY((expr)), __FILE__, __LINE__, __FUNCTION__ ); \
+ }
+ #endif
+
\ No newline at end of file
diff --git a/media-libs/libmp4v2/files/libmp4v2-2.0.0-mp4tags-corruption.patch b/media-libs/libmp4v2/files/libmp4v2-2.0.0-mp4tags-corruption.patch
index 1c41a41da98..182d41bb812 100644
--- a/media-libs/libmp4v2/files/libmp4v2-2.0.0-mp4tags-corruption.patch
+++ b/media-libs/libmp4v2/files/libmp4v2-2.0.0-mp4tags-corruption.patch
@@ -17,4 +17,4 @@ index 1b9e866..80e89d4 100644
+ break;
}
case OPT_ALBUM_ARTIST:
- MP4TagsSetAlbumArtist( mdata, tags[i] );
\ No newline at end of file
+ MP4TagsSetAlbumArtist( mdata, tags[i] );
diff --git a/media-libs/libmp4v2/libmp4v2-2.0.0-r1.ebuild b/media-libs/libmp4v2/libmp4v2-2.0.0-r1.ebuild
index 9f5cac1bf14..35c8f626279 100644
--- a/media-libs/libmp4v2/libmp4v2-2.0.0-r1.ebuild
+++ b/media-libs/libmp4v2/libmp4v2-2.0.0-r1.ebuild
@@ -15,9 +15,11 @@ SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~x86-solaris"
IUSE="static-libs test utils"
-BDEPEND="sys-apps/sed
+BDEPEND="
+ sys-apps/sed
+ test? ( dev-util/dejagnu )
utils? ( sys-apps/help2man )
- test? ( dev-util/dejagnu )"
+"
DOCS=( doc/{Authors,BuildSource,Documentation,ReleaseNotes,ToolGuide}.txt README )
@@ -26,6 +28,7 @@ S=${WORKDIR}/${MY_P}
PATCHES=(
"${FILESDIR}/${P}-gcc7.patch"
"${FILESDIR}/${P}-mp4tags-corruption.patch"
+ "${FILESDIR}/${P}-clang.patch"
)
src_prepare() {
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-11-04 21:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-06-19 16:16 [gentoo-commits] repo/gentoo:master commit in: media-libs/libmp4v2/files/, media-libs/libmp4v2/ Alexis Ballier
-- strict thread matches above, loose matches on Subject: below --
2018-11-04 21:54 Andreas Sturmlechner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox