#500493 pbuilder: Pbuilder doesn't handle directory names with spaces

#500493#5
Date:
2008-09-28 19:41:11 UTC
From:
To:
This was originally reported at
https://bugs.launchpad.net/ubuntu/+source/pbuilder/+bug/275537

PBuilder will fail if there are any spaces in the directory that the
source package is stored in. Output from PBuilder on one example
package:

Copying source file
awk: BEGIN{p=0} /^$/ {p=0} /^.*:/ {p=0} {if (p){print "/tmp/cheese
awk: ^ unterminated string
    -> copying [/tmp/cheese 1/cheese_2.23.91-0ubuntu1.dsc]
Extracting source
dpkg-source: failure: cannot open cheese: No such file or directory
pbuilder: Failed extracting the source
 -> Aborting with an error
 -> unmounting /var/cache/archive/ filesystem
 -> unmounting dev/pts filesystem
 -> unmounting proc filesystem
 -> cleaning the build env
    -> removing directory /var/cache/pbuilder/build//2908 and its
subdirectories

#500493#10
Date:
2010-01-04 11:17:19 UTC
From:
To:
found 500493 0.176
notfound 500493 0.176ubuntu2
stop

        Hey

 This bug probably still applies, but when forwarding bugs from Ubuntu,
 please verify the bug applies to the current Debian version and report
 it against this version (the Debian BTS has version tracking).

   Thanks!

#500493#19
Date:
2011-07-19 13:35:13 UTC
From:
To:
Hello,

please find attached a patch which makes pbuilder work (for me ;) from source
directories with spaces in their names.

Josef