[Buildd-tools-devel] Bug#509133: sbuild does not work if BLOCK_SIZE=human-readable is set in the environment

Guillaume Martres smarter3 at gmail.com
Thu Dec 18 18:26:09 UTC 2008


Package: sbuild
Version: 0.57.7-1
When running:
sbuild -d jaunty *.dsc

I get this if BLOCK_SIZE=human-readable is set:
Argument "3.9G" isn't numeric in numeric lt (<) at 
/usr/share/perl5/Sbuild/Build.pm line 497.
Disk space is propably not enough for building.
(Source needs 2292 KB, free are 3.9G KB.)

This is due to the command sbuild uses to get the free size:
my $free = `/bin/df $dir | tail -n 1`;

This can be easily fixed by adding BLOCK_SIZE= to the beginning of the 
command(see attached patch).

% BLOCK_SIZE=human-readable df / | tail -n1
                       40G   29G  9,3G  76% /
% BLOCK_SIZE= df / | tail -n1
                      41284928  29458312   9729464  76% /

-------------- next part --------------
A non-text attachment was scrubbed...
Name: sbuild_blocksize.patch
Type: text/x-patch
Size: 467 bytes
Desc: not available
Url : http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20081218/f3941f58/attachment.bin 


More information about the Buildd-tools-devel mailing list