Skip to content

Conversation

@danigm
Copy link
Contributor

@danigm danigm commented Jul 4, 2025

For openSUSE it's recommented to use libalternatives instead of update-alternatives to support transactional updates. This patch changes the default update-alternatives configuration in the opensuse.spec template to use libalternatives by default.

https://en.opensuse.org/openSUSE:Update-alternatives_migration

For openSUSE it's recommented to use libalternatives instead of
update-alternatives to support transactional updates. This patch changes
the default update-alternatives configuration in the opensuse.spec
template to use libalternatives by default.

https://en.opensuse.org/openSUSE:Update-alternatives_migration
@danigm danigm force-pushed the libalternatives branch from 24c032a to 21a5289 Compare July 4, 2025 06:41
Copy link
Contributor

@mcepl mcepl left a comment

Choose a reason for hiding this comment

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

Absolutely! Thank you!

@mcepl mcepl merged commit 75e7b69 into master Jul 4, 2025
12 checks passed
@mcepl mcepl deleted the libalternatives branch July 4, 2025 07:44
{%- endif %}
BuildRequires: fdupes
{%- if scripts_or_console_scripts %}
BuildRequires: alts
Copy link
Member

Choose a reason for hiding this comment

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

this should be inside a %if 0%{?suse_version} > 1500 block

(console_scripts if console_scripts and console_scripts is not none else [])) %}
{%- if scripts_or_console_scripts %}
# Enable libalternatives by default
%bcond_without libalternatives
Copy link
Member

Choose a reason for hiding this comment

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

this should be inside a %if 0%{?suse_version} > 1500 block

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