git-pbuilder / pdebuild problem
hi,
I am using git-pbuilder (with BUILDER=pbuilder) as a way to replace the
local build in "gbp buildpackage" with a pbuilder chroot build (gbp
buildpackage calls git-pbuilder calls pdebuild).
>From git-pbuilder(1):
Normally, one does not run this script directly. Instead, it's used as
the builder script for git-buildpackage. To configure git-buildpackage
to use it, add a stanza like:
[DEFAULT]
builder = /path/to/git-pbuilder
in your gbp.conf file (which can be .gbp.conf in your home directory or
at the top level of the repository, or gbp.conf in the .git
directory).
However, in my tests, git-pbuilder always returns 1, even if the build
succeeds (which makes "gbp buildpackage", with the above .gbp.conf, fail):
---------------------------------
$ LANG=C BUILDER=pbuilder git-pbuilder
[...]
BUILD SUCCESSFUL
Total time: 22 seconds
touch debian/stamp-ant-build
DEB_ANT_CHECK_TARGET unset, not running checks
xsltproc --nonet \
--param make.year.ranges 1 \
--param make.single.year.ranges 1 \
--param man.charmap.use.subset 0 \
http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl \
debian/freeplane.1.xml
[...]
fakeroot debian/rules binary
test -x debian/rules
dh_testroot
dh_prep
dh_installdirs -A
mkdir -p "."
/usr/share/cdbs/1/rules/buildcore.mk:109: WARNING: DEB_DH_INSTALL_ARGS is a deprecated variable
/usr/share/cdbs/1/rules/buildcore.mk:109: WARNING: DEB_COMPRESS_EXCLUDE is a deprecated variable
DEB_ANT_CHECK_TARGET unset, not running checks
DEB_ANT_INSTALL_TARGET unset, skipping default ant.mk common-install target
Adding cdbs dependencies to debian/freeplane.substvars
dh_installdirs -pfreeplane
Adding cdbs dependencies to debian/libjortho-freeplane-java.substvars
dh_installdirs -plibjortho-freeplane-java
dh_installdocs -pfreeplane
dh_installexamples -pfreeplane
dh_installman -pfreeplane
dh_installinfo -pfreeplane
dh_installmenu -pfreeplane
dh_installcron -pfreeplane
dh_installinit -pfreeplane
dh_installdebconf -pfreeplane
dh_installemacsen -pfreeplane
dh_installcatalogs -pfreeplane
dh_installpam -pfreeplane
dh_installlogrotate -pfreeplane
dh_installlogcheck -pfreeplane
dh_installchangelogs -pfreeplane
dh_installudev -pfreeplane
dh_lintian -pfreeplane
dh_bugfiles -pfreeplane
dh_install -pfreeplane -XLICENSE.txt
dh_link -pfreeplane
dh_installmime -pfreeplane
dh_installgsettings -pfreeplane
dh_installdocs -plibjortho-freeplane-java
dh_installexamples -plibjortho-freeplane-java
dh_installman -plibjortho-freeplane-java
dh_installinfo -plibjortho-freeplane-java
dh_installmenu -plibjortho-freeplane-java
dh_installcron -plibjortho-freeplane-java
dh_installinit -plibjortho-freeplane-java
dh_installdebconf -plibjortho-freeplane-java
dh_installemacsen -plibjortho-freeplane-java
dh_installcatalogs -plibjortho-freeplane-java
dh_installpam -plibjortho-freeplane-java
dh_installlogrotate -plibjortho-freeplane-java
dh_installlogcheck -plibjortho-freeplane-java
dh_installchangelogs -plibjortho-freeplane-java
dh_installudev -plibjortho-freeplane-java
dh_lintian -plibjortho-freeplane-java
dh_bugfiles -plibjortho-freeplane-java
dh_install -plibjortho-freeplane-java -XLICENSE.txt
dh_link -plibjortho-freeplane-java
dh_installmime -plibjortho-freeplane-java
dh_installgsettings -plibjortho-freeplane-java
dh_strip -pfreeplane
dh_compress -pfreeplane -X .mm -X .pdf
dh_fixperms -pfreeplane
dh_makeshlibs -pfreeplane
dh_strip -plibjortho-freeplane-java
dh_compress -plibjortho-freeplane-java -X .mm -X .pdf
dh_fixperms -plibjortho-freeplane-java
dh_makeshlibs -plibjortho-freeplane-java
dh_installdeb -pfreeplane
dh_perl -pfreeplane
dh_shlibdeps -pfreeplane
dh_installdeb -plibjortho-freeplane-java
dh_perl -plibjortho-freeplane-java
dh_shlibdeps -plibjortho-freeplane-java
dh_gencontrol -pfreeplane
dpkg-gencontrol: warning: File::FcntlLock not available; using flock which is not NFS-safe
dh_md5sums -pfreeplane
dh_builddeb -pfreeplane
dpkg-deb: building package `freeplane' in `../freeplane_1.3.8.2-1_all.deb'.
dh_gencontrol -plibjortho-freeplane-java
dpkg-gencontrol: warning: File::FcntlLock not available; using flock which is not NFS-safe
dh_md5sums -plibjortho-freeplane-java
dh_builddeb -plibjortho-freeplane-java
dpkg-deb: building package `libjortho-freeplane-java' in `../libjortho-freeplane-java_1.3.8.2-1_all.deb'.
dpkg-genchanges >../freeplane_1.3.8.2-1_amd64.changes
dpkg-genchanges: including full source code in upload
dpkg-source --after-build freeplane-1.3.8.2
dpkg-buildpackage: full upload (original source is included)
I: user script /var/cache/pbuilder/build//7825/tmp/hooks/B90lintian starting
[...]
+++ lintian output +++
[...]
I: unmounting dev/pts filesystem
I: unmounting run/shm filesystem
I: unmounting proc filesystem
I: cleaning the build env
I: removing directory /var/cache/pbuilder/build//7825 and its
subdirectories
$ echo $?
1
---------------------------------
In the non-happy-case, the output is this:
---------------------------------
make: *** [build] Error 1
dpkg-buildpackage: error: debian/rules build gave error exit status 2
E: Failed autobuilding of package
W: no hooks of type C found -- ignoring
I: unmounting dev/pts filesystem
I: unmounting run/shm filesystem
I: unmounting proc filesystem
I: cleaning the build env
I: removing directory /var/cache/pbuilder/build//12253 and its subdirectories
$ echo $?
1
--------------------------------
--> the problem is that "pdebuild" returns exit code 1 on what seems to
be success. Is this a problem or am I doing something wrong?
Thanks and Best Regards,
--
Felix Natter
Reply to: