From cf7d55154db7f033a527eebc3d22bf261c668389 Mon Sep 17 00:00:00 2001 From: Samuli Suominen Date: Sat, 15 Mar 2014 19:04:18 +0000 Subject: Fix underlinking by always linking against -lm -ldl wrt #504698 by "Guy" (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 4868F14D) --- media-video/ffmpeg2theora/ChangeLog | 6 +++++- .../ffmpeg2theora/ffmpeg2theora-0.29-r1.ebuild | 8 +++++--- .../files/ffmpeg2theora-0.29-underlinking.patch | 21 +++++++++++++++++++++ 3 files changed, 31 insertions(+), 4 deletions(-) create mode 100644 media-video/ffmpeg2theora/files/ffmpeg2theora-0.29-underlinking.patch (limited to 'media-video/ffmpeg2theora') diff --git a/media-video/ffmpeg2theora/ChangeLog b/media-video/ffmpeg2theora/ChangeLog index 30ef56df9493..81fc03cc606a 100644 --- a/media-video/ffmpeg2theora/ChangeLog +++ b/media-video/ffmpeg2theora/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for media-video/ffmpeg2theora # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg2theora/ChangeLog,v 1.66 2014/01/14 13:55:24 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg2theora/ChangeLog,v 1.67 2014/03/15 19:04:18 ssuominen Exp $ + + 15 Mar 2014; Samuli Suominen + +files/ffmpeg2theora-0.29-underlinking.patch, ffmpeg2theora-0.29-r1.ebuild: + Fix underlinking by always linking against -lm -ldl wrt #504698 by "Guy" 14 Jan 2014; Agostino Sarubbo ffmpeg2theora-0.29-r1.ebuild: Stable for x86, wrt bug #495818 diff --git a/media-video/ffmpeg2theora/ffmpeg2theora-0.29-r1.ebuild b/media-video/ffmpeg2theora/ffmpeg2theora-0.29-r1.ebuild index 59ba680cf282..d8daaea0fdfb 100644 --- a/media-video/ffmpeg2theora/ffmpeg2theora-0.29-r1.ebuild +++ b/media-video/ffmpeg2theora/ffmpeg2theora-0.29-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg2theora/ffmpeg2theora-0.29-r1.ebuild,v 1.3 2014/01/14 13:55:24 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/ffmpeg2theora/ffmpeg2theora-0.29-r1.ebuild,v 1.4 2014/03/15 19:04:18 ssuominen Exp $ EAPI=4 inherit eutils toolchain-funcs scons-utils @@ -25,8 +25,10 @@ DEPEND="${RDEPEND} virtual/pkgconfig" src_prepare() { - epatch "${FILESDIR}/${P}-swr.patch" \ - "${FILESDIR}/${P}-ffmpeg2.patch" + epatch \ + "${FILESDIR}"/${P}-swr.patch \ + "${FILESDIR}"/${P}-ffmpeg2.patch \ + "${FILESDIR}"/${P}-underlinking.patch } src_configure() { diff --git a/media-video/ffmpeg2theora/files/ffmpeg2theora-0.29-underlinking.patch b/media-video/ffmpeg2theora/files/ffmpeg2theora-0.29-underlinking.patch new file mode 100644 index 000000000000..dc877603913a --- /dev/null +++ b/media-video/ffmpeg2theora/files/ffmpeg2theora-0.29-underlinking.patch @@ -0,0 +1,21 @@ +For example, pow() from mathlib is used directly in src/ffmpeg2theora.c: + + +v = pow(v, g) * 255.0; // mplayer's vf_eq2.c multiplies with 256 here, strange... + + +For build failure and log, see Gentoo bug #504698 + +--- SConstruct ++++ SConstruct +@@ -206,9 +206,8 @@ + if env['crossmingw']: + env.Append(CCFLAGS=['-Wl,-subsystem,windows']) + env.Append(LIBS=['m']) +- elif env['static']: +- env.Append(LIBS=['m', 'dl']) + ++ env.Append(LIBS=['m', 'dl']) + + env = conf.Finish() + -- cgit v1.2.3-65-gdbad