Path: csiph.com!goblin2!goblin1!goblin.stu.neva.ru!news.panservice.it!diesel.cu.mi.it!bofh.it!news.nic.it!robomod From: tony mancill Newsgroups: linux.debian.maint.java Subject: Re: Packaging Java Pathfinder Date: Mon, 16 Nov 2015 02:10:02 +0100 Message-ID: References: X-Original-To: debian-java@lists.debian.org X-Mailbox-Line: From debian-java-request@lists.debian.org Mon Nov 16 01:00:09 2015 Old-Return-Path: X-Amavis-Spam-Status: No, score=-11.48 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, CAPINIT=0.5, LDO_WHITELIST=-5, MURPHY_DRUGS_REL8=0.02, PGPSIGNATURE=-5] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -5 X-Enigmail-Draft-Status: N1110 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.3.0 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="d7C07t9bw7souabaHkriaVd7ckgbC49Od" X-Mailing-List: archive/latest/18875 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/56492A89.5080306@debian.org Approved: robomod@news.nic.it Lines: 76 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sun, 15 Nov 2015 16:59:53 -0800 X-Original-Message-ID: <56492A89.5080306@debian.org> X-Original-References: <1445572423.29523.13.camel@dimjasevic.net> <1447569531.21022.19.camel@dimjasevic.net> <56483F3B.60301@apache.org> <5648B6D8.2030702@debian.org> <1447612754.21022.41.camel@dimjasevic.net> Xref: csiph.com linux.debian.maint.java:8556 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --d7C07t9bw7souabaHkriaVd7ckgbC49Od Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 11/15/2015 10:39 AM, Marko Dimja=C5=A1evi=C4=87 wrote: > On Sun, 2015-11-15 at 08:46 -0800, tony mancill wrote: >=20 >> When using this recipe, you should also declare a build-dependency on >> either "openjdk-8-jdk" or "default-jdk (>=3D 2:1.8)". The first is (j= ust >> a tad) more explicit and aligns with the setting of JAVA_HOME. >=20 > Thank you for this! >=20 > I have another question... >=20 > So far a user would manually install Java PathFinder, so they would hav= e > to configure it by editing a file ~/.jpf/site.properties, where Java > PathFinder modules (and I intend to package one module later too) would= > figure out where on the disk is the main module, that is Java PathFinde= r > itself. However, now there will be Debian packages for Java PathFinder > and its modules, so the configuration file won't be needed as everythin= g > will be in /usr/share/java, yet my hunch is the modules will still look= > for ~/.jpf/site.properties. >=20 > Do you have any suggestions on how to handle this? My hunch is I will > have to patch things such that all modules always look for the main > module (and possibly other modules) in a specific place > (i.e. /usr/share/java). I agree that a patch would be the cleanest approach. Perhaps you could get away with simply a wrapper script that sets some system properties? (I haven't looked at JPF very closely yet.) You should also consider whether a JPF user might want to use both the modules provided by Debian and search for modules configured in the site.properties file. The question there will be the search order. In general, anything you can do to ensure that the package works "out of the box" without manual user configuration (but while still supporting local configuration if desired) is the preferred approach. Cheers, tony --d7C07t9bw7souabaHkriaVd7ckgbC49Od Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCgAGBQJWSSqJAAoJECHSBYmXSz6W2vwP/06VR2gZoMLPpSQYaKtnbn/6 A42dJDJiZAYQ0Ijz7wHBJRrRB8DDRcUH8/E9QEqgN7wBuVfGwdH8TdhQyWonvptE 3EtOZ3C2R/Bvks6Lbgsh9PJPEi/OqXbYeeUOi2dAWMx+kazUpcV39HlpDHvXkoe7 Xz9572xQJp63G9MgISifJDwbQiejINhJjk/A/WbskJ5qWUcb6ydpmXiRvY1mU7fj bVZ1Y+ARfHAFh78liLhwf7di0rfFKfEPYg/YnNsE9WurIbBbG8zyhSAQdM5a3qn0 6UoeZzaQdQI9ciHRdeRzDWm7Px9D/7bru9gDOFfCm8b+ASzho9SdNYCXeZ6g2biU cVqr3vdSSIQCjB3Nf25k3lpuLBnWHaA946Qlkksa/InuLPwnWqoizG9kjARCG8uo Q4qjdrbycviSp4vM4dK87uLCmg3NHEUHGBnP7Fmn0Dst8JQev1+eDkZNNhbGUJEL D1vziAxFZiWqCaVRt2vTQKOf5Ez7+BGp7zIq04lVsakYjkWX3AThY8GvMofSCHF7 4Z/kd2yfZMo90ngM1wSBBU73ZAJpIVeai4Zephe/dwnzJ7aYuyhQ6rNWLTMoRSAL /W2gXOGQKrMmGy0k5lnQdZpLGFTzpKrvBGrbIaPgLS+l5cPY9rKP60GtRRDylBZl cBD4K0XrqIxrFsbi52xI =BsNP -----END PGP SIGNATURE----- --d7C07t9bw7souabaHkriaVd7ckgbC49Od--