diff options
author | Eric Sandall | 2020-09-01 19:19:49 -0700 |
---|---|---|
committer | Eric Sandall | 2020-09-01 19:19:49 -0700 |
commit | 4da83bdbce4a8ee086cf95edeb1a7fd2ffbbd2a9 (patch) | |
tree | 0bd6d953b5773f49128c65299dcf49685d9c459d /audio-libs | |
parent | 563cd1f306ea7c62ef2a01c4b1aca58f5bfc6d9d (diff) |
mp4v2: Apply libmp4v2-2.0.0-narrowing-cast.patch
Now compiles against modern GCC.
libmp4v2-2.0.0-narrowing-cast.patch: From https://bugs.gentoo.org/723098
Diffstat (limited to 'audio-libs')
-rw-r--r-- | audio-libs/mp4v2/HISTORY | 5 | ||||
-rwxr-xr-x | audio-libs/mp4v2/PRE_BUILD | 1 | ||||
-rw-r--r-- | audio-libs/mp4v2/libmp4v2-2.0.0-narrowing-cast.patch | 98 |
3 files changed, 104 insertions, 0 deletions
diff --git a/audio-libs/mp4v2/HISTORY b/audio-libs/mp4v2/HISTORY index 36420da79a..c83d44db66 100644 --- a/audio-libs/mp4v2/HISTORY +++ b/audio-libs/mp4v2/HISTORY @@ -1,3 +1,8 @@ +2020-09-01 Eric Sandall <sandalle@sourcemage.org> + * PRE_BUILD: Apply libmp4v2-2.0.0-narrowing-cast.patch + Now compiles against modern GCC. + * libmp4v2-2.0.0-narrowing-cast.patch: From https://bugs.gentoo.org/723098 + 2019-06-25 Ismael Luceno <ismael@sourcemage.org> * PRE_BUILD: Fixed build against musl diff --git a/audio-libs/mp4v2/PRE_BUILD b/audio-libs/mp4v2/PRE_BUILD index 12c4a2a658..5d1a0a62ea 100755 --- a/audio-libs/mp4v2/PRE_BUILD +++ b/audio-libs/mp4v2/PRE_BUILD @@ -1,3 +1,4 @@ default_pre_build && cd "$SOURCE_DIRECTORY" && +patch -p1 < "${SPELL_DIRECTORY}/libmp4v2-2.0.0-narrowing-cast.patch" && sedit 's!maybe_os in$!& linux-musl*|\\!' autoaux/config.sub diff --git a/audio-libs/mp4v2/libmp4v2-2.0.0-narrowing-cast.patch b/audio-libs/mp4v2/libmp4v2-2.0.0-narrowing-cast.patch new file mode 100644 index 0000000000..96cd042b08 --- /dev/null +++ b/audio-libs/mp4v2/libmp4v2-2.0.0-narrowing-cast.patch @@ -0,0 +1,98 @@ +# From https://bugs.gentoo.org/723098 +From a5ca35b044bbf13c0b16f0066bf24646604bb218 Mon Sep 17 00:00:00 2001 +From: "Jason A. Donenfeld" <Jason@zx2c4.com> +Date: Thu, 6 Aug 2020 15:22:04 +0200 +Subject: [PATCH] Static cast to unsigned int for cases + +Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com> +--- + libutil/Utility.cpp | 2 +- + util/mp4art.cpp | 2 +- + util/mp4chaps.cpp | 2 +- + util/mp4file.cpp | 2 +- + util/mp4subtitle.cpp | 2 +- + util/mp4track.cpp | 2 +- + 6 files changed, 6 insertions(+), 6 deletions(-) + +diff --git a/libutil/Utility.cpp b/libutil/Utility.cpp +index 76cdd12..d6739d4 100644 +--- a/libutil/Utility.cpp ++++ b/libutil/Utility.cpp +@@ -493,7 +493,7 @@ Utility::process_impl() + if( codes.find( code ) == codes.end() ) + continue; + +- switch( code ) { ++ switch( static_cast<unsigned int>( code ) ) { + case 'z': + _optimize = true; + break; +diff --git a/util/mp4art.cpp b/util/mp4art.cpp +index add935e..6e7f531 100644 +--- a/util/mp4art.cpp ++++ b/util/mp4art.cpp +@@ -376,7 +376,7 @@ ArtUtility::utility_option( int code, bool& handled ) + { + handled = true; + +- switch( code ) { ++ switch( static_cast<unsigned int> ( code ) ) { + case LC_ART_ANY: + _artFilter = numeric_limits<uint32_t>::max(); + break; +diff --git a/util/mp4chaps.cpp b/util/mp4chaps.cpp +index 98400f8..ccc8b70 100644 +--- a/util/mp4chaps.cpp ++++ b/util/mp4chaps.cpp +@@ -632,7 +632,7 @@ ChapterUtility::utility_option( int code, bool& handled ) + { + handled = true; + +- switch( code ) { ++ switch( static_cast<unsigned int> ( code ) ) { + case 'A': + case LC_CHPT_ANY: + _ChapterType = MP4ChapterTypeAny; +diff --git a/util/mp4file.cpp b/util/mp4file.cpp +index c27844b..b127cd1 100644 +--- a/util/mp4file.cpp ++++ b/util/mp4file.cpp +@@ -189,7 +189,7 @@ FileUtility::utility_option( int code, bool& handled ) + { + handled = true; + +- switch( code ) { ++ switch( static_cast<unsigned int>( code ) ) { + case LC_LIST: + _action = &FileUtility::actionList; + break; +diff --git a/util/mp4subtitle.cpp b/util/mp4subtitle.cpp +index 7462153..19d977d 100644 +--- a/util/mp4subtitle.cpp ++++ b/util/mp4subtitle.cpp +@@ -164,7 +164,7 @@ SubtitleUtility::utility_option( int code, bool& handled ) + { + handled = true; + +- switch( code ) { ++ switch( static_cast<unsigned int>( code ) ) { + case LC_LIST: + _action = &SubtitleUtility::actionList; + break; +diff --git a/util/mp4track.cpp b/util/mp4track.cpp +index d550506..cd63d7e 100644 +--- a/util/mp4track.cpp ++++ b/util/mp4track.cpp +@@ -788,7 +788,7 @@ TrackUtility::utility_option( int code, bool& handled ) + { + handled = true; + +- switch( code ) { ++ switch( static_cast<unsigned int>( code ) ) { + case LC_TRACK_WILDCARD: + _trackMode = TM_WILDCARD; + break; +-- +2.28.0 + + |