Package: git-buildpackage
Version: 0.8.12.2
Severity: normal

Dear Maintainer,

The `git-pbuilder create` works well within the host but is giving
errors when running under docker. It'll fail with the following error:

I: Installing apt-lines
I: Refreshing the base.tgz
I: upgrading packages
I: mounting /proc filesystem
mount: /var/cache/pbuilder/base.cow/proc: permission denied.
W: Aborting with an error
E: pbuilder create failed
I: forking: rm -rf /var/cache/pbuilder/base.cow
The command '/bin/sh -c git-pbuilder create' returned a non-zero code: 32

Note that

- When running within docker, the user is root. I.e., this is not a
permission problem.
- This has been duplicated and verified several times under both
latest Ubuntu (18.04) and Debian (testing & sid).

The Dockerfile that initially trigger such problem is in two steps:
https://github.com/suntong/docker/blob/master/devenv-gbp/Dockerfile
https://github.com/suntong/docker/blob/master/devenv-go/Dockerfile

But I was able to duplicate it with this simple Dockerfile:

------
FROM debian:sid

# Set the env variables to non-interactive
ENV LANG C.UTF-8
ENV DEBIAN_FRONTEND noninteractive
ENV DEBIAN_PRIORITY critical
ENV DEBCONF_NOWARNINGS yes
ENV QUILT_PATCHES=debian/patches

RUN apt-get update
RUN apt-get install --no-install-recommends -yq git-buildpackage
pbuilder cowbuilder debootstrap sudo
------

then run  `git-pbuilder create` within the docker.

 docker build --rm -t gbp /tmp/gbp
 docker run --rm -it gbp

The whole test log is posted to,
http://paste.debian.net/1029576/

Please verify. Thx.

-- System Information:
Debian Release: 9.4
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.9.0-6-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968), LANGUAGE=C
(charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages git-buildpackage depends on:
ii  devscripts            2.17.6+deb9u1
ii  git                   1:2.11.0-3+deb9u3
ii  man-db                2.7.6.1-2
ii  python                2.7.13-2
ii  python-dateutil       2.5.3-2
ii  python-pkg-resources  33.1.1-1
ii  python-six            1.10.0-3

Versions of packages git-buildpackage recommends:
ii  cowbuilder       0.85
ii  pbuilder         0.228.7
pn  pristine-tar     <none>
pn  python-requests  <none>

Versions of packages git-buildpackage suggests:
pn  python-notify  <none>
ii  sudo           1.8.19p1-2.1
ii  unzip          6.0-21

-- no debconf information

Reply via email to