app-arch/rpm-4.4.6-r3: rpmbuild -tb can't find the embedded specfile
Bug #634189 reported by
Jeff Johnson
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
RPM |
Triaged
|
Low
|
Unassigned | ||
Gentoo Linux |
Fix Released
|
Medium
|
Bug Description
tracker
Changed in gentoo: | |
status: | Unknown → Confirmed |
Changed in gentoo: | |
importance: | Unknown → Medium |
Changed in gentoo: | |
status: | Confirmed → Unknown |
Changed in gentoo: | |
status: | Unknown → Fix Released |
To post a comment you must log in.
"rpmbuild -tb tarball.tar.gz" cannot find the embedded '*.spec' file because it's not passing --wildcards to tar who requires this to match wildcards. Tar then prints a message about this, which rpmbuild misinterprets as a real output and goes on to create a file called "%{_topdir} /SPECS/ tar: Pattern matching characters used in file names. Please,", which is the first line of tar's message.
Reproducible: Always
Steps to Reproduce:
Invoke "rpmbuild -tb tarball.tar.gz" on a tarball that includes a specfile that is supposed to work.
Actual Results:
rpmbuild emits the following output:
error: Name field must be present in package: (main package)
error: Version field must be present in package: (main package)
error: Release field must be present in package: (main package)
error: Summary field must be present in package: (main package)
error: Group field must be present in package: (main package)
error: License field must be present in package: (main package)
That's rpmbuild's clever way of saying that it didn't find the spec file. Using strace you can see that the following gets invoked behind the scenes: "tar xOvf - '*.spec'". Manually running this command show tar's message about wildcards.
Expected Results:
Expected result is of course that rpmbuild finds the spec file. It should pass --wildcards before the *.spec argument to tar.
app-arch/ rpm-4.4. 6-r6 behaves the same. I didn't test app-arch/rpm-4.4.7* as they are hard masked and said to be broken on x86 anyway.
My tar is app-arch/tar-1.20.