File: resolve-ftbfs-with-java-21.patch

package info (click to toggle)
puppetdb 8.8.1-1~exp1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 19,692 kB
  • sloc: javascript: 23,285; ruby: 5,620; sh: 3,457; python: 389; xml: 114; makefile: 38
file content (21 lines) | stat: -rw-r--r-- 1,306 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Resolve FTBFS with Java 21
Author: Jérôme Charaoui <jerome@riseup.net>
Forwarded: not-needed

This removes an exception from project.clj's :fips profile which throws an
exception when Java 21 is used, regardless of whether the profile is activated
or not.
Index: puppetdb/project.clj
===================================================================
--- puppetdb.orig/project.clj
+++ puppetdb/project.clj
@@ -253,8 +253,7 @@
                                           8 "-Djava.security.properties==dev-resources/jdk8-fips-security"
                                           11 "-Djava.security.properties==dev-resources/jdk11on-fips-security"
                                           17 "-Djava.security.properties==dev-resources/jdk11on-fips-security"
-                                          (throw (ex-info "Unsupported major Java version. Expects 8, 11, or 17."
-                                                          {:major feature :minor interim})))))}]
+                                          true)))}]
              :kondo {:dependencies [[clj-kondo "2024.05.24"]]}
              :ezbake {:dependencies ^:replace [;; NOTE: we need to explicitly pass in `nil` values
                                                ;; for the version numbers here in order to correctly