diff options
author | Peter Levine <plevine457@gmail.com> | 2017-05-13 20:35:39 -0400 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2017-05-26 22:58:04 +0200 |
commit | f28a947813dbc0a1fd1a8d4a712d58a64c48ca01 (patch) | |
tree | e44f8a348f5d671b4ef6d0d2870fb37eba9c0f1c /media-libs/libfpx | |
parent | dev-python/bleach: keyworded for ~mips (diff) | |
download | gentoo-f28a947813dbc0a1fd1a8d4a712d58a64c48ca01.tar.gz gentoo-f28a947813dbc0a1fd1a8d4a712d58a64c48ca01.tar.bz2 gentoo-f28a947813dbc0a1fd1a8d4a712d58a64c48ca01.zip |
media-libs/libfpx: Fix building with GCC-6
Bug: https://bugs.gentoo.org/show_bug.cgi?id=594094
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/4623
Diffstat (limited to 'media-libs/libfpx')
-rw-r--r-- | media-libs/libfpx/files/libfpx-1.2.0.13-export-symbols.patch | 4 | ||||
-rw-r--r-- | media-libs/libfpx/files/libfpx-1.3.1_p6-gcc6.patch | 35 | ||||
-rw-r--r-- | media-libs/libfpx/libfpx-1.3.1_p6.ebuild | 9 |
3 files changed, 43 insertions, 5 deletions
diff --git a/media-libs/libfpx/files/libfpx-1.2.0.13-export-symbols.patch b/media-libs/libfpx/files/libfpx-1.2.0.13-export-symbols.patch index 9e0f16325500..dfb974bc7164 100644 --- a/media-libs/libfpx/files/libfpx-1.2.0.13-export-symbols.patch +++ b/media-libs/libfpx/files/libfpx-1.2.0.13-export-symbols.patch @@ -1,8 +1,8 @@ * At least the Darwin linker doesn't like double symbols during the final linking stage... ---- jpeg/jpegconf.h -+++ jpeg/jpegconf.h +--- a/jpeg/jpegconf.h ++++ b/jpeg/jpegconf.h @@ -27,6 +27,6 @@ # pragma warning(disable : 4244) # pragma warning(disable : 4142) diff --git a/media-libs/libfpx/files/libfpx-1.3.1_p6-gcc6.patch b/media-libs/libfpx/files/libfpx-1.3.1_p6-gcc6.patch new file mode 100644 index 000000000000..75c7a7efdbd4 --- /dev/null +++ b/media-libs/libfpx/files/libfpx-1.3.1_p6-gcc6.patch @@ -0,0 +1,35 @@ +--- a/oless/h/page.hxx ++++ b/oless/h/page.hxx +@@ -47,6 +47,7 @@ + { + public: + void * operator new(size_t size, size_t sizeData); ++ void operator delete(void *ptr); + + CMSFPage(CMSFPage *pmpNext); + inline ~CMSFPage(); +@@ -133,6 +134,24 @@ + } + + //+--------------------------------------------------------------------------- ++// ++// Member: CMSFPage::operator delete, public ++// ++// Synopsis: Overloaded delete operator for CMSFPage. ++// ++// Arguments: [ptr] -- Pointer to CMSFPage object ++// ++//---------------------------------------------------------------------------- ++ ++inline void CMSFPage::operator delete(void *ptr) ++{ ++ if (ptr) { ++ free(ptr); ++ ptr = NULL; ++ } ++} ++ ++//+--------------------------------------------------------------------------- + // + // Member: CMSFPage::GetNext, public + // diff --git a/media-libs/libfpx/libfpx-1.3.1_p6.ebuild b/media-libs/libfpx/libfpx-1.3.1_p6.ebuild index f8bca2dbbedf..fcaf30fc17d2 100644 --- a/media-libs/libfpx/libfpx-1.3.1_p6.ebuild +++ b/media-libs/libfpx/libfpx-1.3.1_p6.ebuild @@ -15,10 +15,13 @@ IUSE="static-libs" S=${WORKDIR}/${P/_p/-} -src_prepare() { - epatch "${FILESDIR}"/${PN}-1.2.0.13-export-symbols.patch +PATCHES=( + "${FILESDIR}"/${PN}-1.2.0.13-export-symbols.patch + "${FILESDIR}"/${P}-gcc6.patch +) - eapply_user +src_prepare() { + default # we're not windows, even though we don't define __unix by default [[ ${CHOST} == *-darwin* ]] && append-flags -D__unix |