example command: > rpmbuild -ba --define '_topdir /home/fs/eg g/build/bdist.linux-x86_64/rpm' --clean > build/bdist.linux-x86_64/rpm/SPECS/texttemplate.spec 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 result: > error: File "/home/fs/eg > g/build/bdist.linux-x86_64/rpm"/SOURCES/texttemplate-0.2.0.tar.gz: No such file or > directory 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' --clean > build/bdist.linux-x86_64/rpm/SPECS/texttemplate.spec result: > error: File /home/fs/eg g/build/bdist.linux-x86_64/rpm/SOURCES/texttemplate-0.2.0.tar.gz: > 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. UPSTREAM
User pnasrat'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 4.4.2.3-0.1.rc1