query about debuginfo

Arkadiusz Miśkiewicz arekm at maven.pl
Mon Apr 12 20:56:49 CEST 2021

W dniu 12.04.2021 o 15:30, Krzysztof Mrozowicz via pld-devel-en pisze:
> On Sunday, April 11, 2021 20:47 IST, Jakub Bogusz <qboosh at pld-linux.org> wrote: 
>> On Fri, Apr 09, 2021 at 03:27:11PM +0100, Krzysztof Mrozowicz via pld-devel-en wrote:
>>> Hi, I updated the wesnoth package to newer version and it built on my
>>> computer with no problems. When I tried to build it on the builders,
>>> it failed with error saying that debugsourcefiles.list is empty.
>> That's because package was compiled without debugging information, so
>> rpm couldn't find source files for compiled binaries.
>> After adjusting build to use PLD-specific compiler flags, debug packages
>> are created.
> Thank you very much for the answer and for fixing the spec. Not knowing you changed the spec, I was looking into it by myself and found that changing CMAKE_BUILD_TYPE from "Release" to "RelWithDebInfo" also does the job. 

Should we change our default rpm macro?

$ rpm --showrc|grep CMAKE_BUILD_TYPE
        -DCMAKE_BUILD_TYPE=%{!?debug:PLD}%{?debug:Debug} \

Arkadiusz Miśkiewicz, arekm / ( maven.pl | pld-linux.org )

More information about the pld-devel-en mailing list