这是很长一段时间以来我第一次尝试使用.deb打包,所以这可能是一个愚蠢的错误。尽管如此,正如标题所述:我的包在一个可靠的14.04.3主机上在pbuilder中构建得很好,但是在launchpad上失败了。FWIW,我的直觉是,安装已经把文件放在不同的地方。
这是基于debian (jessie)的构建,这是很好的。我不得不调整一些依赖项和安装路径,但通过这些修复,它将在pbuilder中构建。
第一个问题:在pbuilder中构建和在发射台上构建有什么可能的区别?建造环境?如果是这样的话,我如何在pbuilder中得到相同的?
当然,任何失败的暗示都是值得赞赏的.构建日志在https://launchpad.net/~leamas-alec/+archive/ubuntu/lirc-preview/+build/8102298/+files/buildlog_ubuntu-trusty-amd64.lirc_0.9.3-1.9_BUILDING.txt.gz中
发布于 2015-10-09 16:06:35
这可能不是正确的解决方案,但它是有效的,某种程度上。在二进制文件中添加显式取决于安装目标,这就是诀窍。然而,安装目标是序列的一部分,所以这是某种令人厌恶的东西。而且,它在pbuilder中并不是必需的。
-override_dh_auto_install:
+override_dh_auto_install: debian/tmp/etc/lirc/lircd.conf
+debian/tmp/etc/lirc/lircd.conf:
dh_testdir
dh_testroot
@@ -46,5 +47,5 @@
# Build architecture-independent files here.
-binary-indep:
+binary-indep: debian/tmp/etc/lirc/lircd.conf
# Use system library instead of bundled jquery.js (symlinked below).
echo INSTALL TREE
@@ -67,6 +68,8 @@
# Build architecture-dependent files here.
-binary-arch:
+binary-arch: debian/tmp/etc/lirc/lircd.conf
echo PWD: $PWD
+ echo INSTALL TREE
+ tree -L 4 debian
https://askubuntu.com/questions/683330
复制相似问题