Skip to content

el9/10: parity bits - #2659

Merged
supakeen merged 6 commits into
osbuild:mainfrom
supakeen:el9-10-container-weak-deps
Sep 4, 2026
Merged

supakeen merged 6 commits into
osbuild:mainfrom
supakeen:el9-10-container-weak-deps

Conversation

@supakeen

@supakeen supakeen commented Sep 4, 2026 •

Copy link
Copy Markdown
Member

Previously produced container for CentOS 9 and 10 did not include weak dependencies. Including them pulls in a whole chain of packages (see 1). Turning it off again seems uncontroversial so let's do that.


Also add the install_langs macro during build time to make sure we don't include additional languages.


Also persist the install_langs macro in the built image.

Previously produced container for CentOS 9 and 10 did not include weak
dependencies. Including them pulls in a whole chain of packages (see
[1]). Turning it off again seems uncontroversial so let's do that.

[1]: osbuild#2658

Signed-off-by: Simon de Vlieger <[email protected]>
@supakeen
supakeen requested a review from a team as a code owner September 4, 2026 10:54
achilleas-k
achilleas-k previously approved these changes Sep 4, 2026

@achilleas-k achilleas-k left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@supakeen
supakeen marked this pull request as draft September 4, 2026 12:42
@supakeen supakeen changed the title el9/10: don't install weak deps in containers el9/10: parity bits Sep 4, 2026
Set the install_langs macro during installation so that we don't install
various language packs that increase container image size.

Signed-off-by: Simon de Vlieger <[email protected]>
Add a Go wrapper for the org.osbuild.rpm.macros stage.

This stage allows writing files in the appropriate format for RPM macros
and we want to use it to write some things into the CentOS containers.

Signed-off-by: Simon de Vlieger <[email protected]>
Allow configuring RPM macros to be persisted into an image. This is
*slightly* awkward since the `_install_langs` macro can now be set in
two places one that only affects build time, and one that only affects
the built image.

We can consolidate that later.

Signed-off-by: Simon de Vlieger <[email protected]>
Plumb the RPM macros stage through to the manifest generation parts of
the code.

Signed-off-by: Simon de Vlieger <[email protected]>
Persist the RPM install_langs macro in the created container image by
writing it.

Signed-off-by: Simon de Vlieger <[email protected]>
@supakeen
supakeen force-pushed the el9-10-container-weak-deps branch from d35616f to a08f9d4 Compare September 4, 2026 14:53
@supakeen
supakeen marked this pull request as ready for review September 4, 2026 14:53

@achilleas-k achilleas-k left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Allow configuring RPM macros to be persisted into an image. This is slightly awkward since the _install_langs macro can now be set in two places one that only affects build time, and one that only affects the built image.

We can consolidate that later.

I assume we're in a hurry with these? Let's make sure to clean it up, it's a bit weird I agree.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh wow, this stage is ancient. How did we not have it until now?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We never actually needed it but I'm happy it exists 🙂

@supakeen

supakeen commented Sep 4, 2026

Copy link
Copy Markdown
Member Author

Allow configuring RPM macros to be persisted into an image. This is slightly awkward since the _install_langs macro can now be set in two places one that only affects build time, and one that only affects the built image.
We can consolidate that later.

I assume we're in a hurry with these? Let's make sure to clean it up, it's a bit weird I agree.

Yep, relative hurry I definitely want to revisit it so I'll file an issue to track it.

@brlane-rht brlane-rht left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

@supakeen
supakeen enabled auto-merge September 4, 2026 15:49
@supakeen
supakeen added this pull request to the merge queue Sep 4, 2026
Merged via the queue into osbuild:main with commit 7a77483 Sep 4, 2026
49 of 56 checks passed
@supakeen
supakeen deleted the el9-10-container-weak-deps branch September 4, 2026 16:51
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.

3 participants