Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revert "package: Expand "*" to empty if it matches CC" #86

Closed
wants to merge 1 commit into from

Conversation

mattst88
Copy link
Contributor

@mattst88 mattst88 commented Feb 15, 2024

Revert "package: Expand "*" to empty if it matches CC"

This reverts commit 2e079dd.

Given a package list containing =category/package-${PV}*, nattka will
remove the * and not replace it with a list of architecture keywords
iff the set of architectures to be CC'd matches the set of stable
keywords for =category/package-${PV}.

This behavior was added in commit 2e079dd ("package: Expand "*" to empty
if it matches CC") to allow reusing a stabilization bug for an
additional architecture by only adding the new architecture to the CC
list.

This has the unfortunate side-effect of making a nattka-processed
package list unacceptable to nattka itself if the package list needs to
be modified. See https://bugs.gentoo.org/920053#c18 for example.

Revert to the original behavior of always expanding * to the
architecture list. If a stabilization needs to happen on an additional
architecture, the additional architecture keyword should be added to the
package list so nattka can sanity-check it.

Signed-off-by: Matt Turner mattst88@gentoo.org

Related: #36

@mattst88
Copy link
Contributor Author

Neither CI failure is related to my PR.

This reverts commit 2e079dd.

Given a package list containing `=category/package-${PV}*`, nattka will
remove the `*` and not replace it with a list of architecture keywords
iff the set of architectures to be CC'd matches the set of stable
keywords for `=category/package-${PV}`.

This behavior was added in commit 2e079dd ("package: Expand "*" to empty
if it matches CC") to allow reusing a stabilization bug for an
additional architecture by only adding the new architecture to the CC
list.

This has the unfortunate side-effect of making a nattka-processed
package list unacceptable to nattka itself if the package list needs to
be modified. See https://bugs.gentoo.org/920053#c18 for example.

Revert to the original behavior of always expanding `*` to the
architecture list. If a stabilization needs to happen on an additional
architecture, the additional architecture keyword should be added to the
package list so nattka can sanity-check it.

Signed-off-by: Matt Turner <mattst88@gentoo.org>
@mattst88 mattst88 force-pushed the always-expand-asterisk branch from 39ffa7d to 030ea2c Compare February 26, 2024 16:32
@thesamesam
Copy link
Contributor

I think there's arguments for both behaviours, but I prefer the change you're proposing, because the status quo is destructive wrt package list.

@mgorny mgorny closed this in c5b1611 Mar 6, 2024
@mattst88 mattst88 deleted the always-expand-asterisk branch January 14, 2025 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants