From: jbj Date: Wed, 23 Sep 1998 13:31:54 +0000 (+0000) Subject: arch/os tables were not being initialized for noarch builds. X-Git-Tag: tznext/4.11.0.1.tizen20130304~9704 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1f1bd8211cd8b23f0ea283fc27c92e7613d7e9ec;p=tools%2Flibrpm-tizen.git arch/os tables were not being initialized for noarch builds. CVS patchset: 2335 CVS date: 1998/09/23 13:31:54 --- diff --git a/CHANGES b/CHANGES index fff1064..737d2e9 100644 --- a/CHANGES +++ b/CHANGES @@ -14,6 +14,7 @@ - add new fully recursive macro.c 2.5.3 -> 2.5.4: + - arch/os tables were not being initialized for noarch builds. - quote users/groups/filenames in --setugids. - add russian translation w man pages (Serguei Koubouchine ) - fix virtual file attribute bug that skipped all files in binary rpm. diff --git a/build.c b/build.c index 87697d3..dfd7a67 100644 --- a/build.c +++ b/build.c @@ -22,6 +22,8 @@ int buildplatform(char *arg, int buildAmount, char *passPhrase, char buf[BUFSIZ]; Spec spec = NULL; + rpmSetTables(RPM_MACHTABLE_BUILDARCH, RPM_MACHTABLE_BUILDOS); + if (fromTarball) { specDir = alloca(BUFSIZ); strcpy(specDir, "%{_specdir}");