Another small change: Can you please add --no-daemon
to your gradle command? We generally don't want to daemonize gradle when building packages.
Search Criteria
Package Base Details: java21-openjfx
Package Actions
Git Clone URL: | https://aur.archlinux.org/java21-openjfx.git (read-only, click to copy) |
---|---|
Submitter: | Freso |
Maintainer: | Freso (AutoUpdateBot) |
Last Packager: | Freso |
Votes: | 0 |
Popularity: | 0.000000 |
First Submitted: | 2024-04-05 23:59 (UTC) |
Last Updated: | 2024-04-21 11:56 (UTC) |
Packages (3)
Latest Comments
patlefort commented on 2024-04-21 17:35 (UTC)
Freso commented on 2024-04-21 11:59 (UTC)
Patches etc. are very welcome at https://gitlab.archlinux.org/freso/java-openjfx (java21-openjfx
branch) if you have any suggestions for how to fix the package. :)
Disabling the building of WebKit seems to unbreak the build. I’m not sure how essential the WebKit parts are to JavaFX overall, so a bit wary about changing this part of the PKGBUILD here. For anyone who wants to try it out, you can grab the package from this branch: https://gitlab.archlinux.org/freso/java-openjfx/-/tree/java21-openjfx-no-webkit
patlefort commented on 2024-04-17 13:41 (UTC)
Patch to fix issues:
- Fix wrong provides.
- Add LDFLAGS work around, it won't compile without it.
- Move conflicting files with java-openjfx package.
- Disable webkit, it doesn't compile, same problem as
java-openjfx
.
Also, can you please bump pkgrel instead of adding a .u to pkgver? That's what pkgrel is for.
diff --git a/PKGBUILD b/PKGBUILD
index b445826..f71b730 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -54,7 +54,7 @@ source=(
java-openjfx-no-xlocale.patch
)
b2sums=('e569482a6b89f541e0349772f4bc91c2f2fa97073da9a894c73d9d1107dc074b84d6ab004a259519bdaf03b6abf7fbf84cccd1e23234847f20627592050f2e5d'
- 'a77fd8814a5978827de01a652f7b945f3439df04606434ced8998c8d77a82985292490e6965299aeb52f9da3d8069b4091d75519bd4ec8a15f70bc6d28b13498'
+ '0c023ef99e7ee600710c54dad0ad59070620595109ca42c5057fa2ab74ef6d244631745f5cd4c1bea9c0321ee69f1e1efaab820ff124ad1d4f453121e77fd14f'
'609ffbc0938922f00ccebab6d1e9ab0d54b84f088f75c10c0eb4211ff1b33438481d76092eae8811a5e9f53dfc3ff422f7aa4e98abd8fc27fb73f1c3d4661c41'
'13216615c01b8d48d17889ffa22668c38568870d83ab30c542eb5b5620db305f02efb1acb99d9b5e89eb0a73a134bb336cb301f4de4e8855cae50efb099e384e')
@@ -77,6 +77,9 @@ build() {
# build against ffmpeg4.4
export PKG_CONFIG_PATH='/usr/lib/ffmpeg4.4/pkgconfig'
+
+ # Workaround for situation where the linker treats whitespace as arguments
+ export LDFLAGS="${LDFLAGS//+([[:space:]]|[[:blank:]])/ }"
gradle zips
}
@@ -94,14 +97,14 @@ package_java21-openjfx() {
'gtk3: GTK3 support',
'webkit2gtk: Web support'
)
- provides=(java21-openjfx=${pkgver%%.*})
+ provides=(java-openjfx=${pkgver%%.*})
cd $_jfxdir
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
+ cp -dr --no-preserve=ownership build/sdk/legal "${pkgdir}"/usr/share/licenses/java-${pkgver%%.*}-openjfx
}
package_java21-openjfx-doc() {
@@ -109,8 +112,8 @@ package_java21-openjfx-doc() {
cd $_jfxdir
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
+ cp -dr --no-preserve=ownership build/javadoc "${pkgdir}"/usr/share/doc/java-${pkgver%%.*}-openjfx
+ ln -s java-${pkgver%%.*}-openjfx "${pkgdir}"/usr/share/licenses/java-${pkgver%%.*}-openjfx-doc
}
package_java21-openjfx-src() {
@@ -119,7 +122,7 @@ package_java21-openjfx-src() {
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
+ ln -s java-${pkgver%%.*}-openjfx "${pkgdir}"/usr/share/licenses/java-${pkgver%%.*}-openjfx-src
}
# vim: ts=2 sw=2 et:
diff --git a/gradle.properties b/gradle.properties
index 56d4684..eaf8704 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -1,3 +1,3 @@
COMPILE_MEDIA = true
-COMPILE_WEBKIT = true
+COMPILE_WEBKIT = false
CONF = Release
Narwhal commented on 2024-04-10 08:08 (UTC)
The checksum for java-openjfx-21.0.3+1.tar.gz
seems incorrect. Validation fails.
Pinned Comments
Freso commented on 2024-04-21 11:59 (UTC)
Patches etc. are very welcome at https://gitlab.archlinux.org/freso/java-openjfx (
java21-openjfx
branch) if you have any suggestions for how to fix the package. :)Disabling the building of WebKit seems to unbreak the build. I’m not sure how essential the WebKit parts are to JavaFX overall, so a bit wary about changing this part of the PKGBUILD here. For anyone who wants to try it out, you can grab the package from this branch: https://gitlab.archlinux.org/freso/java-openjfx/-/tree/java21-openjfx-no-webkit