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

Add dmidecode as Recommends to elemental-register #702

Merged

Conversation

anmazzotti
Copy link
Contributor

No description provided.

@anmazzotti anmazzotti requested a review from a team as a code owner April 16, 2024 13:31
Copy link

codecov bot commented Apr 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 58.02%. Comparing base (f07a038) to head (c2cbe80).
Report is 71 commits behind head on main.

❗ Current head c2cbe80 differs from pull request most recent head 8c86fca. Consider uploading reports for the commit 8c86fca to get more accurate results

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #702      +/-   ##
==========================================
+ Coverage   53.79%   58.02%   +4.22%     
==========================================
  Files          40       40              
  Lines        6073     4974    -1099     
==========================================
- Hits         3267     2886     -381     
+ Misses       2519     1779     -740     
- Partials      287      309      +22     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@anmazzotti anmazzotti self-assigned this Apr 16, 2024
@@ -59,6 +59,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
%package -n elemental-register
Summary: The registration client

Requires: dmidecode
Requires: libopenssl1_1
Copy link
Contributor

Choose a reason for hiding this comment

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

Libraries must not appear in Requires. The build process has tooling in place to automatically find library dependencies.

@@ -59,6 +59,9 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build
%package -n elemental-register
Summary: The registration client

Requires: dmidecode
Copy link
Contributor

Choose a reason for hiding this comment

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

Not sure about this. Is this really required (in the sense of: program won't work / will crash without) ?
Otherwise it should be a Recommends 😉

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Technically we will fail to register, because the no-smbios Registration flag is off by default.
However it should be possible for users to do a --no-recommends install, using the no-smbios flag if they need to. So this is probably the best approach.
Thank you.

Copy link
Contributor

@kkaempf kkaempf left a comment

Choose a reason for hiding this comment

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

👍🏻

@kkaempf kkaempf enabled auto-merge (squash) April 16, 2024 13:47
@kkaempf kkaempf changed the title Add dmidecode and libopenssl1_1 requirements to elemental-register Add dmidecode as Recommends to elemental-register Apr 16, 2024
@anmazzotti anmazzotti disabled auto-merge April 16, 2024 13:52
@anmazzotti anmazzotti enabled auto-merge (squash) April 16, 2024 13:53
@anmazzotti anmazzotti merged commit 47516fd into rancher:main Apr 16, 2024
21 of 22 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants