1
0
forked from pool/libtracefs

- 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
This commit is contained in:
Jan Engelhardt 2022-06-21 11:28:08 +00:00 committed by Git OBS Bridge
parent 14d0420341
commit 742af61670
2 changed files with 12 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Tue Jun 21 11:27:48 UTC 2022 - Jan Engelhardt <jengelh@inai.de>
- Force make -j1 during build because of object file corruption.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jun 7 08:34:18 UTC 2022 - Daniel Wagner <daniel.wagner@suse.com> Tue Jun 7 08:34:18 UTC 2022 - Daniel Wagner <daniel.wagner@suse.com>

View File

@ -53,15 +53,20 @@ This subpackage contains the header files.
%autosetup -p1 %autosetup -p1
%build %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 %install
%make_install prefix="%_prefix" \ %make_install -j1 V=1 prefix="%_prefix" \
pkgconfig_dir=%{_libdir}/pkgconfig \ pkgconfig_dir=%{_libdir}/pkgconfig \
%nil %nil
# always the same issues # always the same issues
find "%buildroot/%_includedir" -type f -name "*.h" -exec chmod a-x {} + find "%buildroot/%_includedir" -type f -name "*.h" -exec chmod a-x {} +
rm -f "%buildroot/%_libdir"/*.a 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 %post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig