如何重建软件包以包含调试信息?


8

我想重建一个包含调试符号的软件包,我该怎么做?没有-dbg可用的-dbgsym软件包,而且ddebs存储库中也没有软件包。

Answers:


11

您只需几个步骤即可完成此操作:

  1. 获取必要的工具并建立依赖关系:

    sudo apt-get install devscripts fakeroot
    sudo apt-get build-dep <package>
    
  2. 设置构建选项:

    export DEB_BUILD_OPTIONS="debug nostrip noopt"
    
  3. 构建包:

    fakeroot apt-get source -b <package>
    
  4. 安装软件包:

    sudo dpkg -i <package>*.deb
    

By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.