|
Florian Festi |
985d34 |
From 2a6926d531ca9aa797db678b648509ca251de3f2 Mon Sep 17 00:00:00 2001
|
|
Florian Festi |
985d34 |
From: Florian Festi <ffesti@redhat.com>
|
|
Florian Festi |
985d34 |
Date: Thu, 25 Feb 2016 16:51:02 +0100
|
|
Florian Festi |
985d34 |
Subject: [PATCH] Use pkg->dpaths during dependency generation instead of
|
|
Florian Festi |
985d34 |
buildRoot + filename
|
|
Florian Festi |
985d34 |
|
|
Florian Festi |
985d34 |
This passes the filenames with the actual file content to the dependency
|
|
Florian Festi |
985d34 |
generators when using RemovePathPostfixes.
|
|
Florian Festi |
985d34 |
---
|
|
Florian Festi |
985d34 |
build/rpmfc.c | 8 +-------
|
|
Florian Festi |
985d34 |
1 file changed, 1 insertion(+), 7 deletions(-)
|
|
Florian Festi |
985d34 |
|
|
Florian Festi |
985d34 |
diff --git a/build/rpmfc.c b/build/rpmfc.c
|
|
Florian Festi |
985d34 |
index 7c61d9d..59cf472 100644
|
|
Florian Festi |
985d34 |
--- a/build/rpmfc.c
|
|
Florian Festi |
985d34 |
+++ b/build/rpmfc.c
|
|
Florian Festi |
985d34 |
@@ -1267,7 +1267,6 @@ rpmRC rpmfcGenerateDepends(const rpmSpec spec, Package pkg)
|
|
Florian Festi |
985d34 |
{
|
|
Florian Festi |
985d34 |
rpmfi fi = rpmfilesIter(pkg->cpioList, RPMFI_ITER_FWD);
|
|
Florian Festi |
985d34 |
rpmfc fc = NULL;
|
|
Florian Festi |
985d34 |
- ARGV_t av = NULL;
|
|
Florian Festi |
985d34 |
rpm_mode_t * fmode = NULL;
|
|
Florian Festi |
985d34 |
int ac = rpmfiFC(fi);
|
|
Florian Festi |
985d34 |
int genConfigDeps = 0;
|
|
Florian Festi |
985d34 |
@@ -1280,18 +1279,14 @@ rpmRC rpmfcGenerateDepends(const rpmSpec spec, Package pkg)
|
|
Florian Festi |
985d34 |
goto exit;
|
|
Florian Festi |
985d34 |
|
|
Florian Festi |
985d34 |
/* Extract absolute file paths in argv format. */
|
|
Florian Festi |
985d34 |
- av = xcalloc(ac+1, sizeof(*av));
|
|
Florian Festi |
985d34 |
fmode = xcalloc(ac+1, sizeof(*fmode));
|
|
Florian Festi |
985d34 |
|
|
Florian Festi |
985d34 |
fi = rpmfiInit(fi, 0);
|
|
Florian Festi |
985d34 |
while ((idx = rpmfiNext(fi)) >= 0) {
|
|
Florian Festi |
985d34 |
/* Does package have any %config files? */
|
|
Florian Festi |
985d34 |
genConfigDeps |= (rpmfiFFlags(fi) & RPMFILE_CONFIG);
|
|
Florian Festi |
985d34 |
-
|
|
Florian Festi |
985d34 |
- av[idx] = rstrscat(NULL, spec->buildRoot, rpmfiFN(fi), NULL);
|
|
Florian Festi |
985d34 |
fmode[idx] = rpmfiFMode(fi);
|
|
Florian Festi |
985d34 |
}
|
|
Florian Festi |
985d34 |
- av[ac] = NULL;
|
|
Florian Festi |
985d34 |
|
|
Florian Festi |
985d34 |
fc = rpmfcCreate(spec->buildRoot, 0);
|
|
Florian Festi |
985d34 |
free(fc->pkg);
|
|
Florian Festi |
985d34 |
@@ -1316,7 +1311,7 @@ rpmRC rpmfcGenerateDepends(const rpmSpec spec, Package pkg)
|
|
Florian Festi |
985d34 |
}
|
|
Florian Festi |
985d34 |
|
|
Florian Festi |
985d34 |
/* Build file class dictionary. */
|
|
Florian Festi |
985d34 |
- rc = rpmfcClassify(fc, av, fmode);
|
|
Florian Festi |
985d34 |
+ rc = rpmfcClassify(fc, pkg->dpaths, fmode);
|
|
Florian Festi |
985d34 |
if ( rc != RPMRC_OK )
|
|
Florian Festi |
985d34 |
goto exit;
|
|
Florian Festi |
985d34 |
|
|
Florian Festi |
985d34 |
@@ -1371,7 +1366,6 @@ exit:
|
|
Florian Festi |
985d34 |
fc->pkg = NULL;
|
|
Florian Festi |
985d34 |
free(fmode);
|
|
Florian Festi |
985d34 |
rpmfcFree(fc);
|
|
Florian Festi |
985d34 |
- argvFree(av);
|
|
Florian Festi |
985d34 |
rpmfiFree(fi);
|
|
Florian Festi |
985d34 |
|
|
Florian Festi |
985d34 |
return rc;
|
|
Florian Festi |
985d34 |
--
|
|
Florian Festi |
985d34 |
2.5.0
|
|
Florian Festi |
985d34 |
|