1
0
forked from pool/libtracefs

Accepting request 984148 from devel:libraries:c_c++

- Force make -j1 during build because of object file corruption.

OBS-URL: https://build.opensuse.org/request/show/984148
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libtracefs?expand=0&rev=6
This commit is contained in:
Dominique Leuenberger 2022-06-21 14:33:04 +00:00 committed by Git OBS Bridge
commit 1e9c97af65
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>

View File

@ -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