<div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><br><br>>> Hi there,<br>>><br>>> I got many error messages on FC5 fully updated trying to compile tar
<br>>> packages using "rpmbuild -ta tar_package.tar.gz" command.<br><br>>This is already filed:<br>><a href="https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=206841">https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=206841
</a></blockquote><div><br>thank you... <br></div><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">>> I solved this problem adding "-" before tar options and "--wildcards"v
<br>>> to tar command in build.c file. (see attached patch).<br>>><br>>><br>>> ------------------------------------------------------------------------<br>>><br>>> --- rpm-4.4.2/build.c.orig    2006-09-29 09:17:
25.000000000 -0300<br>>> +++ rpm-4.4.2/build.c 2006-09-29 09:18:01.000000000 -0300<br>>> @@ -144,7 +144,7 @@<br>>>       (void) isCompressed(arg, &res);<br>>><br>>>       cmd = alloca(strlen(arg) + 50 + strlen(tmpSpecFile));
<br>>> -     sprintf(cmd, "%s < %s | tar xOvf - Specfile 2>&1 > %s",<br>>> +     sprintf(cmd, "%s < %s | tar -xOvf - Specfile 2>&1 > %s",<br>>>                       zcmds[res & 0x3], arg, tmpSpecFile);
<br>>>       if (!(fp = popen(cmd, "r"))) {<br>>>           rpmError(RPMERR_POPEN, _("Failed to open tar pipe: %m\n"));<br>>> @@ -156,7 +156,7 @@<br>>>           /* Try again */
<br>>>           (void) pclose(fp);<br>>><br>>> -         sprintf(cmd, "%s < %s | tar xOvf - \\*.spec 2>&1 > %s",<br>>> +         sprintf(cmd, "%s < %s | tar --wildcards -xOvf - \\*.spec 2>&1 > %s",
<br>>>                   zcmds[res & 0x3], arg, tmpSpecFile);<br>>>           if (!(fp = popen(cmd, "r"))) {<br>>>               rpmError(RPMERR_POPEN, _("Failed to open tar pipe: %m\n"));
<br>>><br><br>>Posting this patch to bugzilla would highly appreciated, I think.<br>><br>>Mamoru Tasaka</blockquote><div><br>Patch and info posted!<br><br>Thank you!<br>Márcio Oliveira<br> </div></div>