2013-04-23 00:00:49 +02:00
|
|
|
Index: build/parseBuildInstallClean.c
|
|
|
|
===================================================================
|
|
|
|
--- build/parseBuildInstallClean.c.orig
|
|
|
|
+++ build/parseBuildInstallClean.c
|
2013-12-02 17:47:02 +01:00
|
|
|
@@ -46,7 +46,22 @@ int parseBuildInstallClean(rpmSpec spec,
|
2013-04-23 00:00:49 +02:00
|
|
|
} else if (rc < 0) {
|
|
|
|
goto exit;
|
|
|
|
}
|
|
|
|
-
|
|
|
|
+
|
|
|
|
+ if (parsePart == PART_BUILD) {
|
|
|
|
+ char* buf = strdup(
|
|
|
|
+ "ref=/usr/lib/rpm\n"
|
|
|
|
+ "for s in guess sub; do\n"
|
2013-05-20 23:33:20 +02:00
|
|
|
+ " for c in $(find -maxdepth 8 -name \"config.$s\"); do\n"
|
2013-04-23 00:00:49 +02:00
|
|
|
+ " grep -q config-patches@ $c || continue\n"
|
|
|
|
+ " grep -q aarch64 $c || install -m 755 $ref/config.$s $c\n"
|
2013-11-29 14:43:44 +01:00
|
|
|
+ " grep -q ppc64le $c || install -m 755 $ref/config.$s $c\n"
|
2013-04-23 00:00:49 +02:00
|
|
|
+ " done\n"
|
|
|
|
+ "done\n"
|
|
|
|
+ );
|
|
|
|
+ appendLineStringBuf(*sbp, buf);
|
|
|
|
+ free(buf);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
while (! (nextPart = isPart(spec->line))) {
|
|
|
|
appendStringBuf(*sbp, spec->line);
|
|
|
|
if ((rc = readLine(spec, STRIP_NOTHING)) > 0) {
|