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
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. ***