ebuild.sh doesn't quote all paths in its shell commands. dyn_package does several rm/mv without quoting the directory names: mv ${PF}.tbz2 ${PKGDIR}/All rather than mv "${PF}.tbz2" "${PKGDIR}/All" If it did the later it would mean portage would work with spaces in directory names such as PKGDIR. This means I could do PKGDIR="/bleh/${CFLAGS}" in /etc/make.conf and it would but packages in a useful place for me. I would be a happy bunny :) Seeing as this does nothing but improve compatibility and is relatively painless to do, could you please adjust the commands to quote paths? :) Reproducible: Always Steps to Reproduce: 1. PKGDIR="/path/${CFLAGS}/" in /etc/make.conf 2. emerge --buildpkg foo 3. portage breaks when mv warns about having too many/unsupported arguments as its being passed my unquote CFLAGS as part of the path. Actual Results: package doesn't build properly
Created attachment 22363 [details, diff] Adds quotes to lots of lines so that it should be safe to use dirs with spaces in
"blah/*" doesn't glob match. "blah/"* does. Modified and included.
fixed by carpaski