Sunday, 3 March 2019

Re: arch triplet: "-" <> "_"

On Thu, Feb 28, 2019 at 9:53 PM Colin Watson <> wrote:

> 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.

Right, later I saw this being used in another package:
DEB_PY2_INCDIR=$(shell python-config --includes | sed
's,^-I\([^ ]*\).*,\1,') \
DEB_PY3_INCDIR=$(shell python3-config --includes | sed
's,^-I\([^ ]*\).*,\1,') \
dh_install --list-missing

And then in the install files:
#! /usr/bin/dh-exec
usr/include/pytalloc.h ${DEB_PY2_INCDIR}

#! /usr/bin/dh-exec
usr/include/pytalloc.h ${DEB_PY3_INCDIR}

Handy trick for when more elaborate var expanstions are needed.

> --
> Colin Watson []

ubuntu-devel mailing list
Modify settings or unsubscribe at: