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 5C015138334 for ; Mon, 1 Oct 2018 15:34:48 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A47AFE09D4; Mon, 1 Oct 2018 15:34:44 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 5B254E09CD for ; Mon, 1 Oct 2018 15:34:43 +0000 (UTC) Received: from mail-io1-f41.google.com (mail-io1-f41.google.com [209.85.166.41]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) (Authenticated sender: floppym) by smtp.gentoo.org (Postfix) with ESMTPSA id 82BD033BE2F for ; Mon, 1 Oct 2018 15:34:42 +0000 (UTC) Received: by mail-io1-f41.google.com with SMTP id y3-v6so9769087ioc.5 for ; Mon, 01 Oct 2018 08:34:42 -0700 (PDT) X-Gm-Message-State: ABuFfoiXWjSG5giQfAJ+IxN/iqls5doqvMkOWWGzEao2MFM40X2yd0LU /x9jNkjJO5ZfTaTqs56ArC7t225NYY+CbFJAUek= X-Google-Smtp-Source: ACcGV62fjSg83J6trnrcNRG++hPdMb+pn7PmGhn1B3yHCb2JwzuHCbJ5BLQ1IWVbFhVVl8hauhw9vhhUnQkgASnh+Fk= X-Received: by 2002:a6b:ea0f:: with SMTP id m15-v6mr3157445ioc.18.1538408080537; Mon, 01 Oct 2018 08:34:40 -0700 (PDT) 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 References: <1df93cd0-b3e7-56cf-3a29-bfaed2069e02@gentoo.org> In-Reply-To: <1df93cd0-b3e7-56cf-3a29-bfaed2069e02@gentoo.org> From: Mike Gilbert Date: Mon, 1 Oct 2018 11:34:29 -0400 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [gentoo-dev] RFC: Portage QA check for FHS/Gentoo policy paths, for top-level dirs and /usr/share/doc To: Gentoo Dev Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Archives-Salt: b6e0fa25-6b8b-43f7-bf86-36911b3a2c74 X-Archives-Hash: 65b7994a22e364798cfd2a2d9534eb78 On Mon, Oct 1, 2018 at 11:19 AM Zac Medico wrote: > > Hi all, > > The ~arch version of portage hs a new QA check that reports installation > 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} > > The first bug report [2] is for qt-core, which installs documentation > into /usr/share/doc/${PN}-${PV} instead of /usr/share/doc/${PF} (${PF} > includes ebuild revision such as -r1, -r2, and so on). > > I have created a patch that will allow ebuilds to whitelist directories > by setting a QA_INSTALL_PATHS variable [3], however @mgorny said: > > On Mon, Oct 1, 2018 at 12:34 AM Micha=C5=82 G=C3=B3rny wrote: > > QA NAK on this. The purpose of QA checks is not for ebuilds to > > officially override them because histerical raisins. I don't think QA has the final word on features that are added to the package manager. They can prevent abuse of those features by ebuilds in the repository, however. Personally, I think compatibility with historical code is a perfectly valid reason to make an exception here.