Bug 1108071
| Summary: | rpm doesn't accept %doc with escaped whitespaces | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Ralf Corsepius <rc040203> |
| Component: | rpm | Assignee: | Packaging Maintenance Team <packaging-team-maint> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 19 | CC: | jzeleny, novyjindrich, packaging-team-maint, pknirsch, pmatilai |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2014-06-11 13:18:31 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Ralf Corsepius
2014-06-11 12:14:57 UTC
This is an intentional change, in rpm >= 4.11 %doc (and %license) files follow the same rules as the rest of %files. See http://rpm.org/ticket/858 for details but in short, there are two options: 1) Use double-quotation 2) Use globs to cover the whitespace. This is also backwards compatible to older versions. (In reply to Panu Matilainen from comment #1) > This is an intentional change, To me, this is simply a regression - period. > in rpm >= 4.11 %doc (and %license) files > follow the same rules as the rest of %files. See http://rpm.org/ticket/858 > for details but in short, there are two options: > > 1) Use double-quotation You mean full double-quotes: %doc "foo bar/baz" Partial double-quotes: %doc "foo bar"/baz do not work. Unfortunately, neither of these work on RHEL. > 2) Use globs to cover the whitespace. This is also backwards compatible to > older versions. With all due respect, but you don't want to hear what I thin about this proposal. Please understand that backslash escaping in %doc only ever worked accidentally, it never was an intended or documented feature but just a hack people came up with because it seemed to work where everything else failed - older versions did not support double quoting either. Just like "%doc --parents foo/" used to "work" because the whole line was simply passed as-is to the "cp" command. A third option would be adding *proper* support for backslash-escaping *everywhere* in %files. I dont think anybody would object to that ... patches welcome. |