我开发了一个基于自动工具的 C++ 应用程序,它可以使用通常的 ./configure 完美编译和安装;进行安装。
现在我创建了一个 .deb 包,令我惊讶的是,它不包含我的任何数据或二进制文件。它只包括强制性的 .deb 文件,如 CONTENTS、DEBIAN、INFO、INSTALL 等。
我用 bzr(对于 ubuntu)builddeb、debuild 等尝试了很多不同的方法。所有这些方法都使我的程序没有错误,然后创建几乎空的 .deb。
这些是debian文件夹中的相关文件:debian/control:
Source: gestiong
Section: office
Priority: optional
Maintainer: santilin <gestiong@programacionsocial.net>
Build-Depends: debhelper (>= 8.0.0)
Standards-Version: 3.9.3
Homepage: www.programacionsocial.net
#Vcs-Git: git://git.debian.org/collab-maint/gestiong.git
#Vcs-Browser: http://git.debian.org/?p=collab-maint/gestiong.git;a=summary
Package: gestiong
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: <Programa libre de gestión de ONG y asociaciones sin ánimo de lucro>
<GestiONG es un ...>
Package: gestiong-doc
Architecture: all
Description: documentation for gestiong
<insert long description, indented with spaces>
Debian/变更日志:
gestiong (0.5-0ubuntu1) precise; urgency=low
* Initial release
-- santilín <gestiong@programacionsocial.net> Tue, 15 Oct 2013 14:21:22 +0200
以及从源 tarball (gestiong_0.5.orig.tar.gz) 构建 de 包的命令
bzr dh_make gestiong 0.5 gestiong_0.5.orig.tar.gz
Type of package: single binary, indep binary, multiple binary, library, kernel module, kernel patch?
[s/i/m/l/k/n] s
cd gestiong; bzr builddeb -- -us -uc
过了很长一段时间,程序被编译并且 .deb 没有错误地创建。
drwxrwxr-x 3 santilin santilin 4096 oct 16 18:58 build-area
drwxrwxr-x 14 santilin santilin 4096 oct 16 18:35 gestiong
-rw------- 1 santilin santilin 2246 oct 16 18:51 gestiong_0.5-0ubuntu1.debian.tar.gz
-rw------- 1 santilin santilin 894 oct 16 18:51 gestiong_0.5-0ubuntu1.dsc
-rw------- 1 santilin santilin 1885 oct 16 18:51 gestiong_0.5-0ubuntu1_i386.changes
-rw------- 1 santilin santilin 2226 oct 16 18:51 gestiong_0.5-0ubuntu1_i386.deb
-rw-rw-r-- 1 santilin santilin 3638028 oct 16 18:35 gestiong_0.5.orig.tar.gz
-rw------- 1 santilin santilin 1888 oct 16 18:51 gestiong-doc_0.5-0ubuntu1_all.deb
但是 .deb 文件几乎是空的。我究竟做错了什么?
(压缩包可以从https://sourceforge.net/projects/gestiong/files/gestiong/gestiong-0.5.beta.tar.gz/download下载)