Hi, I'm obviously beaten by bug #725434 when trying to use gbp on a stable box with libpam-tmpdir. I followed the workaround and added a hook script:
$ cat .pbuilder/D10tmp #!/bin/bash # Work around #725434 # example file to be used with --hookdir # #create $TMP and $TMPDIR echo "*******************************************************" echo "* Use workaroud for bug #725434 and create *" echo "* TMP=$TMP *" echo "* TMPDIR=$TMPDIR *" echo "*******************************************************" [ -n "$TMP" -a ! -d "$TMP" ] && mkdir -p "$TMP" || true [ -n "$TMPDIR" -a ! -d "$TMPDIR" ] && mkdir -p "$TMPDIR" || true which left the following log entry I: user script /var/cache/pbuilder/build/cow.101629/tmp/hooks/D10tmp starting ******************************************************* * Use workaroud for bug #725434 and create * * TMP=/tmp/user/0 * * TMPDIR=/tmp/user/0 * ******************************************************* I: user script /var/cache/pbuilder/build/cow.101629/tmp/hooks/D10tmp finished and the problem described in the bug report is not occuring any more. However, I get a very similar and most probably related problem way later in the package build process: dh_md5sums -O--buildsystem=pybuild dh_builddeb -O--buildsystem=pybuild dpkg-deb: building package `python-pyfaidx' in `../python-pyfaidx_0.4.2-0~bpo8+1_all.deb'. dpkg-deb: error: failed to make temporary file (control member): Permission denied dh_builddeb: dpkg-deb --build debian/python-pyfaidx .. returned exit code 2 dpkg-deb: building package `python3-pyfaidx' in `../python3-pyfaidx_0.4.2-0~bpo8+1_all.deb'. dpkg-deb: error: failed to make temporary file (control member): Permission denied dh_builddeb: dpkg-deb --build debian/python3-pyfaidx .. returned exit code 2 dpkg-deb: building package `python-pyfaidx-examples' in `../python-pyfaidx-examples_0.4.2-0~bpo8+1_all.deb'. dpkg-deb: error: failed to make temporary file (control member): Permission denied dh_builddeb: dpkg-deb --build debian/python-pyfaidx-examples .. returned exit code 2 debian/rules:10: recipe for target 'binary' failed make: *** [binary] Error 1 dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2 E: Failed autobuilding of package The interesting thing here is that while TMP=/tmp/user/0 this dir is empty and the packaging is done in /tmp/buildd. If I do # cd /tmp/buildd/python-pyfaidx-0.4.2 # dh_builddeb -O--buildsystem=pybuild dpkg-deb: building package `python-pyfaidx' in `../python-pyfaidx_0.4.2-0~bpo8+1_all.deb'. dpkg-deb: building package `python3-pyfaidx' in `../python3-pyfaidx_0.4.2-0~bpo8+1_all.deb'. dpkg-deb: building package `python-pyfaidx-examples' in `../python-pyfaidx-examples_0.4.2-0~bpo8+1_all.deb'. this obviously works fine. (BTW, the package in question is in git://anonscm.debian.org/debian-med/python-pyfaidx.git but this problem exists for any package.) I can very easily build the package when simply using the export-dir of gbp cd to the build directory and simply use pdebuild. So the problem is definitely created by gbp. Any clue? Kind regards Andreas. -- http://fam-tille.de