From owner-freebsd-python@FreeBSD.ORG Sat Jul 6 15:54:47 2013 Return-Path: Delivered-To: python@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id B4F78778 for ; Sat, 6 Jul 2013 15:54:47 +0000 (UTC) (envelope-from bdrewery@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) by mx1.freebsd.org (Postfix) with ESMTP id 9DF221B42 for ; Sat, 6 Jul 2013 15:54:47 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r66FslDS020722 for ; Sat, 6 Jul 2013 15:54:47 GMT (envelope-from bdrewery@freefall.freebsd.org) Received: (from bdrewery@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r66FslhV020716 for python@FreeBSD.org; Sat, 6 Jul 2013 15:54:47 GMT (envelope-from bdrewery) Received: (qmail 77285 invoked from network); 6 Jul 2013 10:54:45 -0500 Received: from unknown (HELO ?10.10.0.24?) (freebsd@shatow.net@10.10.0.24) by sweb.xzibition.com with ESMTPA; 6 Jul 2013 10:54:45 -0500 Message-ID: <51D83DB9.9050504@FreeBSD.org> Date: Sat, 06 Jul 2013 10:54:33 -0500 From: Bryan Drewery Organization: FreeBSD User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:17.0) Gecko/20130620 Thunderbird/17.0.7 MIME-Version: 1.0 Subject: Re: %%PYTHON_SITELIBDIR%% in pkg-plist References: <51D83B22.5010307@FreeBSD.org> In-Reply-To: <51D83B22.5010307@FreeBSD.org> X-Enigmail-Version: 1.5.1 OpenPGP: id=3C9B0CF9; url=http://www.shatow.net/bryan/bryan.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="----enig2NXQPLEIDMCSFDDVVAPQN" Cc: Nikolai Lifanov , koobs@FreeBSD.org, python@FreeBSD.org, freebsd-ports@freebsd.org X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 06 Jul 2013 15:54:47 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) ------enig2NXQPLEIDMCSFDDVVAPQN Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 7/6/2013 10:43 AM, Kubilay Kocak wrote: > On 7/07/2013 12:51 AM, Nikolai Lifanov wrote: >> Hello. >> >> I maintain sysutils/ansible, and I keep wanting to @dirrmtry >> %%PYTHON_SITELIBDIR%% and perhaps %%PYTHON_LIBDIR%%. >> portlint tells me that this is a wrong thing to do, while poudriere >> testport complains about leftover directories. >> >> What is the correct thing to do with these? >> >> - Nikolai Lifanov >> >> _______________________________________________ >> freebsd-ports@freebsd.org mailing list >> http://lists.freebsd.org/mailman/listinfo/freebsd-ports >> To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.or= g" >=20 > The following are 'normal'leftover entries when testing python ports, > and can safely be ignored: >=20 > %%PYTHON_LIBDIR%%/site-packages/easy-install.pth > %%PYTHON_LIBDIR%%/site-packages/site.py > %%PYTHON_LIBDIR%%/site-packages/site.pyc > %%PYTHON_LIBDIR%%/site-packages/site.pyo > @dirrm %%PYTHON_LIBDIR%%/site-packages > @dirrm %%PYTHON_LIBDIR%% >=20 > The above output is from poudriere, and %%PYTHON_LIBDIR%%/site-packages= / > is actually %%PYTHON_SITELIBDIR%%. Here, poudriere is just making a > first-variable-from-the-list-wins guess. >=20 > If you see porttools `port test` output, you'll note it displays > %%PYTHON_SITELIBDIR%% as the leftover prefix. They can be ignored as we= ll. >=20 > Hope that helps :) >=20 The problem is just that the port (and python ports) do not respect PREFIX when it does not equal LOCALBASE. By default, 'poudriere testport' uses a custom PREFIX. In general, ports should pass leftover tests by default. If they use ports framework support that does not respect PREFIX, try using -n as well, which will stick to PREFIX=3DLOCALBASE. In this case, using -n passes the test with testport on ansible. --=20 Regards, Bryan Drewery ------enig2NXQPLEIDMCSFDDVVAPQN Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQIbBAEBAgAGBQJR2D25AAoJEG54KsA8mwz5zXAP9jnbMJ/dWxoLOTB2LhxJ7VjE LH9OROiex/EPpmBpyLUf1G0xlHSnoC+88zya0orsDwZSya2FtasYFINz2mDCJ9AQ v7D1snA+t3ac5ssrMc/AV8KQbrS9HlkYwdJoWGEvEAL6oP8MsplueKvEYGaJzZKF THW2yyR8/MMUL2RfpjZKnmu5HgW3pkjD6tVGsWehIK5Ehf56pPBMkdPKk1CcuJyC 2Wp2JvInOCaFSWGZkz5bsfvOy/8gMszOelNhFS9YwGK93N+56kk8BCxFnZFQxVxK pe8WL5lkb0S+esopobB3AWyI1XfVR3nVC1VFbrTOn4FMPJy9o6F7EWMGO96abQH4 DfhKdRS3rQ1TkkYc4zMnalEs5ffuKD9pobYAqW6p2vkEmmij8fXu6PG37iGGQpVL 74Kne1qnuxabYAdCdBKX4LFBustUJQJZZ4kNX+10H7YmsjW3oDauL/URX5OL5BMK wEiFagaV89IM8fD0aFgNbmpYppYTI9tEH50fm+NlS9mX9V++V0OUOeFzUg1YaY2J Ze2jZTD5REQZiGPzbgruLC3MlhHQrVu3bMg3rK1uoqWfMfTegnW7rt/3TIldrttQ RQpaaXXYnchNh5MsdFnYkhKImLaC4GY2E9xS8NQn0P+ka38hgDCxgyJHGuBcjUCJ bcYsFKIhFPnFPatrP9U= =TbQG -----END PGP SIGNATURE----- ------enig2NXQPLEIDMCSFDDVVAPQN--