| Summary: | spec file does not manage mariadb/mysql dependency for building accounting_storage_mysql.so | ||
|---|---|---|---|
| Product: | Slurm | Reporter: | Regine Gaudin <regine.gaudin> |
| Component: | Build System and Packaging | Assignee: | Unassigned Developer <dev-unassigned> |
| Status: | OPEN --- | QA Contact: | |
| Severity: | 5 - Enhancement | ||
| Priority: | --- | CC: | benoit.leveugle, kilian, matthieu.hautreux, Ole.H.Nielsen, regine.gaudin |
| Version: | 18.08.4 | ||
| Hardware: | Linux | ||
| OS: | Linux | ||
| See Also: |
https://bugs.schedmd.com/show_bug.cgi?id=6511 https://bugs.schedmd.com/show_bug.cgi?id=8882 |
||
| Site: | CEA | Slinky Site: | --- |
| Alineos Sites: | --- | Atos/Eviden Sites: | --- |
| Confidential Site: | --- | Coreweave sites: | --- |
| Cray Sites: | --- | DS9 clusters: | --- |
| Google sites: | --- | HPCnow Sites: | --- |
| HPE Sites: | --- | IBM Sites: | --- |
| NOAA SIte: | --- | NoveTech Sites: | --- |
| Nvidia HWinf-CS Sites: | --- | OCF Sites: | --- |
| Recursion Pharma Sites: | --- | SFW Sites: | --- |
| SNIC sites: | --- | Tzag Elita Sites: | --- |
| Linux Distro: | --- | Machine Name: | |
| CLE Version: | Version Fixed: | 18.08.6, 19.05 | |
| Target Release: | --- | DevPrio: | --- |
| Emory-Cloud Sites: | --- | ||
| Attachments: | build log | ||
Confirmed your error. Looking at how best to fix it now. Created attachment 9146 [details]
patch
Gaudin, The issue has been fixed by this patch for 18.08.6: https://github.com/SchedMD/slurm/commit/d18e26b9719e06a Please reply to reopen this ticket if you have any issues or questions. Thanks, --Nate Gaudin, The fix was included with 18.08.6, and was removed from 18.08.6-2. Other sites found that the behavior change caused issues and we will reconsider the change for future releases. Thanks, --Nate We are currently forcing the use of mysql/mariadb-devel adding
buildrequires in slurm.spec:
# Build with mysql by default on linux
%bcond_without mysql
%if %{with mysql}
BuildRequires: mysql-devel >= 5.0.0
%endif
yum provides mysql-devel is pointing on mariadb-devel package
Regine
Hi there, It looks like this issue is still present in 19.05.2. Is there an issue with adding "BuildRequires: mysql-devel" when mysql support is activated, as Regine proposed in #c11? That looks like a good solution to me. Cheers, -- Kilian (In reply to Kilian Cavalotti from comment #15) > It looks like this issue is still present in 19.05.2. > > Is there an issue with adding "BuildRequires: mysql-devel" when mysql > support is activated, as Regine proposed in #c11? That looks like a good > solution to me. The patch was reverted for 19.05.2 to avoid other build issues. Can you please attach your build log? Created attachment 11648 [details] build log Hi Nate, Just to clarify, I'm referring to the suggestion of adding this to the spec file: -- 8< ---------------------------------- # Build with mysql by default on linux %bcond_without mysql %if %{with mysql} BuildRequires: mysql-devel >= 5.0.0 %endif -- 8< ---------------------------------- not to the patch from https://github.com/SchedMD/slurm/commit/d18e26b9719e06a The build log is attached. Thanks! -- Kilian (In reply to Kilian Cavalotti from comment #17) > Just to clarify, I'm referring to the suggestion of adding this to the spec > not to the patch from https://github.com/SchedMD/slurm/commit/d18e26b9719e06a Killian, We are discussing internally how best to proceed with fixing the rpm spec files. Thanks, --Nate *** Ticket 8882 has been marked as a duplicate of this ticket. *** *** Ticket 11631 has been marked as a duplicate of this ticket. *** |
Package mariadb-devel is not required but its missing leads to failure of the rpmbuild (18.08.04 but also all 17.11.06) [root@vm0 SPECS]# yum-builddep slurm.spec Loaded plugins: priorities 694 packages excluded due to repository priority protections Getting requirements for slurm.spec --> Already installed : systemd-219-30.el7_3.9.x86_64 --> Already installed : munge-devel-0.5.11-3.el7.x86_64 --> Already installed : munge-libs-0.5.11-3.el7.x86_64 --> Already installed : python-2.7.5-48.el7.x86_64 --> Already installed : readline-devel-6.2-9.el7.x86_64 --> Already installed : 1:openssl-devel-1.0.1e-60.el7_3.1.x86_64 --> Already installed : 1:openssl-1.0.1e-60.el7_3.1.x86_64 --> Already installed : perl-ExtUtils-MakeMaker-6.68-3.el7.noarch --> Already installed : pam-devel-1.1.8-18.el7.x86_64 No uninstalled build requires [root@vm0 SPECS]# rpm -qa|grep mariadb [root@vm0 SPECS]# [root@vm0 SPECS]#rpmbuild -ba slurm.spec ... Processing files: slurm-slurmdbd-18.08.4-1.el7.x86_64 error: File not found: /root/rpmbuild/BUILDROOT/slurm-18.08.4-1.el7x86_64/usr/lib64/slurm/accounting_storage_mysql.so RPM build errors: File not found: /root/rpmbuild/BUILDROOT/slurm-18.08.4-1.el7.x86_64/usr/lib64/slurm/accounting_storage_mysql.so File not found: /root/rpmbuild/BUILDROOT/slurm-18.08.4-1.el7.x86_64/usr/lib64/slurm/accounting_storage_mysql.so After installation of mariadb-devel build is ok [root@vm0 SPECS]# rpm -qa|grep -i mariadb mariadb-devel-5.5.52-1.el7.x86_64 mariadb-libs-5.5.52-1.el7.x86_64 Checking for unpackaged file(s): /usr/lib/rpm/check-files /root/rpmbuild/BUILDROOT/slurm-18.08.4-1.el7.x86_64 Wrote: /root/rpmbuild/SRPMS/slurm-18.08.4-1.el7.src.rpm Wrote: /root/rpmbuild/RPMS/x86_64/slurm-18.08.4-1el7.x86_64.rpm Wrote: /root/rpmbuild/RPMS/x86_64/slurm-perlapi-18.08.4-1.el7.x86_64.rpm Wrote: /root/rpmbuild/RPMS/x86_64/slurm-devel-18.08.4-1.el7.x86_64.rpm Wrote: /root/rpmbuild/RPMS/x86_64/slurm-example-configs-18.08.4-1.el7.86_64.rpm Wrote: /root/rpmbuild/RPMS/x86_64/slurm-slurmctld-18.08.4-1.el7.x86_64.rpm Wrote: /root/rpmbuild/RPMS/x86_64/slurm-slurmd-18.08.4-1.el7.x86_64.rpm Wrote: /root/rpmbuild/RPMS/x86_64/slurm-slurmdbd-18.08.4-1.el7.x86_64.rpm Wrote: /root/rpmbuild/RPMS/x86_64/slurm-libpmi-18.08.4-1.el7.x86_64.rpm Wrote: /root/rpmbuild/RPMS/x86_64/slurm-torque-18.08.4-1.el7.x86_64.rpm Wrote: /root/rpmbuild/RPMS/x86_64/slurm-openlava-18.08.4-1.l7.x86_64.rpm Wrote: /root/rpmbuild/RPMS/x86_64/slurm-contribs-18.08.4-1.el7.x86_64.rpm Wrote: /root/rpmbuild/RPMS/x86_64/slurm-pam_slurm-18.08.4-1.el7.x86_64.rpm