Julien, On Sun, Aug 4, 2013 at 5:56 PM, Julien Cristau <[email protected]> wrote:
> So it looks like you've done the very wrong thing... Reopening, there's > absolutely no reason your package should need to run dpkg-architecture > in postinst. It's an arch:any package, it knows which architecture it > is. > Do you know another good way? I can not find an environment variable or place holder indicating a host architecture. Can I generate .postrm/.preinst files at package build time with a special string substituted as an example following? https://wiki.debian.org/Multiarch/Implementation#Dynamic_debian.2F.2A_files > debian/%.install: debian/%.install.in > + sed 's/@DEB_HOST_MULTIARCH@/$(DEB_HOST_MULTIARCH)/g' $< > $@ Best regards, Daigo -- Daigo Moriwaki <daigo at debian dot org>

