Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 832576

Summary: app-backup/tsm-8.1.13.3 needs Java 1.8 JRE
Product: Gentoo Linux Reporter: Horst Prote <prote>
Component: Current packagesAssignee: Andreas K. Hüttel <dilfridge>
Status: RESOLVED FIXED    
Severity: normal CC: gentoo, jstein
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Horst Prote 2022-02-02 12:41:17 UTC
With virtual/jre-11-r2 becomming stable the dependency
  java? ( >=virtual/jre-1.7 )
of tsm-8.1.13.3.ebuild updates to Java 11 but the java GUI from tsm still needs Java 7 or 8. As Java 7 isn't in the tree anymore we should change the dependency simply to
    java? ( virtual/jre:1.8 )


Reproducible: Always
Comment 1 Andreas K. Hüttel archtester gentoo-dev 2022-02-26 22:31:37 UTC
(In reply to Horst Prote from comment #0)
> With virtual/jre-11-r2 becomming stable the dependency
>   java? ( >=virtual/jre-1.7 )
> of tsm-8.1.13.3.ebuild updates to Java 11 but the java GUI from tsm still
> needs Java 7 or 8. As Java 7 isn't in the tree anymore we should change the
> dependency simply to
>     java? ( virtual/jre:1.8 )
> 
> 
> Reproducible: Always

What do we gain from that?
Comment 2 Horst Prote 2022-02-26 23:58:42 UTC
(In reply to Andreas K. Hüttel from comment #1)
> What do we gain from that?
That an "update world" on machines with tsm installed does nut pull in Java 11 but stays with Java 8. With Java 11 the dsmj Java GUI of the tsm package doesn't work any more.
Comment 3 Volkmar W. Pogatzki 2022-02-27 09:03:21 UTC
See also "Example of a an ebuild with optional Java support" 
on  https://wiki.gentoo.org/wiki/Java_Developer_Guide#Typical_examples

EAPI=7
inherit eutils java-pkg-opt-2

DESCRIPTION="Fictional example ebuild"
HOMEPAGE="http://www.gentoo.org/"
SRC_URI="mirror://gentoo/${P}.tar.gz"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="java doc nls"

DEPEND="java? ( >=virtual/jdk-1.8:* )"
RDEPEND="java? ( >=virtual/jre-1.8:* )"
Comment 4 Andreas K. Hüttel archtester gentoo-dev 2022-02-28 23:02:18 UTC
(In reply to Horst Prote from comment #2)
> (In reply to Andreas K. Hüttel from comment #1)
> > What do we gain from that?

> With Java 11 the dsmj Java GUI of the tsm package
> doesn't work any more.


That's a valid argument.
Comment 5 Larry the Git Cow gentoo-dev 2022-02-28 23:04:45 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7760d51e800a876f0b43a3a091d79918f8a381a9

commit 7760d51e800a876f0b43a3a091d79918f8a381a9
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2022-02-28 23:04:25 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2022-02-28 23:04:25 +0000

    app-backup/tsm: Fix dependency
    
    Closes: https://bugs.gentoo.org/832576
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 app-backup/tsm/tsm-8.1.13.3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)