Bug 32045

Summary: problems installing glibc debuginfo
Product: Mageia Reporter: Elmar Stellnberger <estellnb>
Component: RPM PackagesAssignee: Mageia Bug Squad <bugsquad>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: fri
Version: Cauldron   
Target Milestone: ---   
Hardware: i586   
OS: Linux   
Whiteboard:
Source RPM: glibc-2.36-43.mga9.src.rpm CVE:
Status comment:
Attachments: debuginfo test #1: console log
test for debugsources with gdb attach

Description Elmar Stellnberger 2023-06-23 13:25:13 CEST
> urpmi glibc-debuginfo glibc-debugsource glibc-devel
Paket glibc-devel-2.36-43.mga9.i586 ist bereits installiert
glibc-devel wird als manuell installiert markiert, es wird von der auto-orphan-Funktion ignoriert
writing /var/lib/rpm/installed-through-deps.list


    $MIRRORLIST: media/debug/core/release/glibc-debugsource-2.36-43.mga9.i586.rpm
    $MIRRORLIST: media/debug/core/release/glibc-debuginfo-2.36-43.mga9.i586.rpm
glibc-debugsource-2.36-43.mga9.i586.rpm glibc-debuginfo-2.36-43.mga9.i586.rpm von /var/cache/urpmi/rpms wird installiert
Vorbereiten …                    ###################################################################################################################################
      1/2: glibc-debugsource     ###################################################################################################################################
      2/2: glibc-debuginfo       Fehler: failed to open dir lib of /usr/lib/debug/lib/: Die Datei existiert bereits
###################################################################################################################################
Fehler: Entpacken des Archivs fehlgeschlagen bei Datei /usr/lib/debug/lib/ld-linux.so.2.debug;64956578: cpio: open fehlgeschlagen - Das Verzeichnis ist nicht leer
ERROR: 'unpack' failed for glibc-debuginfo-6:2.36-43.mga9.i586
Fehler: glibc-debuginfo-6:2.36-43.mga9.i586: installieren fehlgeschlagen

> wget https://ftp.fi.muni.cz/pub/linux/mageia/distrib/9/i586/media/debug/core/release/glibc-debuginfo-2.36-43.mga9.i586.rpm
> rpm -ivh glibc-debuginfo-2.36-43.mga9.i586.rpm
Wird überprüft …                  ################################# [100%]
Vorbereiten …                       ################################# [100%]
Aktualisierung/ Installation …
   1:glibc-debuginfo-6:2.36-43.mga9   Fehler: failed to open dir lib of /usr/lib/debug/lib/: Die Datei existiert bereits
################################# [100%]
Fehler: Entpacken des Archivs fehlgeschlagen bei Datei /usr/lib/debug/lib/ld-linux.so.2.debug;64956714: cpio: open fehlgeschlagen - Das Verzeichnis ist nicht leer
Fehler: glibc-debuginfo-6:2.36-43.mga9.i586: installieren fehlgeschlagen
> ls -l /usr/lib/debug/
insgesamt 4
lrwxrwxrwx 1 root root    7 Mai 10 17:15 bin -> usr/bin
drwxr-xr-x 4 root root 4096 Jun 23 10:56 usr
lrwxrwxrwx 1 root root    7 Jun 23 11:37 lib -> usr/lib
lrwxrwxrwx 1 root root    8 Jun 23 11:37 sbin -> usr/sbin
root:/var/cache/urpmi> ls -l /usr/lib/debug/usr
insgesamt 8
drwxr-xr-x 2 root root 4096 Jun 23 10:56 bin
drwxr-xr-x 2 root root 4096 Jän  2 11:42 i686-w64-mingw32
root:/var/cache/urpmi> mkdir /usr/lib/debug/usr/lib
root:/var/cache/urpmi> mkdir /usr/lib/debug/usr/sbin
root:/var/cache/urpmi> rpm -ivh glibc-debuginfo-2.36-43.mga9.i586.rpm
Wird überprüft …                  ################################# [100%]
Vorbereiten …                       ################################# [100%]
Aktualisierung/ Installation …
   1:glibc-debuginfo-6:2.36-43.mga9   ################################# [100%]
Comment 1 Morgan Leijström 2023-06-23 21:42:10 CEST
Please try again, we have now -6:2.36-44.mga9

CC: (none) => fri

Comment 2 Morgan Leijström 2023-06-23 21:44:51 CEST
BTW, you can select language to give english output for pasting in bug reports by prepending with LC_ALL=C, example:

 LC_ALL=C urpmi packages...
Comment 3 Elmar Stellnberger 2023-06-24 18:34:05 CEST
Created attachment 13894 [details]
debuginfo test #1: console log

  Have you changed anything about the debugsource package?
* installing amd64 debuginfo and -source in the mini-chroot (chr. see: Bug 32044) has worked without an error
* glibc.so seems unstripped (I have also seen a glibc debuginfo and -source package, is that an accident?)
* symbolic backtrace annotation via a gdb-server in the chroot: working
* debug source could not be viewed fromout of gdb, sysroot set, line numbers as far as tested correct
Comment 4 Elmar Stellnberger 2023-06-24 19:14:42 CEST
Created attachment 13895 [details]
test for debugsources with gdb attach

  Seems to be a feature of gdb that you have to add your sysroot as a prefix to just a lot, also if you have set that variable:
(gdb) file /dst/minimg9/bin/html2text
(gdb) set substitute-path /usr/src/debug/ /dst/minimg9/usr/src/debug/
(gdb) l htmlparser_yylex
...
  The directory for the debug source files did not differ (except for the arch-suffix) between both installs/roots, so that was nearby.
Comment 5 Elmar Stellnberger 2023-06-24 19:15:25 CEST
marking as resolved, as I do not expect it to be different for i586.

Resolution: (none) => FIXED
Status: NEW => RESOLVED