Bug#1110346: hurd: file overlaps with 'gdb'

Martin-Éric Racine <[email protected]>
Newsgroups gmane.linux.debian.ports.hurd
Message-ID <CAPZXPQeGDghZshRWvKN0NF2Upfveh490YB5K2_DseD7mLwd2uA__886.852857523479$1754300605$gmane$org@mail.gmail.com>
ma 4.8.2025 klo 12.10 Samuel Thibault ([email protected]) kirjoitti:
>
> Martin-Éric Racine, le lun. 04 août 2025 12:08:26 +0300, a ecrit:
> > ma 4.8.2025 klo 12.01 Martin-Éric Racine ([email protected]) kirjoitti:
> > >
> > > ma 4.8.2025 klo 11.45 Samuel Thibault ([email protected]) kirjoitti:
> > > >
> > > > Martin-Éric Racine, le lun. 04 août 2025 08:02:16 +0300, a ecrit:
> > > > > su 3.8.2025 klo 22.33 Samuel Thibault ([email protected]) kirjoitti:
> > > > > > Martin-Éric Racine, le dim. 03 août 2025 17:51:36 +0300, a ecrit:
> > > > > > > Preparing to unpack .../gdb_16.3-1_hurd-i386.deb ...
> > > > > > > Unpacking gdb (16.3-1) ...
> > > > > > > dpkg: error processing archive /var/cache/apt/archives/gdb_16.3-1_hurd-i386.deb (--unpack):
> > > > > > >  trying to overwrite '/usr/bin/gcore', which is also in package hurd (1:0.9.git20250801-1)
> > > > > >
> > > > > > I can't reproduce this, because gcore is, as expected, diverted by the
> > > > > > hurd package:
> > > > > >
> > > > > > # grep -A 2 gcore$ /var/lib/dpkg/diversions
> > > > > > /usr/bin/gcore
> > > > > > /usr/bin/gcore-gdb
> > > > > > hurd
> > > > >
> > > > > It is not. The above returns empty.
> > > >
> > > > I guess somehow it got dropped on your system, and reinstalling the hurd
> > > > package won't help since we are supposed to add the diversion on
> > > > installation only, to let the admin change the configuration. You can
> > > > restore the diversion with:
> > > >
> > > > dpkg-divert --package hurd --add --rename --divert /usr/bin/gcore-gdb /usr/bin/gcore
> > >
> > > I wonder if this, and the previous stdout/stderr linking problem I
> > > previosuly reported might be the result of using crosshurd for the
> > > install.
> > >
> > > Anyhow, it might be a good idea to redo those equivs and links in
> > > maintainer scripts, if found in an unexpected state, upon upgrade.
> >
> > Sure enough, that also partially fails:
> >
> > $ sudo dpkg-divert --package hurd --add --rename  --divert
> > /usr/bin/gcore-gdb /usr/bin/gcore
> > Adding 'diversion of /usr/bin/gcore to /usr/bin/gcore-gdb by hurd'
> > Ignoring request to rename file '/usr/bin/gcore' owned by diverting
> > package 'hurd'
>
> That's not a failure, it's just telling you that it's not renaming its
> own file.

Once that diversion was manually added, gdb indeed installed. Thanks!

However, none of my usual Linux settings work on Hurd:

$ cat .gdbinit
     set debuginfod enabled on
echo ################################\nhandle SIG33 pass nostop noprint\n
     handle SIG33 pass nostop noprint
echo ##################\nset pagination off\n
     set pagination off
echo ##############\nbacktrace full\n
     backtrace full
#echo ##############\ninfo registers\n
     info registers
echo ###############################\nthread apply all backtrace full\n
     thread apply all backtrace full
echo #########\nx/16i $pc\n
     x/16i $pc
echo ##########################\nthread apply all backtrace\n
     thread apply all backtrace

I'm guessing that there are more useful equivalents to the above for
Hurd, but I wouldn't know which ones.

Martin-Éric
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.