[packages/openjdk8] recommend jre in jre-base

atler atler at pld-linux.org
Thu Apr 23 20:42:45 CEST 2026


On 23.04.2026 20:27, atler wrote:
> commit 6c7704152354f0347fc23d7ead68901c96033bc8
> Author: Jan Palus <atler at pld-linux.org>
> Date:   Thu Apr 23 20:24:42 2026 +0200
> 
>     recommend jre in jre-base
> 
>  openjdk8.spec | 1 +
>  1 file changed, 1 insertion(+)
> ---
> diff --git a/openjdk8.spec b/openjdk8.spec
> index 7d74117..dbd0333 100644
> --- a/openjdk8.spec
> +++ b/openjdk8.spec
> @@ -279,6 +279,7 @@ Requires:	jpackage-utils >= 0:1.7.5-8
>  Requires:	nss >= 1:3.13.4
>  # Require zoneinfo data provided by java-tzdata subpackage.
>  Requires:	java-tzdata
> +Recommends:	%{name}-jre = %{epoch}:%{version}-%{release}
>  Provides:	java(ClassDataVersion) = %{_classdataversion}
>  Provides:	java(jaas) = %{version}
>  Provides:	java(jaf) = 1.1.1

Together with moving java(ClassDataVersion) to -jre-base this change
inverts dependencies -- instead of always requiring some specific default
jre it's now easier to have parallel non conflicting installations of
-jre-base with user selected default jre at the expense of slight chance
of not having default jre at all (which actually might be desired). It's
still not ideal but slightly less bad than previous situation, at least
from my point of view.

For the time being it's only in openjdk8 and comments are welcome. If
there are no objections it will be propagated to other versions as well.

I would also like to rename current openjdk8-jre to openjdk8-default-jre
(and similarly other packages) and drop -base suffix ie
openjdk8-jre-base -> openjdk8-jre to better express the intension.
poldek might be confused on upgrades though.


More information about the pld-devel-en mailing list