NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.17k stars 14.19k forks source link

Package request: Webkit support in Java's openjfx #216609

Open nazarewk opened 1 year ago

nazarewk commented 1 year ago

Project description

This change disabled support for Webkit in OpenJDK 11, I need it to execute https://github.com/francescotescari/XiaoMiToolV2 and simply flipping the webkit switch does not allow to build OpenJFX:

nix build -L '.#jdk11_webkit' ``` openjfx-modular-sdk> unpacking sources openjfx-modular-sdk> unpacking source archive /nix/store/6227ca74izyb5yql00xnx2zk7xqy3gyb-source openjfx-modular-sdk> source root is source openjfx-modular-sdk> patching sources openjfx-modular-sdk> configuring openjfx-modular-sdk> no configure script, doing nothing openjfx-modular-sdk> building openjfx-modular-sdk> Welcome to Gradle 7.6! openjfx-modular-sdk> Here are the highlights of this release: openjfx-modular-sdk> - Added support for Java 19. openjfx-modular-sdk> - Introduced `--rerun` flag for individual task rerun. openjfx-modular-sdk> - Improved dependency block for test suites to be strongly typed. openjfx-modular-sdk> - Added a pluggable system for Java toolchains provisioning. openjfx-modular-sdk> For more details see https://docs.gradle.org/7.6/release-notes.html openjfx-modular-sdk> <-------------> 0% INITIALIZING [74ms]<-------------> 0% INITIALIZING [167ms] openjfx-modular-sdk> <-------------> 0% INITIALIZING [267ms]> Evaluating settings<-------------> 0% INITIALIZING [367ms]<-------------> 0% INITIALIZING [467ms]<-------------> 0% INITIALIZING [567ms]<-------------> 0% INITIALIZING [667ms]<-------------> 0% INITIALIZING [767ms]> Evaluating settings > Compiling settings file 'settings.gradle'<-------------> 0% INITIALIZING [867ms]<-------------> 0% INITIALIZING [967ms]<-------------> 0% INITIALIZING [1s]> Evaluating settings<-------------> 0% CONFIGURING [1s]> Loading projects> Building buildSrc> Building buildSrc > :buildSrc> Building buildSrc > :buildSrc > Compiling build file 'buildSrc/build.gradle'> Building buildSrc > :buildSrc<-------------> 7% CONFIGURING [1s]> Building buildSrc> Building buildSrc > :buildSrc:compileGroovy > Resolve dependencies of :buildS<-------------> 7% CONFIGURING [2s]> Building buildSrc > :buildSrc:compileGroovy > Resolve files of :buildSrc:comp<-------------> 7% CONFIGURING [3s]<-------------> 7% CONFIGURING [4s]<-------------> 7% CONFIGURING [5s]> Building buildSrc > :buildSrc:compileGroovy<-------------> 7% CONFIGURING [6s]<-------------> 7% CONFIGURING [7s]<-------------> 7% CONFIGURING [8s]<-------------> 7% CONFIGURING [9s]> Building buildSrc> root project > Compiling build file 'build.gradle'<-------------> 7% CONFIGURING [10s]<-------------> 7% CONFIGURING [11s]<-------------> 7% CONFIGURING [12s]<-------------> 7% CONFIGURING [13s]<-------------> 7% CONFIGURING [14s]<-------------> 7% CONFIGURING [15s]<-------------> 7% CONFIGURING [16s]<-------------> 7% CONFIGURING [17s]<-------------> 7% CONFIGURING [18s]<-------------> 7% CONFIGURING [19s]<-------------> 7% CONFIGURING [20s]> root project> root project > Compiling script 'buildSrc/linux.gradle'> root project openjfx-modular-sdk> > Configure project : openjfx-modular-sdk> ***************************************************************** openjfx-modular-sdk> Unsupported gradle version 7.6 in use. openjfx-modular-sdk> Only version 7.3 is supported. Use this version at your own risk openjfx-modular-sdk> ***************************************************************** openjfx-modular-sdk> gradle.gradleVersion: 7.6 openjfx-modular-sdk> OS_NAME: linux openjfx-modular-sdk> OS_ARCH: amd64 openjfx-modular-sdk> JAVA_HOME: /nix/store/52b54j3ca4inz63il1j7j5ryq57jkyvi-adoptopenjdk-hotspot-bin-11.0.14 openjfx-modular-sdk> JDK_HOME: /nix/store/52b54j3ca4inz63il1j7j5ryq57jkyvi-adoptopenjdk-hotspot-bin-11.0.14 openjfx-modular-sdk> java.runtime.version: 11.0.14.1+1 openjfx-modular-sdk> java version: 11.0.14.1 openjfx-modular-sdk> java build number: 1 openjfx-modular-sdk> jdk.runtime.version: 11.0.14.1+1 openjfx-modular-sdk> jdk version: 11.0.14.1 openjfx-modular-sdk> jdk build number: 1 openjfx-modular-sdk> minimum jdk version: 10 openjfx-modular-sdk> minimum jdk build number: 46 openjfx-modular-sdk> GCC version: gcc10.3.0-OL6.4+1.0 openjfx-modular-sdk> cmake version: 3.22.3 openjfx-modular-sdk> ninja version: 1.8.2 openjfx-modular-sdk> ant version: 1.10.5 openjfx-modular-sdk> HAS_JAVAFX_MODULES: false openjfx-modular-sdk> HAS_UNSUPPORTED_DESKTOP: true openjfx-modular-sdk> STUB_RUNTIME: /nix/store/52b54j3ca4inz63il1j7j5ryq57jkyvi-adoptopenjdk-hotspot-bin-11.0.14 openjfx-modular-sdk> CONF: Release openjfx-modular-sdk> NUM_COMPILE_THREADS: 32 openjfx-modular-sdk> COMPILE_TARGETS: linux openjfx-modular-sdk> COMPILE_FLAGS_FILES: buildSrc/linux.gradle openjfx-modular-sdk> HUDSON_JOB_NAME: not_hudson openjfx-modular-sdk> HUDSON_BUILD_NUMBER: 0000 openjfx-modular-sdk> PROMOTED_BUILD_NUMBER: 0 openjfx-modular-sdk> PRODUCT_NAME: OpenJFX openjfx-modular-sdk> RELEASE_VERSION: 11.0.17 openjfx-modular-sdk> RELEASE_SUFFIX: -internal openjfx-modular-sdk> RELEASE_VERSION_SHORT: 11.0.17-internal openjfx-modular-sdk> RELEASE_VERSION_LONG: 11.0.17-internal+0-2023-02-16-074202 openjfx-modular-sdk> RELEASE_VERSION_PADDED: 11.0.17.0 openjfx-modular-sdk> MAVEN_VERSION: 11.0.17-internal+0-2023-02-16-074202 openjfx-modular-sdk> UPDATE_STUB_CACHE: false openjfx-modular-sdk> openjfx-modular-sdk> openjfx-modular-sdk> <-------------> 7% CONFIGURING [20s]> root project<-------------> 7% CONFIGURING [21s]> root project > Resolve dependencies of :web:icu openjfx-modular-sdk> FAILURE: Build completed with 2 failures. openjfx-modular-sdk> 1: Task failed with an exception. openjfx-modular-sdk> ----------- openjfx-modular-sdk> * Where: openjfx-modular-sdk> Build file '/build/source/build.gradle' line: 4026 openjfx-modular-sdk> * What went wrong: openjfx-modular-sdk> A problem occurred evaluating root project 'source'. openjfx-modular-sdk> > Could not resolve all files for configuration ':web:icu'. openjfx-modular-sdk> > Could not resolve :icu4c-68.2-data-bin-l. openjfx-modular-sdk> Required by: openjfx-modular-sdk> project :web openjfx-modular-sdk> > Could not resolve :icu4c-68.2-data-bin-l. openjfx-modular-sdk> > Could not get resource 'https://download.eclipse.org/eclipse/updates/4.6/R-4.6.3-201703010400/plugins/icu4c-68.2-data-bin-l.zip'. openjfx-modular-sdk> > Could not HEAD 'https://download.eclipse.org/eclipse/updates/4.6/R-4.6.3-201703010400/plugins/icu4c-68.2-data-bin-l.zip'. openjfx-modular-sdk> > download.eclipse.org: Temporary failure in name resolution openjfx-modular-sdk> > Could not resolve :icu4c-68.2-data-bin-l. openjfx-modular-sdk> > Could not get resource 'https://github.com/unicode-org/icu/releases/download/release-68-2/icu4c-68.2-data-bin-l.zip'. openjfx-modular-sdk> > Could not HEAD 'https://github.com/unicode-org/icu/releases/download/release-68-2/icu4c-68.2-data-bin-l.zip'. openjfx-modular-sdk> > github.com: Temporary failure in name resolution openjfx-modular-sdk> * Try: openjfx-modular-sdk> > Run with --stacktrace option to get the stack trace. openjfx-modular-sdk> > Run with --info or --debug option to get more log output. openjfx-modular-sdk> > Run with --scan to get full insights. openjfx-modular-sdk> ============================================================================== openjfx-modular-sdk> 2: Task failed with an exception. openjfx-modular-sdk> ----------- openjfx-modular-sdk> * Where: openjfx-modular-sdk> Build file '/build/source/build.gradle' line: 1622 openjfx-modular-sdk> * What went wrong: openjfx-modular-sdk> A problem occurred configuring root project 'source'. openjfx-modular-sdk> > Failed to notify project evaluation listener. openjfx-modular-sdk> > Could not get unknown property 'moduleEmptyPublicationJarLinux' for task set of type org.gradle.api.internal.tasks.DefaultTaskContainer. openjfx-modular-sdk> > Could not get unknown property 'moduleEmptyPublicationJarLinux' for task set of type org.gradle.api.internal.tasks.DefaultTaskContainer. openjfx-modular-sdk> > Could not get unknown property 'moduleEmptyPublicationJarLinux' for task set of type org.gradle.api.internal.tasks.DefaultTaskContainer. openjfx-modular-sdk> > Could not get unknown property 'moduleEmptyPublicationJarLinux' for task set of type org.gradle.api.internal.tasks.DefaultTaskContainer. openjfx-modular-sdk> > Could not get unknown property 'moduleEmptyPublicationJarLinux' for task set of type org.gradle.api.internal.tasks.DefaultTaskContainer. openjfx-modular-sdk> > Could not get unknown property 'moduleEmptyPublicationJarLinux' for task set of type org.gradle.api.internal.tasks.DefaultTaskContainer. openjfx-modular-sdk> * Try: openjfx-modular-sdk> > Run with --stacktrace option to get the stack trace. openjfx-modular-sdk> > Run with --info or --debug option to get more log output. openjfx-modular-sdk> > Run with --scan to get full insights. openjfx-modular-sdk> ============================================================================== openjfx-modular-sdk> * Get more help at https://help.gradle.org openjfx-modular-sdk> Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0. openjfx-modular-sdk> You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. openjfx-modular-sdk> See https://docs.gradle.org/7.6/userguide/command_line_interface.html#sec:command_line_warnings openjfx-modular-sdk> BUILD FAILED in 22s openjfx-modular-sdk> 2 actionable tasks: 2 executed openjfx-modular-sdk> openjfx-modular-sdk> openjfx-modular-sdk> <-------------> 0% WAITING> IDLE error: builder for '/nix/store/1kyv481igpra347agxlk5sqh26g0hid7-openjfx-modular-sdk-11.0.17-1.drv' failed with exit code 1; last 10 log lines: > > You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins. > > See https://docs.gradle.org/7.6/userguide/command_line_interface.html#sec:command_line_warnings > > BUILD FAILED in 22s > 2 actionable tasks: 2 executed > > > <-------------> 0% WAITING> IDLE For full logs, run 'nix log /nix/store/1kyv481igpra347agxlk5sqh26g0hid7-openjfx-modular-sdk-11.0.17-1.drv'. error: 1 dependencies of derivation '/nix/store/jncwwx954sc16v12jjzbc05n5ahiymgk-openjdk-11.0.17+8.drv' failed to build ```

see https://github.com/NixOS/nixpkgs/pull/216611

Metadata

"just" rebuild openjfx11 with COMPILE_WEBKIT flag

shdpl commented 1 year ago

This helped me to package and run xiaomitoolv2 for my system ( as long as I replaced built-in res/tools with systemwide binaries ).