commit:     13861e7374c9de155fd685ae432a16cf62ab148a
Author:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
AuthorDate: Wed May 11 00:27:45 2016 +0000
Commit:     Anthony G. Basile <blueness <AT> gentoo <DOT> org>
CommitDate: Wed May 11 00:27:45 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13861e73

media-libs/gstreamer: correctly fix bug #577312

Package-Manager: portage-2.2.26

 .../files/gstreamer-1.6.3-fix-strsignal.patch      | 32 ++++++++++++++++++++++
 media-libs/gstreamer/gstreamer-1.6.3.ebuild        |  4 +++
 2 files changed, 36 insertions(+)

diff --git a/media-libs/gstreamer/files/gstreamer-1.6.3-fix-strsignal.patch 
b/media-libs/gstreamer/files/gstreamer-1.6.3-fix-strsignal.patch
new file mode 100644
index 0000000..9d717e8
--- /dev/null
+++ b/media-libs/gstreamer/files/gstreamer-1.6.3-fix-strsignal.patch
@@ -0,0 +1,32 @@
+Upstream split this one commit into two: c9da8b0 and d6e25dd because
+of some confusion.  I've recombined it here.  See:
+
+https://bugzilla.gnome.org/show_bug.cgi?id=763567
+https://bugs.gentoo.org/show_bug.cgi?id=577312
+
+diff --git a/libs/gst/check/libcheck/strsignal.c 
b/libs/gst/check/libcheck/strsignal.c
+index b79409b..57e71cd 100644
+--- a/libs/gst/check/libcheck/strsignal.c
++++ b/libs/gst/check/libcheck/strsignal.c
+@@ -1,6 +1,6 @@
+ #include "libcompat.h"
+ 
+-const char *
++char *
+ strsignal (int sig)
+ {
+   static char signame[40];
+
+diff --git a/libs/gst/check/libcheck/libcompat.h 
b/libs/gst/check/libcheck/libcompat.h
+index 32f944c..f09289b 100644
+--- a/libs/gst/check/libcheck/libcompat.h
++++ b/libs/gst/check/libcheck/libcompat.h
+@@ -101,7 +101,7 @@ CK_DLL_EXP char *strdup (const char *str);
+ #endif /* !HAVE_DECL_STRDUP && HAVE__STRDUP */
+ 
+ #if !HAVE_DECL_STRSIGNAL
+-CK_DLL_EXP const char *strsignal (int sig);
++CK_DLL_EXP char *strsignal (int sig);
+ #endif /* !HAVE_DECL_STRSIGNAL */
+ 
+ /*

diff --git a/media-libs/gstreamer/gstreamer-1.6.3.ebuild 
b/media-libs/gstreamer/gstreamer-1.6.3.ebuild
index 3b77847..63ff72f 100644
--- a/media-libs/gstreamer/gstreamer-1.6.3.ebuild
+++ b/media-libs/gstreamer/gstreamer-1.6.3.ebuild
@@ -30,6 +30,10 @@ DEPEND="${RDEPEND}
 "
 # gtk-doc-am to install API docs
 
+src_prepare() {
+       epatch "${FILESDIR}"/${P}-fix-strsignal.patch #577312
+}
+
 src_configure() {
        if [[ ${CHOST} == *-interix* ]] ; then
                export ac_cv_lib_dl_dladdr=no

Reply via email to