* Re: [gentoo-portage-dev] [PATCH] install-qa-check.d: Add a QA check for installing xattrs
@ 2021-09-28 6:24 99% ` Michał Górny
0 siblings, 0 replies; 1+ results
From: Michał Górny @ 2021-09-28 6:24 UTC (permalink / raw
To: gentoo-portage-dev
On Mon, 2021-09-27 at 21:03 -0400, Mike Gilbert wrote:
> On Mon, Sep 27, 2021 at 1:20 PM Michał Górny <mgorny@gentoo.org> wrote:
> >
> > Warn the developers if ebuilds install files with xattrs to ${ED}.
> > The xattrs may or may not be preserved when installing the package,
> > making them unreliable on one hand, and somewhat suprising in other
> > cases (e.g. when they unintentionally leak from developer's system).
> >
> > This is the first step towards restoring PMS compliance and *not*
> > preserving extended metadata.
>
> How does preserving xattrs conflict with PMS?
The PMS doesn't specify that xattrs, ACLs, caps etc. are preserved.
By doing that, Portage allows developers to commit ebuilds that are not
going to work reliably without even realizing it. In fact, this can't
even work reliably inside Portage itself, depending on the filesystem
used for $D.
Furthermore, doexe preserving stuff goes contrary to common sense. Why
would helpers preserve xattrs when they are supposed to reset things
like mode and ownership by design?
> Is there a bug report you could reference?
It starts with https://bugs.gentoo.org/814857.
--
Best regards,
Michał Górny
^ permalink raw reply [relevance 99%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2021-09-27 17:20 [gentoo-portage-dev] [PATCH] install-qa-check.d: Add a QA check for installing xattrs Michał Górny
2021-09-28 1:03 ` Mike Gilbert
2021-09-28 6:24 99% ` Michał Górny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox