[MacPorts] #69299: postgresql-jdbc @42.2.19: Unresolved reference: experimentalWarning

MacPorts noreply at macports.org
Wed Feb 19 19:47:17 UTC 2025


#69299: postgresql-jdbc @42.2.19: Unresolved reference: experimentalWarning
------------------------------+--------------------
  Reporter:  minfrin          |      Owner:  (none)
      Type:  defect           |     Status:  new
  Priority:  Normal           |  Milestone:
 Component:  ports            |    Version:
Resolution:                   |   Keywords:
      Port:  postgresql-jdbc  |
------------------------------+--------------------

Comment (by beefstew):

 Same result on arm64. I worked around by downloading the driver from the
 upstream project: https://jdbc.postgresql.org/download/


 {{{
 version:1
 :debug:main Starting logging for postgresql-jdbc @42.2.19_0
 :debug:sysinfo macOS 15.2 (darwin/24.2.0) arch arm
 :debug:sysinfo MacPorts 2.10.5
 :debug:sysinfo Xcode 16.2, CLT 16.2.0.0.1.1733547573
 :debug:sysinfo SDK 15
 :debug:sysinfo MACOSX_DEPLOYMENT_TARGET: 15.0
 :debug:main Fetching postgresql-jdbc-42.2.19_0.any_any.noarch.tbz2 archive
 size
 :msg:main --->  Computing dependencies for postgresql-jdbc:info:main
 .:debug:main postgresql-jdbc has no conflicts
 :debug:main Searching for dependency: gradle
 :debug:main Didn't find receipt, going to depspec file for: gradle
 :debug:main Opening port in directory:
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/devel/gradle
 :debug:main OS darwin/24.2.0 (macOS 15.2) arch arm
 :debug:main Sourcing PortGroup java 1.0 from
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/_resources/port1.0/group/java-1.0.tcl
 :debug:main universal_variant is false, so not adding the default
 universal variant
 :debug:main Running callback
 portconfigure::add_automatic_compiler_dependencies
 :debug:main Finished running callback
 portconfigure::add_automatic_compiler_dependencies
 :debug:main Running callback
 portbuild::add_automatic_buildsystem_dependencies
 :debug:main Finished running callback
 portbuild::add_automatic_buildsystem_dependencies
 :debug:main Running callback portstartupitem::add_notes
 :debug:main Finished running callback portstartupitem::add_notes
 :debug:main Running callback java::java_set_env
 :debug:main java-portgroup: Trying to find JVM version: 1.8+
 :debug:main Redefining java fallback openjdk8 to openjdk8-zulu for arm
 compatibility
 :debug:main java-portgroup: Detected JVMs: 23
 /opt/local/Library/Java/JavaVirtualMachines/jdk-23-macports.jdk/Contents/Home
 22 /opt/local/Library/Java/JavaVirtualMachines/jdk-22-azul-
 zulu.jdk/Contents/Home
 :debug:main java-portgroup: Discovered matching JAVA_HOME:
 /opt/local/Library/Java/JavaVirtualMachines/jdk-23-macports.jdk/Contents/Home
 :debug:main Finished running callback java::java_set_env
 :debug:main Searching for dependency: openjdk8-zulu
 :debug:main Didn't find receipt, going to depspec file for: openjdk8-zulu
 :debug:main Opening port in directory:
 /opt/local/var/macports/sources/rsync.macports.org/macports/release/tarballs/ports/java/openjdk8-zulu
 :debug:main OS darwin/24.2.0 (macOS 15.2) arch arm
 :debug:main universal_variant is false, so not adding the default
 universal variant
 :debug:main Running callback
 portconfigure::add_automatic_compiler_dependencies
 :debug:main Finished running callback
 portconfigure::add_automatic_compiler_dependencies
 :debug:main Running callback
 portbuild::add_automatic_buildsystem_dependencies
 :debug:main Finished running callback
 portbuild::add_automatic_buildsystem_dependencies
 :debug:main Running callback portstartupitem::add_notes
 :debug:main Finished running callback portstartupitem::add_notes
 :info:main .:debug:main gradle has no conflicts
 :debug:main Fetching gradle-8.12.1_0.darwin_any.noarch.tbz2 archive size
 :info:main .:debug:main openjdk8-zulu has no conflicts
 :debug:main Fetching openjdk8-zulu-8.84.0.15_0.darwin_any.arm64.tbz2
 archive size
 :debug:main Executing org.macports.main (postgresql-jdbc)
 :debug:main dropping privileges: euid changed to 502, egid changed to 503.
 :debug:main Privilege de-escalation not attempted as not running as root.
 :debug:archivefetch archivefetch phase started at Wed Feb 19 14:28:12 EST
 2025
 :msg:archivefetch --->  Fetching archive for postgresql-jdbc
 :debug:archivefetch Executing org.macports.archivefetch (postgresql-jdbc)
 :debug:archivefetch euid/egid changed to: 0/0
 :debug:archivefetch chowned /opt/local/var/macports/incoming to macports
 :debug:archivefetch euid/egid changed to: 502/503
 :info:archivefetch --->  postgresql-jdbc-42.2.19_0.any_any.noarch.tbz2
 doesn't seem to exist in /opt/local/var/macports/incoming/verified
 :msg:archivefetch --->  Attempting to fetch postgresql-
 jdbc-42.2.19_0.any_any.noarch.tbz2 from
 https://mirrors.mit.edu/macports/packages/postgresql-jdbc
 :debug:archivefetch Fetching archive failed: The requested URL returned
 error: 404
 :msg:archivefetch --->  Attempting to fetch postgresql-
 jdbc-42.2.19_0.any_any.noarch.tbz2 from
 http://bos.us.packages.macports.org/postgresql-jdbc
 :debug:archivefetch Fetching archive failed: The requested URL returned
 error: 404
 :msg:archivefetch --->  Attempting to fetch postgresql-
 jdbc-42.2.19_0.any_any.noarch.tbz2 from
 https://ywg.ca.packages.macports.org/mirror/macports/packages/postgresql-
 jdbc
 :debug:archivefetch Fetching archive failed: The requested URL returned
 error: 404
 :debug:archivefetch Privilege de-escalation not attempted as not running
 as root.
 :debug:fetch fetch phase started at Wed Feb 19 14:28:13 EST 2025
 :notice:fetch --->  Fetching distfiles for postgresql-jdbc
 :debug:fetch elevating privileges for fetch: euid changed to 0, egid
 changed to 0.
 :debug:fetch dropping privileges: euid changed to 502, egid changed to
 503.
 :debug:fetch Executing proc-pre-org.macports.fetch-fetch-0
 :debug:fetch java-portgroup: Trying to find JVM version: 1.8*
 :debug:fetch java-portgroup: Detected JVMs: 8
 /opt/local/Library/Java/JavaVirtualMachines/openjdk8-zulu/Contents/Home 23
 /opt/local/Library/Java/JavaVirtualMachines/jdk-23-macports.jdk/Contents/Home
 22 /opt/local/Library/Java/JavaVirtualMachines/jdk-22-azul-
 zulu.jdk/Contents/Home
 :debug:fetch java-portgroup: Discovered matching JAVA_HOME:
 /opt/local/Library/Java/JavaVirtualMachines/openjdk8-zulu/Contents/Home
 :debug:fetch Executing org.macports.fetch (postgresql-jdbc)
 :info:fetch --->  postgresql-jdbc-42.2.19.src.tar.gz does not exist in
 /opt/local/var/macports/distfiles/postgresql-jdbc
 :notice:fetch --->  Attempting to fetch postgresql-jdbc-42.2.19.src.tar.gz
 from https://mirrors.mit.edu/macports/distfiles/postgresql-jdbc
 :debug:fetch Privilege de-escalation not attempted as not running as root.
 :debug:checksum checksum phase started at Wed Feb 19 14:28:13 EST 2025
 :notice:checksum --->  Verifying checksums for postgresql-jdbc
 :debug:checksum Executing org.macports.checksum (postgresql-jdbc)
 :info:checksum --->  Checksumming postgresql-jdbc-42.2.19.src.tar.gz
 :debug:checksum Calculated (rmd160) is
 881895379df659e0a1aa0700c9ed47ba51393f64
 :debug:checksum Correct (rmd160) checksum for postgresql-
 jdbc-42.2.19.src.tar.gz
 :debug:checksum Calculated (sha256) is
 d30257ed692703f73adc6136b204c39f33151a5076203649f52f786fccfd3a2c
 :debug:checksum Correct (sha256) checksum for postgresql-
 jdbc-42.2.19.src.tar.gz
 :debug:checksum Calculated (size) is 1440741
 :debug:checksum Correct (size) checksum for postgresql-
 jdbc-42.2.19.src.tar.gz
 :debug:checksum Privilege de-escalation not attempted as not running as
 root.
 :debug:extract extract phase started at Wed Feb 19 14:28:13 EST 2025
 :notice:extract --->  Extracting postgresql-jdbc
 :debug:extract Executing org.macports.extract (postgresql-jdbc)
 :info:extract --->  Extracting postgresql-jdbc-42.2.19.src.tar.gz
 :debug:extract setting option extract.args to
 '/opt/local/var/macports/distfiles/postgresql-jdbc/postgresql-
 jdbc-42.2.19.src.tar.gz'
 :debug:extract Environment:
 :debug:extract CC_PRINT_OPTIONS='YES'
 :debug:extract
 CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work/.CC_PRINT_OPTIONS'
 :debug:extract CPATH='/opt/local/include'
 :debug:extract DEVELOPER_DIR='/Library/Developer/CommandLineTools'
 :debug:extract LIBRARY_PATH='/opt/local/lib'
 :debug:extract MACOSX_DEPLOYMENT_TARGET='15.0'
 :debug:extract
 SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk'
 :debug:extract SOURCE_DATE_EPOCH='1734811535'
 :info:extract Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles
 /postgresql-jdbc/postgresql-jdbc-42.2.19.src.tar.gz' | /usr/bin/tar -xf -
 :debug:extract system:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work" && /usr/bin/gzip -dc '/opt/local/var/macports/distfiles
 /postgresql-jdbc/postgresql-jdbc-42.2.19.src.tar.gz' | /usr/bin/tar -xf -
 :debug:extract euid/egid changed to: 0/0
 :debug:extract chowned
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work to macports
 :debug:extract euid/egid changed to: 502/503
 :debug:extract Privilege de-escalation not attempted as not running as
 root.
 :debug:patch patch phase started at Wed Feb 19 14:28:13 EST 2025
 :debug:patch Executing org.macports.patch (postgresql-jdbc)
 :debug:patch Privilege de-escalation not attempted as not running as root.
 :debug:configure configure phase started at Wed Feb 19 14:28:13 EST 2025
 :notice:configure --->  Configuring postgresql-jdbc
 :debug:configure Preferred compilers: clang macports-clang-18 macports-
 clang-17 macports-clang-16 macports-clang-15 macports-clang-14 macports-
 clang-13 macports-gcc-14 macports-gcc-13 macports-gcc-12 macports-gcc-11
 macports-gcc-10
 :debug:configure Using compiler 'Xcode Clang'
 :debug:configure Executing org.macports.configure (postgresql-jdbc)
 :debug:configure Executing portconfigure::configure_finish
 :debug:configure Privilege de-escalation not attempted as not running as
 root.
 :debug:build build phase started at Wed Feb 19 14:28:13 EST 2025
 :notice:build --->  Building postgresql-jdbc
 :debug:build Executing org.macports.build (postgresql-jdbc)
 :debug:build Environment:
 :debug:build CC_PRINT_OPTIONS='YES'
 :debug:build
 CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work/.CC_PRINT_OPTIONS'
 :debug:build CPATH='/opt/local/include'
 :debug:build DEVELOPER_DIR='/Library/Developer/CommandLineTools'
 :debug:build
 JAVA_HOME='/opt/local/Library/Java/JavaVirtualMachines/openjdk8-zulu/Contents/Home'
 :debug:build LIBRARY_PATH='/opt/local/lib'
 :debug:build MACOSX_DEPLOYMENT_TARGET='15.0'
 :debug:build
 SDKROOT='/Library/Developer/CommandLineTools/SDKs/MacOSX15.sdk'
 :debug:build SOURCE_DATE_EPOCH='1734811535'
 :info:build Executing:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work/postgresql-jdbc-42.2-19.src" && /opt/local/bin/gradle assemble
 --gradle-user-
 home=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work/gradle --project-prop=pgjdbc.skip.jre6 --project-
 prop=pgjdbc.skip.jre7
 :debug:build system:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work/postgresql-jdbc-42.2-19.src" && /opt/local/bin/gradle assemble
 --gradle-user-
 home=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work/gradle --project-prop=pgjdbc.skip.jre6 --project-
 prop=pgjdbc.skip.jre7
 :info:build Welcome to Gradle 8.12.1!
 :info:build Here are the highlights of this release:
 :info:build  - Enhanced error and warning reporting with the Problems API
 :info:build  - File-system watching support on Alpine Linux
 :info:build  - Build and test Swift 6 libraries and apps
 :info:build For more details see https://docs.gradle.org/8.12.1/release-
 notes.html
 :info:build Starting a Gradle Daemon (subsequent builds will be faster)
 :info:build w:
 file:///opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work/postgresql-jdbc-42.2-19.src/settings.gradle.kts:35:5: '`gradle-
 enterprise`: PluginDependencySpec' is deprecated. Gradle Enterprise has
 been renamed to Develocity
 :info:build w:
 file:///opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work/postgresql-jdbc-42.2-19.src/settings.gradle.kts:66:5:
 'gradleEnterprise(GradleEnterpriseExtension.() -> Unit): Unit' is
 deprecated. Use the 'develocity' extension instead
 :info:build > Configure project :buildSrc
 :info:build e:
 file:///opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work/postgresql-jdbc-42.2-19.src/buildSrc/build.gradle.kts:25:5:
 Unresolved reference: experimentalWarning
 :info:build e:
 file:///opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work/postgresql-jdbc-42.2-19.src/buildSrc/build.gradle.kts:29:5:
 Unresolved reference: sourceCompatibility
 :info:build e:
 file:///opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work/postgresql-jdbc-42.2-19.src/buildSrc/build.gradle.kts:30:5:
 Unresolved reference: targetCompatibility
 :info:build w:
 file:///opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work/postgresql-jdbc-42.2-19.src/buildSrc/build.gradle.kts:31:5:
 'kotlinOptions(KotlinJvmOptionsDeprecated /* = KotlinJvmOptions */.() ->
 Unit): Unit' is deprecated. Please migrate to the compilerOptions DSL.
 More details are here: https://kotl.in/u1r8ln
 :info:build w:
 file:///opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work/postgresql-jdbc-42.2-19.src/buildSrc/build.gradle.kts:40:5:
 'setter for dirMode: Int?' is deprecated. Deprecated in Java
 :info:build w:
 file:///opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work/postgresql-jdbc-42.2-19.src/buildSrc/build.gradle.kts:41:5:
 'setter for fileMode: Int?' is deprecated. Deprecated in Java
 :info:build [Incubating] Problems report is available at:
 file:///opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work/postgresql-jdbc-42.2-19.src/build/reports/problems/problems-
 report.html
 :info:build FAILURE: Build failed with an exception.
 :info:build * Where:
 :info:build Build file
 '/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work/postgresql-jdbc-42.2-19.src/buildSrc/build.gradle.kts' line: 25
 :info:build * What went wrong:
 :info:build Script compilation errors:
 :info:build   Line 25:     experimentalWarning.set(false)
 :info:build                ^ Unresolved reference: experimentalWarning
 :info:build   Line 29:     sourceCompatibility = "unused"
 :info:build                ^ Unresolved reference: sourceCompatibility
 :info:build   Line 30:     targetCompatibility = "unused"
 :info:build                ^ Unresolved reference: targetCompatibility
 :info:build 3 errors
 :info:build * Try:
 :info:build > Run with --stacktrace option to get the stack trace.
 :info:build > Run with --info or --debug option to get more log output.
 :info:build > Get more help at https://help.gradle.org.
 :info:build Deprecated Gradle features were used in this build, making it
 incompatible with Gradle 9.0.
 :info:build You can use '--warning-mode all' to show the individual
 deprecation warnings and determine if they come from your own scripts or
 plugins.
 :info:build For more on this, please refer to
 https://docs.gradle.org/8.12.1/userguide/command_line_interface.html#sec:command_line_warnings
 in the Gradle documentation.
 :info:build BUILD FAILED in 1m 2s
 :info:build WARNING: The following functionality has been deprecated and
 will be removed in the next major release of the Develocity Gradle plugin.
 Run with '-Ddevelocity.deprecation.captureOrigin=true' to see where the
 deprecated functionality is being used. For assistance with migration, see
 https://gradle.com/help/gradle-plugin-develocity-migration.
 :info:build - The "com.gradle.enterprise" plugin has been replaced by
 "com.gradle.develocity"
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work/postgresql-jdbc-42.2-19.src" && /opt/local/bin/gradle assemble
 --gradle-user-
 home=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/work/gradle --project-prop=pgjdbc.skip.jre6 --project-
 prop=pgjdbc.skip.jre7
 :info:build Exit code: 1
 :error:build Failed to build postgresql-jdbc: command execution failed
 :debug:build Error code: CHILDSTATUS 18624 1
 :debug:build Backtrace: command execution failed
 :debug:build     while executing
 :debug:build "system {*}$notty {*}$callback {*}$nice $fullcmdstring"
 :debug:build     invoked from within
 :debug:build "command_exec -callback
 portprogress::target_progress_callback build"
 :debug:build     (procedure "portbuild::build_main" line 10)
 :debug:build     invoked from within
 :debug:build "$procedure $targetname"
 :error:build See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports
 .org_macports_release_tarballs_ports_java_postgresql-jdbc/postgresql-
 jdbc/main.log for details.
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/69299#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list