【问题标题】:what does find-debuginfo.sh in rpmbuild do? how can I get rid of it?rpmbuild 中的 find-debuginfo.sh 有什么作用?我怎样才能摆脱它?
【发布时间】:2011-05-08 16:55:37
【问题描述】:

我有两个用于构建源 rpm 的盒子。其中一个运行:

/usr/lib/rpm/find-debuginfo.sh /usr/src/redhat/BUILD/name-of-package

这会将三个 name.debug 文件添加到 RPM_BUID_ROOT。

另一个构建框不运行 find-debuginfo.sh 并且不生成这些文件。

  • find-debuginfo.sh 有什么作用?
  • 是什么导致它运行?
  • 如何让它不运行?

【问题讨论】:

    标签: rpm rpmbuild


    【解决方案1】:

    使用 rpm 宏魔法禁用调试包的构建(将其放在规范文件中的某个位置):

    %define  debug_package %{nil}
    

    我不知道为什么你的一个盒子能建造它而另一个不能。

    【讨论】:

    • 这些盒子上可能有不同版本的 rpm。
    【解决方案2】:

    find-debuginfo.sh 将 dwarf debuginfo 从主二进制文件/库中分离到单独的文件中,这些文件可以打包到单独的 FOO-debuginfo subrpms 中。这样,对调试不感兴趣的用户就不必安装 -debuginfo 从而节省磁盘空间。

    【讨论】:

      猜你喜欢
      • 2021-12-29
      • 2012-12-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2022-09-23
      • 2021-11-16
      • 2021-01-27
      • 2020-08-10
      相关资源
      最近更新 更多