summaryrefslogtreecommitdiff
path: root/build.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2000-12-02 21:53:44 +0000
committerjbj <devnull@localhost>2000-12-02 21:53:44 +0000
commit2885f536b6e314734c0c04245d77b9f7bdc76d42 (patch)
tree1ab8d5ab1cbc20bd1b1da69ba475b80816db2da9 /build.c
parentd7a40e754dc6b0ac07d2185bb5723384065feab5 (diff)
downloadrpm-2885f536b6e314734c0c04245d77b9f7bdc76d42.tar.gz
Bring header reggions mods back to top of stack.
CVS patchset: 4305 CVS date: 2000/12/02 21:53:44
Diffstat (limited to 'build.c')
-rw-r--r--build.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/build.c b/build.c
index a16525bff..c4dc95bcc 100644
--- a/build.c
+++ b/build.c
@@ -22,7 +22,7 @@ static int checkSpec(Header h)
if (rpmdbOpen(rootdir, &db, mode, 0644)) {
const char *dn;
dn = rpmGetPath( (rootdir ? rootdir : ""), "%{_dbpath}", NULL);
- rpmError(RPMERR_OPEN, _("cannot open %s/packages.rpm\n"), dn);
+ rpmError(RPMERR_OPEN, _("cannot open rpm database in %s\n"), dn);
xfree(dn);
exit(EXIT_FAILURE);
}
@@ -99,6 +99,10 @@ static int buildForTarget(const char *arg, struct rpmBuildArguments *ba,
Spec spec = NULL;
int rc;
+#ifndef DYING
+ rpmSetTables(RPM_MACHTABLE_BUILDARCH, RPM_MACHTABLE_BUILDOS);
+#endif
+
if (ba->buildRootOverride)
buildRootURL = rpmGenPath(NULL, ba->buildRootOverride, NULL);
@@ -107,7 +111,7 @@ static int buildForTarget(const char *arg, struct rpmBuildArguments *ba,
const char *specDir;
const char * tmpSpecFile;
char * cmd, *s;
- int res;
+ rpmCompressedMagic res = COMPRESSED_OTHER;
static const char *zcmds[] = { "cat", "gunzip", "bunzip2", "cat" };
specDir = rpmGetPath("%{_specdir}", NULL);
@@ -170,7 +174,7 @@ static int buildForTarget(const char *arg, struct rpmBuildArguments *ba,
if (res) {
rpmError(RPMERR_RENAME, _("Failed to rename %s to %s: %m"),
- tmpSpecFile, s);
+ tmpSpecFile, s);
unlink(tmpSpecFile);
xfree(tmpSpecFile);
return 1;