From 1f1bd8211cd8b23f0ea283fc27c92e7613d7e9ec Mon Sep 17 00:00:00 2001 From: jbj Date: Wed, 23 Sep 1998 13:31:54 +0000 Subject: [PATCH] arch/os tables were not being initialized for noarch builds. CVS patchset: 2335 CVS date: 1998/09/23 13:31:54 --- CHANGES | 1 + build.c | 2 ++ 2 files changed, 3 insertions(+) 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}"); -- 2.7.4