source: debian-alt/doc/dependencies.txt @ ff551b1

Last change on this file since ff551b1 was ff551b1, checked in by zzz <zzz@…>, 2 years ago

debian doc update

  • Property mode set to 100644
File size: 7.8 KB
1This document is for Debian package maintainers.
2It contains an overview of current package dependencies,
3the plan for improvement, and other notes.
4These notes will also be helpful for non-Debian package maintainers.
6We are not packaging experts, but we are doing the best we can to
7improve our official packages and support other packagers.
8Our packages are available at and
9instructions are at
11This document is current as of release 0.9.33, scheduled 2018-01
14Build-only Dependencies
17* ant
18  This is the standard java build system.
21Current Runtime Dependencies
24* Java JDK/JRE
25  We require openjdk-7-java to build, and any Java 7, 8, or 9 runtime to run.
26  Java 9 may still have some issues; see for status
28* geoip-database
29  In non-Debian builds we bundle our own geoip data;
30  for Debian builds we use the system data.
32* gettext-base
33  For /usr/share/java/libintl.jar.
34  In non-Debian builds we bundle the source code; it's removed in the Debian source package.
36* libgetopt-java
37  For /usr/share/java/gnu-getopt.jar.
38  In non-Debian builds we bundle the source code; it's removed in the Debian source package.
40* libjetty9-java
41  For /usr/share/java/jetty9-*.jar.
42  In non-Debian builds we bundle the jars; it's removed in the Debian source package.
44* libtomcat8-java
45  For /usr/share/java/tomcat8-*.jar.
46  In non-Debian builds we bundle the jars as packaged in the Jetty 9.2 binary release,
47  which are different than the way they are packaged for Debian.
48  They are removed in the Debian source package.
50* libtaglibs-standard-*-java (stretch and later, artful and later only)
51  Provides JSTL 1.2, solves the glassfish-javaee problem described below.
53* glassfish-javaee (wheezy, jessie, xenial and earlier only)
54  We need jstl.jar and standard.jar version 1.2.
55  This is an ancient and terrible package, but it's the only place we've found version 1.2 jars.
56  standard.jar classes are inside /usr/share/java/glassfish-appserv-jstl.jar
57  jstl.jar classes are inside /usr/share/java/glassfish-javaee.jar but we can't use it
58  because there are too many conflicting, old, unrelated classes in there, so we currently
59  bundle jstl.jar even in Debian builds.
60  We've found some other packages that contain version 1.1 jars:
61  libjakarta-taglibs-standard-java (containing standard.jar only)
62  and libjstl1.1-java (containing jstl.jar only).
63  Jetty 9 does contain JSTL 1.2 ??? but not in packages???
64  It's not clear why there isn't a libjstl1.2-java package.
65  It also isn't clear why we upgraded to 1.2 years ago, but the rest of the world didn't.
66  And it isn't clear why 1.1 won't work for us.
68* service-wrapper
69  In non-Debian builds we bundle the jars; it's removed in the Debian source package.
70  For some Debian and Ubuntu releases, these seem to be much older than what we're bundling,
71  but there's no particular version that we need.
73* libgmp-dev
74  In non-Debian builds we bundle compiled C code; in the Debian packages we have a small
75  C shim that links to the libgmp .so file.
76  We depend on libgmp-dev for both the build and the runtime, but perhaps only the
77  libgmp10 package is required for runtime? To be researched.
79* famfamfam-flag-png
80  Country flags (all except precise)
81  In precise and non-Debian builds we bundle the flags.
84Bundled code, NOT current dependencies
87These are packages that we at least partially bundle jars or java source for,
88even in Debian builds. For most of these we could remove the code and add
89a dependency if the package were widely available.
90We have not created private packages for any of these, we just bundle
91the binaries or sources.
93* geoip-java
94  Java interface to access geoip data.
95  We bundle source from
96  No package or not widely available.
97  There is a Maven geoip-api package at
99* hashcash
100  One Java source file.
101  From
102  No package or not widely available.
103  We don't really use this code anyway, but it would break compilation if we took it out.
105* identicon
106  Small number of Java source files, modified.
107  From
108  No package or not widely available.
110* jrobin
111  This is the Java graphing package.
112  We bundle a large portion of the 1.6.0 source from
113  No package or not widely available.
114  There is an old 1.5.9 Maven jrobin package at
115  Jrobin is in Gentoo.
117* libhttpclient-java
118  We only use a few classes from this large package.
119  We require 4.4 or higher which is not available in older distributions.
120  This is 2 MB of dependencies, instead we bundle 20 KB of copied source.
121  If we do add this dependency, we use only the code in
122  /usr/share/java/httpclient.jar and /usr/share/java/httpcore.jar.
124* UPnP (cybergarage)
125  Large subsystem, large number of Java source files, modified with several fixes.
126  From
127  No package or not widely available.
128  There is a competing UPnP library (libupnp-java) that is packaged, but it would be
129  a huge effort on our part to port our code to use that library instead.
130  Maybe we will do this some day, but it won't be soon.
132* zxing
133  This is the QR/barcode library from Google.
134  We bundle a portion of the source from
135  No package or not widely available.
136  There are Maven zxing packages at
139Other Issues and TODO
142* Building
143  As of 0.9.28, our Debian repo at just contains
144  binaries copied from Launchpad. It's much easier than building them
145  ourselves, but it leaves non-x86 architectures out of date.
146  The directory above (debian-alt) contains various changes for different distros.
148* Configuration
149  So that we may easily support dependency changes in various distributions,
150  and test alternatives, we output configuration settings to the
151  file in the rules script. There are extensive comments in the
152  rules, i2p-router.install, and i2p-router.links files.
153  There's probably a better or more-standard way to do this, but this makes it
154  easier for us, and for non-Debian packagers, if there are any.
156* i2p-doc
157  This is just javadocs.
158  Added priority of 'extra' for 0.9.29, before that, everybody was installing it?
160* Init/systemd
161  Kytv did the systemd and init script parts, no idea if it's compliant,
162  needs review.
164* JCA issues.
165  This has never been a problem for Debian/Ubuntu, but many Gentoo, Redhat, and Fedora
166  distributions are missing or have broken ECDSA support in the Java Cryptography subsystem.
167  The console sidebar will show a warning and the router will log warnings if
168  ECDSA is not working. The router will still work, but the user will not be able
169  to access newer hidden services on the network. For best results, packagers
170  should ensure that the JCA supports ECDSA.
171  For further info, see
173* Raspberry Pi
174  The performance of OpenJDK 8 on the raspberry pi is terrible, it's almost
175  unusable. The Oracle JDK is several times faster. But there's no package for that.
176  We tell people to use Oracle for ARM on our download page, but there's no
177  solution for package users.
179* Splitting packages further
180  Might be nice to further split up the i2p-router package into just the
181  core headless router and the routerconsole/UI part.
182  Or even the susimail/susidns/i2psnark/i2ptunnel webapps also.
184* Plugins
185  We don't have a strategy for building, installing, or finding packages for
186  3rd-party plugins using our plugin system. If we do that, then we can
187  have packages for popular plugins such as i2p-bote.
Note: See TracBrowser for help on using the repository browser.