From 541e4d5affbeffc2b6295c7f555a6b20c23115b1 Mon Sep 17 00:00:00 2001 From: Marcus Alves Grando Date: Sat, 29 Apr 2006 17:47:41 +0000 Subject: - Add extra patch to fix slow running in 4.x - Fix wrong test of PYXML in OPTIONS - Bump PORTREVISION PR: 95152 Notified by: Sven Berkvens-Matthijsse Submitted by: maintainer --- net-p2p/btqueue/Makefile | 8 +++++++- .../btqueue/files/FBSD4-patch-BitTorrent_defaultargs.py | 14 ++++++++++++++ 2 files changed, 21 insertions(+), 1 deletion(-) create mode 100644 net-p2p/btqueue/files/FBSD4-patch-BitTorrent_defaultargs.py (limited to 'net-p2p') diff --git a/net-p2p/btqueue/Makefile b/net-p2p/btqueue/Makefile index a1f0156951fc..f0dc026f922a 100644 --- a/net-p2p/btqueue/Makefile +++ b/net-p2p/btqueue/Makefile @@ -7,6 +7,7 @@ PORTNAME= btqueue PORTVERSION= 0.1.0 +PORTREVISION= 1 CATEGORIES= net-p2p MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} MASTER_SITE_SUBDIR= ${PORTNAME} @@ -28,7 +29,12 @@ OPTIONS= PYXML "Add dependency on PyXML (needed for crawler only)" on .include -.if defined(WITH_PYXML) +# Enable workaround for bad libc in FreeBSD 4.x +.if ${OSVERSION} < 500000 +EXTRA_PATCHES= ${FILESDIR}/FBSD4-patch-BitTorrent_defaultargs.py +.endif + +.if !defined(WITHOUT_PYXML) RUN_DEPENDS+= ${PYXML} .endif diff --git a/net-p2p/btqueue/files/FBSD4-patch-BitTorrent_defaultargs.py b/net-p2p/btqueue/files/FBSD4-patch-BitTorrent_defaultargs.py new file mode 100644 index 000000000000..2c781458d3c4 --- /dev/null +++ b/net-p2p/btqueue/files/FBSD4-patch-BitTorrent_defaultargs.py @@ -0,0 +1,14 @@ +--- BitTorrent/defaultargs.py.orig Mon Apr 3 14:57:11 2006 ++++ BitTorrent/defaultargs.py Mon Apr 3 15:11:49 2006 +@@ -29,10 +29,7 @@ + + import os + ### add your favorite here +-BAD_LIBC_WORKAROUND_DEFAULT = MYFALSE +-if os.name == 'posix': +- if os.uname()[0] in ['Darwin']: +- BAD_LIBC_WORKAROUND_DEFAULT = MYTRUE ++BAD_LIBC_WORKAROUND_DEFAULT = MYTRUE + + MIN_INCOMPLETE = 100 + if os.name == 'nt': -- cgit v1.2.3