# ChangeLog for media-sound/cdparanoia
-# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/cdparanoia/ChangeLog,v 1.53 2006/12/01 20:47:07 gustavoz Exp $
+# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/media-sound/cdparanoia/ChangeLog,v 1.54 2007/01/06 20:39:12 flameeyes Exp $
+
+ 06 Jan 2007; Diego Pettenò <flameeyes@gentoo.org>
+ +files/cdparanoia-3.9.8-asneeded.patch, -cdparanoia-3.9.8-r1.ebuild,
+ -cdparanoia-3.9.8-r2.ebuild, -cdparanoia-3.9.8-r4.ebuild,
+ cdparanoia-3.9.8-r5.ebuild:
+ Add patch by Prakash Punnoor in bug #160547 to fix --as-needed linking.
+ Cleanup old versions.
01 Dec 2006; Gustavo Zacarias <gustavoz@gentoo.org>
cdparanoia-3.9.8-r5.ebuild:
-# Copyright 1999-2006 Gentoo Foundation
+# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/media-sound/cdparanoia/cdparanoia-3.9.8-r5.ebuild,v 1.7 2006/12/03 06:30:27 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-sound/cdparanoia/cdparanoia-3.9.8-r5.ebuild,v 1.8 2007/01/06 20:39:12 flameeyes Exp $
WANT_AUTOMAKE="latest"
WANT_AUTOCONF="2.1"
epatch "${FILESDIR}/${P}-parallel-fpic-fbsd.patch"
# Use directly the same exact patch as flex as it works
+ # this waits for autoepatch to be removed
epatch "${FILESDIR}/flex-configure-LANG.patch"
# Let portage handle the stripping of binaries
sed -i -e "/strip cdparanoia/d" Makefile.in
+ # Fix --as-needed linking, bug #160547
+ epatch "${FILESDIR}/${P}-asneeded.patch"
+
# Fix Makefiles for parallel building. Bug #136128.
sed -i \
-e "s/^lib: $/lib: \$(OFILES)/" \
-e "/\$(MAKE) lessmessy$/d" \
interface/Makefile.in paranoia/Makefile.in
+ # You don't want to know.
mv configure.guess config.guess
mv configure.sub config.sub
sed -i -e '/configure.\(guess\|sub\)/d' "${S}"/configure.in
--- /dev/null
+--- cdparanoia-III-alpha9.8/paranoia/Makefile.in.old 2007-01-06 19:54:23.632598436 +0100
++++ cdparanoia-III-alpha9.8/paranoia/Makefile.in 2007-01-06 19:55:15.038341210 +0100
+@@ -22,7 +22,7 @@
+ OFILES = paranoia.o p_block.o overlap.o gap.o isort.o
+ #TFILES = isort.t gap.t p_block.t paranoia.t
+
+-LIBS = ../interface/libcdda_interface.a -lm
++LIBS = ../interface/libcdda_interface.so -lm
+ export VERSION
+
+ all: lib slib
+@@ -44,7 +44,7 @@
+ $(RANLIB) libcdda_paranoia.a
+
+ libcdda_paranoia.so: $(OFILES)
+- $(CC) $(LDFLAGS) $(LIBFLAGS) -shared -o libcdda_paranoia.so.0.$(VERSION) -Wl,-soname -Wl,libcdda_paranoia.so.0 $(OFILES)
++ $(CC) $(OFILES) -shared -o libcdda_paranoia.so.0.$(VERSION) -Wl,-soname -Wl,libcdda_paranoia.so.0 $(LDFLAGS) $(LIBFLAGS) $(LIBS)
+ [ -e libcdda_paranoia.so.0 ] || ln -s libcdda_paranoia.so.0.$(VERSION) libcdda_paranoia.so.0
+ [ -e libcdda_paranoia.so ] || ln -s libcdda_paranoia.so.0.$(VERSION) libcdda_paranoia.so
+