Bug#617299: dpkg-deb: should give a hint when it fails due to filling /tmp
- To: Debian Bug Tracking System <617299@bugs.debian.org>
- Subject: Bug#617299: dpkg-deb: should give a hint when it fails due to filling /tmp
- From: Martin-Éric Racine <martin-eric.racine@iki.fi>
- Date: Fri, 13 Jul 2012 20:46:51 +0300
- Message-id: <CAPZXPQd1ee5WTvTXyR-rJonqiD=RRrtf4=FzVj7f4T05gBPg+w@mail.gmail.com>
- Reply-to: martin-eric.racine@iki.fi, 617299@bugs.debian.org
- In-reply-to: <20120712225655.20566.20746.reportbug@henna.lan>
- References: <20120712225655.20566.20746.reportbug@henna.lan>
2012/7/13 Martin-Éric Racine <martin-eric.racine@iki.fi>:
> Package: dpkg
> Version: 1.16.4.3
> Followup-For: Bug #617299
>
> I also encounter the same bug when trying to build kernel 3.2.21 from upstream tarball:
>
> $ LOCALVERSION=-git-686-pae make deb-pkg
> [...]
> dpkg-deb: building package `firmware-linux' in `../firmware-linux_3.2.21-git-686-pae-1_i386.deb'.
> dpkg-deb: building package `linux-headers-3.2.21-git-686-pae' in `../linux-headers-3.2.21-git-686-pae_3.2.21-git-686-pae-1_i386.deb'.
> dpkg-deb: building package `linux-libc-dev' in `../linux-libc-dev_3.2.21-git-686-pae-1_i386.deb'.
> dpkg-deb: building package `linux-image-3.2.21-git-686-pae' in `../linux-image-3.2.21-git-686-pae_3.2.21-git-686-pae-1_i386.deb'.
> dpkg-deb (subprocess): data member: internal gzip write error: 'File not found'
> dpkg-deb: error: subprocess <compress> from tar -cf returned error exit status 2
> make[1]: *** [deb-pkg] Error 2
> make: *** [deb-pkg] Error 2
This seems to be caused by either 'tar' or 'gzip' using /tmp to build
the package. Since recent Debian systems default to using tmpfs for
/tmp, systems with insufficient memory or with another process using
all available memory resources will make the build fail. Would there
perhaps be a way to make this process use /var/tmp or some other
normal storage space to avoid these nonsensical failures?
Reply to: