arch triplet: "-" <> "_"
Colin Watson
cjwatson at canonical.com
Fri Mar 1 00:53:33 UTC 2019
On Thu, Feb 28, 2019 at 03:11:35PM -0800, Steve Langasek wrote:
> On Wed, Feb 27, 2019 at 02:08:29PM -0300, Andreas Hasenack wrote:
> > So I thought about using dh-exec, just like
> > https://wiki.debian.org/Multiarch/Implementation#Dynamic_debian.2F.2A_files
> > suggests, but that didn't work.
>
> > The silly problem is that the triplet x86_64-linux-gnu as a directory
> > is not the same triplet used in the filename: x86_64-linux-gnu !=
> > x86-64-linux-gnu ("-" vs "_")
>
> > Is there a neat solution to this, other than using "*" for the architecture?
>
> No, since x86-64-linux-gnu is not a standard name for the architecture. I
> would suggest that you instead simply use the dh-exec substitution for the
> first part of the path, and a glob for the second:
>
> usr/lib/${DEB_HOST_MULTIARCH}/libpytalloc-util.cpython-37m-*.so.*
>
> That should minimize any false-positive matches of the glob.
This seems OK. If you wanted to be more precise, then you could
calculate the appropriate respelling of the architecture name in
debian/rules, stash it in an environment variable, and substitute that
using dh-exec (see dh-exec-subst(1)). But it's probably not worth it.
--
Colin Watson [cjwatson at canonical.com]
More information about the ubuntu-devel
mailing list