Path: csiph.com!newsfeed.xs4all.nl!newsfeed9.news.xs4all.nl!bofh.it!news.nic.it!robomod From: Nils Rennebarth Newsgroups: linux.debian.maint.java Subject: Packaging of openjdk-11-jre, ca-certificates-java (and possibly other) Date: Mon, 25 Oct 2021 20:00:01 +0200 Message-ID: X-Mailbox-Line: From debian-java-request@lists.debian.org Mon Oct 25 17:50:44 2021 Old-Return-Path: X-Amavis-Spam-Status: No, score=-7 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, PGPSIGNATURE=-5] autolearn=ham autolearn_force=no X-Policyd-Weight: using cached result; rate: -4.6 X-Greylist: delayed 491 seconds by postgrey-1.36 at bendel; Mon, 25 Oct 2021 17:50:30 UTC User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="N9wL4465OrdNBHv53GvVtOPm8MEn049Qk" X-Clientproxiedby: cas-essen-01.secunet.de (10.53.40.201) To mbx-essen-01.secunet.de (10.53.40.197) X-Exclaimer-Md-Config: 2c86f778-e09b-4440-8b15-867914633a10 X-Mailing-List: archive/latest/22942 List-ID: List-URL: List-Archive: https://lists.debian.org/msgid-search/ff5f546c-7281-4d4b-c849-6007cea9e4f5@secunet.com Approved: robomod@news.nic.it Lines: 99 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Mon, 25 Oct 2021 19:42:15 +0200 X-Original-Message-ID: Xref: csiph.com linux.debian.maint.java:12313 --N9wL4465OrdNBHv53GvVtOPm8MEn049Qk Content-Type: multipart/mixed; boundary="RBbPq487abIUEF2vxOe5Mm8a9YbNJSL7e"; protected-headers="v1" From: Nils Rennebarth To: debian-java@lists.debian.org Message-ID: Subject: Packaging of openjdk-11-jre, ca-certificates-java (and possibly other) --RBbPq487abIUEF2vxOe5Mm8a9YbNJSL7e Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: quoted-printable Hello, The packages openjdk-11-jre and ca-certificates-java (at least) state in = their postinst, that java needs a mounted /proc to run and then fail. That is not quite true though: If the lib/jli subdirectory of the jvm bas= e directory (i.e. /usr/lib/jvm/java-11-openjdk-amd64) is added to LD_LIBR= ARY_PATH, java runs just fine without a mounted /proc. Now the openjdk-11-jre just knows where the jvm base directory is, and co= uld simply add a: LD_LIBRARY_PATH=3D$basedir/lib/jli:$LD_LIBRARY_PATH export LD_LIBRARY_PATH to run the java binary. Similar for ca-certificates-java that needs to ru= n java in its postinst. Background is that I install the openjdk-11-jre in a chrooted environment= where no /proc is available. This only produces the final system as a ta= rball though. If you prefer to keep the check for the mounted /proc, to point people in= the right direction, could the check be switched off by people like me w= ho know what they are doing? E.g. by=20 running_in_chroot() { type systemd-detect-virt >/dev/null 2>&1 && systemd-detect-virt --chro= ot } and then changing the test to if ! running_in_chroot && ! mountpoint -q /proc; then... Best regards, Nils Rennebarth --=20 Dipl. Math Nils Rennebarth Senior Berater Entwicklung Division Network & Client security secunet Security Networks AG=20 =20 Tel.: +49 201 5454-3976 Fax: +49 711 900300-90 Mobil: +49 174 9750449 E-Mail: nils.rennebarth@secunet.com Neue Br=C3=BCcke 3 70173 Stuttgart www.secunet.com ______________________________________________________________________ Sitz: Kurf=C3=BCrstenstra=C3=9Fe 58, 45138 Essen, Deutschland=20 Amtsgericht Essen HRB 13615 Vorstand: Axel Deininger (Vors.), Torsten Henn, Dr. Kai Martius, Thomas P= leines=20 Aufsichtsratsvorsitzender: Ralf Wintergerst ______________________________________________________________________ --RBbPq487abIUEF2vxOe5Mm8a9YbNJSL7e-- --N9wL4465OrdNBHv53GvVtOPm8MEn049Qk Content-Type: application/pgp-signature; name="OpenPGP_signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="OpenPGP_signature" -----BEGIN PGP SIGNATURE----- wsB5BAABCAAjFiEEXxGCR/+7Zy+JPCA84QE3lLVCtrwFAmF27HcFAwAAAAAACgkQ4QE3lLVCtrxd 0Af/cEyyH9aVsl9pCfImCKd3z+u/UTwH4NXQrhj6gO6HH57hrjjrggp+HxBsDYmqd5nqPNvtGxQl VmElB8xyQUfWi76YB5bdmZLyxaKPu453M4mKw+97KWawysZD0E7eCsBTL2lqoguwHWe2uq8QGm4j psgk9Pge8mRTTztySo5iMtWcj4w3o6CkTnjEZW45CWFc1W/sQP7k67uBqp60N++9xZ5k9hbP7H4/ 8q+ZPV0MnwABu+ZgHday3H5zQ3MpI8Gs7L38njhqhUJ06DP2HVC1f6iDGpJ2iCR5SXYEB2TetZ1I 8Dx1yefU//wEskhbRHXDNaGWHmhE1vCUegxQmiIIng== =cbq6 -----END PGP SIGNATURE----- --N9wL4465OrdNBHv53GvVtOPm8MEn049Qk--