Skip to content

Conversation

@jreidinger
Copy link
Contributor

@jreidinger jreidinger commented Jun 25, 2025

Problem

For SLES16 the minimal system can be without libzypp (Confirmed with Frederic Crozat). If it is case together with onlyRequires flag, then software service crashes when trying to load zypp.conf.

Solution

Add check if file exists and if not, just log it and continue.
Also change as agreed modification of zypp.conf to explicitly write onlyRequires if user explicitly mention it in profile to not just use libzypp default.

Testing

  • Tested manually
  • CI failure (not caused here, related to a switch to a non-SUSE platform to make CI faster) worked around by:
    • *.rs: #[cfg(not(ci))]
    • ci.yml: env: RUSTFLAGS: --cfg ci

Documentation

No change: working without crashing is not a special case.

@jreidinger jreidinger force-pushed the only_required_sles branch from 319bb88 to 63e41e0 Compare June 25, 2025 20:56
@jreidinger jreidinger marked this pull request as ready for review June 25, 2025 21:14
Copy link
Contributor

@mvidner mvidner left a comment

Choose a reason for hiding this comment

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

The main question is: is the missing libzypp a feature, or a bug? We still haven't confirmed which is the case.

@jreidinger
Copy link
Contributor Author

@mvidner according to https://suse.slack.com/archives/C082VE1U2F5/p1750842000769769?thread_ts=1750758112.536869&cid=C082VE1U2F5 I would say it is backward compatible with SLE15 where libzypp is not mandatory on target system. Of course there are ways for users how to add it like sw_management pattern or directly in list of packages. So I would say missing libzypp is feature that was already in SLE15 ( just maybe yast cannot do it? not sure )

@jreidinger
Copy link
Contributor Author

BTW I am off today, so when approved, feel free to merge

Copy link
Contributor

@imobachgs imobachgs left a comment

Choose a reason for hiding this comment

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

The part about skipping the tests in CI looks good.

@lslezak lslezak merged commit e9b4908 into master Jun 26, 2025
18 checks passed
@lslezak lslezak deleted the only_required_sles branch June 26, 2025 12:00
@imobachgs imobachgs mentioned this pull request Jun 30, 2025
imobachgs added a commit that referenced this pull request Jun 30, 2025
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.

5 participants