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."
(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."
If we allow arbitrary names in profiles/updates then I wonder how we're supposed to order the updates, given that order sometimes matters.
(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.
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.)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=09d783eb12ed1f93550d86f1ee2437012ffc7cc2 commit 09d783eb12ed1f93550d86f1ee2437012ffc7cc2 Author: Michał Górny <mgorny@gentoo.org> AuthorDate: 2021-05-12 16:10:10 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2021-05-24 04:40:21 +0000 Relax update filenames as permitted for EAPI 8 Bug: https://bugs.gentoo.org/692774 Signed-off-by: Michał Górny <mgorny@gentoo.org> Signed-off-by: Zac Medico <zmedico@gentoo.org> lib/portage/update.py | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-)
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/pms.git/commit/?id=a14e130eacbd19fb8e835d2d385ac94ba693f23a commit a14e130eacbd19fb8e835d2d385ac94ba693f23a Author: Ulrich Müller <ulm@gentoo.org> AuthorDate: 2021-05-16 16:44:50 +0000 Commit: Ulrich Müller <ulm@gentoo.org> CommitDate: 2021-06-05 08:55:33 +0000 EAPI 8 has less strict naming rules in the updates directory Bug: https://bugs.gentoo.org/692774 Signed-off-by: Ulrich Müller <ulm@gentoo.org> eapi-differences.tex | 5 ++++- tree-layout.tex | 25 +++++++++++++++++++++---- 2 files changed, 25 insertions(+), 5 deletions(-)