diff options
author | Alexis Ballier <aballier@gentoo.org> | 2017-06-16 12:37:04 +0200 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2017-06-16 12:37:04 +0200 |
commit | 96b4b793f5825acbd0c2406ce306b29759afb95c (patch) | |
tree | a15f99b1df970117a70e1fc5871e97134fa88dc7 /media-libs/libid3tag | |
parent | media-libs/libid3tag: keyword ~arm64 (diff) | |
download | gentoo-96b4b793f5825acbd0c2406ce306b29759afb95c.tar.gz gentoo-96b4b793f5825acbd0c2406ce306b29759afb95c.tar.bz2 gentoo-96b4b793f5825acbd0c2406ce306b29759afb95c.zip |
media-libs/libid3tag: Fix build with gperf 3.1.
https://bugs.gentoo.org/show_bug.cgi?id=605158
By Mihai Moldovan.
Package-Manager: Portage-2.3.6, Repoman-2.3.2
Diffstat (limited to 'media-libs/libid3tag')
-rw-r--r-- | media-libs/libid3tag/files/libid3tag-0.15.1b-fix-signature.patch | 12 | ||||
-rw-r--r-- | media-libs/libid3tag/libid3tag-0.15.1b-r4.ebuild | 4 |
2 files changed, 16 insertions, 0 deletions
diff --git a/media-libs/libid3tag/files/libid3tag-0.15.1b-fix-signature.patch b/media-libs/libid3tag/files/libid3tag-0.15.1b-fix-signature.patch new file mode 100644 index 000000000000..a365811c55fb --- /dev/null +++ b/media-libs/libid3tag/files/libid3tag-0.15.1b-fix-signature.patch @@ -0,0 +1,12 @@ +diff -pur libid3tag-0.15.1b-orig/compat.h libid3tag-0.15.1b/compat.h +--- libid3tag-0.15.1b-orig/compat.h 2004-01-23 10:41:32.000000000 +0100 ++++ libid3tag-0.15.1b/compat.h 2017-03-15 01:49:23.808834401 +0100 +@@ -34,7 +34,7 @@ struct id3_compat { + }; + + struct id3_compat const *id3_compat_lookup(register char const *, +- register unsigned int); ++ register size_t); + + int id3_compat_fixup(struct id3_tag *); + diff --git a/media-libs/libid3tag/libid3tag-0.15.1b-r4.ebuild b/media-libs/libid3tag/libid3tag-0.15.1b-r4.ebuild index 8bd20c8236a0..f5b1ca4ed578 100644 --- a/media-libs/libid3tag/libid3tag-0.15.1b-r4.ebuild +++ b/media-libs/libid3tag/libid3tag-0.15.1b-r4.ebuild @@ -23,6 +23,10 @@ DEPEND="${RDEPEND} src_prepare() { epunt_cxx #74489 epatch "${FILESDIR}/${PV}"/*.patch + # gperf 3.1 and newer generate code with a size_t length parameter, + # older versions are incompatible and take an unsigned int. + has_version '>=dev-util/gperf-3.1' && epatch "${FILESDIR}/${P}-fix-signature.patch" + elibtoolize #sane .so versionning on fbsd and .so -> .so.version symlink } |