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.
Linux 版本 2.6.18-131.el5 gcc 版本 4.1.2 RPM 版本 4.4.2.3
我使用以下命令来构建包:$ sudo rpmbuild -ba xxx.spec
原以为debuginfo包应该是默认构建的,但是只得到了xxx.src.rpm和xxx.x86_64.rpm,没有debuginfo包。
然后我在我的 xxx.spec 中添加一行,“#%debug_package”:
然后调试包就建好了!但我认为前面带'#'的行被认为是评论!这是如何运作的?
我完全糊涂了。
这是其中最烦人的“功能”之一,它一直吸引着rpm人们。只是注释掉多行宏的第一行。评论它的正确方法是#
rpm
#
#%%debug_package
第一个%逃脱第二个;宏之后的结果变成了你想要的。
%