Bug 928110
Summary: | Escaped spaces not handled in %doc | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Nicolas Chauvet (kwizart) <kwizart> |
Component: | rpm | Assignee: | Packaging Maintenance Team <packaging-team-maint> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 17 | CC: | ffesti, 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: | 2013-04-11 23:36:24 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
Nicolas Chauvet (kwizart)
2013-03-26 23:03:53 UTC
There's a bug but it's not quite what you think: backslash-escaping has never been supported in %files section, but it has accidentally worked in %doc due to how older versions pass it to shell and cp. Rpm >= 4.11 processes %doc in more controlled manner, meaning most of the wild hacks people have used in there no longer work. What makes it all so ugly is that double-quoting which the rest of the %files section supports did not work for %doc in the older rpm versions so people we kinda forced to be creative there. Rpm >= 4.10.3 supports double-quoting for %doc, but rpm 4.9.x in Fedora 17 doesn't. That could be backported, its a pretty trivial fix. However for now, the compatible way that works everywhere (including EPEL and all) is using globs, eg: %doc TODO docs/Ahead?AAC?Decoder?library?documentation.pdf rpm-4.9.1.3-8.fc17 has been submitted as an update for Fedora 17. https://admin.fedoraproject.org/updates/rpm-4.9.1.3-8.fc17 Package rpm-4.9.1.3-8.fc17: * should fix your issue, * was pushed to the Fedora 17 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing rpm-4.9.1.3-8.fc17' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2013-4488/rpm-4.9.1.3-8.fc17 then log in and leave karma (feedback). rpm-4.9.1.3-8.fc17 has been pushed to the Fedora 17 stable repository. If problems still persist, please make note of it in this bug report. |