2016-12-16 1:24 GMT+01:00 Christian Seiler <christ...@iwakd.de>: > On 12/15/2016 10:50 PM, Mathieu Parent (Debian) wrote: >> 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? > > Generate them from .in files at the appropriate time, resolving > the variable manually. See for example: > > https://sources.debian.net/src/dietlibc/0.34~cvs20160606-3/debian/rules/#L107-L110 > https://sources.debian.net/src/dietlibc/0.34%7Ecvs20160606-3/debian/dietlibc-dev.postinst.in/
Thanks. This is what I've done: https://anonscm.debian.org/cgit/pkg-samba/cifs-utils.git/commit/?id=b0fa211e28982d471a988a7f91df32934da64f98 NB: I was a bit confused that dh-exec was not called for maintscript. Regards -- Mathieu Parent