diff --git a/libtracefs.changes b/libtracefs.changes index 5c3e68a..1fd8901 100644 --- a/libtracefs.changes +++ b/libtracefs.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jun 21 11:27:48 UTC 2022 - Jan Engelhardt + +- Force make -j1 during build because of object file corruption. + ------------------------------------------------------------------- Tue Jun 7 08:34:18 UTC 2022 - Daniel Wagner diff --git a/libtracefs.spec b/libtracefs.spec index e58a322..3543fe1 100644 --- a/libtracefs.spec +++ b/libtracefs.spec @@ -53,15 +53,20 @@ This subpackage contains the header files. %autosetup -p1 %build -%make_build prefix="%_prefix" +# Not parallel safe - to the point where there is silent corruption +# (compared to a more common "file not found" in other packages) +%make_build -j1 V=1 prefix="%_prefix" %install -%make_install prefix="%_prefix" \ +%make_install -j1 V=1 prefix="%_prefix" \ pkgconfig_dir=%{_libdir}/pkgconfig \ %nil # always the same issues find "%buildroot/%_includedir" -type f -name "*.h" -exec chmod a-x {} + rm -f "%buildroot/%_libdir"/*.a +if ldd -r "%buildroot/%_libdir/libtracefs.so" 2>&1 | grep -q undefined; then + exit 1 +fi %post -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig