FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Java

 
 
LinkBack Thread Tools
 
Old 12-08-2010, 12:00 PM
Niels Thykier
 
Default Clear definition of default-java and its scope

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi

In light of LP: #687263 and LP: #564699 I think it might be time for us
to clearly define the purpose of default-java; not only for our own sake
but also for the sake of Java users on Debian(-based distros).

Note that by "default-java" I here refer to the symlink
/usr/lib/jvm/default-java and also the default-jre{,-headless},
default-jdk packages.

The current definition of default-java seems to be:
- The default Java used for building Debian packages (based on how we
use it)
- The best free/open Java available on the platform (based on how we
"choose" the default-java on a given architecture).

Users, who do not work on Debian packages, will most likely not come to
the same conclusions, since they are not involved in Debian Java
Development.
Particularly in the LP: #687263 case, a user expected "default-java"
to be controlled by alternatives. I assume he/she read "default" as
"system-default" and personally I found that a very valid assumption
(from a user perspective).

I propose we solve this by explicitly defining default-java to hold the
two definitions I mentioned above (it is the only sane choice for
backwards compatibility as far as I can tell) and post-Squeeze introduce
a "system-default-java", which is an alternative-controlled Java. For
Squeeze I would settle with updating the Java FAQ[1].
This solution will not directly solve LP: #687263[2], but it will
solve LP: #564699 and also a part of LP: #45348 by allowing users to set
JAVA_HOME to the system-default-java and now update-alternatives will
automatically update their JAVA_HOME as well.

~Niels

[1] http://www.debian.org/doc/manuals/debian-java-faq/

[2] The issue is actually about the tool not preferring chosen
alternative (if valid) above other choices.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBCAAGBQJM/4F2AAoJEAVLu599gGRC03gP/0IFDORurcBsCcYctuhOvm6w
UTnSPiyR2X4IU5iVhfixoY1/QTPA3bSo4zlcGWdmHuWffSqN2LmeA2sPFk2tuUDB
LsVDuRVNLHZex4aWKq45SdJnz2Lf/wuY1U8uOujZ52qbiEKN64BfUpuorndZUqhn
Sfo0ig0HfmwpTrzoj7iTFB11Pi2itY/h7AhoUUJxKI2UNw9EJoYG/kld63PMjUnW
OAnfkLB4hcV2Xo1prSTtbyKAnHvPLT9rGFJMUdShnquia7UQra I06PhR/pmpH5lz
o4tbC/AoqB6HLZgZD8UBndh81d2g/52naKgQNsKcQ+Yx3VtQ90HjEQgcZg0tY5bJ
gnRLloYFWUfTEmkQRvjZ12ZL7wPGkKNl0Yk3qC8zOeI2aEsD/GvCv2NPYhckm0FP
QJOyemvgW7m9ZJODkQ1shhbH2KG4Do8L9GMu5p8xhpnWEbIyrc 20Xo4BwNacol/R
NYA/AOvv9lQwgBQTwVklQiFDA8J15PV3H6eBncLM05jqUhZonupxdM tCu2Qzz9Ut
jelgjr5dthza+ZYKEO8CK+8W+W5yfs+znA5gc5n/vJCFQNhRxZ4Dc+zn4iun4cqU
Nk2Fa1gbpZRIVBaeRrZX6zSUJd7yD0ku6oT8YGzHGwQi6wCbZj SJiFL+0Sp5br9T
PNVJyUkCUqi+XG/ds7nS
=b5FK
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4CFF8179.8070707@thykier.net">http://lists.debian.org/4CFF8179.8070707@thykier.net
 
Old 12-08-2010, 06:38 PM
Torsten Werner
 
Default Clear definition of default-java and its scope

Hi Niels,

On Wed, Dec 8, 2010 at 2:00 PM, Niels Thykier <niels@thykier.net> wrote:
> I propose we solve this by explicitly defining default-java to hold the
> two definitions I mentioned above (it is the only sane choice for
> backwards compatibility as far as I can tell) and post-Squeeze introduce
> a "system-default-java", which is an alternative-controlled Java. For
> Squeeze I would settle with updating the Java FAQ[1].
> *This solution will not directly solve LP: #687263[2], but it will
> solve LP: #564699 and also a part of LP: #45348 by allowing users to set
> JAVA_HOME to the system-default-java and now update-alternatives will
> automatically update their JAVA_HOME as well.

that is a good idea.

Cheers,
Torsten


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: AANLkTi=ZbG4da9=vw8cbsmnGZ2RqUhLOM9CYjbLeQnWR@mail .gmail.com">http://lists.debian.org/AANLkTi=ZbG4da9=vw8cbsmnGZ2RqUhLOM9CYjbLeQnWR@mail .gmail.com
 
Old 12-08-2010, 06:52 PM
Matthias Klose
 
Default Clear definition of default-java and its scope

On 08.12.2010 14:00, Niels Thykier wrote:

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Hi

In light of LP: #687263 and LP: #564699 I think it might be time for us
to clearly define the purpose of default-java; not only for our own sake
but also for the sake of Java users on Debian(-based distros).

Note that by "default-java" I here refer to the symlink
/usr/lib/jvm/default-java and also the default-jre{,-headless},
default-jdk packages.

The current definition of default-java seems to be:
- The default Java used for building Debian packages (based on how we
use it)
- The best free/open Java available on the platform (based on how we
"choose" the default-java on a given architecture).

Users, who do not work on Debian packages, will most likely not come to
the same conclusions, since they are not involved in Debian Java
Development.
Particularly in the LP: #687263 case, a user expected "default-java"
to be controlled by alternatives. I assume he/she read "default" as
"system-default" and personally I found that a very valid assumption
(from a user perspective).

I propose we solve this by explicitly defining default-java to hold the
two definitions I mentioned above (it is the only sane choice for
backwards compatibility as far as I can tell) and post-Squeeze introduce
a "system-default-java", which is an alternative-controlled Java. For
Squeeze I would settle with updating the Java FAQ[1].
This solution will not directly solve LP: #687263[2], but it will
solve LP: #564699 and also a part of LP: #45348 by allowing users to set
JAVA_HOME to the system-default-java and now update-alternatives will
automatically update their JAVA_HOME as well.


No. This should not be done. Relying on an alternative for a build makes
problems much harder to debug, if you first have to find out which alternative
is actually used, and which alternative is used for the build.


I am fine with improving user experience, but the change in the proposed form
will obfuscate the build process.


Matthias


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4CFFE1FD.3080906@ubuntu.com">http://lists.debian.org/4CFFE1FD.3080906@ubuntu.com
 
Old 12-08-2010, 07:18 PM
Torsten Werner
 
Default Clear definition of default-java and its scope

On Wed, Dec 8, 2010 at 8:52 PM, Matthias Klose <doko@ubuntu.com> wrote:
> No. This should not be done. Relying on an alternative for a build makes
> problems much harder to debug, if you first have to find out which
> alternative is actually used, and which alternative is used for the build.
>
> I am fine with improving user experience, but the change in the proposed
> form will obfuscate the build process.

Niels did not propose to use alternatives for building packages. His
proposal is fully backwards compatible as far as I understood it.

Torsten


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: AANLkTi=TA4qa=KoGPoM4r7HU-0wKOU7UQVtCtdp-14U5@mail.gmail.com">http://lists.debian.org/AANLkTi=TA4qa=KoGPoM4r7HU-0wKOU7UQVtCtdp-14U5@mail.gmail.com
 
Old 12-08-2010, 08:23 PM
Niels Thykier
 
Default Clear definition of default-java and its scope

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

On 2010-12-08 21:18, Torsten Werner wrote:
> On Wed, Dec 8, 2010 at 8:52 PM, Matthias Klose <doko@ubuntu.com> wrote:
>> No. This should not be done. Relying on an alternative for a build makes
>> problems much harder to debug, if you first have to find out which
>> alternative is actually used, and which alternative is used for the build.
>>
>> I am fine with improving user experience, but the change in the proposed
>> form will obfuscate the build process.
>
> Niels did not propose to use alternatives for building packages. His
> proposal is fully backwards compatible as far as I understood it.
>
> Torsten
>
>

Yes, the idea is that default-java remains what it always has been for
us; namely the default implementation used for building (complete with
the standard symlink).

The "change" is to introduce a new symlink as well (next to the
default-java symlink) which is an "alternative" that by default points
to default-java, but can be updated.

~Niels

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBCAAGBQJM//c1AAoJEAVLu599gGRCq9EP/1GFNqBN1Qj0Xmy/RcXm5C06
g9BBttSzNNTUdJ4B8fu/DiyPRW7cL4ssWGP49wl69FqsIfFrdA8oYnP6RXAbHTJr
t5ueN6ns83/gJLZZRHdtj5AfETRPDWBOOY0PMxaQKC+jPVwsrdfvnAStVg2U8 Ju3
rr2JZ1xo8beW0uPVnLuo+qrEscUvMUD3p4wAh/CTUGCliOwgzVBgrSmnqf03Hs/O
wgVV05jZiRBmwtcK545vANL0zslmFKdP8H3j1RAQ0FzufO2pP3 NryMCqVkyl9Nun
/vYJTRnTyIlQw/sy5I39AY3ga0OhjZFfMxZjhsFpadE+io3jQ96qdIjpgyVxWuJC
cwXp7KaNCh0Hv9KqcUcv5m+TpNyw7ITkBUALj1eKZKIYYwg7Qp jEpP7iqWXszGt8
24Z+cMkLWQvmJXlpsURhp9VXMyQiidevdhAgKmDfks5uarYB/KHw5MjpyThxD8Fj
cf/dqjB5jdHDQ6tIS3RnERjMc7ECnfrI2ewjv5Jj3EKGTB6P/eMwjjQMJ2yvkdU6
CalcmKuoVnjocbcQj6EmcucX1p636+AL0UZctxGgXZqDnhUReg af7WNxtLbaeXod
nbfcVaCMgz8nE0OCxP/7gyRfg2pv4k2akYDJOLVGZrgzvPmZ7XSJPTfhIX68e7Vy
ImNaXTmhefNiz86fBNuO
=G0IE
-----END PGP SIGNATURE-----


--
To UNSUBSCRIBE, email to debian-java-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4CFFF736.6090102@thykier.net">http://lists.debian.org/4CFFF736.6090102@thykier.net
 

Thread Tools




All times are GMT. The time now is 03:49 PM.

VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2007 - 2008, www.linux-archive.org