Hi all,

I would like to revive this old thread, as we've been bitten by this
also when moving from 14.11 to 15.08.

On Mon, Oct 5, 2015 at 4:38 AM, Bjørn-Helge Mevik <[email protected]> wrote:
> We have verified that we can compile openmpi (1.8.6) against slurm
> 14.03.7 (with the .la files removed), and then upgrade slurm to 15.08.0
> without having to recompile openmpi.
>
> My understanding of linking and libraries is not very thorough,
> unfortunately, but according to
>
> https://lists.fedoraproject.org/pipermail/mingw/2012-January/004421.html
>
> the .la files are only needed in order to link against static libraries,
> and since Slurm doesn't provide any static libraries, I guess it would
> be safe for the slurm-devel rpm not to include these files.

I think the link above describes the situation pretty well. Could we
please remove the .la files from the slurm-devel RPM if they don't
serve any specific purpose?
The attached patch to slurm.spec worked for me.

Cheers,
-- 
Kilian
--- slurm.spec.orig	2016-01-20 13:56:14.000000000 -0800
+++ slurm.spec	2016-02-04 13:21:05.636581599 -0800
@@ -507,14 +507,6 @@
 install -D -m755 contribs/sgather/sgather ${RPM_BUILD_ROOT}%{_bindir}/sgather
 install -D -m755 contribs/sjstat ${RPM_BUILD_ROOT}%{_bindir}/sjstat
 
-# Correct some file permissions
-test -f $RPM_BUILD_ROOT/%{_libdir}/libpmi.la	&&
-	chmod 644 $RPM_BUILD_ROOT/%{_libdir}/libpmi.la
-test -f $RPM_BUILD_ROOT/%{_libdir}/libslurm.la	&&
-	chmod 644 $RPM_BUILD_ROOT/%{_libdir}/libslurm.la
-test -f $RPM_BUILD_ROOT/%{_libdir}/libslurmdb.la &&
-	chmod 644 $RPM_BUILD_ROOT/%{_libdir}/libslurmdb.la
-
 # Delete unpackaged files:
 test -s $RPM_BUILD_ROOT/%{_perldir}/auto/Slurm/Slurm.bs         ||
 rm   -f $RPM_BUILD_ROOT/%{_perldir}/auto/Slurm/Slurm.bs
@@ -663,10 +655,6 @@
 
 LIST=./devel.files
 touch $LIST
-test -f $RPM_BUILD_ROOT/%{_libdir}/libpmi.la			&&
-  echo %{_libdir}/libpmi.la				>> $LIST
-test -f $RPM_BUILD_ROOT/%{_libdir}/libpmi2.la			&&
-  echo %{_libdir}/libpmi2.la				>> $LIST
 
 LIST=./percs.files
 touch $LIST
@@ -843,8 +831,6 @@
 %dir %attr(0755,root,root)
 %dir %{_prefix}/include/slurm
 %{_prefix}/include/slurm/*
-%{_libdir}/libslurm.la
-%{_libdir}/libslurmdb.la
 %{_mandir}/man3/slurm_*
 %dir %{_libdir}/pkgconfig
 %{_libdir}/pkgconfig/slurm.pc

Reply via email to