dpkg 错误退出状态 2
尝试在 Ubuntu 9.10 上从源代码构建 php 以启用 GD2,但是当我运行 dpkg-buildpackage 时,它只是停止给我这个错误:
QUILT_PATCHES=debian/patches quilt --quiltrc /dev/null pop -a -R ||测试$? = 2
补丁 suhosin.patch 未完全删除(刷新或使用 -f 强制执行)make: *** [取消补丁] 错误 1
dpkg-buildpackage:错误:fakeroot debian/rules clean 给出错误退出状态 2
我已经用谷歌搜索过,但我真的找不到导致此问题的原因,以及我应该对此做些什么...
有什么想法吗?
Trying to build php from source on Ubuntu 9.10 to enable GD2, but when i run dpkg-buildpackage, it just quits giving me this error:
QUILT_PATCHES=debian/patches quilt --quiltrc /dev/null pop -a -R || test $? = 2
Patch suhosin.patch does not remove cleanly (refresh it or enforce with -f)make: *** [unpatch] Error 1
dpkg-buildpackage: error: fakeroot debian/rules clean gave error exit status 2
I've googled around, but i really can't find what's causing this, and what i should do about it...
any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您使用过 debian 软件包中的源吗?如果不是,那么您在应用 Debian 补丁时可能会遇到困难。 Debian 使用主要的干净源代码(package_name.orig.tar.gz 文件)和补丁(package_name.diff.gz)。不知道这个特殊问题,有一段时间没有构建软件包了,但是您可以尝试以 debian-way 方式构建它(http://www.debian.org/doc/FAQ/ch-pkg_basics.en.html#s-sourcepkgs)。检查原始源代码,然后应用 Debian 补丁,应用您的补丁(或其他顺序,不知道哪种方式应该有效),最后从修补源构建 Debian 软件包
Have you used source from debian package? If no, then you can have difficulties to apply patches from Debian. Debian uses primary clean sources (package_name.orig.tar.gz file) and patches (package_name.diff.gz). Don't know about this particular problem, didn't build packages for some time, but you could try to build it debian-way (http://www.debian.org/doc/FAQ/ch-pkg_basics.en.html#s-sourcepkgs). Ckech out original sources, then apply Debian patches, apply your patches (or the other order, don't know which way should work), and finally build Debian packages from patched sources
我最近也遇到了类似的麻烦。发生的情况是,在您已经应用了补丁之后,dpkg 正在尝试将补丁应用到源代码。它无法干净地应用它们,因为它们已因您的修改而移动。我摆弄了一段时间,发现最简单的方法是将补丁添加到 Quilt 然后构建包。但是,quilt 的“补丁目录”与 Debian 软件包中的普通目录不同。它是
debian/patches
而不是./patches
。无论如何,请查看 Debian 软件包维护者指南本页中的第 6.4 节:http://www.debian.org/doc/maint-guide/ch-build.en.html
I had similar trouble recently. What's happening is that dpkg is trying to apply patches to the source code, after you've already applied a patch. It can't apply them cleanly because they have gotten moved around by your modifications. I fiddled for a while, and found out that the easiest thing to do is to add the patch to Quilt and then build the package. BUT, the "patch directory" for quilt is DIFFERENT from the normal one, in a Debian package. It's
debian/patches
rather than./patches
.Anyway, look at section 6.4 in this page of the Debian package maintainer's guide: http://www.debian.org/doc/maint-guide/ch-build.en.html