diff options
author | Vyacheslav Barinov <v.barinov@samsung.com> | 2014-08-14 11:52:16 +0400 |
---|---|---|
committer | Vyacheslav Barinov <v.barinov@samsung.com> | 2014-08-14 14:37:21 +0400 |
commit | 5bc7b1f9411733bb987763682ae92f50cdd9d754 (patch) | |
tree | c955691e4a7f98a011fb40f2108d3134f5568427 /build | |
parent | cfbb11c6a475327643ffc143bc30edec266ddf5c (diff) | |
download | rpm-5bc7b1f9411733bb987763682ae92f50cdd9d754.tar.gz rpm-5bc7b1f9411733bb987763682ae92f50cdd9d754.tar.bz2 rpm-5bc7b1f9411733bb987763682ae92f50cdd9d754.zip |
Update autotools files on aarch64submit/tizen/20140825.050559accepted/tizen/ivi/20140902.210650accepted/tizen/common/20140826.160946
Patch borrowed from OpenSUSE rpm.
We have many packages with old config.sub and config.guess files which don't
have aarch64 support. In order not to patch every separate package, just update
them from rpmbuild during build initialization
Change-Id: I040bab160864edad84fd9cffcff2c9226ef3a4d0
Signed-off-by: Vyacheslav Barinov <v.barinov@samsung.com>
Diffstat (limited to 'build')
-rw-r--r-- | build/parseBuildInstallClean.c | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/build/parseBuildInstallClean.c b/build/parseBuildInstallClean.c index 6386c2365..f7b4bb715 100644 --- a/build/parseBuildInstallClean.c +++ b/build/parseBuildInstallClean.c @@ -46,7 +46,24 @@ int parseBuildInstallClean(rpmSpec spec, int parsePart) } else if (rc < 0) { goto exit; } - + + if (parsePart == PART_BUILD) { + char* buf = strdup( + "if [[ `uname -m` == \"aarch64\" ]]; then\n" + "ref=/usr/lib/rpm\n" + "for s in guess sub; do\n" + " for c in $(find -maxdepth 8 -name \"config.$s\"); do\n" + " grep -q config-patches@ $c || continue\n" + " grep -q aarch64 $c || install -m 755 $ref/config.$s $c\n" + " grep -q ppc64le $c || install -m 755 $ref/config.$s $c\n" + " done\n" + "done\n" + "fi\n" + ); + appendLineStringBuf(*sbp, buf); + free(buf); + } + while (! (nextPart = isPart(spec->line))) { appendStringBuf(*sbp, spec->line); if ((rc = readLine(spec, STRIP_NOTHING)) > 0) { |