diff options
author | Leonardo Boshell <leonardop@gentoo.org> | 2004-07-19 04:10:44 +0000 |
---|---|---|
committer | Leonardo Boshell <leonardop@gentoo.org> | 2004-07-19 04:10:44 +0000 |
commit | f7a81c3a81fb990d01f4af768df78d774a158de8 (patch) | |
tree | bee17c0cf732c1f1f17ca17eb6a8c67a7176a5a6 /media-plugins/gst-plugins-vorbis | |
parent | Added version 2.9004 which fixes an incompatibility with mysql-4.1.3 and new ... (diff) | |
download | gentoo-2-f7a81c3a81fb990d01f4af768df78d774a158de8.tar.gz gentoo-2-f7a81c3a81fb990d01f4af768df78d774a158de8.tar.bz2 gentoo-2-f7a81c3a81fb990d01f4af768df78d774a158de8.zip |
Patch to fix compilation when using gcc-2
Diffstat (limited to 'media-plugins/gst-plugins-vorbis')
3 files changed, 39 insertions, 3 deletions
diff --git a/media-plugins/gst-plugins-vorbis/ChangeLog b/media-plugins/gst-plugins-vorbis/ChangeLog index 68743410607c..8fee73a14306 100644 --- a/media-plugins/gst-plugins-vorbis/ChangeLog +++ b/media-plugins/gst-plugins-vorbis/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for media-plugins/gst-plugins-vorbis # Copyright 2000-2004 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-plugins/gst-plugins-vorbis/ChangeLog,v 1.24 2004/07/04 13:17:15 kloeri Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-plugins/gst-plugins-vorbis/ChangeLog,v 1.25 2004/07/19 04:10:44 leonardop Exp $ + + 18 Jul 2004; L. Boshell <leonardop@gentoo.org> + gst-plugins-vorbis-0.8.2.ebuild, files/gst-plugins-vorbis-gcc2_fix.patch: + Patch to fix compilation under gcc-2. 04 Jul 2004; Bryan Østergaard <kloeri@gentoo.org> gst-plugins-vorbis-0.8.1.ebuild: diff --git a/media-plugins/gst-plugins-vorbis/files/gst-plugins-vorbis-gcc2_fix.patch b/media-plugins/gst-plugins-vorbis/files/gst-plugins-vorbis-gcc2_fix.patch new file mode 100644 index 000000000000..b8ac9e2eea10 --- /dev/null +++ b/media-plugins/gst-plugins-vorbis/files/gst-plugins-vorbis-gcc2_fix.patch @@ -0,0 +1,24 @@ +diff -NurdB gst-plugins-0.8.2-orig/ext/vorbis/vorbisparse.c gst-plugins-0.8.2/ext/vorbis/vorbisparse.c +--- gst-plugins-0.8.2-orig/ext/vorbis/vorbisparse.c 2004-07-18 22:24:27 -0500 ++++ gst-plugins-0.8.2/ext/vorbis/vorbisparse.c 2004-07-18 22:28:31 -0500 +@@ -103,6 +103,9 @@ + vorbis_parse_set_header_on_caps (GstVorbisParse * parse, GstCaps * caps) + { + GstBuffer *buf1, *buf2, *buf3; ++ GstStructure *structure; ++ GValue list = { 0 }; ++ GValue value = { 0 }; + + g_assert (parse); + g_assert (parse->streamheader); +@@ -115,9 +118,7 @@ + buf3 = parse->streamheader->next->next->data; + g_assert (buf3); + +- GstStructure *structure = gst_caps_get_structure (caps, 0); +- GValue list = { 0 }; +- GValue value = { 0 }; ++ structure = gst_caps_get_structure (caps, 0); + + /* mark buffers */ + GST_BUFFER_FLAG_SET (buf1, GST_BUFFER_IN_CAPS); diff --git a/media-plugins/gst-plugins-vorbis/gst-plugins-vorbis-0.8.2.ebuild b/media-plugins/gst-plugins-vorbis/gst-plugins-vorbis-0.8.2.ebuild index 8315a0dbbeb4..9c80196008b6 100644 --- a/media-plugins/gst-plugins-vorbis/gst-plugins-vorbis-0.8.2.ebuild +++ b/media-plugins/gst-plugins-vorbis/gst-plugins-vorbis-0.8.2.ebuild @@ -1,8 +1,8 @@ # Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-plugins/gst-plugins-vorbis/gst-plugins-vorbis-0.8.2.ebuild,v 1.2 2004/07/04 13:17:15 kloeri Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-plugins/gst-plugins-vorbis/gst-plugins-vorbis-0.8.2.ebuild,v 1.3 2004/07/19 04:10:44 leonardop Exp $ -inherit gst-plugins +inherit eutils gst-plugins KEYWORDS="~x86 ~ppc ~alpha ~sparc ~hppa ~amd64 ~ia64 ~mips" @@ -11,3 +11,11 @@ RDEPEND=">=media-libs/libvorbis-1" DEPEND="${RDEPEND} >=dev-util/pkgconfig-0.9" + +src_unpack() { + unpack ${A} + cd ${S} + + # Fix some basic problems that break compilation under gcc-2. + epatch ${FILESDIR}/${PN}-gcc2_fix.patch +} |