Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 06 Jul 2013 10:54:33 -0500
From:      Bryan Drewery <bdrewery@FreeBSD.org>
Cc:        Nikolai Lifanov <lifanov@mail.lifanov.com>, koobs@FreeBSD.org, python@FreeBSD.org, freebsd-ports@freebsd.org
Subject:   Re: %%PYTHON_SITELIBDIR%% in pkg-plist
Message-ID:  <51D83DB9.9050504@FreeBSD.org>
In-Reply-To: <51D83B22.5010307@FreeBSD.org>
References:  <adddac56a8f7e1c0743abaf81772eccd@mail.lifanov.com> <51D83B22.5010307@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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--



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