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

package info (click to toggle)
puppetserver 8.7.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,456 kB
  • sloc: ruby: 5,764; sh: 997; java: 221; xml: 111; makefile: 94
file content (20 lines) | stat: -rw-r--r-- 996 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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: puppetserver/project.clj
===================================================================
--- puppetserver.orig/project.clj
+++ puppetserver/project.clj
@@ -129,7 +129,7 @@
                                             (throw unsupported-ex))
                                         11 ["-Djava.security.properties==./dev-resources/java.security.jdk11on-fips"]
                                         17 ["-Djava.security.properties==./dev-resources/java.security.jdk11on-fips"]
-                                        (throw unsupported-ex)))}
+                                        (do)))}
              :fips [:defaults :fips-deps]
 
              :testutils {:source-paths ["test/unit" "test/integration"]}