On Wed, 28 Jul 2010, Modestas Vainius wrote: > Maybe you want to be able use the same symbol file for both libstdc++6 on > i386 > and lib32stdc++6 on amd64 (because in theory their symbol sets should be > identical AFAIU) and that's what is this bug actually about?
AFAIU, that's right. He has a different symbols in libstdc++ for i386 and amd64 and he uses a symbols file with entries like this: (arch=i386)32_bit_symbol (arch=amd64)64_bit_symbol He would like the system to use 64_bit_symbol when the library analyzed is compiled for amd64 even when the system is i386. > As far as I understand, the proposed solution is to detect architecture from > the binary file itself (by reading ELF header). I don't feel like changing > arch= semantics for this because: > > 1) reading ELF/other binary format is less portable than `dpkg-architecture - > qDEB_HOST_ARCH`. Why do you believe that? I don't know of many cases where the name of an ELF binary format got changed... but I haven't studied the question. That said we have no official mapping between ELF format and Debian architecture and the mapping might not always be 1 to 1. So maybe changing the meaning of the arch tag is not the best solution. > 2) scope of new semantics would be per object rather than per symbol file (in > theory symbol file may contain objects compiled for different arches) which > may only add more confusion in the end. But it looks like the correct behaviour IMO. Or at least a logical behaviour that we ought to support. > 3) biarch will go away eventually and I don't think this new tag would be > useful for proper multiarch (or in other words, there will be better more > standard ways to detect multiarch package). That's true. > Therefore I would prefer to avoid this 'binarch' (or whatever we would call > it) tag. However, I may try to help Matthias to find an alternative solution > to his particular issue as soon as I know more about it. I don't see any solution that does not involve duplicating the list of symbols in multiple files. Cheers, -- Raphaël Hertzog ◈ Debian Developer ◈ [Flattr=20693] Follow my Debian News ▶ http://RaphaelHertzog.com (English) ▶ http://RaphaelHertzog.fr (Français) -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org