Pass --wildcards to tar on build (rhbz#206841)
Tar no longer accepts globbing by default as it's incompatible with traditional implementations: http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00001.html Rpm needs to work with upstream tar really, the --wildcards option has been supported since 2001 so older versions shouldn't suffer either.
This commit is contained in:
parent
6fcff4422a
commit
39defaa877
2
build.c
2
build.c
|
@ -161,7 +161,7 @@ static int buildForTarget(rpmts ts, const char * arg, BTA_t ba)
|
|||
/* Try again */
|
||||
(void) pclose(fp);
|
||||
|
||||
sprintf(cmd, "%s < %s | tar xOvf - \\*.spec 2>&1 > %s",
|
||||
sprintf(cmd, "%s < %s | tar xOvf - --wildcards \\*.spec 2>&1 > %s",
|
||||
zcmds[res & 0x3], arg, tmpSpecFile);
|
||||
if (!(fp = popen(cmd, "r"))) {
|
||||
rpmError(RPMERR_POPEN, _("Failed to open tar pipe: %m\n"));
|
||||
|
|
Loading…
Reference in New Issue