[Pkg-mc-devel] Bug#582078: mc: postin runs dpkg-architecture from dpkg-dev but not depend on dpkg-dev

Sven Joachim svenjoac at gmx.de
Tue May 18 13:30:29 UTC 2010

On 2010-05-18 10:59 +0200, Yury V. Zaytsev wrote:

> On Tue, 2010-05-18 at 10:54 +0200, Sven Joachim wrote:
>> However, it would be better to check DEB_HOST_GNU_SYSTEM at
>> build time and set the permissions of /usr/lib/mc/cons.saver in the
>> package instead of using dpkg-statoverride in the postinst.
> Well, I can't really do this, because helpful debhelper will revert my
> changes, unless I override the permission normalization procedure in
> rules, which I don't want to do, because there are often permission
> issues with the tarballs.

What's wrong with

DEB_FIXPERMS_EXCLUDE := /usr/lib/mc/cons.saver

in debian/rules?  That should exclude just this file from getting its
permission fixed, see dh_fixperms(1).

> As I mentioned in the previous email, the file only gets packaged if
> arch is Linux via mc.install.linux, so do you think it's a good idea to
> chgrp || true in such a case unconditionally?

No, because this does not give the admin the chance to override the
permissions by using dpkg-statoverride himself.


More information about the Pkg-mc-devel mailing list