[packages/java-commons-daemon] Up to 1.6.1
arekm
arekm at pld-linux.org
Fri Nov 27 22:02:55 CET 2026
commit f01c02d750510a4d48e87161956190998b16c677
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Fri Nov 27 15:59:09 2026 +0100
Up to 1.6.1
Drop pidfile-open-rdwr.patch, fixed upstream.
build.xml | 2 +-
java-commons-daemon.spec | 8 +++-----
pidfile-open-rdwr.patch | 34 ----------------------------------
3 files changed, 4 insertions(+), 40 deletions(-)
---
diff --git a/java-commons-daemon.spec b/java-commons-daemon.spec
index 837748e..2d319fe 100644
--- a/java-commons-daemon.spec
+++ b/java-commons-daemon.spec
@@ -7,17 +7,16 @@
Summary: Commons Daemon - controlling of Java daemons
Summary(pl.UTF-8): Commons Daemon - kontrolowanie demonów w Javie
Name: java-commons-daemon
-Version: 1.5.1
-Release: 3
+Version: 1.6.1
+Release: 1
License: Apache v2.0
Group: Libraries/Java
# -Source0: http://www.apache.org/dist/commons/daemon/source/commons-daemon-%{version}-src.tar.gz
Source0: https://archive.apache.org/dist/commons/daemon/source/commons-daemon-%{version}-src.tar.gz
-# Source0-md5: 43b2264d372280389f8997e7ee3d4c01
+# Source0-md5: a827264ff728292af0710985c615ceaf
# Ant build file for building without Maven
Source1: build.xml
Patch0: stdbool.patch
-Patch1: pidfile-open-rdwr.patch
URL: https://commons.apache.org/proper/commons-daemon/
BuildRequires: ant >= 1.4.1
BuildRequires: autoconf >= 2.53
@@ -74,7 +73,6 @@ Dokumentacja do Commons Daemon.
%prep
%setup -q -n %{srcname}-%{version}-src
%patch -P0 -p1
-%patch -P1 -p1
cp -a %{SOURCE1} .
%build
diff --git a/build.xml b/build.xml
index 53423ef..a1a5774 100644
--- a/build.xml
+++ b/build.xml
@@ -1,7 +1,7 @@
<project name="Daemon" default="jar" basedir=".">
<property name="component.name" value="daemon"/>
- <property name="component.version" value="1.5.1"/>
+ <property name="component.version" value="1.6.1"/>
<property name="build.home" value="target"/>
<property name="dist.home" value="dist"/>
diff --git a/pidfile-open-rdwr.patch b/pidfile-open-rdwr.patch
deleted file mode 100644
index ab1bb3e..0000000
--- a/pidfile-open-rdwr.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-jsvc: open pidfile O_RDWR so lockf(F_LOCK) can take an exclusive lock
-
-lockf(F_LOCK, ...) acquires an exclusive (write) lock; on Linux glibc the
-fcntl backend rejects it with EBADF when the underlying fd was opened
-O_RDONLY. wait_child() and get_pidf() open the pidfile read-only and then
-call lockf(F_LOCK), which always fails with errno 9 ("Bad file descriptor")
-on Linux. The lockf return value was ignored prior to 1.5.x; 1.5.1 started
-checking it, so the long-standing bug now aborts startup ("wait_child:
-Failed to lock PID file ... due to [9]").
-
-Open the pidfile O_RDWR in both call sites so the exclusive lock request
-matches the open mode. Both callers run as root in the jsvc parent
-process, so RDWR access is granted.
-
---- commons-daemon-1.5.1-src/src/native/unix/native/jsvc-unix.c.orig
-+++ commons-daemon-1.5.1-src/src/native/unix/native/jsvc-unix.c
-@@ -673,7 +673,7 @@
- int i;
- char buff[80];
-
-- fd = open(args->pidf, O_RDONLY, 0);
-+ fd = open(args->pidf, O_RDWR, 0);
- if (!quiet)
- log_debug("get_pidf: %d in %s", fd, args->pidf);
- if (fd < 0) {
-@@ -778,7 +778,7 @@
- }
-
- /* check if the pid file process exists */
-- fd = open(args->pidf, O_RDONLY);
-+ fd = open(args->pidf, O_RDWR);
- if (fd < 0 && havejvm) {
- /* something has gone wrong the JVM has stopped */
- return 1;
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/java-commons-daemon.git/commitdiff/f01c02d750510a4d48e87161956190998b16c677
More information about the pld-cvs-commit
mailing list