[packages/rdist] Rel 37
arekm
arekm at pld-linux.org
Mon Mar 9 20:14:54 CET 2026
commit 973707403285fe8cee25b6c584afcf1a14c4df80
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date: Mon Mar 9 20:14:41 2026 +0100
Rel 37
rdist-modernize.patch | 36 ++++++++++++++++++++++++++++++++++++
rdist-parallel.patch | 11 +++++++++++
rdist.spec | 8 ++++++--
3 files changed, 53 insertions(+), 2 deletions(-)
---
diff --git a/rdist.spec b/rdist.spec
index 08adb3c..6424e69 100644
--- a/rdist.spec
+++ b/rdist.spec
@@ -5,7 +5,7 @@ Summary(pl.UTF-8): Narzędzie do zarządzania identycznymi kopiami plików na wi
Summary(tr.UTF-8): Dosyaları birden fazla makinada saklama sistemi
Name: rdist
Version: 6.1.5
-Release: 36
+Release: 37
License: BSD
Group: Applications/System
Source0: http://www.MagniComp.com/download/rdist/%{name}-%{version}.tar.gz
@@ -20,6 +20,8 @@ Patch5: %{name}-ostype.patch
Patch6: %{name}-environ.patch
Patch7: %{name}-bison.patch
Patch8: %{name}-varargs.patch
+Patch9: %{name}-parallel.patch
+Patch10: %{name}-modernize.patch
URL: http://www.MagniComp.com/rdist/
BuildRequires: bison
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -61,11 +63,13 @@ aynı kullanıcı, grup ve kip bilgileri ile saklanması sağlanır.
%patch -P6 -p0
%patch -P7 -p1
%patch -P8 -p1
+%patch -P9 -p1
+%patch -P10 -p1
%build
%{__make} \
CC="%{__cc}" \
- OPT="%{rpmcflags}"
+ OPT="%{rpmcflags} -std=gnu89 -fcommon"
%install
rm -rf $RPM_BUILD_ROOT
diff --git a/rdist-modernize.patch b/rdist-modernize.patch
new file mode 100644
index 0000000..48b5b13
--- /dev/null
+++ b/rdist-modernize.patch
@@ -0,0 +1,36 @@
+--- rdist-6.1.5/include/defs.h 2026-03-09 20:12:17.156356048 +0100
++++ rdist-6.1.5/include/defs.h 2026-03-09 20:13:05.979689373 +0100
+@@ -33,6 +33,11 @@
+ #include <sys/file.h>
+ #include <sys/time.h>
+ #include <sys/stat.h>
++#include <string.h>
++#include <stdlib.h>
++#include <unistd.h>
++#include <time.h>
++#define _REGEX_RE_COMP
+
+ #include "version.h"
+ #include "config-def.h"
+--- rdist-6.1.5/src/message.c 2026-03-09 20:12:17.149689381 +0100
++++ rdist-6.1.5/src/message.c 2026-03-09 20:13:05.985412215 +0100
+@@ -475,7 +475,7 @@
+ (void) sprintf(tempfile, "%s/%s", cp, _RDIST_TMP);
+
+ msgfac->mf_filename = tempfile;
+- (void) mktemp(msgfac->mf_filename);
++ int fd = mkstemp(msgfac->mf_filename); if (fd < 0) fatalerr("Cannot open notify file for writing: %s: %s.", msgfac->mf_filename, strerror(errno)); close(fd);
+ if ((msgfac->mf_fptr = fopen(msgfac->mf_filename, "w"))==NULL)
+ fatalerr("Cannot open notify file for writing: %s: %s.",
+ msgfac->mf_filename, SYSERR);
+--- rdist-6.1.5/src/server.c 2026-03-09 20:12:17.139689381 +0100
++++ rdist-6.1.5/src/server.c 2026-03-09 20:13:05.989185017 +0100
+@@ -1477,7 +1477,7 @@
+ (void) sprintf(new, "%s/%s", target, tempname);
+ *file = '/';
+ }
+- (void) mktemp(new);
++ int fd = mkstemp(new); if (fd >= 0) { close(fd); unlink(new); } else if (errno != ENOENT) { error("Cannot set file name."); return; }
+ }
+
+ /*
diff --git a/rdist-parallel.patch b/rdist-parallel.patch
new file mode 100644
index 0000000..4330501
--- /dev/null
+++ b/rdist-parallel.patch
@@ -0,0 +1,11 @@
+--- rdist-6.1.5/src/Makefile.real.orig 1998-11-10 04:03:46.000000000 +0100
++++ rdist-6.1.5/src/Makefile.real 2025-03-09 21:00:00.000000000 +0100
+@@ -40,7 +40,7 @@
+ $(CLIENT_BIN): $(CLIENTOBJS) $(COMMONOBJS) $(MISSINGOBJS)
+ $(CC) -o $@ $(CLIENTOBJS) $(COMMONOBJS) $(MISSINGOBJS) $(LIBS)
+
+-$(CLIENTOBJS) $(SERVEROBJS): $(HFILES) y.tab.h
++$(CLIENTOBJS) $(SERVEROBJS) $(COMMONOBJS): $(HFILES) y.tab.h
+
+ y.tab.h: gram.c
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/rdist.git/commitdiff/973707403285fe8cee25b6c584afcf1a14c4df80
More information about the pld-cvs-commit
mailing list