This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] Fix jit-reader.h for multilib
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 12 Jan 2015 09:42:06 +0100
- Subject: Re: [patch] Fix jit-reader.h for multilib
- Authentication-results: sourceware.org; auth=none
- References: <20150107173634 dot GA13295 at host2 dot jankratochvil dot net> <87387htths dot fsf at codesourcery dot com> <20150111131353 dot GA9107 at host2 dot jankratochvil dot net> <87iogcsp6m dot fsf at codesourcery dot com>
On Mon, 12 Jan 2015 03:33:37 +0100, Yao Qi wrote:
> Jan Kratochvil <jan.kratochvil@redhat.com> writes:
> > When we discuss it personally I do not think multilib should be applied to the
> > GDB package as there is nothing like /usr/lib{,64}/libgdb.so. There is only
> > /usr/bin/gdb and that has always just one arch on one system. So installing
> > gdb.i686 and gdb.x86_64 simultaneously does not have any benefits / makes
> > sense. But despites this I need it for Red Hat packaging so I am fine to also
> > keep it just as a downstream patch. OTOH I guess other OS packagers may also
> > face it so it may be easier for everyone to do it upstream.
>
> Is multi-lib safety a Fedora/Red Hat specific packaging rule? or do
> other distributions need this too?
I do not know how other distributions do that. Debian 'gdb' does not seem to
ship jit-reader.h at all if I read Debian package listing correctly.
For other libraries Debian ships the file like Fedora does:
https://packages.debian.org/sid/amd64/libgpm-dev/filelist
/usr/include/gpm.h
/usr/lib/x86_64-linux-gnu/libgpm.so
https://packages.debian.org/sid/i386/libgpm-dev/filelist
/usr/include/gpm.h
/usr/lib/i386-linux-gnu/libgpm.so
What would happen if /usr/include/gpm.h content differs between amd64 and i386
build? Fedora would refuse to install the second package due to conflicting
file content (sure unless forced to do so).
As I said this patch may not affect much/any other distros because
* at least Debian does not ship jit-reader.h at all
* other distros may not consider GDB as a multilib package
Jan