summaryrefslogtreecommitdiff
path: root/devel/apache-commons-daemon/files
diff options
context:
space:
mode:
Diffstat (limited to 'devel/apache-commons-daemon/files')
-rw-r--r--devel/apache-commons-daemon/files/patch-configure11
-rw-r--r--devel/apache-commons-daemon/files/patch-native_arguments.c13
-rw-r--r--devel/apache-commons-daemon/files/patch-native_help.c11
-rw-r--r--devel/apache-commons-daemon/files/patch-native_jsvc-unix.c16
4 files changed, 31 insertions, 20 deletions
diff --git a/devel/apache-commons-daemon/files/patch-configure b/devel/apache-commons-daemon/files/patch-configure
deleted file mode 100644
index 240a0979310e..000000000000
--- a/devel/apache-commons-daemon/files/patch-configure
+++ /dev/null
@@ -1,11 +0,0 @@
---- configure.orig 2018-06-29 12:40:33 UTC
-+++ configure
-@@ -3504,7 +3504,7 @@ then
- $as_echo "jni_md.h found in $JAVA_HOME/$JAVA_INC" >&6; }
- INCLUDES="$INCLUDES -I$JAVA_HOME/include -I$JAVA_HOME/$JAVA_INC"
- else
-- INCLUDES="$INCLUDES -I$JAVA_HOME/include -I$JAVA_HOME/include/$supported_os"
-+ INCLUDES="$INCLUDES -I$JAVA_HOME/include -I$JAVA_HOME/include/$JAVA_OS"
- fi
-
- if test "$GCC" = "yes"
diff --git a/devel/apache-commons-daemon/files/patch-native_arguments.c b/devel/apache-commons-daemon/files/patch-native_arguments.c
index a60ca3b03803..ea9a407ecbdc 100644
--- a/devel/apache-commons-daemon/files/patch-native_arguments.c
+++ b/devel/apache-commons-daemon/files/patch-native_arguments.c
@@ -1,4 +1,4 @@
---- native/arguments.c.orig 2019-09-04 15:44:04 UTC
+--- native/arguments.c.orig 2025-01-06 00:00:00 UTC
+++ native/arguments.c
@@ -157,7 +157,7 @@ static arg_data *parse(int argc, char *argv[])
args->help = false; /* Don't display help */
@@ -20,3 +20,14 @@
}
else if (!strcmp(argv[x], "-restarts")) {
temp = optional(argc, argv, x++);
+@@ -424,6 +420,10 @@ static arg_data *parse(int argc, char *argv[])
+ }
+ /* Java 11 specific options */
+ else if (!strncmp(argv[x], "--enable-preview", 16)) {
++ args->opts[args->onum++] = strdup(argv[x]);
++ }
++ /* Java 21 specific options */
++ else if (!strncmp(argv[x], "--enable-native-access=", 23)) {
+ args->opts[args->onum++] = strdup(argv[x]);
+ }
+ else if (*argv[x] == '-') {
diff --git a/devel/apache-commons-daemon/files/patch-native_help.c b/devel/apache-commons-daemon/files/patch-native_help.c
new file mode 100644
index 000000000000..84af961ceafa
--- /dev/null
+++ b/devel/apache-commons-daemon/files/patch-native_help.c
@@ -0,0 +1,11 @@
+--- native/help.c.orig 2025-01-06 00:00:00 UTC
++++ native/help.c
+@@ -123,6 +123,8 @@ void help(home_data *data)
+ printf(" Refer java help for possible values.\n");
+ printf(" --enable-preview\n");
+ printf(" Java 11 --enable-preview option. Passed as it is to JVM\n");
++ printf(" --enable-native-access=<module name>\n");
++ printf(" Java 21 --enable-native-access option. Passed as it is to JVM\n");
+ printf("\njsvc (Apache Commons Daemon) " JSVC_VERSION_STRING "\n");
+ printf("Copyright (c) 1999-2025 Apache Software Foundation.\n");
+
diff --git a/devel/apache-commons-daemon/files/patch-native_jsvc-unix.c b/devel/apache-commons-daemon/files/patch-native_jsvc-unix.c
index c94778a6a1af..8b2486ff416f 100644
--- a/devel/apache-commons-daemon/files/patch-native_jsvc-unix.c
+++ b/devel/apache-commons-daemon/files/patch-native_jsvc-unix.c
@@ -1,6 +1,6 @@
---- native/jsvc-unix.c.orig 2017-11-15 11:51:22 UTC
+--- native/jsvc-unix.c.orig 2025-01-06 00:00:00 UTC
+++ native/jsvc-unix.c
-@@ -717,18 +717,13 @@ static void remove_tmp_file(arg_data *ar
+@@ -731,18 +731,13 @@ static int wait_child(arg_data *args, int pid)
*/
static int wait_child(arg_data *args, int pid)
{
@@ -21,7 +21,7 @@
while (count > 0) {
sleep(1);
/* check if the controler is still running */
-@@ -767,7 +762,6 @@ static int wait_child(arg_data *args, in
+@@ -781,7 +776,6 @@ static int wait_child(arg_data *args, int pid)
}
}
}
@@ -29,7 +29,7 @@
count--;
}
/* It takes more than the wait time to start,
-@@ -901,11 +895,11 @@ static int child(arg_data *args, home_da
+@@ -915,11 +909,11 @@ static int child(arg_data *args, home_data *data, uid_
create_tmp_file(args);
while (!stopping) {
#if defined(OSD_POSIX)
@@ -41,9 +41,9 @@
- sleep(60);
+ sleep(1);
#endif
- if(doreopen) {
+ if (doreopen) {
doreopen = false;
-@@ -924,7 +918,7 @@ static int child(arg_data *args, home_da
+@@ -938,7 +932,7 @@ static int child(arg_data *args, home_data *data, uid_
return 6;
if (doreload == true)
@@ -52,7 +52,7 @@
else
ret = 0;
-@@ -1341,10 +1335,10 @@ static int run_controller(arg_data *args
+@@ -1348,10 +1342,10 @@ static int run_controller(arg_data *args, home_data *d
if (args->vers != true && args->chck != true && status != 122)
remove_pid_file(args, pid);
@@ -65,7 +65,7 @@
if (args->restarts == 0) {
log_debug("Service failure, restarts disabled");
return 1;
-@@ -1356,7 +1350,7 @@ static int run_controller(arg_data *args
+@@ -1363,7 +1357,7 @@ static int run_controller(arg_data *args, home_data *d
log_debug("Reloading service");
restarts++;
/* prevent looping */