Red Hat Bugzilla – Bug 220449
rpmbuild can not handle paths with whitespace
Last modified: 2008-01-25 12:09:17 EST
> rpmbuild -ba --define '_topdir /home/fs/eg g/build/bdist.linux-x86_64/rpm' --clean
This fails with:
> + umask 022
> + cd /home/fs/eg g/build/bdist.linux-x86_64/rpm/BUILD
> /var/tmp/rpm-tmp.16608: line 21: cd: /home/fs/eg: No such file or directory
So I tried to quote the path:
> rpmbuild -ba --define '_topdir "/home/fs/eg g/build/bdist.linux-x86_64/rpm"'
> --clean build/bdist.linux-x86_64/rpm/SPECS/texttemplate.spec
> error: File "/home/fs/eg
> g/build/bdist.linux-x86_64/rpm"/SOURCES/texttemplate-0.2.0.tar.gz: No such file or
Obviously, rpmbuild just concats the given path with other components. So I went
for quoting with backslashes:
> rpmbuild -ba --define '_topdir /home/fs/eg\ g/build/bdist.linux-x86_64/rpm'
> error: File /home/fs/eg
> No such file or directory
Double/Tripple backslashes did not work either.
rpm-4.4.8-0.7 will handle white space in %_topdir.
Note that there's many other places that need fixing, its not only %_topdir
that won't handle white space in paths.
User firstname.lastname@example.org's account has been closed
Reassigning to owner after bugzilla made a mess, sorry about the noise...
FWIW, rpmbuild whitespace issues have been largely fixed in upstream rpm.org,
but various other things like build-helper scripts not handling whitespace
remain. Not to mention other issues in rpm whitespace handling...
Moving to devel, not going to get fixed in FC6 at this point
Should be fixed in 18.104.22.168-0.1.rc1