summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Wever <weeve@gentoo.org>2003-03-04 11:17:50 +0000
committerJason Wever <weeve@gentoo.org>2003-03-04 11:17:50 +0000
commit83a1c61d3752088d096447fb63c42c504986d09d (patch)
treee786b33ba4a7f823a0b09c466427a7d30539a87e /media-libs/gstreamer
parentAdded support for the vim-language tarball when nls in use flags (diff)
downloadgentoo-2-83a1c61d3752088d096447fb63c42c504986d09d.tar.gz
gentoo-2-83a1c61d3752088d096447fb63c42c504986d09d.tar.bz2
gentoo-2-83a1c61d3752088d096447fb63c42c504986d09d.zip
Added patch for sparc. Resolves bug #15502. Thanks for Alvaro Figueroa
(fede2) for pointing out this fix. :)
Diffstat (limited to 'media-libs/gstreamer')
-rw-r--r--media-libs/gstreamer/ChangeLog7
-rw-r--r--media-libs/gstreamer/files/gstreamer-0.6.0-sparc.patch53
-rw-r--r--media-libs/gstreamer/gstreamer-0.6.0-r2.ebuild6
3 files changed, 64 insertions, 2 deletions
diff --git a/media-libs/gstreamer/ChangeLog b/media-libs/gstreamer/ChangeLog
index 9ece38ca0ef3..327e2307944a 100644
--- a/media-libs/gstreamer/ChangeLog
+++ b/media-libs/gstreamer/ChangeLog
@@ -1,12 +1,17 @@
# ChangeLog for media-libs/gstreamer
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/gstreamer/ChangeLog,v 1.23 2003/02/12 07:07:59 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/gstreamer/ChangeLog,v 1.24 2003/03/04 11:17:50 weeve Exp $
10 Feb 2003; Aron Griffis <agriffis@gentoo.org> gstreamer-0.6.0-r2.ebuild :
Add ~alpha to KEYWORDS
*gstreamer-0.6.0-r2 (05 Feb 2003)
+ 04 Mar 2003; Jason Wever <weeve@gentoo.org> gstreamer-0.6.0-r2.ebuild,
+ files/gstreamer-0.6.0-sparc.patch:
+ Added patch for sparc. Resolves bug #15502. Thanks to Alvaro Figueroa (fede2)
+ for pointing out the fix :)
+
05 Feb 2003; foser <foser@gentoo.org> gstreamer-0.6.0-r2.ebuild :
Added patch to use opt scheduler as default
diff --git a/media-libs/gstreamer/files/gstreamer-0.6.0-sparc.patch b/media-libs/gstreamer/files/gstreamer-0.6.0-sparc.patch
new file mode 100644
index 000000000000..885fcd7b5e67
--- /dev/null
+++ b/media-libs/gstreamer/files/gstreamer-0.6.0-sparc.patch
@@ -0,0 +1,53 @@
+*** gstreamer-0.6.0/gst/gstatomic_impl.h Tue Jan 28 19:22:32 2003
+--- gstreamer-0.6.0.patched/gst/gstatomic_impl.h Mon Mar 3 19:05:11 2003
+***************
+*** 204,214 ****
+
+ return result == 0;
+ }
+
+ /***** Sun SPARC *****/
+! #elif defined(HAVE_CPU_SPARC) && defined(__GNUC__)
+
+ GST_INLINE_FUNC void gst_atomic_int_destroy (GstAtomicInt *aint) { }
+
+ #ifdef GST_CONFIG_NO_SMP
+ GST_INLINE_FUNC void gst_atomic_int_init (GstAtomicInt *aint, gint val) { aint->counter = val; }
+--- 204,215 ----
+
+ return result == 0;
+ }
+
+ /***** Sun SPARC *****/
+! /* disabled for now */
+! #elif defined(HAVE_CPU_SPARC) && defined(__GNUC__) && 0
+
+ GST_INLINE_FUNC void gst_atomic_int_destroy (GstAtomicInt *aint) { }
+
+ #ifdef GST_CONFIG_NO_SMP
+ GST_INLINE_FUNC void gst_atomic_int_init (GstAtomicInt *aint, gint val) { aint->counter = val; }
+***************
+*** 269,279 ****
+ {
+ register volatile int *ptr asm ("g1");
+ register int increment asm ("g2");
+
+ ptr = &aint->counter;
+! increment = val;
+
+ __asm__ __volatile__(
+ "mov %%o7, %%g4\n\t"
+ "call ___atomic_sub\n\t"
+ " add %%o7, 8, %%o7\n"
+--- 270,280 ----
+ {
+ register volatile int *ptr asm ("g1");
+ register int increment asm ("g2");
+
+ ptr = &aint->counter;
+! increment = 1;
+
+ __asm__ __volatile__(
+ "mov %%o7, %%g4\n\t"
+ "call ___atomic_sub\n\t"
+ " add %%o7, 8, %%o7\n"
diff --git a/media-libs/gstreamer/gstreamer-0.6.0-r2.ebuild b/media-libs/gstreamer/gstreamer-0.6.0-r2.ebuild
index 5bdf77af72a1..ecd0cf13f03e 100644
--- a/media-libs/gstreamer/gstreamer-0.6.0-r2.ebuild
+++ b/media-libs/gstreamer/gstreamer-0.6.0-r2.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-libs/gstreamer/gstreamer-0.6.0-r2.ebuild,v 1.4 2003/02/13 12:45:17 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-libs/gstreamer/gstreamer-0.6.0-r2.ebuild,v 1.5 2003/03/04 11:17:50 weeve Exp $
inherit eutils flag-o-matic libtool
@@ -49,6 +49,10 @@ src_unpack() {
#
# foser <foser@gentoo.org>
epatch ${FILESDIR}/${PN}-default_scheduler_opt.patch
+
+ # Added patch for sparc. Resolves bug #15502. Thanks to
+ # Alvaro Figueroa for pointing out the fix :)
+ epatch ${FILESDIR}/${PN}-0.6.0-sparc.patch
}
src_compile() {