Skip to main content
Topic: java-openjfx depends on old version of java-runtime-openjdk (20, not 21). (Read 690 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

java-openjfx depends on old version of java-runtime-openjdk (20, not 21).

pacman -Si world/java-openjfx | grep -E '(^Version|^Depends)':
Code: [Select]
Version         : 20.0.1.u1-1
Depends On      : java-runtime-openjdk=20  libgl  libx11  libxtst

But

pacman -Si world/jre-openjdk | grep -E '(^Version|^Provides)':
Code: [Select]
Version         : 21.u35-3
Provides        : java-runtime=21  java-runtime-openjdk=21  jre21-openjdk=21.u35-3

Regards!

Re: java-openjfx depends on old version of java-runtime-openjdk (20, not 21).

Reply #1
Arch maintainer of this package hasn't updated it either.

Re: java-openjfx depends on old version of java-runtime-openjdk (20, not 21).

Reply #2
Arch maintainer of this package hasn't updated it either.

This should not play a significant role here, since Artix is not Arch and does not support Arch repos:
I should state it again clearly, we do not support errors resulting from using 3rd party repos.

-- so even if Arch lacks behind updating it's dependencies, this is no reason that Artix is doing the same; it seems that Arch should be irrelevant to Artix.

Anyway, there is now an issue report in the Arch Linux bugtracker.

Regards!

java-openjfx: Out of date (21.u31 vs. 20.0.1.u1).

Reply #3
Now, aur/java-openjfx has been updated 21.u31-1, whereas world/java-openjfx still is at version 20.0.1.u1-1.

Regards!


Re: java-openjfx depends on old version of java-runtime-openjdk (20, not 21).

Reply #5
I've removed it.

Re: java-openjfx depends on old version of java-runtime-openjdk (20, not 21).

Reply #6
I see, probably only I and handful others where using this. so it's not a problem. :)

can I have the PKGBUILD that artix where using. the one over in AUR has some problem. EDIT: no need, I got the PKGBUILD. (^_^)b

 

Re: java-openjfx depends on old version of java-runtime-openjdk (20, not 21).

Reply #7
Hmm, it seems the link to the landfill actually isn't publicly viewable. Anyways this was the PKGBUILD.

Code: [Select]
# Maintainer: Nathan <[email protected]>
# Maintainer: Frederik Schwan <freswa at archlinux dot org>
# Contributor: Maxime Gauduin <[email protected]>
# Contributor: Guillaume Alaux <[email protected]>
# Contributor: William Gathoye <william + archlinux at gathoye dot be>
# Contributor: Emanuel Couto <emanuel dot amaral dot couto at gmail dot com>
# Contributor: Richard Jackson <rdjack21 at gmail dot com>
# Contributor: Tinx <arch at tinx dot eu>
# Contributor: Jens Kapitza <j dot kapitza at schwarze-allianz dot de>
# Contributor: Olli <olli at coderkun dot de>

pkgbase=java-openjfx
pkgname=(
  java-openjfx
  java-openjfx-doc
  java-openjfx-src
)
pkgver=20.0.1.u1
pkgrel=1
pkgdesc="Java OpenJFX client application platform (open-source implementation of JavaFX) - latest version"
arch=(x86_64)
url=https://wiki.openjdk.java.net/display/OpenJFX/Main
license=(custom)
makedepends=(
  alsa-lib
  ant
  cairo
  cmake
  ffmpeg4.4
  freetype2
  gdk-pixbuf2
  glib2
  gperf
  gradle7
  gtk2
  gtk3
  java-environment-openjdk=17
  libgl
  libx11
  libxtst
  pango
  python
  qt5-base
  ruby
  unzip
  webkit2gtk
  zip
)
source=(
  https://github.com/openjdk/jfx${pkgver//.*}u/archive/refs/tags/${pkgver//.u/+}.tar.gz
  # ${pkgname}-${pkgver}.tar.gz::https://github.com/openjdk/jfx${pkgver%%.*}u/archive/refs/tags/${pkgver//.u/+}.tar.gz
  gradle.properties
  java-openjfx-flags.patch
  java-openjfx-no-xlocale.patch
)
b2sums=('f90129048df11e7b313681c974731ce8b47bb01a3a3e60b70b93385a9d924127f2420310faec79d84a23fb669fb0d8c003142494054d672c44e978ce44b5c788'
        'a77fd8814a5978827de01a652f7b945f3439df04606434ced8998c8d77a82985292490e6965299aeb52f9da3d8069b4091d75519bd4ec8a15f70bc6d28b13498'
        '609ffbc0938922f00ccebab6d1e9ab0d54b84f088f75c10c0eb4211ff1b33438481d76092eae8811a5e9f53dfc3ff422f7aa4e98abd8fc27fb73f1c3d4661c41'
        '13216615c01b8d48d17889ffa22668c38568870d83ab30c542eb5b5620db305f02efb1acb99d9b5e89eb0a73a134bb336cb301f4de4e8855cae50efb099e384e')

prepare() {
  cd jfx${pkgver//.*}u-${pkgver//.u/-}
  # cd jfx${pkgver%%.*}u-${pkgver//.u/-}

  ln -sf ../gradle.properties .
  patch -Np1 -i ../java-openjfx-flags.patch
  patch -Np1 -i ../java-openjfx-no-xlocale.patch
  sed 's|, "-Werror"||g' -i buildSrc/linux.gradle
}

build() {
  cd jfx${pkgver//.*}u-${pkgver//.u/-}
  # cd jfx${pkgver%%.*}u-${pkgver//.u/-}

  # build against ffmpeg4.4
  export PKG_CONFIG_PATH='/usr/lib/ffmpeg4.4/pkgconfig'

  gradle7 zips
}

package_java-openjfx() {
  depends=(
    java-runtime-openjdk=${pkgver%%.*}
    libgl
    libx11
    libxtst
  )
  optdepends=(
    'ffmpeg4.4: Media support',
    'gtk2: GTK2 support',
    'gtk3: GTK3 support',
    'webkit2gtk: Web support'
  )
  provides=(java-openjfx=${pkgver%%.*})

  cd jfx${pkgver//.*}u-${pkgver//.u/-}
  # cd jfx${pkgver%%.*}u-${pkgver//.u/-}

  install -dm 755  "${pkgdir}"/usr/{lib/jvm/java-${pkgver%%.*}-openjdk,share/licenses}
  cp -dr --no-preserve=ownership build/sdk/lib "${pkgdir}"/usr/lib/jvm/java-${pkgver%%.*}-openjdk/
  cp -dr --no-preserve=ownership build/jmods "${pkgdir}"/usr/lib/jvm/java-${pkgver%%.*}-openjdk/
  cp -dr --no-preserve=ownership build/sdk/legal "${pkgdir}"/usr/share/licenses/java-openjfx
}

package_java-openjfx-doc() {
  cd jfx${pkgver//.*}u-${pkgver//.u/-}
  # cd jfx${pkgver%%.*}u-${pkgver//.u/-}

  install -dm 755 "${pkgdir}"/usr/share/{doc,licenses}
  cp -dr --no-preserve=ownership build/javadoc "${pkgdir}"/usr/share/doc/java-openjfx
  ln -s java-openjfx "${pkgdir}"/usr/share/licenses/java-openjfx-doc
}

package_java-openjfx-src() {
  cd jfx${pkgver//.*}u-${pkgver//.u/-}
  # cd jfx${pkgver%%.*}u-${pkgver//.u/-}

  install -dm 755  "${pkgdir}"/usr/{lib/jvm/java-${pkgver%%.*}-openjdk,share/licenses}
  install -m 644 build/sdk/src.zip "${pkgdir}"/usr/lib/jvm/java-${pkgver%%.*}-openjdk/javafx-src.zip
  ln -s java-openjfx "${pkgdir}"/usr/share/licenses/java-openjfx-src
}

# vim: ts=2 sw=2 et: