Accepting request 174654 from Base:System

- add auto-config-update-aarch64.diff:
 * optionally automatically update config.guess/sub during build

OBS-URL: https://build.opensuse.org/request/show/174654
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/rpm?expand=0&rev=200
This commit is contained in:
Stephan Kulow 2013-05-07 13:42:38 +00:00 committed by Git OBS Bridge
commit 938cb4bea0
3 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,27 @@
Index: build/parseBuildInstallClean.c
===================================================================
--- build/parseBuildInstallClean.c.orig
+++ build/parseBuildInstallClean.c
@@ -46,7 +46,21 @@ int parseBuildInstallClean(rpmSpec spec,
} else if (rc < 0) {
goto exit;
}
-
+
+ if (parsePart == PART_BUILD) {
+ char* buf = strdup(
+ "ref=/usr/lib/rpm\n"
+ "for s in guess sub; do\n"
+ " for c in $(find -maxdepth 3 -name \"config.$s\"); do\n"
+ " grep -q config-patches@ $c || continue\n"
+ " grep -q aarch64 $c || install -m 755 $ref/config.$s $c\n"
+ " done\n"
+ "done\n"
+ );
+ appendLineStringBuf(*sbp, buf);
+ free(buf);
+ }
+
while (! (nextPart = isPart(spec->line))) {
appendStringBuf(*sbp, spec->line);
if ((rc = readLine(spec, STRIP_NOTHING)) > 0) {

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Apr 22 22:00:14 UTC 2013 - dmueller@suse.com
- add auto-config-update-aarch64.diff:
* optionally automatically update config.guess/sub during build
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Apr 5 18:47:53 UTC 2013 - dmueller@suse.com Fri Apr 5 18:47:53 UTC 2013 - dmueller@suse.com

View File

@ -60,6 +60,7 @@ Source9: sysconfig.services-rpm
Source10: beecrypt-4.1.2.tar.bz2 Source10: beecrypt-4.1.2.tar.bz2
Source11: db-4.8.30.tar.bz2 Source11: db-4.8.30.tar.bz2
Source12: baselibs.conf Source12: baselibs.conf
Source6464: auto-config-update-aarch64.diff
Patch1: beecrypt-4.1.2.diff Patch1: beecrypt-4.1.2.diff
Patch2: db.diff Patch2: db.diff
# quilt patches start here # quilt patches start here
@ -223,6 +224,9 @@ rm -f rpmdb/db.h
%patch -P 60 -P 61 -P 62 -P 63 -P 64 -P 65 -P 66 -P 67 -P 68 -P 69 %patch -P 60 -P 61 -P 62 -P 63 -P 64 -P 65 -P 66 -P 67 -P 68 -P 69
%patch -P 70 -P 71 -P 72 -P 73 -P 74 -P 75 -P 76 -P 77 -P 78 -P 79 %patch -P 70 -P 71 -P 72 -P 73 -P 74 -P 75 -P 76 -P 77 -P 78 -P 79
%patch -P 80 -P 81 %patch -P 80 -P 81
%ifarch aarch64
%patch6464
%endif
cp config.guess config.sub db/dist/ cp config.guess config.sub db/dist/
cp config.guess config.sub beecrypt/ cp config.guess config.sub beecrypt/
#chmod 755 scripts/find-supplements{,.ksyms} #chmod 755 scripts/find-supplements{,.ksyms}
@ -339,6 +343,10 @@ for i in /usr/share/automake-*/*; do
fi fi
done done
popd popd
%ifarch aarch64
install -m 755 config.guess %{buildroot}/usr/lib/rpm
install -m 755 config.sub %{buildroot}/usr/lib/rpm
%endif
gzip -9 CHANGES gzip -9 CHANGES
rm -rf %{buildroot}/%{_libdir}/python%{py_ver} rm -rf %{buildroot}/%{_libdir}/python%{py_ver}
rm -f %{buildroot}%{_libdir}/*.la rm -f %{buildroot}%{_libdir}/*.la