packaging - `git-buildpackage` doesn't call ./configure, why? -


i'm trying create own .deb file, git-buildpackage doesn't seem call ./configure build (i left dependency missing, on purpose, see fail, doesn't fail!).

the way call it:

git-buildpackage --git-builder="git-pbuilder" 

and last parts of output are:

setting fakeroot (1.20.2-1) ... update-alternatives: using /usr/bin/fakeroot-sysv provide /usr/bin/fakeroot (fakeroot) in auto mode i: copying cached apt archive contents i: copying source file i: copying [/home/knocte/pkging/gstreamer-sharp-1_0.99.0-1.dsc] i: copying [/home/knocte/pkging/gstreamer-sharp-1_0.99.0.orig.tar.gz] i: copying [/home/knocte/pkging/gstreamer-sharp-1_0.99.0-1.debian.tar.xz] i: extracting source dpkg-source: warning: extracting unsigned source package (gstreamer-sharp-1_0.99.0-1.dsc) dpkg-source: info: extracting gstreamer-sharp-1 in gstreamer-sharp-1-0.99.0 dpkg-source: info: unpacking gstreamer-sharp-1_0.99.0.orig.tar.gz dpkg-source: info: unpacking gstreamer-sharp-1_0.99.0-1.debian.tar.xz i: building package i: running cd tmp/buildd/*/ && env path="/usr/sbin:/usr/bin:/sbin:/bin" dpkg-buildpackage -us -uc  -rfakeroot dpkg-buildpackage: source package gstreamer-sharp-1 dpkg-buildpackage: source version 0.99.0-1 dpkg-buildpackage: source distribution unstable dpkg-buildpackage: source changed andres g. aragoneses <knocte@gmail.com>  dpkg-source --before-build gstreamer-sharp-1-0.99.0 dpkg-buildpackage: host architecture amd64  fakeroot debian/rules clean dh clean    dh_testdir    dh_auto_clean    dh_clean  dpkg-source -b gstreamer-sharp-1-0.99.0 dpkg-source: info: using source format '3.0 (quilt)' dpkg-source: info: building gstreamer-sharp-1 using existing ./gstreamer-sharp-1_0.99.0.orig.tar.gz dpkg-source: info: building gstreamer-sharp-1 in gstreamer-sharp-1_0.99.0-1.debian.tar.xz dpkg-source: info: building gstreamer-sharp-1 in gstreamer-sharp-1_0.99.0-1.dsc  debian/rules build dh build    dh_testdir    dh_auto_configure    dh_auto_build    dh_auto_test  fakeroot debian/rules binary dh binary    dh_testroot    dh_prep    dh_auto_install    dh_installdocs    dh_installchangelogs    dh_perl    dh_link    dh_compress    dh_fixperms    dh_strip    dh_makeshlibs    dh_shlibdeps    dh_installdeb    dh_gencontrol dpkg-gencontrol: warning: depends field of package libgstreamer1.0-cil: unknown substitution variable ${shlibs:depends} dpkg-gencontrol: warning: file::fcntllock not available; using flock not nfs-safe dpkg-gencontrol: warning: file::fcntllock not available; using flock not nfs-safe dpkg-gencontrol: warning: file::fcntllock not available; using flock not nfs-safe    dh_md5sums    dh_builddeb dpkg-deb: building package 'libgstreamer1.0-cil' in '../libgstreamer1.0-cil_0.99.0-1_amd64.deb'. dpkg-deb: building package 'libgstreamer1.0-cil-dev' in '../libgstreamer1.0-cil-dev_0.99.0-1_all.deb'. dpkg-deb: building package 'monodoc-gstreamer-manual' in '../monodoc-gstreamer-manual_0.99.0-1_all.deb'.  dpkg-genchanges  >../gstreamer-sharp-1_0.99.0-1_amd64.changes dpkg-genchanges: including full source code in upload  dpkg-source --after-build gstreamer-sharp-1-0.99.0 dpkg-buildpackage: full upload (original source included) i: copying cached apt archive contents i: unmounting dev/pts filesystem i: unmounting run/shm filesystem i: unmounting proc filesystem i: current time: sun jun  7 01:55:15 cest 2015 i: pbuilder-time-stamp: 1433634915  -> cleaning cow directory   forking: rm -rf /var/cache/pbuilder/build//cow.21117  

(for full output refer my gist.)

turns out upstream tarball (and branch) didn't have configure file, skipping (failing silently).

the fact tarball had autogen.sh file instead of configure 1 bug of upstream (which fixed in master, knew make dist process buggy). workaround bug package buggy version, 1 has add debian/rules file:

override_dh_auto_configure:     ./autogen.sh 

(extracted this guide.)


Comments