Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Apr 2006 13:40:21 GMT
From:      Stefan Walter <sw@gegenunendlich.de>
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   Re: ports/95152: [PATCH] net-p2p/btqueue file reads are extremely slow on FreeBSD 4.x
Message-ID:  <200604031340.k33DeLTX023391@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/95152; it has been noted by GNATS.

From: Stefan Walter <sw@gegenunendlich.de>
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/95152: [PATCH] net-p2p/btqueue file reads are extremely slow on FreeBSD 4.x
Date: Mon, 3 Apr 2006 15:40:05 +0200

 [Once again and without the PGP signature that made a mess of the patch.]
 
 Please commit the following patch. It unconditionally enables the libc
 workaround for 4.x systems.
 
 Regards,
 Stefan
 
 Index: Makefile
 ===================================================================
 RCS file: /storage/cvs/FreeBSD/ports/net-p2p/btqueue/Makefile,v
 retrieving revision 1.10
 diff -u -r1.10 Makefile
 --- Makefile	26 Mar 2006 20:20:34 -0000	1.10
 +++ Makefile	3 Apr 2006 13:13:35 -0000
 @@ -28,6 +28,11 @@
  
  .include <bsd.port.pre.mk>
  
 +# Enable workaround for bad libc in FreeBSD 4.x
 +.if ${OSVERSION} < 500000
 +EXTRA_PATCHES=	${FILESDIR}/FBSD4-patch-BitTorrent_defaultargs.py
 +.endif
 +
  .if defined(WITH_PYXML)
  RUN_DEPENDS+=	${PYXML}
  .endif
 Index: files/FBSD4-patch-BitTorrent_defaultargs.py
 ===================================================================
 RCS file: files/FBSD4-patch-BitTorrent_defaultargs.py
 diff -N files/FBSD4-patch-BitTorrent_defaultargs.py
 --- /dev/null	1 Jan 1970 00:00:00 -0000
 +++ files/FBSD4-patch-BitTorrent_defaultargs.py	3 Apr 2006 13:13:35 -0000
 @@ -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':



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604031340.k33DeLTX023391>