2015-07-11 46 views
2

我试图创建我自己的.deb文件,但git-buildpackage似乎并没有调用./configure来构建它(我故意遗漏了一个依赖项,以查看它失败,但它不会失败! )。`git-buildpackage`不会调用./configure,为什么?

我把它的方式:

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

和输出的最后部分是:

Setting up fakeroot (1.20.2-1) ... 
update-alternatives: using /usr/bin/fakeroot-sysv to provide /usr/bin/fakeroot (fakeroot) in auto mode 
I: Copying back the 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 the 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 by Andres G. Aragoneses <[email protected]> 
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 which is not NFS-safe 
dpkg-gencontrol: warning: File::FcntlLock not available; using flock which is not NFS-safe 
dpkg-gencontrol: warning: File::FcntlLock not available; using flock which is 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 is included) 
I: Copying back the 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 

(全光输出是指my gist。)

回答

2

原来,upstream tarball(和分支)没有configure文件,所以它只是简单地跳过它(失败)。

该压缩包有一个autogen.sh文件,而不是一个一个configure事实是上游的错误(这他们实际上已固定于主,他们知道他们的make dist过程是越野车)。要解决这个bug来包装这个车版本,那么就必须将其添加到debian/rules文件:(从this guide中提取)

override_dh_auto_configure: 
    ./autogen.sh 

相关问题