Gentoo Archives: gentoo-dev

From: Zac Medico <zmedico@g.o>
To: gentoo development <gentoo-dev@l.g.o>
Subject: [gentoo-dev] RFC: Portage QA check for FHS/Gentoo policy paths, for top-level dirs and /usr/share/doc
Date: Mon, 01 Oct 2018 15:19:44
Message-Id: 1df93cd0-b3e7-56cf-3a29-bfaed2069e02@gentoo.org
1 Hi all,
2
3 The ~arch version of portage hs a new QA check that reports installation
4 of files outside of directories that have been whitelisted [1]. The
5 current whitelist includes:
6
7 directories common to / and /usr
8 ================================
9 bin lib lib32 lib64 libx32 sbin
10
11 top level directories
12 ================================
13 boot dev etc opt srv usr var
14
15 /usr level directories
16 ================================
17 include libexec share src
18
19 /usr/share/doc level directories
20 ================================
21 /usr/share/doc/${PF}
22
23 The first bug report [2] is for qt-core, which installs documentation
24 into /usr/share/doc/${PN}-${PV} instead of /usr/share/doc/${PF} (${PF}
25 includes ebuild revision such as -r1, -r2, and so on).
26
27 I have created a patch that will allow ebuilds to whitelist directories
28 by setting a QA_INSTALL_PATHS variable [3], however @mgorny said:
29
30 On Mon, Oct 1, 2018 at 12:34 AM Michał Górny <mgorny@g.o> wrote:
31 > QA NAK on this. The purpose of QA checks is not for ebuilds to
32 > officially override them because histerical raisins.
33
34 [1]
35 https://gitweb.gentoo.org/proj/portage.git/commit/?id=d5f97eaa464736a454c8ad410f4acd4fccdf2324
36 [2] https://bugs.gentoo.org/667280
37 [3] https://bugs.gentoo.org/667378
38 --
39 Thanks,
40 Zac

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies