Accepting request 870226 from home:Andreas_Schwab:Factory

- Use shipped config.sub/config.guess instead of stone-aged from libtool
- auto-config-update-aarch64-ppc64le.diff: update grep regex

OBS-URL: https://build.opensuse.org/request/show/870226
OBS-URL: https://build.opensuse.org/package/show/Base:System/rpm?expand=0&rev=571
This commit is contained in:
Michael Schröder 2021-02-09 09:40:20 +00:00 committed by Git OBS Bridge
parent 1c82082ae6
commit 4e5271c594
3 changed files with 10 additions and 5 deletions

View File

@ -16,7 +16,7 @@
+ "for s in guess sub; do\n" + "for s in guess sub; do\n"
+ " for c in $(find -maxdepth 8 -name \"config.$s\"); do\n" + " for c in $(find -maxdepth 8 -name \"config.$s\"); do\n"
+ " grep -q config-patches@ $c || continue\n" + " grep -q config-patches@ $c || continue\n"
+ " grep -q $testarch\\[-:\\] $c || install -m 755 $ref/config.$s $c\n" + " grep -q \"$testarch[-: ]\" $c || install -m 755 $ref/config.$s $c\n"
+ " done\n" + " done\n"
+ "done\n" + "done\n"
+ ); + );

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Feb 8 09:38:33 UTC 2021 - Andreas Schwab <schwab@suse.de>
- Use shipped config.sub/config.guess instead of stone-aged from libtool
- auto-config-update-aarch64-ppc64le.diff: update grep regex
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Jan 14 15:40:39 UTC 2021 - Matej Cepl <mcepl@suse.com> Thu Jan 14 15:40:39 UTC 2021 - Matej Cepl <mcepl@suse.com>

View File

@ -233,7 +233,6 @@ Provides and requires generator for .pl files and modules.
%prep %prep
%setup -q -n rpm-%{version} %setup -q -n rpm-%{version}
rm -rf sqlite rm -rf sqlite
cp /usr/share/libtool/build-aux/config.guess /usr/share/libtool/build-aux/config.sub .
%if 0%{?!without_bdb:1} %if 0%{?!without_bdb:1}
tar xjf %{SOURCE11} tar xjf %{SOURCE11}
ln -s db-4.8.30 db ln -s db-4.8.30 db
@ -242,7 +241,7 @@ cd db
cd .. cd ..
chmod -R u+w db/* chmod -R u+w db/*
rm -f rpmdb/db.h rm -f rpmdb/db.h
cp config.guess config.sub db/dist/ cp build-aux/config.guess build-aux/config.sub db/dist/
%endif %endif
%patch5 -p1 %patch5 -p1
%patch -P 11 -P 12 -P 13 -P 15 -P 16 -P 18 %patch -P 11 -P 12 -P 13 -P 15 -P 16 -P 18
@ -369,8 +368,8 @@ for i in /usr/share/automake-*/*; do
done done
popd popd
%ifarch aarch64 ppc64le riscv64 %ifarch aarch64 ppc64le riscv64
install -m 755 config.guess %{buildroot}/usr/lib/rpm install -m 755 build-aux/config.guess %{buildroot}/usr/lib/rpm
install -m 755 config.sub %{buildroot}/usr/lib/rpm install -m 755 build-aux/config.sub %{buildroot}/usr/lib/rpm
%endif %endif
rm -rf %{buildroot}/%{_libdir}/python%{py_ver} rm -rf %{buildroot}/%{_libdir}/python%{py_ver}
rm -f %{buildroot}%{_libdir}/*.la rm -f %{buildroot}%{_libdir}/*.la