Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有两个用于构建源 rpm 的盒子。其中一个运行:
/usr/lib/rpm/find-debuginfo.sh /usr/src/redhat/BUILD/name-of-package
它将三个name.debug文件添加到 RPM_BUID_ROOT。
name.debug
另一个构建框不运行 find-debuginfo.sh 并且不生成这些文件。
find-debuginfo.sh
使用 rpm 宏魔法禁用调试包的构建(将其放在规范文件中的某个位置):
%define debug_package %{nil}
我不知道为什么你的一个盒子能建造它而另一个不能。
find-debuginfo.sh 将 dwarf debuginfo 从主二进制文件/库中分离到单独的文件中,这些文件可以打包到单独的 FOO-debuginfo subrpms 中。这样,对调试不感兴趣的用户不必安装 -debuginfo 从而节省磁盘空间。