Re: [patch] Fix jit-reader.h for multilib

Jan Kratochvil
2015-01-12T08:42:16Z

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