Re: Data updates in debian packages
On 10/31/2016 10:30 AM, Ole Streicher wrote:
> -------------------- debian/triggers ------------------
> interest /usr/share/zoneinfo/leap-seconds.list
> ---------------------------8<--------------------------
>
> However, I now get the following error when I try to update tzdata:
>
> dpkg: cycle found while processing triggers:
> chain of packages whose triggers are or may be responsible:
> casacore-data-tai-utc -> casacore-data-tai-utc
> packages' pending triggers which are or may be unresolvable:
> casacore-data-tai-utc: /usr/share/zoneinfo/leap-seconds.list
> dpkg: error processing package casacore-data-tai-utc (--configure):
> triggers looping, abandoned
> Errors were encountered while processing:
> casacore-data-tai-utc
>
> What is my mistake here?
Well, if your package Depends: on tzdata, then you created a cycle:
tzdata wants to trigger your package, but your package depends on
tzdata.
What you'll want to do is
interest-noawait ...
instead of
interest ...
A detailed explanation is man 5 deb-triggers together with
/usr/share/doc/dpkg-dev/triggers.txt.gz, but it's not easy to grok.
However, the recommendation in man 5 deb-triggers is something you
should follow, i.e. use -noawait triggers unless you really need
-await triggers for some reason.
Regards,
Christian
Reply to: