Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 692774

Summary: [Future EAPI] Less strict naming rules for files in updates directory
Product: Gentoo Hosted Projects Reporter: Ulrich Müller <ulm>
Component: PMS/EAPIAssignee: PMS/EAPI <pms>
Status: CONFIRMED ---    
Severity: normal CC: esigra, mgorny, pacho
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=296713
Whiteboard: feasible-for-next-eapi
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 174380    

Description Ulrich Müller gentoo-dev 2019-08-23 16:00:55 UTC
Naming rules within the updates directory are currently:
"It contains one file per quarter year, named [1-4]Q-[YYYY] for the first to fourth quarter of a given year, for example 1Q-2004 or 3Q-2006."

This is rather strict and won't allow to change to a different (e.g., monthly or yearly) naming scheme. Also, I don't see why we would need that restriction in the spec.

Therefore, I'd suggest to update the rules for EAPI 8, along these lines:
"All files in this directory will be processed, unless their name begins with a dot. Any subdirectories will be ignored."
Comment 1 Ulrich Müller gentoo-dev 2020-10-24 15:50:50 UTC
(In reply to Ulrich Müller from comment #0)
> "All files in this directory will be processed, unless their name begins
> with a dot. Any subdirectories will be ignored."

Make this "All regular files in this directory will be processed, unless their name begins with a dot."
Comment 2 Zac Medico gentoo-dev 2020-11-22 08:48:51 UTC
If we allow arbitrary names in profiles/updates then I wonder how we're supposed to order the updates, given that order sometimes matters.
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2020-11-22 08:53:29 UTC
(In reply to Zac Medico from comment #2)
> If we allow arbitrary names in profiles/updates then I wonder how we're
> supposed to order the updates, given that order sometimes matters.

pkgcheck is supposed to report all the common cases, and make developers use idempotent updates.
Comment 4 Ulrich Müller gentoo-dev 2020-11-22 12:13:30 UTC
PMS doesn't specify any ordering right now:
https://projects.gentoo.org/pms/7/pms.html#x1-360004.4.4

As a matter of fact, I had complained about this in bug 296713, but ciaranm convinced me that the wording is fine as it is. (We could add the sentence I suggested in bug 296713 comment #14 if you think that it would clarify things.)