diff options
author | 2020-11-16 21:04:03 -0600 | |
---|---|---|
committer | 2020-11-16 21:04:03 -0600 | |
commit | d79361b03347340c9aceb704e72be6f20ad1f86e (patch) | |
tree | 8543d480f0eb5677a7ed57c6d66d76cb4eb54035 /media-sound | |
parent | dev-python/reno: needs extras dep for tests (diff) | |
download | gentoo-d79361b03347340c9aceb704e72be6f20ad1f86e.tar.gz gentoo-d79361b03347340c9aceb704e72be6f20ad1f86e.tar.bz2 gentoo-d79361b03347340c9aceb704e72be6f20ad1f86e.zip |
media-sound/sc2mpd: patch out -Werror
Signed-off-by: Erik Mackdanz <stasibear@gentoo.org>
Closes: https://bugs.gentoo.org/722378
Closes: https://bugs.gentoo.org/740534
Closes: https://bugs.gentoo.org/751661
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Diffstat (limited to 'media-sound')
-rw-r--r-- | media-sound/sc2mpd/files/sc2mpd-1.1.5-werror.patch | 72 | ||||
-rw-r--r-- | media-sound/sc2mpd/sc2mpd-1.1.5.ebuild | 4 |
2 files changed, 75 insertions, 1 deletions
diff --git a/media-sound/sc2mpd/files/sc2mpd-1.1.5-werror.patch b/media-sound/sc2mpd/files/sc2mpd-1.1.5-werror.patch new file mode 100644 index 000000000000..ecc415f91b54 --- /dev/null +++ b/media-sound/sc2mpd/files/sc2mpd-1.1.5-werror.patch @@ -0,0 +1,72 @@ +diff -ur sc2mpd-1.1.5/work/openhome/ohNet/Makefile sc2mpd-1.1.5.altered/work/openhome/ohNet/Makefile +--- a/openhome/ohNet/Makefile 2020-11-16 20:49:27.220636318 -0600 ++++ b/openhome/ohNet/Makefile 2020-11-16 20:46:19.822974263 -0600 +@@ -310,13 +310,13 @@ + cflags_base = -fexceptions -Wall $(version_specific_cflags_third_party) -pipe -D_GNU_SOURCE -D_REENTRANT -DDEFINE_$(endian)_ENDIAN -DDEFINE_TRACE $(debug_specific_cflags) -fvisibility=hidden $(platform_cflags) + cflags_third_party = $(cflags_base) -Wno-int-to-pointer-cast + ifeq ($(nocpp11), yes) +- cppflags = $(cflags_base) -Werror ++ cppflags = $(cflags_base) + else ifeq ($(platform),IntelMac) +- cppflags = $(cflags_base) -std=c++11 -Werror ++ cppflags = $(cflags_base) -std=c++11 + else +- cppflags = $(cflags_base) -std=c++0x -Werror ++ cppflags = $(cflags_base) -std=c++0x + endif +-cflags = $(cflags_base) -Werror ++cflags = $(cflags_base) + inc_build = Build/Include + includes = -IBuild/Include/ $(version_specific_includes) + bundle_build = Build/Bundles +@@ -371,7 +371,7 @@ + jar = $(JAVA_HOME)/bin/jar + endif + +-java_cflags = -fexceptions -Wall $(platform_java_cflags) $(version_specific_java_cflags) -Werror -pipe -D_GNU_SOURCE -D_REENTRANT -DDEFINE_$(endian)_ENDIAN -DDEFINE_TRACE $(debug_specific_cflags) $(platform_cflags) ++java_cflags = -fexceptions -Wall $(platform_java_cflags) $(version_specific_java_cflags) -pipe -D_GNU_SOURCE -D_REENTRANT -DDEFINE_$(endian)_ENDIAN -DDEFINE_TRACE $(debug_specific_cflags) $(platform_cflags) + jarflags = cf + dirsep = / + prefix = /usr/local +diff -ur sc2mpd-1.1.5/work/openhome/ohNetGenerated/Makefile sc2mpd-1.1.5.altered/work/openhome/ohNetGenerated/Makefile +--- a/openhome/ohNetGenerated/Makefile 2020-11-16 20:49:27.262636458 -0600 ++++ b/openhome/ohNetGenerated/Makefile 2020-11-16 20:45:36.594809974 -0600 +@@ -273,13 +273,13 @@ + cflags_base = -fexceptions -Wall $(version_specific_cflags_third_party) -pipe -D_GNU_SOURCE -D_REENTRANT -DDEFINE_$(endian)_ENDIAN -DDEFINE_TRACE $(debug_specific_cflags) -fvisibility=hidden $(platform_cflags) + cflags_third_party = $(cflags_base) -Wno-int-to-pointer-cast + ifeq ($(nocpp11), yes) +- cppflags = $(cflags_base) -Werror ++ cppflags = $(cflags_base) + else ifeq ($(platform),IntelMac) +- cppflags = $(cflags_base) -std=c++11 -Werror ++ cppflags = $(cflags_base) -std=c++11 + else +- cppflags = $(cflags_base) -std=c++0x -D__STDC_VERSION__=199901L -Werror ++ cppflags = $(cflags_base) -std=c++0x -D__STDC_VERSION__=199901L + endif +-cflags = $(cflags_base) -Werror ++cflags = $(cflags_base) + depsPlatform = ${openhome_system}-${openhome_architecture} + header_install = Build/Include + inc_build = dependencies/$(depsPlatform)/ohNet-$(depsPlatform)-Release/include/ohnet +@@ -334,7 +334,7 @@ + jar = $(JAVA_HOME)/bin/jar + endif + +-java_cflags = -fexceptions -Wall $(version_specific_java_cflags) -Werror -pipe -D_GNU_SOURCE -D_REENTRANT -DDEFINE_$(endian)_ENDIAN -DDEFINE_TRACE $(debug_specific_cflags) $(platform_cflags) ++java_cflags = -fexceptions -Wall $(version_specific_java_cflags) -pipe -D_GNU_SOURCE -D_REENTRANT -DDEFINE_$(endian)_ENDIAN -DDEFINE_TRACE $(debug_specific_cflags) $(platform_cflags) + jarflags = cf + dirsep = / + prefix = /usr/local +diff -ur sc2mpd-1.1.5/work/openhome/ohSongcast/Makefile sc2mpd-1.1.5.altered/work/openhome/ohSongcast/Makefile +--- a/openhome/ohSongcast/Makefile 2016-10-18 02:34:33.000000000 -0500 ++++ b/openhome/ohSongcast/Makefile 2020-11-16 20:46:57.123112193 -0600 +@@ -38,7 +38,7 @@ + # Macros used by Common.mak + + ar = ${CROSS_COMPILE}ar rc $(objdir) +-cflags = -fexceptions -Wall -Werror -pipe -std=c++11 -D_GNU_SOURCE -D_REENTRANT -DDEFINE_LITTLE_ENDIAN -DDEFINE_TRACE $(debug_specific_flags) -fvisibility=hidden -DDllImport="__attribute__ ((visibility(\"default\")))" -DDllExport="__attribute__ ((visibility(\"default\")))" -DDllExportClass="__attribute__ ((visibility(\"default\")))" $(platform_cflags) ++cflags = -fexceptions -Wall -pipe -std=c++11 -D_GNU_SOURCE -D_REENTRANT -DDEFINE_LITTLE_ENDIAN -DDEFINE_TRACE $(debug_specific_flags) -fvisibility=hidden -DDllImport="__attribute__ ((visibility(\"default\")))" -DDllExport="__attribute__ ((visibility(\"default\")))" -DDllExportClass="__attribute__ ((visibility(\"default\")))" $(platform_cflags) + ohnetdir = ../ohNet/Build/Obj/$(osdir)/$(build_dir)/ + ohnetgenerateddir = ../ohNetGenerated/Build/Obj/$(osdir)/$(build_dir)/ + ohtopologydir = ../ohTopology/build/ diff --git a/media-sound/sc2mpd/sc2mpd-1.1.5.ebuild b/media-sound/sc2mpd/sc2mpd-1.1.5.ebuild index 88eb814868c4..dd5733ae60e6 100644 --- a/media-sound/sc2mpd/sc2mpd-1.1.5.ebuild +++ b/media-sound/sc2mpd/sc2mpd-1.1.5.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -47,6 +47,8 @@ src_prepare() { mv ohTopology-${sha_topology} openhome/ohTopology || die "Couldn't mv ohTopology" mv ohSongcast-${sha_songcast} openhome/ohSongcast || die "Couldn't mv ohSongcast" + eapply "${FILESDIR}/${P}-werror.patch" + cd "${WORKDIR}/openhome/ohNet" || die "Couldn't cd to ohNet dir" epatch "${FILESDIR}/ohnet.makefile.patch" epatch "${FILESDIR}/ohnet.optionparser.patch" |