Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.maint.java > #10350

Updating BND to 3.x

From 殷啟聰 | Kai-Chung Yan <seamlikok@gmail.com>
Newsgroups linux.debian.maint.java
Subject Updating BND to 3.x
Date 2018-03-04 15:50 +0100
Message-ID <vpD7z-5S2-7@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

I have been working on updating "bnd"[1] to 3.5.0. I had to say this time it is much smoother than what Markus did 2 years ago. Here is a summary of the progress so far:

* All changes to "bnd" are now temporarily stored on Salsa [2]
* Introduced new dependency "felix-resolver" [3]
* Updated dependency "osgi-compendium" to version 6 [4]
* Tested reverse-build-dependencies on "bnd", "osgi-compendium" and "maven-bundle-plugin"
  * 176 packages build successfully without modification
  * 15 packages already FTBFS before my work:
    * activemq
    * activemq-protobuf
    * apache-directory-server
    * apache-mime4j
    * avro-java
    * cobertura
    * gradle
    * hawtbuf
    * jruby
    * libcommons-jexl2-java
    * maven-bundle-plugin
    * mockito
    * mustache-java
    * openjpa
    * tika
  * 4 packages need fixes:
    * felix-bundlerepository (done)
    * jboss-xnio
    * libquartz2-java
    * maven-bundle-plugin

Here is the summary of significant changes I made to the package:

* Added rules to build more artifacts
  * aQute.libg
  * biz.aQute.remote
  * biz.aQute.repository
  * biz.aQute.resolve
  * biz.aQute.tester
  * org.osgi.impl.bundle.repoindex.api
  * org.osgi.impl.bundle.repoindex.lib
  * The Gradle plugin (But not installing it)
* Changed the artifact/group IDs to match the upstream
  * E.g. biz.aQute:bnd => biz.aQute.bnd:biz.aQute.bnd
* Switched to use a simpler "get-orig-source" approach using "uscan" + "d/copyright"

The Gradle plugin obviously have a runtime dependency on Gradle, so it is better be put in a separated package. I'll leave it to the next update, so this time we can bypass FTP-Master.

During the update I found some issues:

* "bnd" hardcodes its data directory as "~/.bnd" which causes errors under "fakeroot" [5]
* I have no idea how to exclude certain Java source in "*.bnd" files, so I had to delete them. [6]

So far I have fixed "felix-bundlerepository", and I will fix the rest of the 3 packages. However I don't want to fix those packages that already FTBFS before this, as they tend to have other issues and fixing "bnd"-related problems will likely be trivial.

Can somebody grant me upload permission to "osgi-compendium" so that I can deal with it myself? I will signal you once other packages are ready. Thank you!

[1]: https://tracker.debian.org/pkg/bnd
[2]: https://salsa.debian.org/seamlik-guest/bnd/tree/3.5
[3]: https://anonscm.debian.org/cgit/pkg-java/felix-resolver.git
[4]: https://anonscm.debian.org/cgit/pkg-java/osgi-compendium.git
[5]: https://github.com/bndtools/bnd/issues/2327
[6]: https://salsa.debian.org/seamlik-guest/bnd/blob/920033023392d0fe9e7c01a3b3f39dc42aeaf3b8/debian/rules#L51

Back to linux.debian.maint.java | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Updating BND to 3.x 殷啟聰 | Kai-Chung Yan <seamlikok@gmail.com> - 2018-03-04 15:50 +0100
  Re: Updating BND to 3.x Markus Koschany <apo@debian.org> - 2018-03-04 16:00 +0100
  Re: Updating BND to 3.x Emmanuel Bourg <ebourg@apache.org> - 2018-03-05 13:50 +0100
    Re: Updating BND to 3.x 殷啟聰 | Kai-Chung Yan <seamlikok@gmail.com> - 2018-03-10 07:50 +0100
      Re: Updating BND to 3.x Emmanuel Bourg <ebourg@apache.org> - 2018-03-10 10:20 +0100
        Re: Updating BND to 3.x 殷啟聰 | Kai-Chung Yan <seamlikok@gmail.com> - 2018-03-14 07:20 +0100
          Re: Updating BND to 3.x Emmanuel Bourg <ebourg@apache.org> - 2018-03-14 14:50 +0100
            Re: Updating BND to 3.x 殷啟聰 | Kai-Chung Yan <seamlikok@gmail.com> - 2018-03-15 14:00 +0100
        Re: Updating BND to 3.x Tiago Daitx <tiago.daitx@canonical.com> - 2018-03-19 23:10 +0100
          Re: Updating BND to 3.x 殷啟聰 <seamlikok@gmail.com> - 2018-03-20 02:20 +0100
            Re: Updating BND to 3.x Tiago Daitx <tiago.daitx@canonical.com> - 2018-03-20 12:20 +0100

csiph-web