Hi Carl,

On Wed, May 21, 2014 at 03:41:44PM -0700, Carl Worth wrote:
> I'm interested in packaging (or helping to package) several programs and
> libraries related to OpenGL, (such as apitrace, vogl, fips, and waffle).
> 
> For each of these packages I have a question about best practices
> related to supporting 32-bit libraries and binaries within a 64-bit
> system.
> 
> [...]

I suggest using a bin directory in a multiarchified /usr/lib path,
like e.g. wine and qt4 are doing. Example files are:

/usr/lib/x86_64-linux-gnu/qt4/bin/qmake (package is qt4-qmake:amd64)
/usr/lib/x86_64-linux-gnu/wine/bin/wine (package is wine64:amd64)

In addition you can put a wrapper script in /usr/bin, which calls
the binary in /usr/lib accordingly. Maybe something like

1. extract target file from parameters
2. determine target file's architecture from ELF headers
3. translate ELF architecture into gnu triplet
4. call matching binary in /usr/lib/

-- Sebastian

Attachment: signature.asc
Description: Digital signature

Reply via email to