[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Getting DEB_HOST_MULTIARCH from maintscripts



On 2016-12-15 22:13 +0000, Wookey wrote:

> On 2016-12-15 22:50 +0100, Mathieu Parent (Debian) wrote:
>> Hi,
>> 
>> I need to have access to $DEB_HOST_MULTIARCH in prerm and postinst to
>> create the appropriate symlink with update-alternatives.
>> 
>> What is the best way to do this?
>
> Depend on dpkg-dev and use dpkg-architecture?

Please not.

> dpkg-architecture -q DEB_HOST_MULTIARCH
>
> I don't know of a better way.

Resolve $DEB_HOST_MULTIARCH at build time[1], when dpkg-architecture is
known to be around.

Cheers,
       Sven


1. https://wiki.debian.org/Multiarch/Implementation#Dynamic_debian.2F.2A_files


Reply to: