Christian Kastner wrote: > The attached patch extends dh_installdirs, dh_install, and dh_link such > that in v10 mode, the literal string :multiarch: is substituted with the > appropriate multiarch tuple during their operation.
I think that Ubuntu had a patch for this or something similar
earlier, so it may be good to reuse the syntax. Or perhaps ${multiarch}.
We need to avoid something that conflicts with anything in any debhelper
config files. It would be good to eg, grep the lintian lab.
> The substitution is currently applied not only to debian/package.*
> files, but to direct invocations of the dh_* helpers as well. I don't
> know if this is a problem.
It makes it harder to prove that it doesn't break anything currently.
Is there any use case for it?
> +my $multiarch=dpkg_architecture_value("DEB_HOST_MULTIARCH");
> + s/:multiarch:/$multiarch/g for @$set;
This forces a call to dpkg-architecture in the common case where the
substitution is not used. Instead, it should only look up the value
once it find a use of it.
That will be more complicated, but this repeated code needs to be
refactored anyway..
--
see shy jo
signature.asc
Description: Digital signature

