SRU verification for Karmic:
I have reproduced the problem with sbuild 0.59.0-1ubuntu1 in karmic and have 
verified that the version of sbuild 0.59.0-1ubuntu1.1 in -proposed fixes the 
issue. I have verified that a package builds successfully (linux_2.6.31-22.60)

Marking as verification-done


** Description changed:

  Binary package hint: sbuild
  
  This is a request for a sbuild SRU for karmic.
  
  sbuild in karmic has a df subroutine in lib/Sbuild.pm to check for free
  disk space. Unfortunately, the code checks for used space, and not free
  space. This was fixed in upstream sbuild 0.60.0, and I've backported the
  patch to lucid.
  
  This is a hard bug to test, as disk usage needs to be just right for
  sbuild to fail with a insufficient disk space error when there is ample
  disk space left.
  
  The bug has been addressed by the simple fix in the attached debdiff.
+ 
+ TEST CASE:
+ 1. Create a filesystem on a file and mount it
+     1.1 dd if=/dev/zero of=./fakefs bs=1M count=2000
+     1.2. mke2fs ./fakefs
+     1.3. mkdir mnt
+     1.4. mount -t ext2 ./fakefs ./mnt/ -o loop
+ 2. Setup a build environment with a chroot on this newly created device
+ 3. Build a large package (build size need to be twice the used space on the 
device in order to trigger the bug) A randomly chosen package is ... linux 
+ sbuild -d karmic linux_2.6.31-22.60.dsc
+ 
+ VERIFICATION FAILED:
+ - build fail with the following error:
+ ===
+ Check disc space
+ ────────────────
+ Disc space is propably not enough for building.
+ (Source needs 426276 KB, free are 802060 KB.)
+ ===
+ Which is approximately what is used on the loop device 
+ Filesystem           1K-blocks      Used Available Use% Mounted on
+ /dev/loop0             2015824    779644   1133780  41% 
/home/karmic/SRU/570669/mnt
+ 
+ VERIFICATION DONE:
+ - The package builds with success (or at least the disk space check is ok)
+ 
+ REGRESSION:
+ None, Sbuild:df is called once in Sbuild.pm and another time in Daemon.pm and 
in both cases to check free space.

** Tags added: verification-done
** Tags removed: verification-needed

-- 
[SRU] sbuild fails because of incorrect free space check
https://bugs.launchpad.net/bugs/570669
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to