首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >“`git buildpackage`”不调用。/配置,为什么?

“`git buildpackage`”不调用。/配置,为什么?
EN

Stack Overflow用户
提问于 2015-07-11 16:16:31
回答 1查看 185关注 0票数 2

我正在尝试创建自己的.deb文件,但是git-buildpackage似乎没有调用./configure来构建它(我故意遗漏了一个依赖项,以确保它失败,但它不会失败!)

我称之为:

代码语言:javascript
复制
git-buildpackage --git-builder="git-pbuilder"

输出的最后一部分是:

代码语言:javascript
复制
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 <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 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 

(要获得完整的输出,请参阅我的精神。)

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-07-11 17:02:18

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

tarball有一个autogen.sh文件而不是一个configure文件,这是上游的一个bug (实际上他们已经修复了这个错误,他们知道他们的make dist进程是错误的)。为了解决这个bug来打包这个bug版本,我们必须将它添加到debian/rules文件中:

代码语言:javascript
复制
override_dh_auto_configure:
    ./autogen.sh

(从本指南.)

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31359171

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档