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

SuSE sles15.4: small correction for munge.spec #134

Closed
wrussian opened this issue Jul 3, 2023 · 2 comments
Closed

SuSE sles15.4: small correction for munge.spec #134

wrussian opened this issue Jul 3, 2023 · 2 comments

Comments

@wrussian
Copy link

wrussian commented Jul 3, 2023

Hello, many for the excellent application.
While trying to compile (gcc, gcc-c++,... version 7.5.0) on SuSE sles15.4 the following changes had to made to succeed to run rpmbuild:

  • zypper install --no-recommends gpg2 libzip5 libzip-devel
    gnupg2 --> gpg2
    bzip2-devel --> (libzip5 libzip-devel)

  • to set this into effect, I manually changed the munge.spec. Diff reads as:
    -~/software/munge-0.5.15 # diff munge.spec munge.spec-20230703
    24c24
    < BuildRequires: gpg2


BuildRequires: gnupg2
27,28c27
< BuildRequires: libzip-devel
< BuildRequires: libzip5


BuildRequires: bzip2-devel
-> maybe the distro version can be detected automatically and the BuildRequires can be made distro specific,
Anyway, the workaround is good enough for me.

Cheers,
-Frank Heckes

@dun
Copy link
Owner

dun commented Jul 5, 2023

Hi Frank. Thanks for the changes.

The project specfile targets RHEL. The pragmatic reason for this choice is that's what we run in production, and distros will always use their own custom specfile. In practice, the systems on which I currently test the specfile include AlmaLinux 8+, CentOS 7+, CentOS Stream, the last several Fedora releases, and the RHEL versions we run in production. Those are similar enough that I've been able to do so with minimal changes.

In the past, I've tried having the specfile support openSUSE as well but had to contend with multiple %if-blocks between releases. The maintenance became too burdensome. But if I have time, I'll try to revisit this and see what would be involved in supporting openSUSE again (which I think should also work on SLES).

I just checked my vm systems and openSUSE 15.4 & 15.5 are both at munge-0.5.15. I don't have any SLES systems on which to test (and as such can't readily support it). Re: your changes, libzip5 and libzip-devel are not the same as bzip2-devel; on openSUSE, it's called libbz2-devel.

@wrussian
Copy link
Author

wrussian commented Jul 6, 2023 via email

@dun dun closed this as completed Jul 7, 2023
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

No branches or pull requests

2 participants