You are not logged in.

#1 2018-08-21 14:06:32

archelvetic
Member
Registered: 2017-10-26
Posts: 45

[solved] Build failed missing dependencies: java-environment=8

Hi

On trying to install this package https://aur.archlinux.org/packages/plantuml/

$ packer plantuml

I get following error message below:

==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Missing dependencies:
  -> java-environment=8
==> ERROR: Could not resolve all dependencies.
The build failed

However java 8 seems default:

$ archlinux-java status
Available Java environments:
  java-10-openjdk
  java-8-openjdk/jre (default)

Furthermore I tried to the suggestion from the package comments by changing the PKGBUILD with https://gist.github.com/petronny/e21a63 … 271d63503f

Alas nothing changes

Any ideas what else I could try to have plantuml installed?

Last edited by archelvetic (2018-08-22 08:42:29)

Offline

#2 2018-08-21 14:26:35

loqs
Member
Registered: 2014-03-06
Posts: 19,113

Re: [solved] Build failed missing dependencies: java-environment=8

What is the output of

pacman -Qi java8-openjdk

Offline

#3 2018-08-21 14:36:35

archelvetic
Member
Registered: 2017-10-26
Posts: 45

Re: [solved] Build failed missing dependencies: java-environment=8

Hi loqs

Thank you. The output is:

error: package 'java8-openjdk' was not found

$ packer java8-openjdk

Displays one result:

aur/java8-openjdk-hsdis V0 aur/java8-openjdk-hsdis 8.u112-1 (1)
    Disassembler for HotSpot

What are your suggestions?

Offline

#4 2018-08-21 14:44:27

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,435

Re: [solved] Build failed missing dependencies: java-environment=8

You have to install the package (not the one packer mentiones, but the package from the repos). If the pacman command says the package was not found it means that the jdk isn't installed and you require a JDK not just a JRE (the archlinux-java output would lack the JRE suffix if the JDK was installed)

Offline

#5 2018-08-21 20:37:56

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [solved] Build failed missing dependencies: java-environment=8

The java 8 openjdk was removed from the repos... otherwise makepkg -s would find it in the repos and install it for you...

I misremembered, it is 9 that got removed (discontinued upstream).

Last edited by eschwartz (2018-08-21 22:08:28)


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#6 2018-08-21 22:05:51

twelveeighty
Member
Registered: 2011-09-04
Posts: 1,456

Re: [solved] Build failed missing dependencies: java-environment=8

Eschwartz wrote:

The java 8 openjdk was removed from the repos.

I don't think that's true:
https://www.archlinux.org/packages/extr … 8-openjdk/

@archelvetic: you need to install the above package (i.e. jdk8-openjdk, not java8-openjdk). I'm guessing you have jre8-openjdk installed, which is why archlinux-java status reports it as the "default". It's a dependency for jdk8-openjdk, so just leave that in place.

Offline

#7 2018-08-21 22:10:46

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [solved] Build failed missing dependencies: java-environment=8

twelveeighty wrote:
Eschwartz wrote:

The java 8 openjdk was removed from the repos.

I don't think that's true:
https://www.archlinux.org/packages/extr … 8-openjdk/

I misremembered, it is java 9 that got removed.

Either way though, asking "which version of java is the default in archlinux-java" is useless, makepkg does not care what archlinux-java says -- it only cares what pacman says is installed and this plainly isn't!


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#8 2018-08-22 08:42:11

archelvetic
Member
Registered: 2017-10-26
Posts: 45

Re: [solved] Build failed missing dependencies: java-environment=8

Installing jdk8-openjdk solved the issue. Thanks @twelveeighty and others

Offline

Board footer

Powered by FluxBB