[buildd-tools-devel] Bug#842947: sbuild: Disk usage is sometimes negative

Santiago Vila sanvila at unex.es
Wed Nov 2 14:12:44 UTC 2016


Package: sbuild
Version: 0.72.0

Dear maintainer:

Disk usage is sometimes a negative number:

Build needed 00:00:00, -1k disk space

Attached a sample build log.

I think it would be better if this would never happen.

For that, it would be just a matter of taking the maximum between 0 and
the measured required disk (regardless of the procedure to measure it).

Thanks.
-------------- next part --------------
sbuild (Debian sbuild) 0.72.0 (25 Oct 2016) on uranio2

+==============================================================================+
| apt-dpkg-ref 5.3.1+nmu1 (amd64)              Tue, 01 Nov 2016 10:11:09 +0000 |
+==============================================================================+

Package: apt-dpkg-ref
Version: 5.3.1+nmu1
Source Version: 5.3.1+nmu1
Distribution: stretch-eatmydata
Machine Architecture: amd64
Host Architecture: amd64
Build Architecture: amd64

I: NOTICE: Log filtering will replace 'var/run/schroot/mount/stretch-eatmydata-1f56d69e-a348-4d49-85ed-139b626a624d' with '<<CHROOT>>'

+------------------------------------------------------------------------------+
| Update chroot                                                                |
+------------------------------------------------------------------------------+

Get:1 http://httpredir.debian.org/debian stretch InRelease [258 kB]
Fetched 258 kB in 0s (1631 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
Calculating upgrade...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

+------------------------------------------------------------------------------+
| Fetch source files                                                           |
+------------------------------------------------------------------------------+


Check APT
---------

Checking available source versions...

Download source files with APT
------------------------------

Reading package lists...
Need to get 8962 B of source archives.
Get:1 http://httpredir.debian.org/debian stretch/main apt-dpkg-ref 5.3.1+nmu1 (dsc) [1541 B]
Get:2 http://httpredir.debian.org/debian stretch/main apt-dpkg-ref 5.3.1+nmu1 (tar) [7421 B]
Fetched 8962 B in 0s (39.9 kB/s)
Download complete and in download only mode
I: NOTICE: Log filtering will replace 'build/apt-dpkg-ref-tMmM8r/apt-dpkg-ref-5.3.1+nmu1' with '<<PKGBUILDDIR>>'
I: NOTICE: Log filtering will replace 'build/apt-dpkg-ref-tMmM8r' with '<<BUILDDIR>>'

+------------------------------------------------------------------------------+
| Install build-essential                                                      |
+------------------------------------------------------------------------------+


Setup apt archive
-----------------

Merged Build-Depends: build-essential, fakeroot
Filtered Build-Depends: build-essential, fakeroot
dpkg-deb: building package 'sbuild-build-depends-core-dummy' in '/<<BUILDDIR>>/resolver-0XH2xT/apt_archive/sbuild-build-depends-core-dummy.deb'.
dpkg-scanpackages: warning: Packages in archive but missing from override file:
dpkg-scanpackages: warning:   sbuild-build-depends-core-dummy
dpkg-scanpackages: info: Wrote 1 entries to output Packages file.
Ign:1 copy:/<<BUILDDIR>>/resolver-0XH2xT/apt_archive ./ InRelease
Get:2 copy:/<<BUILDDIR>>/resolver-0XH2xT/apt_archive ./ Release [957 B]
Ign:3 copy:/<<BUILDDIR>>/resolver-0XH2xT/apt_archive ./ Release.gpg
Get:4 copy:/<<BUILDDIR>>/resolver-0XH2xT/apt_archive ./ Sources [349 B]
Get:5 copy:/<<BUILDDIR>>/resolver-0XH2xT/apt_archive ./ Packages [430 B]
Fetched 1736 B in 0s (153 kB/s)
Reading package lists...
Reading package lists...

Install core build dependencies (apt-based resolver)
----------------------------------------------------

Installing build dependencies
Reading package lists...
Building dependency tree...
Reading state information...
The following NEW packages will be installed:
  sbuild-build-depends-core-dummy
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 764 B of archives.
After this operation, 0 B of additional disk space will be used.
Get:1 copy:/<<BUILDDIR>>/resolver-0XH2xT/apt_archive ./ sbuild-build-depends-core-dummy 0.invalid.0 [764 B]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 764 B in 0s (0 B/s)
Selecting previously unselected package sbuild-build-depends-core-dummy.
(Reading database ... 14157 files and directories currently installed.)
Preparing to unpack .../sbuild-build-depends-core-dummy_0.invalid.0_amd64.deb ...
Unpacking sbuild-build-depends-core-dummy (0.invalid.0) ...
Setting up sbuild-build-depends-core-dummy (0.invalid.0) ...

+------------------------------------------------------------------------------+
| Check architectures                                                          |
+------------------------------------------------------------------------------+

Arch check ok (amd64 included in all)

+------------------------------------------------------------------------------+
| Install package build dependencies                                           |
+------------------------------------------------------------------------------+


Setup apt archive
-----------------

Merged Build-Depends: debhelper (>= 7.0), clisp | cmucl, texlive-base, texlive-latex-base, texlive-latex-recommended, texlive-fonts-recommended
Filtered Build-Depends: debhelper (>= 7.0), clisp | cmucl, texlive-base, texlive-latex-base, texlive-latex-recommended, texlive-fonts-recommended
dpkg-deb: building package 'sbuild-build-depends-apt-dpkg-ref-dummy' in '/<<BUILDDIR>>/resolver-0XH2xT/apt_archive/sbuild-build-depends-apt-dpkg-ref-dummy.deb'.
dpkg-scanpackages: warning: Packages in archive but missing from override file:
dpkg-scanpackages: warning:   sbuild-build-depends-apt-dpkg-ref-dummy sbuild-build-depends-core-dummy
dpkg-scanpackages: info: Wrote 2 entries to output Packages file.
Ign:1 copy:/<<BUILDDIR>>/resolver-0XH2xT/apt_archive ./ InRelease
Get:2 copy:/<<BUILDDIR>>/resolver-0XH2xT/apt_archive ./ Release [963 B]
Ign:3 copy:/<<BUILDDIR>>/resolver-0XH2xT/apt_archive ./ Release.gpg
Get:4 copy:/<<BUILDDIR>>/resolver-0XH2xT/apt_archive ./ Sources [545 B]
Get:5 copy:/<<BUILDDIR>>/resolver-0XH2xT/apt_archive ./ Packages [615 B]
Fetched 2123 B in 0s (208 kB/s)
Reading package lists...
Reading package lists...

Install apt-dpkg-ref build dependencies (apt-based resolver)
------------------------------------------------------------

Installing build dependencies
Reading package lists...
Building dependency tree...
Reading state information...
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
 sbuild-build-depends-apt-dpkg-ref-dummy : Depends: clisp but it is not installable or
                                                    cmucl but it is not installable
E: Unable to correct problems, you have held broken packages.
apt-get failed.
E: Package installation failed
Not removing build depends: cloned chroot in use
/usr/bin/du: cannot access '/<<BUILDDIR>>/apt-dpkg-ref-5.3.1+nmu1': No such file or directory
E: read_command failed to execute du
E: Cannot determine space needed for /<<BUILDDIR>>/apt-dpkg-ref-5.3.1+nmu1 (du failed)

Setup apt archive
-----------------

Merged Build-Depends: dose-distcheck
Filtered Build-Depends: dose-distcheck
dpkg-deb: building package 'sbuild-build-depends-dose3-dummy' in '/<<BUILDDIR>>/resolver-0XH2xT/apt_archive/sbuild-build-depends-dose3-dummy.deb'.
dpkg-scanpackages: warning: Packages in archive but missing from override file:
dpkg-scanpackages: warning:   sbuild-build-depends-apt-dpkg-ref-dummy sbuild-build-depends-core-dummy sbuild-build-depends-dose3-dummy
dpkg-scanpackages: info: Wrote 3 entries to output Packages file.
Ign:1 copy:/<<BUILDDIR>>/resolver-0XH2xT/apt_archive ./ InRelease
Get:2 copy:/<<BUILDDIR>>/resolver-0XH2xT/apt_archive ./ Release [963 B]
Ign:3 copy:/<<BUILDDIR>>/resolver-0XH2xT/apt_archive ./ Release.gpg
Get:4 copy:/<<BUILDDIR>>/resolver-0XH2xT/apt_archive ./ Sources [664 B]
Get:5 copy:/<<BUILDDIR>>/resolver-0XH2xT/apt_archive ./ Packages [732 B]
Fetched 2359 B in 0s (0 B/s)
Reading package lists...
Reading package lists...

Install dose3 build dependencies (apt-based resolver)
-----------------------------------------------------

Installing build dependencies
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
  dose-distcheck libcap2 libelf1 liblua5.2-0 libnspr4 libnss3 libpopt0 librpm3
  librpmio3 libsqlite3-0
Recommended packages:
  rpm-common
The following NEW packages will be installed:
  dose-distcheck libcap2 libelf1 liblua5.2-0 libnspr4 libnss3 libpopt0 librpm3
  librpmio3 libsqlite3-0 sbuild-build-depends-dose3-dummy
0 upgraded, 11 newly installed, 0 to remove and 0 not upgraded.
Need to get 5264 kB of archives.
After this operation, 12.7 MB of additional disk space will be used.
Get:1 copy:/<<BUILDDIR>>/resolver-0XH2xT/apt_archive ./ sbuild-build-depends-dose3-dummy 0.invalid.0 [764 B]
Get:2 http://httpredir.debian.org/debian stretch/main amd64 libpopt0 amd64 1.16-10 [49.2 kB]
Get:3 http://httpredir.debian.org/debian stretch/main amd64 libcap2 amd64 1:2.25-1 [16.8 kB]
Get:4 http://httpredir.debian.org/debian stretch/main amd64 libsqlite3-0 amd64 3.15.0-1 [568 kB]
Get:5 http://httpredir.debian.org/debian stretch/main amd64 libelf1 amd64 0.166-2.2 [172 kB]
Get:6 http://httpredir.debian.org/debian stretch/main amd64 liblua5.2-0 amd64 5.2.4-1.1+b1 [110 kB]
Get:7 http://httpredir.debian.org/debian stretch/main amd64 libnspr4 amd64 2:4.12-2 [117 kB]
Get:8 http://httpredir.debian.org/debian stretch/main amd64 libnss3 amd64 2:3.26-2 [1159 kB]
Get:9 http://httpredir.debian.org/debian stretch/main amd64 librpmio3 amd64 4.12.0.1+dfsg1-6 [1163 kB]
Get:10 http://httpredir.debian.org/debian stretch/main amd64 librpm3 amd64 4.12.0.1+dfsg1-6 [1252 kB]
Get:11 http://httpredir.debian.org/debian stretch/main amd64 dose-distcheck amd64 5.0.1-2 [657 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 5264 kB in 0s (59.3 MB/s)
Selecting previously unselected package libpopt0:amd64.
(Reading database ... 14157 files and directories currently installed.)
Preparing to unpack .../00-libpopt0_1.16-10_amd64.deb ...
Unpacking libpopt0:amd64 (1.16-10) ...
Selecting previously unselected package libcap2:amd64.
Preparing to unpack .../01-libcap2_1%3a2.25-1_amd64.deb ...
Unpacking libcap2:amd64 (1:2.25-1) ...
Selecting previously unselected package libsqlite3-0:amd64.
Preparing to unpack .../02-libsqlite3-0_3.15.0-1_amd64.deb ...
Unpacking libsqlite3-0:amd64 (3.15.0-1) ...
Selecting previously unselected package libelf1:amd64.
Preparing to unpack .../03-libelf1_0.166-2.2_amd64.deb ...
Unpacking libelf1:amd64 (0.166-2.2) ...
Selecting previously unselected package liblua5.2-0:amd64.
Preparing to unpack .../04-liblua5.2-0_5.2.4-1.1+b1_amd64.deb ...
Unpacking liblua5.2-0:amd64 (5.2.4-1.1+b1) ...
Selecting previously unselected package libnspr4:amd64.
Preparing to unpack .../05-libnspr4_2%3a4.12-2_amd64.deb ...
Unpacking libnspr4:amd64 (2:4.12-2) ...
Selecting previously unselected package libnss3:amd64.
Preparing to unpack .../06-libnss3_2%3a3.26-2_amd64.deb ...
Unpacking libnss3:amd64 (2:3.26-2) ...
Selecting previously unselected package librpmio3.
Preparing to unpack .../07-librpmio3_4.12.0.1+dfsg1-6_amd64.deb ...
Unpacking librpmio3 (4.12.0.1+dfsg1-6) ...
Selecting previously unselected package librpm3.
Preparing to unpack .../08-librpm3_4.12.0.1+dfsg1-6_amd64.deb ...
Unpacking librpm3 (4.12.0.1+dfsg1-6) ...
Selecting previously unselected package dose-distcheck.
Preparing to unpack .../09-dose-distcheck_5.0.1-2_amd64.deb ...
Unpacking dose-distcheck (5.0.1-2) ...
Selecting previously unselected package sbuild-build-depends-dose3-dummy.
Preparing to unpack .../10-sbuild-build-depends-dose3-dummy_0.invalid.0_amd64.deb ...
Unpacking sbuild-build-depends-dose3-dummy (0.invalid.0) ...
Setting up libpopt0:amd64 (1.16-10) ...
Setting up libelf1:amd64 (0.166-2.2) ...
Setting up libcap2:amd64 (1:2.25-1) ...
Setting up libnspr4:amd64 (2:4.12-2) ...
Processing triggers for libc-bin (2.24-5) ...
Setting up libsqlite3-0:amd64 (3.15.0-1) ...
Processing triggers for man-db (2.7.5-1) ...
Setting up liblua5.2-0:amd64 (5.2.4-1.1+b1) ...
Setting up libnss3:amd64 (2:3.26-2) ...
Setting up librpmio3 (4.12.0.1+dfsg1-6) ...
Setting up librpm3 (4.12.0.1+dfsg1-6) ...
Setting up dose-distcheck (5.0.1-2) ...
Setting up sbuild-build-depends-dose3-dummy (0.invalid.0) ...
Processing triggers for libc-bin (2.24-5) ...
(I)StdLoaders: Parsing and normalizing...
(I)Packages: Parsing Packages file -...
(I)Format822: total packages 50148
(I)Distcheck: Cudf Universe: 50148 packages
(I)Distcheck: --checkonly specified, consider all packages as background packages
(I)Distcheck: Solving...
output-version: 1.2
native-architecture: amd64
report:
 -
  package: sbuild-build-depends-apt-dpkg-ref-dummy
  version: 0.invalid.0
  architecture: amd64
  status: broken
  reasons:
   -
    missing:
     pkg:
      package: sbuild-build-depends-apt-dpkg-ref-dummy
      version: 0.invalid.0
      architecture: amd64
      unsat-dependency: clisp:amd64 | cmucl:amd64
 
background-packages: 50147
foreground-packages: 1
total-packages: 50148
broken-packages: 1

+------------------------------------------------------------------------------+
| Cleanup                                                                      |
+------------------------------------------------------------------------------+

Purging /<<BUILDDIR>>
Not cleaning session: cloned chroot in use
E: Package build dependencies not satisfied; skipping

+------------------------------------------------------------------------------+
| Summary                                                                      |
+------------------------------------------------------------------------------+

Build Architecture: amd64
Build-Space: -1
Build-Time: 0
Distribution: stretch-eatmydata
Fail-Stage: install-deps
Host Architecture: amd64
Install-Time: 0
Job: apt-dpkg-ref_5.3.1+nmu1
Machine Architecture: amd64
Package: apt-dpkg-ref
Package-Time: 0
Source-Version: 5.3.1+nmu1
Space: -1
Status: given-back
Version: 5.3.1+nmu1
--------------------------------------------------------------------------------
Finished at 2016-11-01T10:11:09Z
Build needed 00:00:00, -1k disk space


More information about the Buildd-tools-devel mailing list