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

ULC: build the universal linux client also for rpm based OS. #1824

Open
wants to merge 15 commits into
base: master
Choose a base branch
from

Conversation

pstorz
Copy link
Member

@pstorz pstorz commented May 21, 2024

Thank you for contributing to the Bareos Project!

Please check

  • Short description and the purpose of this PR is present above this paragraph
  • Your name is present in the AUTHORS file (optional)

If you have any questions or problems, please give a comment in the PR.

Helpful documentation and best practices

Checklist for the reviewer of the PR (will be processed by the Bareos team)

Make sure you check/merge the PR using devtools/pr-tool to have some simple automated checks run and a proper changelog record added.

General
  • Is the PR title usable as CHANGELOG entry?
  • Purpose of the PR is understood
  • Commit descriptions are understandable and well formatted
  • Required backport PRs have been created
Source code quality
  • Source code changes are understandable
  • Variable and function names are meaningful
  • Code comments are correct (logically and spelling)
  • Required documentation changes are present and part of the PR
Tests
  • Decision taken that a test is required (if not, then remove this paragraph)
  • The choice of the type of test (unit test or systemtest) is reasonable
  • Testname matches exactly what is being tested
  • On a fail, output of the test leads quickly to the origin of the fault

@pstorz pstorz force-pushed the dev/pstorz/master/ulc-for-rpm branch from 33d2195 to 678c4fa Compare May 22, 2024 16:40
@arogge arogge linked an issue May 23, 2024 that may be closed by this pull request
@pstorz pstorz force-pushed the dev/pstorz/master/ulc-for-rpm branch from 930aff9 to c77727c Compare May 27, 2024 09:37
.matrix.yml Outdated
IMAGE: "rhel8"
BUILD_SCRIPT: CD/rpm/build-ulc.sh
FINISH_SCRIPT: CD/rpm/finish-ulc.sh
CUSTOM_TEST_IMAGES: [ "rhel8", "rhel9" ]
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
CUSTOM_TEST_IMAGES: [ "rhel8", "rhel9" ]
CUSTOM_TEST_IMAGES: [ Rocky-8, Fedora-36, Fedora-37, SLE-15_sp6 ]

@pstorz pstorz force-pushed the dev/pstorz/master/ulc-for-rpm branch 2 times, most recently from 7cfb674 to aa56690 Compare June 7, 2024 11:54
Copy link
Member

@arogge arogge left a comment

Choose a reason for hiding this comment

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

we need to address a few things in the spec to make it work cross-distro (i.e. on SUSE and maybe others, too)

Comment on lines 165 to 169
%if 0%{?suse_version}
Requires(pre): shadow
%else
Requires(pre): shadow-utils
%endif
Copy link
Member

Choose a reason for hiding this comment

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

we cannot have distro-dependant Requires in the ULC package

Comment on lines 176 to 181
%if 0%{?suse_version}
Requires(pre): shadow
%else
Requires(pre): glibc-common
Requires(pre): shadow-utils
%endif
Copy link
Member

Choose a reason for hiding this comment

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

same here, dependencies cannot depend on the distro

Copy link
Member

Choose a reason for hiding this comment

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

I think we can remove the requirement on glibc-common and replace the shadow/shadow-utils requirement with

Requires: /usr/sbin/useradd
Requires: /usr/sbin/groupadd

Copy link
Member

Choose a reason for hiding this comment

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

maybe it makes sense to replace the other package dependencies (i.e. sed, gawk, grep, etc.) by program dependencies, too

@arogge arogge added this to the 24.0.0 milestone Jun 25, 2024
@pstorz pstorz force-pushed the dev/pstorz/master/ulc-for-rpm branch from fe0adb5 to 3c96a1b Compare June 28, 2024 08:20
@pstorz pstorz force-pushed the dev/pstorz/master/ulc-for-rpm branch from 3c96a1b to 2ae6e33 Compare June 28, 2024 08:28
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.

build RPM version of ULC
2 participants