[Rpm-maint] [rpm-software-management/rpm] 4.15.1: issue with debug info stipping procedure (#1362)

Tomasz Kłoczko notifications at github.com
Fri Sep 18 12:52:20 UTC 2020


Building my own gnome-tour I found strange case.
After `%meson_install` binary gnome-tour binary is not stripped but after `post installation of course it is stripped but there is no debug info file and by this  buid fails.
```
+ /usr/bin/meson install -C x86_64-redhat-linux-gnu --no-rebuild
Installing data/org.gnome.Tour.desktop to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/applications
Installing data/org.gnome.Tour.metainfo.xml to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/metainfo
Installing src/gnome-tour to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/bin
This file does not have an rpath.
This file does not have a runpath.
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/data/icons/org.gnome.Tour.svg to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/icons/hicolor/scalable/apps
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/data/icons/org.gnome.Tour-symbolic.svg to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/icons/hicolor/symbolic/apps
Running custom install script '/usr/bin/meson --internal gettext install --subdir=po --localedir=share/locale --pkgname=gnome-tour'
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/po/ca.gmo to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/locale/ca/LC_MESSAGES/gnome-tour.mo
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/po/cs.gmo to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/locale/cs/LC_MESSAGES/gnome-tour.mo
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/po/da.gmo to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/locale/da/LC_MESSAGES/gnome-tour.mo
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/po/de.gmo to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/locale/de/LC_MESSAGES/gnome-tour.mo
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/po/el.gmo to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/locale/el/LC_MESSAGES/gnome-tour.mo
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/po/en_GB.gmo to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/locale/en_GB/LC_MESSAGES/gnome-tour.mo
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/po/es.gmo to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/locale/es/LC_MESSAGES/gnome-tour.mo
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/po/eu.gmo to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/locale/eu/LC_MESSAGES/gnome-tour.mo
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/po/fa.gmo to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/locale/fa/LC_MESSAGES/gnome-tour.mo
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/po/fi.gmo to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/locale/fi/LC_MESSAGES/gnome-tour.mo
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/po/fr.gmo to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/locale/fr/LC_MESSAGES/gnome-tour.mo
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/po/fur.gmo to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/locale/fur/LC_MESSAGES/gnome-tour.mo
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/po/gl.gmo to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/locale/gl/LC_MESSAGES/gnome-tour.mo
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/po/hr.gmo to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/locale/hr/LC_MESSAGES/gnome-tour.mo
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/po/hu.gmo to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/locale/hu/LC_MESSAGES/gnome-tour.mo
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/po/id.gmo to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/locale/id/LC_MESSAGES/gnome-tour.mo
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/po/it.gmo to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/locale/it/LC_MESSAGES/gnome-tour.mo
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/po/ja.gmo to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/locale/ja/LC_MESSAGES/gnome-tour.mo
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/po/ko.gmo to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/locale/ko/LC_MESSAGES/gnome-tour.mo
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/po/lt.gmo to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/locale/lt/LC_MESSAGES/gnome-tour.mo
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/po/lv.gmo to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/locale/lv/LC_MESSAGES/gnome-tour.mo
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/po/nl.gmo to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/locale/nl/LC_MESSAGES/gnome-tour.mo
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/po/pl.gmo to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/locale/pl/LC_MESSAGES/gnome-tour.mo
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/po/pt.gmo to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/locale/pt/LC_MESSAGES/gnome-tour.mo
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/po/pt_BR.gmo to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/locale/pt_BR/LC_MESSAGES/gnome-tour.mo
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/po/ro.gmo to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/locale/ro/LC_MESSAGES/gnome-tour.mo
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/po/sk.gmo to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/locale/sk/LC_MESSAGES/gnome-tour.mo
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/po/sl.gmo to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/locale/sl/LC_MESSAGES/gnome-tour.mo
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/po/sr.gmo to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/locale/sr/LC_MESSAGES/gnome-tour.mo
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/po/sv.gmo to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/locale/sv/LC_MESSAGES/gnome-tour.mo
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/po/tr.gmo to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/locale/tr/LC_MESSAGES/gnome-tour.mo
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/po/uk.gmo to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/locale/uk/LC_MESSAGES/gnome-tour.mo
Installing /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/po/zh_CN.gmo to /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/locale/zh_CN/LC_MESSAGES/gnome-tour.mo
Running custom install script '/home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/build-aux/meson_post_install.py'
+ /usr/bin/install -Dm644 /home/tkloczko/rpmbuild/SOURCES/fedora-initial-intro.webm /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/share/gnome-tour/fedora-initial-intro.webm
+ /usr/lib/rpm/find-lang.sh /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64 gnome-tour
+ echo ------
------
+ echo 'test is gnome-tour'
test is gnome-tour
+ ls -l /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/bin/gnome-tour
-rwxr-xr-x. 1 tkloczko tkloczko 2379352 Sep 16 00:18 /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/bin/gnome-tour
+ file /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/bin/gnome-tour
/home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/bin/gnome-tour: ELF 64-bit LSB pie executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, BuildID[sha1]=da2bb66637ef92012ace0c18de70d27a43275c04, for GNU/Linux 3.2.0, not stripped, too many notes (256)
+ echo ------
------
+ /usr/lib/rpm/find-debuginfo.sh -j48 --strict-build-id -m -i --build-id-seed 3.38.0-2.fc34 --unique-debug-suffix -3.38.0-2.fc34.x86_64 --unique-debug-src-base gnome-tour-3.38.0-2.fc34.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 -S debugsourcefiles.list /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0
explicitly decompress any DWARF compressed ELF sections in /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/bin/gnome-tour
extracting debug info from /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/bin/gnome-tour
gdb-add-index: No index was created for /home/tkloczko/rpmbuild/BUILDROOT/gnome-tour-3.38.0-2.fc34.x86_64/usr/bin/gnome-tour
gdb-add-index: [Was there no debuginfo? Was there already an index?]
original debug info size: 640kB, size after compression: 640kB
/usr/lib/rpm/sepdebugcrcfix: Updated 0 CRC32s, 1 CRC32s did match.
+ /usr/lib/rpm/check-buildroot
+ /usr/lib/rpm/redhat/brp-ldconfig
+ /usr/lib/rpm/brp-compress
+ /usr/lib/rpm/brp-strip-static-archive /usr/bin/strip
+ /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1 0
+ /usr/lib/rpm/brp-python-hardlink
+ /usr/lib/rpm/redhat/brp-mangle-shebangs
Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.s9Akjd
+ umask 022
+ cd /home/tkloczko/rpmbuild/BUILD
+ cd gnome-tour-3.38.0
+ /usr/bin/meson test -C x86_64-redhat-linux-gnu --num-processes 48 --print-errorlogs
ninja: Entering directory `/home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu'
ninja: no work to do.
1/2 validate-desktop OK             0.01s
2/2 validate-appdata OK             0.04s

Ok:                 2
Expected Fail:      0
Fail:               0
Unexpected Pass:    0
Skipped:            0
Timeout:            0

Full log written to /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/x86_64-redhat-linux-gnu/meson-logs/testlog.txt
+ RPM_EC=0
++ jobs -p
+ exit 0
Processing files: gnome-tour-3.38.0-2.fc34.x86_64
Provides: application() application(org.gnome.Tour.desktop) gnome-tour = 3.38.0-2.fc34 gnome-tour(x86-64) = 3.38.0-2.fc34 metainfo() metainfo(org.gnome.Tour.metainfo.xml)
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Requires: ld-linux-x86-64.so.2()(64bit) ld-linux-x86-64.so.2(GLIBC_2.3)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.17)(64bit) libc.so.6(GLIBC_2.18)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3.2)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.32)(64bit) libc.so.6(GLIBC_2.4)(64bit) libcairo-gobject.so.2()(64bit) libcairo.so.2()(64bit) libdl.so.2()(64bit) libdl.so.2(GLIBC_2.2.5)(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libgcc_s.so.1(GCC_3.3)(64bit) libgcc_s.so.1(GCC_4.2.0)(64bit) libgdk-3.so.0()(64bit) libgdk_pixbuf-2.0.so.0()(64bit) libgio-2.0.so.0()(64bit) libglib-2.0.so.0()(64bit) libgobject-2.0.so.0()(64bit) libgstplayer-1.0.so.0()(64bit) libgstreamer-1.0.so.0()(64bit) libgstvideo-1.0.so.0()(64bit) libgtk-3.so.0()(64bit) libhandy-1.so.0()(64bit) libhandy-1.so.0(LIBHANDY_1_0)(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.2.5)(64bit) libpango-1.0.so.0()(64bit) libpthread.so.0()(64bit) libpthread.so.0(GLIBC_2.2.5)(64bit) libpthread.so.0(GLIBC_2.3.2)(64bit) libpthread.so.0(GLIBC_2.3.3)(64bit) rtld(GNU_HASH)
Processing files: gnome-tour-debugsource-3.38.0-2.fc34.x86_64
error: Empty %files file /home/tkloczko/rpmbuild/BUILD/gnome-tour-3.38.0/debugsourcefiles.list
```
I found that even in Fedora spec file packager staped on that issue as well but only `%global debug_package %{nil}` has been added as work around. https://src.fedoraproject.org/rpms/gnome-tour/blob/master/f/gnome-tour.spec
So far I found only one such case but it may be more.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/1362
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20200918/597f2519/attachment-0001.html>


More information about the Rpm-maint mailing list