XXX-debugsource

Bartek Szady bszx-pld at bszx.eu
Wed Mar 31 13:27:50 CEST 2021


On 3/31/21 11:39 AM, Jan Palus wrote:

> On 31.03.2021 12:00, Bartek Szady wrote:
>> Cześć
>>
>>
>> Jak się pozbyć błędu typu:
>>
>>
>> + /usr/lib/rpm/find-debuginfo.sh -j8 --build-id-seed 9.16.13-3.1
>> --unique-debug-suffix -9.16.13-3.1.x86_64 --unique-debug-src-base bind-
>> 9.16.13-3.1.x86_64 -S debugsourcefiles.list
>> /home/users/bszx/compilations/rpm/BUILD/bind-9.16.13
>> extracting debug info from
>> /tmp/tmp-bszx-Q59vy4/bind-9.16.13-x86_64-root-bszx/usr/bin/dig
>> extracting debug info from
>> /tmp/tmp-bszx-Q59vy4/bind-9.16.13-x86_64-root-bszx/usr/bin/delv
>> extracting debug info from
>> /tmp/tmp-bszx-Q59vy4/bind-9.16.13-x86_64-root-bszx/usr/bin/arpaname
>> extracting debug info from
>> /tmp/tmp-bszx-Q59vy4/bind-9.16.13-x86_64-root-bszx/usr/bin/host
>> extracting debug info from
>> /tmp/tmp-bszx-Q59vy4/bind-9.16.13-x86_64-root-bszx/usr/bin/mdig
>> extracting debug info from
>> /tmp/tmp-bszx-Q59vy4/bind-9.16.13-x86_64-root-bszx/usr/bin/named-rrchecker
>> extracting debug info from
>> /tmp/tmp-bszx-Q59vy4/bind-9.16.13-x86_64-root-bszx/usr/bin/nslookup
>> extracting debug info from
>> /tmp/tmp-bszx-Q59vy4/bind-9.16.13-x86_64-root-bszx/usr/bin/nsupdate
>> *** WARNING: no sources found for
>> /tmp/tmp-bszx-Q59vy4/bind-9.16.13-x86_64-root-bszx/usr/bin/named-rrchecker
>> (stripped without sourcefil
>> e information?)
>> *** WARNING: no sources found for
>> /tmp/tmp-bszx-Q59vy4/bind-9.16.13-x86_64-root-bszx/usr/bin/arpaname
>> (stripped without sourcefile infor
>> mation?)
>>
>>
>> [..]
>>
>>
>> Processing files: bind-debugsource-9.16.13-3.1.corei7_64
>> error: Empty %files file
>> /home/users/bszx/compilations/rpm/BUILD/bind-9.16.13/debugsourcefiles.list
>>
>>
>> Przebudowanie czegokolwiek kończy się tym błędem.
> W tym konkretnym przypadku bind wydaje się ignorować nasze flagi
> kompilatora i przez to nie dołącza informacji do debugowania. Od
> niedawna te informacje są wymagane jeżeli włączone jest budowanie
> pakietów debug* (domyślnie włączone). Najlepiej byłoby sprawdzić
> dlaczego flagi kompilatora są ignorowane i poprawić.

Według file jakieś debuginfo jest. Np.:

$ file libbind9-9.16.13.so
libbind9-9.16.13.so: ELF 64-bit LSB shared object, x86-64, version 1
(SYSV), dynamically linked,
BuildID[sha1]=63a1e11c4370ddd8c6fef5b7201e542924e416cf, with debug_info,
not stripped

Flagi, które ustawiłem w %optflags, zostały zignorowane, te w 
%optldflags nie.


Próbowałem wyłączyć debugsource subpackage ale ustawienie
_debugsource_packages na 0 nie odniosło skutku.

Teraz zauważyłem że w definicji makra debug_package jest błąd i zamiast:

%{?_debugsource_packages:%_debugsource_template}

powinno być:

%{?%_debugsource_packages:%_debugsource_template}

lub:

%{?0%_debugsource_packages:%_debugsource_template}




More information about the pld-devel-pl mailing list