Blame rpm-4.4.1-noconfigdep.patch
|
Harald Hoyer |
dff136 |
--- rpm-4.4.1/build/rpmfc.c.noconfig 2005-04-26 11:59:59.000000000 +0200
|
|
Harald Hoyer |
dff136 |
+++ rpm-4.4.1/build/rpmfc.c 2005-04-26 12:02:31.000000000 +0200
|
|
Harald Hoyer |
dff136 |
@@ -1511,11 +1511,13 @@
|
|
Harald Hoyer |
dff136 |
fi = rpmfiInit(fi, 0);
|
|
Harald Hoyer |
dff136 |
if (fi != NULL)
|
|
Harald Hoyer |
dff136 |
while ((c = rpmfiNext(fi)) >= 0) {
|
|
Harald Hoyer |
dff136 |
+#ifdef RPM_WITH_CONFIG_DEPENDENCY
|
|
Harald Hoyer |
dff136 |
rpmfileAttrs fileAttrs;
|
|
Harald Hoyer |
dff136 |
|
|
Harald Hoyer |
dff136 |
/* Does package have any %config files? */
|
|
Harald Hoyer |
dff136 |
fileAttrs = rpmfiFFlags(fi);
|
|
Harald Hoyer |
dff136 |
genConfigDeps |= (fileAttrs & RPMFILE_CONFIG);
|
|
Harald Hoyer |
dff136 |
+#endif
|
|
Harald Hoyer |
dff136 |
|
|
Harald Hoyer |
dff136 |
av[c] = xstrdup(rpmfiFN(fi));
|
|
Harald Hoyer |
dff136 |
}
|
|
Harald Hoyer |
dff136 |
@@ -1537,6 +1539,7 @@
|
|
Harald Hoyer |
dff136 |
xx = headerRemoveEntry(pkg->header, RPMTAG_PROVIDEVERSION);
|
|
Harald Hoyer |
dff136 |
xx = headerRemoveEntry(pkg->header, RPMTAG_PROVIDEFLAGS);
|
|
Harald Hoyer |
dff136 |
|
|
Harald Hoyer |
dff136 |
+#ifdef RPM_WITH_CONFIG_DEPENDENCY
|
|
Harald Hoyer |
dff136 |
/* Add config dependency, Provides: config(N) = EVR */
|
|
Harald Hoyer |
dff136 |
if (genConfigDeps) {
|
|
Harald Hoyer |
dff136 |
N = rpmdsN(pkg->ds);
|
|
Harald Hoyer |
dff136 |
@@ -1549,6 +1552,7 @@
|
|
Harald Hoyer |
dff136 |
xx = rpmdsMerge(&fc->provides, ds);
|
|
Harald Hoyer |
dff136 |
ds = rpmdsFree(ds);
|
|
Harald Hoyer |
dff136 |
}
|
|
Harald Hoyer |
dff136 |
+#endif
|
|
Harald Hoyer |
dff136 |
}
|
|
Harald Hoyer |
dff136 |
|
|
Harald Hoyer |
dff136 |
if (!fc->skipReq) {
|
|
Harald Hoyer |
dff136 |
@@ -1559,6 +1563,7 @@
|
|
Harald Hoyer |
dff136 |
xx = headerRemoveEntry(pkg->header, RPMTAG_REQUIREVERSION);
|
|
Harald Hoyer |
dff136 |
xx = headerRemoveEntry(pkg->header, RPMTAG_REQUIREFLAGS);
|
|
Harald Hoyer |
dff136 |
|
|
Harald Hoyer |
dff136 |
+#ifdef RPM_WITH_CONFIG_DEPENDENCY
|
|
Harald Hoyer |
dff136 |
/* Add config dependency, Requires: config(N) = EVR */
|
|
Harald Hoyer |
dff136 |
if (genConfigDeps) {
|
|
Harald Hoyer |
dff136 |
N = rpmdsN(pkg->ds);
|
|
Harald Hoyer |
dff136 |
@@ -1571,6 +1576,7 @@
|
|
Harald Hoyer |
dff136 |
xx = rpmdsMerge(&fc->requires, ds);
|
|
Harald Hoyer |
dff136 |
ds = rpmdsFree(ds);
|
|
Harald Hoyer |
dff136 |
}
|
|
Harald Hoyer |
dff136 |
+#endif
|
|
Harald Hoyer |
dff136 |
}
|
|
Harald Hoyer |
dff136 |
|
|
Harald Hoyer |
dff136 |
/* Build file class dictionary. */
|