Skip to content

Commit a65e93f

Browse files
committed
spec: serialize make install to avoid libtool relink races
Libtool relinks sssdlib modules against pkglib libraries during install. With parallel install, the relink can run before the target libraries are in place, causing missing .so files in the buildroot. Use -j1 for the install phase to guarantee correct ordering. Signed-off-by: Alexander Bokovoy <abokovoy@redhat.com>
1 parent a7395b9 commit a65e93f

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

contrib/sssd.spec.in

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -539,7 +539,10 @@ unset CK_TIMEOUT_MULTIPLIER
539539

540540
%install
541541

542-
%make_install
542+
# Serial install: libtool relinks sssdlib modules against pkglib
543+
# libraries during install. Parallel install can relink before the
544+
# target libraries are in place, causing missing .so files.
545+
%make_install -j1
543546

544547
# Prepare language files
545548
/usr/lib/rpm/find-lang.sh $RPM_BUILD_ROOT sssd

0 commit comments

Comments
 (0)