Bug#871959: [debhelper-devel] Bug#871959: debhelper: dh_installdeb does not run executable package.triggers to generate triggers

2017-08-13 Thread Niels Thykier
Andreas Beckmann:
> On 2017-08-13 10:48, Niels Thykier wrote:
> 
>> Would you also expect that "postinst" (etc.) behaved the same?  AFAICT,
>> there is no reason why it should not apply to them as well if triggers
>> started doing this.
> 
> I don't have a usecase for generating the postscript, yet :-)
> But anything that needs a "list of things" seems to be a candidate for
> being generated.
> 
> 
> Andreas
> 
> ___
> debhelper-devel mailing list
> debhelper-de...@lists.alioth.debian.org
> http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/debhelper-devel
> 

So conffiles and shlibs as well? :P

Thanks,
~Niels



Bug#871959: debhelper: dh_installdeb does not run executable package.triggers to generate triggers

2017-08-13 Thread Andreas Beckmann
On 2017-08-13 10:48, Niels Thykier wrote:

> Would you also expect that "postinst" (etc.) behaved the same?  AFAICT,
> there is no reason why it should not apply to them as well if triggers
> started doing this.

I don't have a usecase for generating the postscript, yet :-)
But anything that needs a "list of things" seems to be a candidate for
being generated.


Andreas



Bug#871959: [debhelper-devel] Bug#871959: debhelper: dh_installdeb does not run executable package.triggers to generate triggers

2017-08-13 Thread Niels Thykier
Andreas Beckmann:
> Package: debhelper
> Version: 10.7.2
> Severity: normal
> 

Hi,

> in src:glx-alternatives I have a script to generate
> debian/glx-alternative-mesa.triggers, but unfortunately I have to run it
> explicitly from debian/rules, I cannot just make it executable and name
> it debian/glx-alternative-mesa.triggers as it works with other files.
> 

Would you also expect that "postinst" (etc.) behaved the same?  AFAICT,
there is no reason why it should not apply to them as well if triggers
started doing this.

> dh_installdeb also generates 'Pre-Depends: dpkg (>> ...)', for having
> .maintscript files.
> It might be useful to something similar for triggers, according to
> deb-triggers(5) this must be 'Pre-Depends: dpkg (>= 1.16.1)' for
> -noawait triggers and 'Pre-Depends: dpkg (>= 1.17.21)' for -await
> triggers.
> 
> 
> Andreas
> 
> [...]

These are actually somewhat obsolete as the versions are satisfied in
oldoldstable.  I have opted for removing the remaining versioned
constraints.

Thanks,
~Niels



Bug#871959: debhelper: dh_installdeb does not run executable package.triggers to generate triggers

2017-08-12 Thread Andreas Beckmann
Package: debhelper
Version: 10.7.2
Severity: normal

in src:glx-alternatives I have a script to generate
debian/glx-alternative-mesa.triggers, but unfortunately I have to run it
explicitly from debian/rules, I cannot just make it executable and name
it debian/glx-alternative-mesa.triggers as it works with other files.

dh_installdeb also generates 'Pre-Depends: dpkg (>> ...)', for having
.maintscript files.
It might be useful to something similar for triggers, according to
deb-triggers(5) this must be 'Pre-Depends: dpkg (>= 1.16.1)' for
-noawait triggers and 'Pre-Depends: dpkg (>= 1.17.21)' for -await
triggers.


Andreas