这里有人有创建 Debian / Ubuntu 软件包的经验吗?我正在尝试向后移植 lammps 包(http://packages.ubuntu.com/quantal/lammps)从 Ubuntu 12.10()到 Ubuntu 12.04
我只是非正式地需要它 - 在创建自定义虚拟机映像以部署到 IaaS 平台时,为了方便起见,我只需要一个 .deb 包。
按照https://wiki.ubuntu.com/PackagingGuide 上的 Ubuntu 打包指南,我可以成功构建,除非我尝试使用debuild命令重建时,我通常会收到此错误:
dpkg-source: error: aborting due to unexpected upstream changes, see
/tmp/lammps_0~20120615.gite442279-1.diff.aie32n dpkg-source: info: you
can integrate the local changes with dpkg-source --commit
dpkg-buildpackage: error: dpkg-source --include-binaries -i -b
lammps-0~20120615.gite442279 gave error exit status 2
Run Code Online (Sandbox Code Playgroud)
在 src 目录中运行 'make clean-all' 仍然不能解决问题。有没有办法完全清除构建过程中生成的所有文件,或者要求 debuild 忽略源文件中的任何差异?