arch/os tables were not being initialized for noarch builds.
authorjbj <devnull@localhost>
Wed, 23 Sep 1998 13:31:54 +0000 (13:31 +0000)
committerjbj <devnull@localhost>
Wed, 23 Sep 1998 13:31:54 +0000 (13:31 +0000)
CVS patchset: 2335
CVS date: 1998/09/23 13:31:54

CHANGES
build.c

diff --git a/CHANGES b/CHANGES
index fff1064..737d2e9 100644 (file)
--- 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 <ksi@gu.net>)
        - fix virtual file attribute bug that skipped all files in binary rpm.
diff --git a/build.c b/build.c
index 87697d3..dfd7a67 100644 (file)
--- 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}");