[debhelper-devel] Bug#885580: debhelper: dh add-ons are order sensitive

殷啟聰 | Kai-Chung Yan seamlikok at gmail.com
Mon Feb 26 13:44:33 UTC 2018


I encountered a similar situation, hope this help with the issue.

I was developing a addon called "maven-repo-helper-extras" who depends on "maven-repo-helper" [1]. The dh sequences in my addon need to be inserted after the sequences introduced by "maven-repo-helper", so I was seeking a way to establish addon relationship inside a Perl script. Niels Thykier finally pointed me to this solution:

```perl
use Debian::Debhelper::Sequence::maven_repo_helper;

insert_after("mh_install", "mh_shlibdeps");
insert_after("mh_shlibdeps, mh_genlaunchers");
```

Thus I can use "dh $@ --with maven_repo_helper_extras" in "debian/rules" without applying "maven-repo-helper" as well. Interestingly, it also works even if I apply both addon to dh in no matter what order. Seems "debhelper" already handles duplicated sequence insertion pretty well.

[1]: https://tracker.debian.org/pkg/maven-repo-helper

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/debhelper-devel/attachments/20180226/5817416b/attachment-0001.sig>


More information about the debhelper-devel mailing list