On Fri, 2016-07-29 at 15:33 +0300, Dmitry Bogatov wrote:
> Hello!
> 
> During my work to resolve (#832656), I encountered need to NMU
> bcron-run package. It is old-style package, that does not use
> debhelper.
> 
> I inserted call to one particular debhelper (dh_runit) in Makefile
> (total modernization in discouraged in NMU, and probably would take
> more efford).
> 
> It is all okay, but seems I need to call something more to
> 
>  - substitute #DEBHELPER# token in maintainer scripts
>  - substitute ${misc:Depends} in debian/control.
> 
> since while `bcron-run.substvars' and `bcron-run.preinst.debhelper'
> succesfully created, they seems to not influence package built by the
> fact of their existance.
> 
> What do I miss?

#DEBHELPER# is handled by dh_installdeb
misc:Depends is handled by dh_gencontrol

You'll also need dh_prep if you use any debhelper commands. But once
you've added these, you'll have half converted the package to use
debhelper anyway. Having the maintainer do a proper upload to switch to
using at least some form of debhelper would be the best solution here
IMO.

James

Reply via email to