debian/rules binary only succeeds on second run
Here, at least, the first run of say fakeroot debian/rules
binary fails on the dependency check, i.e. the libexample-clojure package is missing the libclojure-java
dependency (maven:Depends
was empty). A second run succeeds. After that, runs will work, unless you remove example-clojure/.debianVersion
(which we don't clean, but should).
It looks like this may be some issue with the buildsystem's mh_resolve_dependencies
invocation, and in some testing here, I noticed that for the first failing build it appears to mangle the pom to change the clojure dependency version from the correct 1.x
to debian
, to delete the libexample-clojure.poms
file, and to write a substvars with no clojure dep. I also noticed some logic around .debianVersion in /usr/bin/mh_resolve_dependencies
, but have not delved.