Bug#856434: sbuild: Fails to build anything in Debian chroots, Ubuntu ones work fine

2018-02-07 Thread Nivas B
On Wed, 1 Mar 2017 01:28:53 +0100 Julian Andres Klode  wrote:
> On Wed, Mar 01, 2017 at 01:21:22AM +0100, Julian Andres Klode wrote:
> > Package: sbuild
> > Version: 0.73.0-4
> > Severity: important
> >
> > Fails with a lot of errors for Debian chroots, but it works perfectly fine
> > with Ubuntu ones. Not sure what's going wrong here. I think this has been
> > going on for months, but I often forget about it because I don't do much
> > binary building anymore (mostly just letting CI pass & upload source these
> > days).
>
> It's libpam-tmpdir that's breaking this somehow - no idea how, but removing
> libpam-tmpdir from my system allows it to work again.
>
>
> --
> Debian Developer - deb.li/jak | jak-linux.org - free software dev
>   |  Ubuntu Core Developer |
> When replying, only quote what is necessary, and write each reply
> directly below the part(s) it pertains to ('inline').  Thank you.
>
>

I tried removing "libpam-tmpdir" and it works. Thanks

Best Regards,
Nivas Baskaran


Bug#856434: sbuild: Fails to build anything in Debian chroots, Ubuntu ones work fine

2017-08-23 Thread James McCoy
On Fri, Mar 03, 2017 at 04:17:50PM +0100, Johannes Schauer wrote:
> Hi,
> 
> On Wed, 1 Mar 2017 01:28:53 +0100 Julian Andres Klode  wrote:
> > On Wed, Mar 01, 2017 at 01:21:22AM +0100, Julian Andres Klode wrote:
> > > Fails with a lot of errors for Debian chroots, but it works perfectly fine
> > > with Ubuntu ones. Not sure what's going wrong here. I think this has been
> > > going on for months, but I often forget about it because I don't do much
> > > binary building anymore (mostly just letting CI pass & upload source these
> > > days).
> > 
> > It's libpam-tmpdir that's breaking this somehow - no idea how, but removing
> > libpam-tmpdir from my system allows it to work again.
> 
> I tried to reproduce the problem. After having installed libpam-tmpdir I get
> the same errors as you do, so success!

I recently started seeing this behavior as well, however I don't have
libpam-tmpdir installed.

> But now I wonder how to fix the problem. It seems that the package sets $TMP
> and $TMPDIR to /tmp/user/1000 for me. I guess the last bit is my user id. But
> then it fails to create that last component of that directory. This is why
> dpkg-deb in your log is unable to create a temporary directory. The path that
> $TMP and $TMPDIR are set to simply doesn't exist. At least on my system.

I have neither $TMP nor $TMPDIR set in my environment.

Attached is a debug build log, in case it's of any use.

Cheers,
-- 
James
GPG Key: 4096R/91BF BF4D 6956 BD5D F7B7  2D23 DFE6 91AE 331B A3DB


autobahn-cpp_0.2.1-2_amd64.build.gz
Description: application/gzip


Bug#856434: sbuild: Fails to build anything in Debian chroots, Ubuntu ones work fine

2017-03-03 Thread Johannes Schauer
Hi,

On Wed, 1 Mar 2017 01:28:53 +0100 Julian Andres Klode  wrote:
> On Wed, Mar 01, 2017 at 01:21:22AM +0100, Julian Andres Klode wrote:
> > Fails with a lot of errors for Debian chroots, but it works perfectly fine
> > with Ubuntu ones. Not sure what's going wrong here. I think this has been
> > going on for months, but I often forget about it because I don't do much
> > binary building anymore (mostly just letting CI pass & upload source these
> > days).
> 
> It's libpam-tmpdir that's breaking this somehow - no idea how, but removing
> libpam-tmpdir from my system allows it to work again.

I tried to reproduce the problem. After having installed libpam-tmpdir I get
the same errors as you do, so success!

But now I wonder how to fix the problem. It seems that the package sets $TMP
and $TMPDIR to /tmp/user/1000 for me. I guess the last bit is my user id. But
then it fails to create that last component of that directory. This is why
dpkg-deb in your log is unable to create a temporary directory. The path that
$TMP and $TMPDIR are set to simply doesn't exist. At least on my system.

Can you confirm that observation?

Thanks!

cheers, josch


signature.asc
Description: signature


Bug#856434: sbuild: Fails to build anything in Debian chroots, Ubuntu ones work fine

2017-02-28 Thread Julian Andres Klode
On Wed, Mar 01, 2017 at 01:21:22AM +0100, Julian Andres Klode wrote:
> Package: sbuild
> Version: 0.73.0-4
> Severity: important
> 
> Fails with a lot of errors for Debian chroots, but it works perfectly fine
> with Ubuntu ones. Not sure what's going wrong here. I think this has been
> going on for months, but I often forget about it because I don't do much
> binary building anymore (mostly just letting CI pass & upload source these
> days).

It's libpam-tmpdir that's breaking this somehow - no idea how, but removing
libpam-tmpdir from my system allows it to work again.


-- 
Debian Developer - deb.li/jak | jak-linux.org - free software dev
  |  Ubuntu Core Developer |
When replying, only quote what is necessary, and write each reply
directly below the part(s) it pertains to ('inline').  Thank you.



Bug#856434: sbuild: Fails to build anything in Debian chroots, Ubuntu ones work fine

2017-02-28 Thread Julian Andres Klode
Package: sbuild
Version: 0.73.0-4
Severity: important

Fails with a lot of errors for Debian chroots, but it works perfectly fine
with Ubuntu ones. Not sure what's going wrong here. I think this has been
going on for months, but I often forget about it because I don't do much
binary building anymore (mostly just letting CI pass & upload source these
days).

Attached is a complete log from a Debian chroot and the head of a build
in an ubuntu chroot

+--+
| 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 
'/<>/resolver-jU5m8u/apt_archive/sbuild-build-depends-core-dummy.deb'.
dpkg-deb: error: failed to make temporary file (control member): No such file 
or directory
Dummy package creation failed
E: Setting up apt archive failed/usr/bin/du: cannot access '/<>': 
No such file or directory
E: read_command failed to execute du
E: Cannot determine space needed for /<> (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 
'/<>/resolver-jU5m8u/apt_archive/sbuild-build-depends-dose3-dummy.deb'.
dpkg-deb: error: failed to make temporary file (control member): No such file 
or directory
Dummy package creation failed
E: Setting up apt archive failedE: Failed to explain bd-uninstallable


-- System Information:
Debian Release: 9.0
  APT prefers unstable
  APT policy: (900, 'unstable'), (500, 'unstable-debug'), (500, 
'buildd-unstable'), (500, 'testing'), (100, 'experimental'), (1, 
'experimental-debug')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.9.0-2-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_IE.UTF-8, LC_CTYPE=en_IE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages sbuild depends on:
ii  adduser 3.115
ii  libsbuild-perl  0.73.0-4
pn  perl:any

Versions of packages sbuild recommends:
ii  autopkgtest  4.3
ii  debootstrap  1.0.88
ii  schroot  1.6.10-3

Versions of packages sbuild suggests:
ii  deborphan  1.7.28.8-0.3
ii  kmod   23-2
ii  wget   1.19.1-1

-- no debconf information

-- 
Debian Developer - deb.li/jak | jak-linux.org - free software dev
  |  Ubuntu Core Developer |
When replying, only quote what is necessary, and write each reply
directly below the part(s) it pertains to ('inline').  Thank you.


python-apt_1.4.0~beta2_amd64-2017-03-01T00:15:43Z.build.gz
Description: application/gzip


python-apt_1.4.0~beta2_amd64-2017-03-01T00:14:21Z.build.gz
Description: application/gzip