[packages/cvsnt] Rel 21; fix build and segfault
arekm
arekm at pld-linux.org
Sun Mar 8 13:23:59 CET 2026
commit 24983ed0861b8ef6f2811d28afe524e32e097c00
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Sun Mar 8 13:23:45 2026 +0100
Rel 21; fix build and segfault
cvsnt.spec | 5 ++++-
segv.patch | 18 ++++++++++++++++++
2 files changed, 22 insertions(+), 1 deletion(-)
---
diff --git a/cvsnt.spec b/cvsnt.spec
index af26cbe..403bc21 100644
--- a/cvsnt.spec
+++ b/cvsnt.spec
@@ -23,7 +23,7 @@ Summary(pl.UTF-8): Concurrent Versioning System
Name: cvsnt
# http://www.cvsnt.org/archive/2.5_stable tell which version is stable
Version: 2.5.05.3744
-Release: 20
+Release: 21
License: GPL v2+/LGPL v2+
Group: Development/Version Control
Source0: http://www.cvsnt.org/archive/%{name}-%{version}.tar.gz
@@ -42,6 +42,7 @@ Patch7: cxx.patch
Patch8: openssl.patch
Patch9: gcc10.patch
Patch10: time.patch
+Patch11: segv.patch
URL: http://www.cvsnt.org/
BuildRequires: autoconf >= 2.58
BuildRequires: automake >= 1:1.7.9
@@ -219,6 +220,7 @@ CVSNT version of RCS tools.
%patch -P8 -p1
%patch -P9 -p1
%patch -P10 -p1
+%patch -P11 -p1
rm -r protocols/ntlm
@@ -228,6 +230,7 @@ rm -r protocols/ntlm
%{__autoconf}
%{__automake}
%configure \
+ CFLAGS="-std=gnu89 %{rpmcflags}" \
--enable-mdns \
--enable-sqlite \
--enable-mysql \
diff --git a/segv.patch b/segv.patch
new file mode 100644
index 0000000..161fc7c
--- /dev/null
+++ b/segv.patch
@@ -0,0 +1,18 @@
+--- cvsnt-2.5.05.3744/cvsapi/unix/LibraryAccess.cpp~ 2007-11-02 12:14:41.000000000 +0100
++++ cvsnt-2.5.05.3744/cvsapi/unix/LibraryAccess.cpp 2026-03-08 13:19:12.169556869 +0100
+@@ -42,13 +42,13 @@ namespace
+ static char save_oracle_home[200], new_oracle_home[200];
+ static void *save_m_lib;
+
+- static int dlref()
++ static void dlref()
+ {
+ if(!initcount++)
+ lt_dlinit();
+ }
+
+- static int dlunref()
++ static void dlunref()
+ {
+ if(!--initcount)
+ lt_dlexit();
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/cvsnt.git/commitdiff/24983ed0861b8ef6f2811d28afe524e32e097c00
More information about the pld-cvs-commit
mailing list