Bug 912831 - rpm %doc fails if path contains spaces
Summary: rpm %doc fails if path contains spaces
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: rpm
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-19 19:22 UTC by Julian Sikorski
Modified: 2013-02-20 07:04 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2013-02-20 07:04:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Julian Sikorski 2013-02-19 19:22:49 UTC
Description of problem:
Occured when trying to build SOIL-1.07-9.20080706.fc19:
+ cp -pr 'Simple /builddir/build/BUILDROOT/SOIL-1.07-9.20080706.fc19.x86_64/usr/share/doc/SOIL-1.07'
cp: missing destination file operand after 'Simple /builddir/build/BUILDROOT/SOIL-1.07-9.20080706.fc19.x86_64/usr/share/doc/SOIL-1.07'
Try 'cp --help' for more information.

Version-Release number of selected component (if applicable):
rpm-4.11.0.1-1.fc19
SOIL-1.07-9.20080706.fc19

How reproducible:
always

Steps to Reproduce:
1. fedpkg clone SOIL
2. git checkout e8b1fb7
3. rpmbuild --define '_sourcedir /home/julas/cvs/fedora/SOIL' --define '_specdir /home/julas/cvs/fedora/SOIL' --define '_builddir /home/julas/cvs/fedora/SOIL' --define '_srcrpmdir /home/julas/cvs/fedora/SOIL' --define '_rpmdir /home/julas/cvs/fedora/SOIL' --define 'dist .fc19' --define 'fedora 19' --eval '%undefine rhel' --define 'fc19 1' --eval '%undefine fc18' --nodeps -bs /home/julas/cvs/fedora/SOIL/SOIL.spec
4. mock -r fedora-devel-x86_64 --resultdir /home/julas/cvs/fedora/SOIL/results_SOIL/1.07/9.20080706.fc19 --rebuild /home/julas/cvs/fedora/SOIL/SOIL-1.07-9.20080706.fc19.src.rpm
  
Actual results:
build fails

Expected results:
build succeeds

Additional info:
Bug 758824 was a similar problem, but it seems to be fixed now.

Comment 1 Panu Matilainen 2013-02-20 07:04:49 UTC
Spaces in %doc work fine if you a supported %files syntax: either double-quote the name, or use globs for the whitespaces

Abd tes, the %doc behavior has changed a bit recently, but in this case the old behavior was not correct. More background on this can be found at
http://lists.fedoraproject.org/pipermail/devel/2013-January/176565.html
http://lists.fedoraproject.org/pipermail/devel/2013-February/178730.html
http://rpm.org/ticket/858


Note You need to log in before you can comment on or make changes to this bug.