Bug 11631 - Missing mariadb deps when packaging
Summary: Missing mariadb deps when packaging
Status: RESOLVED FIXED
Alias: None
Product: Slurm
Classification: Unclassified
Component: Build System and Packaging (show other bugs)
Version: 20.11.7
Hardware: Linux Linux
: --- C - Contributions
Assignee: Tim Wickberg
QA Contact:
URL:
Depends on:
Blocks:
 
Reported: 2021-05-17 06:54 MDT by Benoit Leveugle
Modified: 2021-05-17 11:54 MDT (History)
0 users

See Also:
Site: -Other-
Alineos Sites: ---
Atos/Eviden Sites: ---
Confidential Site: ---
Coreweave sites: ---
Cray Sites: ---
DS9 clusters: ---
HPCnow Sites: ---
HPE Sites: ---
IBM Sites: ---
NOAA SIte: ---
OCF Sites: ---
Recursion Pharma Sites: ---
SFW Sites: ---
SNIC sites: ---
Linux Distro: CentOS
Machine Name:
CLE Version:
Version Fixed: 20.11.6
Target Release: ---
DevPrio: ---
Emory-Cloud Sites: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Benoit Leveugle 2021-05-17 06:54:30 MDT
Hi,

It has been a while I build slurm, and I always face the same issue, which is minor, but in case of.

Operating system: RedHat 8

By default, if you rpmbuild the sources, it requires on a basic system:

dnf install -y pam-devel readline-devel perl-ExtUtils-MakeMaker

But, in fact, it cannot build without mariadb:

Processing files: slurm-slurmdbd-20.11.7-1.el8.x86_64
error: File not found: /root/rpmbuild/BUILDROOT/slurm-20.11.7-1.el8.x86_64/usr/lib64/slurm/accounting_storage_mysql.so


RPM build errors:
    Macro expanded in comment on line 22: %_prefix path         install path for commands, libraries, etc.

    Macro expanded in comment on line 170: %define _unpackaged_files_terminate_build      0

    Empty %files file /root/rpmbuild/BUILD/slurm-20.11.7/slurm.files
    File not found: /root/rpmbuild/BUILDROOT/slurm-20.11.7-1.el8.x86_64/usr/lib64/slurm/accounting_storage_mysql.so
    File listed twice: /usr/lib/.build-id/16/bd7d3687c4d04477527cf03d3132964766c76e
    File listed twice: /usr/lib/.build-id/23/aa730b73b518bc386488f3abec715b5426e04d
    File listed twice: /usr/lib/.build-id/ac/af8da33778f7e9b3e66dac20a687b413b7a84e
    File listed twice: /usr/lib/.build-id/f4/bfc3c3bf62d057a58f179f6425a4bc619b97c2
    Deprecated external dependency generator is used!
    Deprecated external dependency generator is used!
    Deprecated external dependency generator is used!
    Empty %files file /root/rpmbuild/BUILD/slurm-20.11.7/example.configs
    Deprecated external dependency generator is used!
    Deprecated external dependency generator is used!
    Deprecated external dependency generator is used!
    File not found: /root/rpmbuild/BUILDROOT/slurm-20.11.7-1.el8.x86_64/usr/lib64/slurm/accounting_storage_mysql.so

Which is solved by:

dnf install mariadb mariadb-devel

So maybe a missing dependency in the spec file ?

With my best regards

Benoît
Comment 1 Tim Wickberg 2021-05-17 11:41:10 MDT
Due to the mix of systems Slurm needs to support, and the inconsistencies in upstream packaging, we intentionally omit any dependency on MariaDB and/or MySQL at this time.

If we do address this, bug 6488 will have further details.

*** This bug has been marked as a duplicate of bug 6488 ***
Comment 2 Benoit Leveugle 2021-05-17 11:54:40 MDT
I understand your POW and the needs to cover multiple distributions.

Then you can close this ticket :-)

Thanks a lot for the answer.
Have a nice week

With my best regards

Benoît