x11-wm/xpra: Make deprecated avcodec_decode_video2 non-fatal (see bug 588006).
authorMichael Weber <xmw@gentoo.org>
Tue, 5 Jul 2016 09:40:14 +0000 (11:40 +0200)
committerMichael Weber <xmw@gentoo.org>
Tue, 5 Jul 2016 09:40:51 +0000 (11:40 +0200)
Package-Manager: portage-2.2.28

x11-wm/xpra/files/xpra-0.17.4-deprecated-avcodec.patch [new file with mode: 0644]
x11-wm/xpra/xpra-0.17.4.ebuild

diff --git a/x11-wm/xpra/files/xpra-0.17.4-deprecated-avcodec.patch b/x11-wm/xpra/files/xpra-0.17.4-deprecated-avcodec.patch
new file mode 100644 (file)
index 0000000..13bd4be
--- /dev/null
@@ -0,0 +1,11 @@
+--- xpra-0.17.4/setup.py
++++ xpra-0.17.4/setup.py
+@@ -660,7 +660,7 @@
+                         "-Wno-unused-function",
+                         "-Wno-sometimes-uninitialized"]
+             elif get_gcc_version()>=[4, 4]:
+-                eifd = ["-Werror",
++                eifd = ["-Werror", "-Wno-error=deprecated-declarations",
+                         #CentOS 6.x gives us some invalid warnings in nvenc, ignore those:
+                         #"-Wno-error=uninitialized",
+                         #needed on Debian and Ubuntu to avoid this error:
index 4b4e7090f39dd10612845b9356f707f759a3205f..9484fcce00290c45055a5cfb589f485aaff6488c 100644 (file)
@@ -88,7 +88,8 @@ python_prepare_all() {
 
        epatch \
                "${FILESDIR}"/${PN}-0.13.1-ignore-gentoo-no-compile.patch \
-               "${FILESDIR}"/${PN}-0.16.2-prefix.patch
+               "${FILESDIR}"/${PN}-0.16.2-prefix.patch \
+               "${FILESDIR}"/${PN}-0.17.4-deprecated-avcodec.patch
 
        if use libav ; then
                if ! has_version ">=media-video/libav-9" ; then