Fix building with -Wl,--as-needed wrt #248143 by Kacper Kowalik.
authorSamuli Suominen <ssuominen@gentoo.org>
Mon, 29 Mar 2010 12:20:07 +0000 (12:20 +0000)
committerSamuli Suominen <ssuominen@gentoo.org>
Mon, 29 Mar 2010 12:20:07 +0000 (12:20 +0000)
Package-Manager: portage-2.2_rc67/cvs/Linux x86_64

net-misc/tcpsound/ChangeLog
net-misc/tcpsound/Manifest
net-misc/tcpsound/files/tcpsound-0.3.1-asneeded.patch [new file with mode: 0644]
net-misc/tcpsound/tcpsound-0.3.1.ebuild

index e663797ff7deead5183e7ed8838d0307262d7392..052548118d8ec4f3971792bd74a1e64abb4cbdbe 100644 (file)
@@ -1,6 +1,10 @@
 # ChangeLog for net-misc/tcpsound
-# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/tcpsound/ChangeLog,v 1.4 2007/10/29 15:36:44 jokey Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/tcpsound/ChangeLog,v 1.5 2010/03/29 12:20:07 ssuominen Exp $
+
+  29 Mar 2010; Samuli Suominen <ssuominen@gentoo.org> tcpsound-0.3.1.ebuild,
+  +files/tcpsound-0.3.1-asneeded.patch:
+  Fix building with -Wl,--as-needed wrt #248143 by Kacper Kowalik.
 
   29 Oct 2007; Markus Ullmann <jokey@gentoo.org> tcpsound-0.3.1.ebuild:
   Fix quoting
index 155e12702517d5fe8db65f8e77d159183afefa50..2429bc86bef9a03e6bf8b28312a4630c48133ea6 100644 (file)
@@ -1,4 +1,5 @@
+AUX tcpsound-0.3.1-asneeded.patch 716 RMD160 c8d19fb41518c27bc129b7ef14d580a42a5da4e8 SHA1 a5cd80457fc80d11eb3cecdfdb6174ea48bfa890 SHA256 09e22716c9853e446981c111183f9b011caedc683f054feec769c13bc9e799b8
 DIST tcpsound-0.3.1.tar.gz 155357 RMD160 a0c2ce472d79835a412a1b7afc5b43c6282d1185 SHA1 195e9be515912d5d1358a447f07932cf4446a5c5 SHA256 358869ee017f9ccb62f8425bbc1ec70b65316b981dbf7a7b6b22042ae32b57c6
-EBUILD tcpsound-0.3.1.ebuild 925 RMD160 4e87b244876b32ffb64e51bd01cb23053733e5f4 SHA1 f6116e691d21126d14e7761e0ef816bb19354078 SHA256 810ddc45ee47986d87cd9115efcd7b919892b4496fa29765244796750615ecac
-MISC ChangeLog 703 RMD160 4b69bb810b8c5dd63022300cd99b57d5205b583c SHA1 56e2a74453b79ebafe89892c20cb9ed6c31c6133 SHA256 25dc27850930e1ebec5273aa229b9654bb70483521fc869b7d96d293c0a39700
+EBUILD tcpsound-0.3.1.ebuild 1013 RMD160 3402a72f5bbf8aa1e9379991184328dd5954e046 SHA1 bbc2c229f5c898de4109638a778998fd52e4fd5a SHA256 49e693967ababf93fb436a507f831b6e67a0fc7767f124d2f93ef49d5a7ff0f1
+MISC ChangeLog 892 RMD160 f92bdf1308ec404f44daae80def6703ba0d51914 SHA1 a44138f77266832595e83d495101de82071b5c93 SHA256 e84c052b34127abe076c3d41e93a202ad33f942e7d1314924139c62e5b26b8f7
 MISC metadata.xml 160 RMD160 2738573ec519cbef4b293bc132f7dd9d02291137 SHA1 29b8b234e0f3a475b50bd4df1ef8b4e5749823ce SHA256 39e232fc7ec88ca0b077cb3950cb39d15cd990842b88d5bfe14f02f34d72f37b
diff --git a/net-misc/tcpsound/files/tcpsound-0.3.1-asneeded.patch b/net-misc/tcpsound/files/tcpsound-0.3.1-asneeded.patch
new file mode 100644 (file)
index 0000000..76f4e2b
--- /dev/null
@@ -0,0 +1,22 @@
+--- Makefile
++++ Makefile
+@@ -10,15 +10,16 @@
+ MAN        = tcpsound.1
+ MANGZ      = $(MAN:.1=.1.gz)
+ MKTOOL     = ./mktool
+-CFLAGS     = -c -v -g -W1 -I$(includedir) -L$(libdir) -lSDL -lmba -lpthread
++CFLAGS     = -c -v -g -W1 -I$(includedir) 
++LIBS      = -L$(libdir) -lSDL -lmba -lpthread
+ CC         = $(MKTOOL)
+ 
+ .SUFFIXES: .1 .1.gz
+ 
+ tcpsound: mktool src/tcpsound.c src/sound.h src/sound.c src/parse.h src/parse.c
+-      @$(CC) $(CFLAGS) src/sound.c src/parse.c src/tcpsound.c -o tcpsound
++      @$(CC) $(CFLAGS) src/sound.c src/parse.c src/tcpsound.c -o tcpsound $(LIBS)
+ play: mktool src/play.c
+-      @$(CC) $(CFLAGS) src/play.c -o play
++      @$(CC) $(CFLAGS) src/play.c -o play $(LIBS)
+ 
+ mktool:
+       cc -g -o mktool mktool.c
index ca41c0f464f8ffe67e93d893299a646ec5dfdc68..7636235eaed59e9be82e382aa685266535654390 100644 (file)
@@ -1,22 +1,28 @@
-# Copyright 1999-2007 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/tcpsound/tcpsound-0.3.1.ebuild,v 1.3 2007/10/29 15:36:44 jokey Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/tcpsound/tcpsound-0.3.1.ebuild,v 1.4 2010/03/29 12:20:07 ssuominen Exp $
 
 inherit eutils
 
 DESCRIPTION="Play sounds in response to network traffic"
 HOMEPAGE="http://www.ioplex.com/~miallen/tcpsound/"
 SRC_URI="http://www.ioplex.com/~miallen/tcpsound/dl/${P}.tar.gz"
-LICENSE="BSD"
 
+LICENSE="BSD"
 SLOT="0"
 KEYWORDS="x86"
-
 IUSE=""
+
 DEPEND="net-analyzer/tcpdump
        media-libs/libsdl
        dev-libs/libmba"
 
+src_unpack() {
+       unpack ${A}
+       cd "${S}"
+       epatch "${FILESDIR}"/${P}-asneeded.patch
+}
+
 src_compile() {
        sed -i -e "s;/usr/share/sounds:/usr/local/share/sounds;/usr/share/tcpsound;g"\
                "${S}"/src/tcpsound.c "${S}"/elaborate.conf