From 742af61670b02d8f72c6aad08f0a9327a5c93463807feeb32f9cf9667fe902d1 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Tue, 21 Jun 2022 11:28:08 +0000 Subject: [PATCH] - Force make -j1 during build because of object file corruption. OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/libtracefs?expand=0&rev=13 --- libtracefs.changes | 5 +++++ libtracefs.spec | 9 +++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) 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