arch triplet: "-" <> "_"
Andreas Hasenack
andreas at canonical.com
Sun Mar 3 13:13:33 UTC 2019
On Thu, Feb 28, 2019 at 9:53 PM Colin Watson <cjwatson at canonical.com> 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:
override_dh_install:
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}
and
#! /usr/bin/dh-exec
usr/include/pytalloc.h ${DEB_PY3_INCDIR}
Handy trick for when more elaborate var expanstions are needed.
>
> --
> Colin Watson [cjwatson at canonical.com]
More information about the ubuntu-devel
mailing list