From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1241C138334 for ; Mon, 1 Oct 2018 21:46:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7F418E0AD3; Mon, 1 Oct 2018 21:45:57 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 0947EE0AB5 for ; Mon, 1 Oct 2018 21:45:57 +0000 (UTC) Received: from sf (trofi-1-pt.tunnel.tserv1.lon2.ipv6.he.net [IPv6:2001:470:1f1c:a0f::2]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: slyfox) by smtp.gentoo.org (Postfix) with ESMTPSA id DD9AA33BF55; Mon, 1 Oct 2018 21:45:54 +0000 (UTC) Date: Mon, 1 Oct 2018 22:45:51 +0100 From: Sergei Trofimovich To: Zac Medico Cc: gentoo-dev@lists.gentoo.org Subject: Re: [gentoo-dev] RFC: Portage QA check for FHS/Gentoo policy paths, for top-level dirs and /usr/share/doc Message-ID: <20181001224551.43599858@sf> In-Reply-To: <78e268fe-a9ea-5fa6-e38d-6858bbff39cd@gentoo.org> References: <1df93cd0-b3e7-56cf-3a29-bfaed2069e02@gentoo.org> <20181001210418.75f712d5@sf> <78e268fe-a9ea-5fa6-e38d-6858bbff39cd@gentoo.org> X-Mailer: Claws Mail 3.17.1 (GTK+ 2.24.32; x86_64-pc-linux-gnu) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; boundary="Sig_/60c=Y/s=.pBxtmuI/hlIlDe"; protocol="application/pgp-signature" X-Archives-Salt: 89ffc851-f1e6-4cc5-9ff8-c7e7a6d23d22 X-Archives-Hash: e88b6f294f7b1a644de85878fb618773 --Sig_/60c=Y/s=.pBxtmuI/hlIlDe Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable On Mon, 1 Oct 2018 13:48:46 -0700 Zac Medico wrote: > On 10/01/2018 01:04 PM, Sergei Trofimovich wrote: > > On Mon, 1 Oct 2018 08:19:29 -0700 > > Zac Medico wrote: > > =20 > >> Hi all, > >> > >> The ~arch version of portage hs a new QA check that reports installati= on > >> of files outside of directories that have been whitelisted [1]. The > >> current whitelist includes: > >> > >> directories common to / and /usr > >> =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 > >> bin lib lib32 lib64 libx32 sbin > >> > >> top level directories > >> =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 > >> boot dev etc opt srv usr var > >> > >> /usr level directories > >> =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 > >> include libexec share src > >> > >> /usr/share/doc level directories > >> =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 > >> /usr/share/doc/${PF} =20 > >=20 > > As this will break existing ebuilds I'd suggest guarding it against > > next EAPI. Out of top of by head the change will break at least > > crossdev outright. At least for two reasons: > > 1. building a gcc cross-compiler usually refers to $SYSROOT/sys-include. > > 'git grep sys-include' will show a bunch of ebuilds that create that > > symlinks outside the space. > > 2. cross-building target libc is currently done on the host's emerge > > and installs into /usr/$CTARGET/. > >=20 > > I think whitelist would be able to cover these use cases as they are > > a function of ${CTARGET} (or $CATEGORY) value. =20 >=20 > The QA check currently does not die, it only calls eqawarn. So the worst > case is a message like this: >=20 > > QA: other > > The ebuild is installing to one or more unexpected paths: > > > > /usr/share/doc/qt-5.11.1 > > > > Please fix the ebuild to use correct FHS/Gentoo policy paths. =20 >=20 > It will be annoying if this message triggers for every package installed > by crossdev, so we should do something about that. Ah, QA warning is fine. We'll have some time to address it. For crossdev it should be only libc packages that do unusual paths (their initial version is installed into /. We'll fix it like https://bugs.gentoo.org/642604#c6 but it takes time). Normal packages should be installed into $SYSROOT proper. --=20 Sergei --Sig_/60c=Y/s=.pBxtmuI/hlIlDe Content-Type: application/pgp-signature Content-Description: Цифровая подпись OpenPGP -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQKTBAEBCgB9FiEE+g11JqJ4cL44QkmN7V5F4G8qwpMFAluylY9fFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEZB MEQ3NTI2QTI3ODcwQkUzODQyNDk4REVENUU0NUUwNkYyQUMyOTMACgkQ7V5F4G8q wpNkDA/+I5v2QCoXUbnF3WhjKqA9yikACJBk9LqazPjFDay+my6Cei9N4Zr2i8Nn 6Y5ql9gsvxzYb3348Z49Ne9/FjkxT0eRmDd7ZwpgWvOYjWAI0hgSUnW4mWw8Jatu jCuv44Gv34vOXUtbnivm1/SaEJc047i0JdNbAl3vbtcG7O2DpwptouFnWCoiewM8 3pZPErDXfXmUgBvmDto7jCDz+FbLkK0ZEaC5Q/fl3CSPWtRu8pq0IG6DHM96oC06 pWxI1zI1ge9JaWGXVWp/CAGhqB+QLZs4eXVZcWmETHSvrw/lWedoMLJXv+0i22Ru 1AnPbqieBYcEY6NVfunNdACYLmiUDW1Nz5Oc19DoEOpLWfa0Hqak8NsD4pKth9c4 IJnAla9Hw5GJU6sDXqoGW1ddcan9eMQBwKlGs/UvMqALygaChD5e4CjrwJy/eaKK SWys8hxmMgWSriw/lqq31lEEpuJXQP/gCs6gzcC65qOAjfalc0O9Jik8jbjbwjzo p2zgfKRn6UgaHFAhUMQQxwIDp1/0kW+DygNtrACBt0UsB0l3tIcXSDstZfYPSZr8 /HpgXZ2kl6Pa8TzIKo6HO66Chv/XXC51WXf/k5YwZcMEjnI4qojQEgEcCvrP5tzE q8WD4LEBG+ADgS0f6EtuGCSp59p620snHg26dRBFkyeQldhYh3o= =E9Tm -----END PGP SIGNATURE----- --Sig_/60c=Y/s=.pBxtmuI/hlIlDe--