Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#823651: pbuilder: fails to make temp file - breaks

124 views
Skip to first unread message

Norbert Preining

unread,
May 6, 2016, 10:10:03 PM5/6/16
to
Package: pbuilder
Version: 0.224
Severity: grave
Justification: renders package unusable

Dear all,

the recent changes in /tmp handling seem to have made
cowbuilder/pbuilder unable to build any package:

$ cowbuilder --build foobar.dsc
...
This package was created automatically by pbuilder to satisfy the
build-dependencies of the package being currently built.
Depends: ....
dpkg-deb: building package 'pbuilder-satisfydepends-dummy' in '/tmp/satisfydepends-aptitude/pbuilder-satisfydepends-dummy.deb'.
dpkg-deb: error: failed to make temporary file (control member): No such file or directory
E: pbuilder-satisfydepends failed.

I am not sure where the fix should be, though.

Thanks

Norbert

-- System Information:
Debian Release: stretch/sid
APT prefers unstable
APT policy: (500, 'unstable'), (200, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 4.6.0-rc6+ (SMP w/4 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages pbuilder depends on:
ii debconf [debconf-2.0] 1.5.59
ii debootstrap 1.0.81
ii dpkg-dev 1.18.6
ii wget 1.17.1-2

Versions of packages pbuilder recommends:
ii devscripts 2.16.4
ii fakeroot 1.20.2-1
ii iproute2 4.3.0-1+b1
ii net-tools 1.60+git20150829.73cef8a-2
ii sudo 1.8.15-1.1

Versions of packages pbuilder suggests:
ii cowdancer 0.79
ii gdebi-core 0.9.5.7

-- debconf information:
pbuilder/mirrorsite: http://ftp.jaist.ac.jp/debian/
pbuilder/rewrite: false
pbuilder/nomirror:

Mattia Rizzolo

unread,
May 7, 2016, 5:10:03 AM5/7/16
to
control: tag -1 moreinfo unreproducible

On Sat, May 07, 2016 at 11:03:28AM +0900, Norbert Preining wrote:
> the recent changes in /tmp handling seem to have made

There have been no recent changes in /tmp handling.

> cowbuilder/pbuilder unable to build any package:

As you can guess problems like "pbuilder's unable to build any package"
would be kind of spotted before releasing...

> $ cowbuilder --build foobar.dsc
> ...
> This package was created automatically by pbuilder to satisfy the
> build-dependencies of the package being currently built.
> Depends: ....
> dpkg-deb: building package 'pbuilder-satisfydepends-dummy' in '/tmp/satisfydepends-aptitude/pbuilder-satisfydepends-dummy.deb'.
> dpkg-deb: error: failed to make temporary file (control member): No such file or directory
> E: pbuilder-satisfydepends failed.

This error is the same as the one reported in #576425, a report about
pbuilder not working with libpam-tmpfs. Are you using libpam-tmpfs?

If not please provide you /etc/pbuilderrc, ~/.pbuilderrc, a full log
with --debug.

--
regards,
Mattia Rizzolo

GPG Key: 66AE 2B4A FCCF 3F52 DA18 4D18 4B04 3FCD B944 4540 .''`.
more about me: https://mapreri.org : :' :
Launchpad user: https://launchpad.net/~mapreri `. `'`
Debian QA page: https://qa.debian.org/developer.php?login=mattia `-
signature.asc

Mattia Rizzolo

unread,
May 11, 2016, 8:50:04 AM5/11/16
to
On Wed, May 11, 2016 at 09:03:29PM +0900, Norbert Preining wrote:
> The problem is that TEMP is set to
> /tmp/user/0/

Great. I've been meaning to ask for this some days ago, but for me
these days are totally crazy for me, and eventually forget.

JOOI, how do you happen to have TEMP set like that if you don't use
libpam-tmpdir??

> but this directory does not exist.

> This is *bad*, but maybe a problem of cowbuilder? I don't know.

So, this is actually the same problem already reported in 2 other bugs
(that I finally merged); see #576425 and #725434.
Current "workaround" is to add a hook before the build to create that
directory.

Also, downgrading the bug to severity:minor…
signature.asc

Norbert Preining

unread,
May 11, 2016, 10:10:03 AM5/11/16
to
Hi Mattia,

> JOOI, how do you happen to have TEMP set like that if you don't use
> libpam-tmpdir??

Ahhh, no I see ... I searched for libpam-tmpfs (that i what you
mentioned in the first email), and that was not installed, indeed.
OTOH, libpam-tmpdir, yes, that is here.

Interestingly it is marked in aptitude as auto-installed, but
can be removed, and indeed, it came in as recommends from
libpam-ssh.

Well ok, I will cater for it in one way or the other (workaround
or removing libpam-tmpdir).

Sorry for the confusion

All the best

Norbert

------------------------------------------------------------------------
PREINING, Norbert http://www.preining.info
JAIST, Japan TeX Live & Debian Developer
GPG: 0x860CDC13 fp: F7D8 A928 26E3 16A1 9FA0 ACF0 6CAC A448 860C DC13
------------------------------------------------------------------------

Mattia Rizzolo

unread,
May 11, 2016, 10:30:03 AM5/11/16
to
On Wed, May 11, 2016 at 11:06:58PM +0900, Norbert Preining wrote:
> Ahhh, no I see ... I searched for libpam-tmpfs (that i what you
> mentioned in the first email), and that was not installed, indeed.
> OTOH, libpam-tmpdir, yes, that is here.

bummer. my fault here :)

> Well ok, I will cater for it in one way or the other (workaround
> or removing libpam-tmpdir).

Also putting an 'unset TEMP' (and/or TMPDIR) in pbuilderrc should be
enough.

> Sorry for the confusion

Someday I'll get around to understand what actually fails and fix it.
Probably just having pbuilder mkdir TEMP if not existing would be
enough, or maybe just unsetting that variable. dunno, I need to
understand better what that thing is in first place...
signature.asc

Norbert Preining

unread,
May 11, 2016, 9:50:03 PM5/11/16
to
Hi Mattia,

> Also putting an 'unset TEMP' (and/or TMPDIR) in pbuilderrc should be
> enough.

Just FYI, unsetting only TEMP did not work, I needed also TMPDIR
(but I didn't try whether only TMPDIR also works ;-)

Harald Dunkel

unread,
Jan 15, 2023, 5:20:04 AM1/15/23
to
metoo, using pbuilder 0.231 on sid.

Regards
Harri

Thorsten Glaser

unread,
Nov 3, 2023, 6:40:05 PM11/3/23
to
Patrick Schleizer dixit:

> sudo apt install libpam-tmpdir
>
> is enough to break cowbuilder, which then calls pbuilder.

Just unset TMP in a wrapper you do around cowbuilder.
Hasn’t this been reported multiple times already?

In fact, it’s best to only let a whitelist of environment
variables in so your package build is not unexpectedly
changed, so that’s good hygiene anyway.

bye,
//mirabilos
--
"Using Lynx is like wearing a really good pair of shades: cuts out
the glare and harmful UV (ultra-vanity), and you feel so-o-o COOL."
-- Henry Nelson, March 1999
0 new messages