summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-03-02 16:55:32 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-03-02 16:55:32 +0000
commitbb33ae56230a56223db51f40dd384aa570e88c00 (patch)
tree2dc87471896d51d57a4328e578812c960c943806 /media-tv
parentVersion bump KDE 4.4.1 (diff)
downloadgentoo-2-bb33ae56230a56223db51f40dd384aa570e88c00.tar.gz
gentoo-2-bb33ae56230a56223db51f40dd384aa570e88c00.tar.bz2
gentoo-2-bb33ae56230a56223db51f40dd384aa570e88c00.zip
Fix segmentation fault with jpeg >= 7 wrt #288158 by Salah Coronya.
(Portage version: 2.2_rc63/cvs/Linux x86_64)
Diffstat (limited to 'media-tv')
-rw-r--r--media-tv/xawtv/ChangeLog10
-rw-r--r--media-tv/xawtv/files/xawtv-3.95-jpeg-7.patch20
-rw-r--r--media-tv/xawtv/xawtv-3.95-r2.ebuild157
3 files changed, 185 insertions, 2 deletions
diff --git a/media-tv/xawtv/ChangeLog b/media-tv/xawtv/ChangeLog
index 4fa78b6cad60..cd950722bfc5 100644
--- a/media-tv/xawtv/ChangeLog
+++ b/media-tv/xawtv/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for media-tv/xawtv
-# Copyright 2002-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-tv/xawtv/ChangeLog,v 1.59 2009/01/10 13:13:56 beandog Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-tv/xawtv/ChangeLog,v 1.60 2010/03/02 16:55:31 ssuominen Exp $
+
+*xawtv-3.95-r2 (02 Mar 2010)
+
+ 02 Mar 2010; Samuli Suominen <ssuominen@gentoo.org> +xawtv-3.95-r2.ebuild,
+ +files/xawtv-3.95-jpeg-7.patch:
+ Fix segmentation fault with jpeg >= 7 wrt #288158 by Salah Coronya.
10 Jan 2009; Steve Dibb <beandog@gentoo.org> xawtv-3.95-r1.ebuild:
Drop deprecated bindnow flags, bug 226979
diff --git a/media-tv/xawtv/files/xawtv-3.95-jpeg-7.patch b/media-tv/xawtv/files/xawtv-3.95-jpeg-7.patch
new file mode 100644
index 000000000000..69f2d9836d55
--- /dev/null
+++ b/media-tv/xawtv/files/xawtv-3.95-jpeg-7.patch
@@ -0,0 +1,20 @@
+http://bugs.gentoo.org/show_bug.cgi?id=288158
+
+--- xawtv-3.95/libng/plugins/conv-mjpeg.c
++++ xawtv-3.95/libng/plugins/conv-mjpeg.c
+@@ -229,6 +229,7 @@
+ jpeg_set_quality(&h->mjpg_cinfo, ng_jpeg_quality, TRUE);
+
+ h->mjpg_cinfo.raw_data_in = TRUE;
++ h->mjpg_cinfo.do_fancy_downsampling = FALSE;
+ jpeg_set_colorspace(&h->mjpg_cinfo,JCS_YCbCr);
+
+ h->mjpg_ptrs[0] = malloc(h->fmt.height*sizeof(char*));
+@@ -453,6 +454,7 @@
+ h->buf = in;
+ jpeg_read_header(&h->mjpg_cinfo,1);
+ h->mjpg_cinfo.raw_data_out = 1;
++ h->mjpg_cinfo.do_fancy_upsampling = FALSE;
+
+ if (ng_debug > 1)
+ fprintf(stderr,"yuv: %dx%d - %d %d / %d %d / %d %d\n",
diff --git a/media-tv/xawtv/xawtv-3.95-r2.ebuild b/media-tv/xawtv/xawtv-3.95-r2.ebuild
new file mode 100644
index 000000000000..4e9e96ce80b9
--- /dev/null
+++ b/media-tv/xawtv/xawtv-3.95-r2.ebuild
@@ -0,0 +1,157 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-tv/xawtv/xawtv-3.95-r2.ebuild,v 1.1 2010/03/02 16:55:31 ssuominen Exp $
+
+inherit eutils font autotools flag-o-matic
+
+PATCHLEVEL="4"
+
+IUSE="aalib alsa dv lirc mmx motif nls opengl quicktime X xv zvbi xext"
+
+MY_FONT=tv-fonts-1.1
+DESCRIPTION="Small suite of video4linux related software"
+HOMEPAGE="http://bytesex.org/xawtv/"
+SRC_URI="http://dl.bytesex.org/releases/xawtv/${P}.tar.gz
+ X? ( http://dl.bytesex.org/releases/tv-fonts/${MY_FONT}.tar.bz2 )
+ mirror://gentoo/${PN}-patches-${PATCHLEVEL}.tar.bz2"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~sparc ~x86"
+
+RDEPEND=">=sys-libs/ncurses-5.1
+ >=media-libs/jpeg-7
+ X? (
+ x11-libs/libFS
+ x11-libs/libXmu
+ x11-libs/libX11
+ x11-libs/libXaw
+ x11-libs/libXt
+ x11-libs/libXext
+ x11-libs/libXrender
+ xext? (
+ x11-libs/libXinerama
+ x11-libs/libXxf86dga
+ x11-libs/libXrandr
+ x11-libs/libXxf86vm
+ )
+ x11-apps/xset
+ xv? ( x11-libs/libXv )
+ )
+ motif? ( x11-libs/openmotif
+ app-text/recode )
+ alsa? ( media-libs/alsa-lib )
+ aalib? ( media-libs/aalib )
+ dv? ( media-libs/libdv )
+ lirc? ( app-misc/lirc )
+ opengl? ( virtual/opengl )
+ quicktime? ( virtual/quicktime )
+ zvbi? ( media-libs/zvbi
+ media-libs/libpng )"
+
+DEPEND="${RDEPEND}
+ X? (
+ x11-apps/xset
+ x11-apps/bdftopcf
+ x11-proto/videoproto
+ xext? ( x11-proto/xineramaproto )
+ )"
+
+pkg_setup() {
+ if use X; then
+ font_pkg_setup
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ if use X; then
+ cd "${WORKDIR}/${MY_FONT}"
+ epatch "${WORKDIR}/patches/extra/${MY_FONT}-nox.patch"
+ fi
+ cd "${S}"
+
+ EPATCH_SUFFIX="patch" epatch "${WORKDIR}/patches"
+ epatch "${FILESDIR}/${P}-libquicktime-compat.patch"
+ epatch "${FILESDIR}/${P}-pagemask-fix.patch"
+ epatch "${FILESDIR}/${P}-jpeg-7.patch"
+ eautoreconf
+}
+
+src_compile() {
+ # It tries to include FSlib.h directly, but this seems to have moved.
+ use X && has_version x11-libs/libFS && append-flags -I/usr/include/X11/fonts
+
+ econf \
+ $(use_with X x) \
+ $(use_enable xext xfree-ext) \
+ $(use_enable xv xvideo) \
+ $(use_enable dv) \
+ $(use_enable mmx) \
+ $(use_enable motif) \
+ $(use_enable quicktime) \
+ $(use_enable alsa) \
+ $(use_enable lirc) \
+ $(use_enable opengl gl) \
+ $(use_enable zvbi) \
+ $(use_enable aalib aa) \
+ || die " xawtv configure failed"
+
+ emake verbose=yes || die "Make failed"
+
+ if use X; then
+ cd "${WORKDIR}/${MY_FONT}"
+ emake -j1 DISPLAY= || die "tvfonts failed"
+ fi
+}
+
+src_install() {
+ make install DESTDIR="${D}" resdir="${D}"/etc/X11 || die "make install failed"
+
+ # v4lctl is only installed automatically if the X USE flag is enabled
+ use X || \
+ dobin x11/v4lctl
+
+ dodoc Changes README* TODO "${FILESDIR}"/webcamrc
+ docinto cgi-bin
+ dodoc scripts/webcam.cgi
+
+ use X || \
+ rm -f "${D}"/usr/share/man/man1/{pia,propwatch}.1 \
+ "${D}"/usr/share/{man,man/fr,man/es}/man1/xawtv.1 \
+ "${D}"/usr/share/{man,man/es}/man1/rootv.1
+
+ use motif || \
+ rm -f "${D}"/usr/share/man/man1/{motv,mtt}.1
+
+ use zvbi || \
+ rm -f "${D}"/usr/share/man/man1/{alevtd,mtt}.1 \
+ "${D}"/usr/share/{man,man/es}/man1/scantv.1
+
+ use nls || \
+ rm -f "${D}"/usr/share/man/fr \
+ "${D}"/usr/share/man/es
+
+ # The makefile seems to be fubar'd for some data
+ dodir /usr/share/${PN}
+ mv "${D}"/usr/share/*.list "${D}"/usr/share/${PN}
+ mv "${D}"/usr/share/Index* "${D}"/usr/share/${PN}
+
+ if use X; then
+ cd "${WORKDIR}/${MY_FONT}"
+ insinto /usr/share/fonts/xawtv
+ doins *.gz fonts.alias
+
+ font_xfont_config
+ font_xft_config
+ fi
+}
+
+pkg_postinst() {
+ if use X; then
+ ebegin "installing teletype fonts into /usr/share/fonts/xawtv"
+ cd /usr/share/fonts/xawtv
+ mkfontdir
+ eend
+ fi
+}