Date: Mon, 3 Apr 2006 13:20: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: <200604031320.k33DKLDs018126@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: Edwin Groothuis <edwin@FreeBSD.org>, Sven Berkvens-Matthijsse <sven@berkvens.net> Subject: Re: ports/95152: [PATCH] net-p2p/btqueue file reads are extremely slow on FreeBSD 4.x Date: Mon, 3 Apr 2006 15:17:42 +0200 --T4sUOijqQbZv57TR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Please commit the following patch. It unconditionally enables the libc workaround for 4.x systems. Regards, Stefan Index: Makefile =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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 @@ =20 .include <bsd.port.pre.mk> =20 +# Enable workaround for bad libc in FreeBSD 4.x +.if ${OSVERSION} < 500000 +EXTRA_PATCHES=3D ${FILESDIR}/FBSD4-patch-BitTorrent_defaultargs.py +.endif + .if defined(WITH_PYXML) RUN_DEPENDS+=3D ${PYXML} .endif Index: files/FBSD4-patch-BitTorrent_defaultargs.py =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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 @@ +=20 + import os + ### add your favorite here +-BAD_LIBC_WORKAROUND_DEFAULT =3D MYFALSE +-if os.name =3D=3D 'posix': +- if os.uname()[0] in ['Darwin']: +- BAD_LIBC_WORKAROUND_DEFAULT =3D MYTRUE ++BAD_LIBC_WORKAROUND_DEFAULT =3D MYTRUE +=20 + MIN_INCOMPLETE =3D 100 + if os.name =3D=3D 'nt': --T4sUOijqQbZv57TR Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (FreeBSD) iQGVAwUBRDEgdVaRERsSueCzAQIfeAwAiaRoqBxSUxMAmuDo9xtiVU07BxYEI2lZ a6kHiqLblPiZ4MsNhkthADLmeaUYXk3k2Xla1KUrQ/N4e8hSoUQcncowDKdnKIVy h6++2jh7o1OSTTItxaAjnUVNLPjtFpTtYnQOjjTjWLRtEHHTB9bOfBKDohn9jl2I P2jyT2svtBEsuOdBxObBhntroY2AJlZbzQ/p6MvLgWZhGEvhKhB64xcUOfGZqnLZ bkyLiyDMfZlcSX/anZqqHy9y1zmS3U+fu64YgyZ8BWmYQ0P24ZF/3QcHCZ70QV0p JUFcSTziANWN/kNEVOAbqGK7EvvFyOywHYHJJqsw5zjn1g9/osXVDUnN99NgV7JC pOTgxBPJj+N8zc8JMQqL6g8t08NnHFGjVGhFXzQnDXJ2asBToGbCFsIErpzPArEw SQwgx0pEoT52DPFYI0vYwvFHx4KRZ4EevinM74d1QPj0IybPGj4K8yl5xR880pCb whRXGBLPv0sOj5hck2gntfhEPz45Nw0/ =S65T -----END PGP SIGNATURE----- --T4sUOijqQbZv57TR--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604031320.k33DKLDs018126>