pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/openrsync net/openrsync: update to openrsync-0.202...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/57ef8207e196
branches:  trunk
changeset: 391470:57ef8207e196
user:      vins <vins%pkgsrc.org@localhost>
date:      Mon Jan 09 08:26:32 2023 +0000

description:
net/openrsync: update to openrsync-0.20220508

This brings the package in sync with the latest upstream commit.

Patches dropped, since support for (Open)BSD - specific library
functions is now handled by a configure script.

Changes are many, but neither a changelog nor a release tag has been
provided ever since the package was imported.
Refer to the github commit log instead.

Taking maintainership.

diffstat:

 net/openrsync/Makefile                      |  19 +++--
 net/openrsync/distinfo                      |  13 +--
 net/openrsync/patches/patch-Makefile        |  32 ---------
 net/openrsync/patches/patch-extern.h        |  19 -----
 net/openrsync/patches/patch-pledge.c        |  15 ----
 net/openrsync/patches/patch-recallocarray.c |  99 -----------------------------
 net/openrsync/patches/patch-unveil.c        |  15 ----
 7 files changed, 15 insertions(+), 197 deletions(-)

diffs (252 lines):

diff -r d950bb431a50 -r 57ef8207e196 net/openrsync/Makefile
--- a/net/openrsync/Makefile    Mon Jan 09 08:22:50 2023 +0000
+++ b/net/openrsync/Makefile    Mon Jan 09 08:26:32 2023 +0000
@@ -1,19 +1,22 @@
-# $NetBSD: Makefile,v 1.1 2019/03/11 16:27:03 kamil Exp $
+# $NetBSD: Makefile,v 1.2 2023/01/09 08:26:32 vins Exp $
 
-GITHUB_PROJECT=        openrsync
-GITHUB_TAG=    f18392f58d1f0bc72917e3ac3a46be74c194688d
-DISTNAME=      openrsync-0.20190221
+DISTNAME=      openrsync-0.20220508
 CATEGORIES=    net
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=kristapsdz/}
+GITHUB_TAG=    f50d0f8204ea18306a0c29c6ae850292ea826995
 
-MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
+MAINTAINER=    vins%NetBSD.org@localhost
 HOMEPAGE=      https://github.com/kristapsdz/openrsync
 COMMENT=       BSD-licensed implementation of rsync
 LICENSE=       isc
 
-WRKSRC=                ${WRKDIR}/openrsync-${GITHUB_TAG}
+HAS_CONFIGURE= yes
 
-INSTALL_MAKE_FLAGS+=   PREFIX=${PREFIX}
-INSTALL_MAKE_FLAGS+=   MANDIR=${PREFIX}/${PKGMANDIR}
+CONFIGURE_ENV+=        CC=${CC:Q}
+CONFIGURE_ENV+=        INSTALL=${INSTALL:Q}
+
+CONFIGURE_ARGS+=       LDFLAGS=${LDFLAGS:Q}
+CONFIGURE_ARGS+=       PREFIX=${PREFIX}
+CONFIGURE_ARGS+=       MANDIR=${PREFIX}/${PKGMANDIR}
 
 .include "../../mk/bsd.pkg.mk"
diff -r d950bb431a50 -r 57ef8207e196 net/openrsync/distinfo
--- a/net/openrsync/distinfo    Mon Jan 09 08:22:50 2023 +0000
+++ b/net/openrsync/distinfo    Mon Jan 09 08:26:32 2023 +0000
@@ -1,10 +1,5 @@
-$NetBSD: distinfo,v 1.3 2021/10/26 11:06:12 nia Exp $
+$NetBSD: distinfo,v 1.4 2023/01/09 08:26:32 vins Exp $
 
-BLAKE2s (openrsync-0.20190221-f18392f58d1f0bc72917e3ac3a46be74c194688d.tar.gz) = dfc183ce7f3fe2f788f4f334c7dbacf1fce75a6b8b35d216901c043f6499f1d0
-SHA512 (openrsync-0.20190221-f18392f58d1f0bc72917e3ac3a46be74c194688d.tar.gz) = 
4c4a5ddda02e577f812a9832b6afb63104f65f76446037ddb30bf40aa0a269e919e100c7a688b5717ed6a10aa0f7698114e5a77021df2d1deb44b87b9aa36a82
-Size (openrsync-0.20190221-f18392f58d1f0bc72917e3ac3a46be74c194688d.tar.gz) = 73171 bytes
-SHA1 (patch-Makefile) = ed03f7c75fb958ffa5cb7b046f1871a74711fce0
-SHA1 (patch-extern.h) = c479848ab9741ad563b715c9f10786b22854766f
-SHA1 (patch-pledge.c) = 940beb1c5f339221b0252f6fd228fcf848b51042
-SHA1 (patch-recallocarray.c) = 4ba079d9d368680aff56fc0d4a04fcd6778a3aed
-SHA1 (patch-unveil.c) = e40ec3d6cd9e2ff032a9704baaa7da9993351fd1
+BLAKE2s (openrsync-0.20220508-f50d0f8204ea18306a0c29c6ae850292ea826995.tar.gz) = 875e3490bc3a7e9a84cbf11b6364339d78d54bcc55cb318103460832400b447b
+SHA512 (openrsync-0.20220508-f50d0f8204ea18306a0c29c6ae850292ea826995.tar.gz) = 
f2fec287d57502e3b478652a7c91c38e295221f936eb089f8ecd9efd69e51e0b9896e6f9d5457195db8d4661faf461c34d2d1547373ba5ddae22a5f7135677e9
+Size (openrsync-0.20220508-f50d0f8204ea18306a0c29c6ae850292ea826995.tar.gz) = 139218 bytes
diff -r d950bb431a50 -r 57ef8207e196 net/openrsync/patches/patch-Makefile
--- a/net/openrsync/patches/patch-Makefile      Mon Jan 09 08:22:50 2023 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,32 +0,0 @@
-$NetBSD: patch-Makefile,v 1.1 2019/03/11 16:27:03 kamil Exp $
-
-Add fallback files with functions missing on !OpenBSD.
-Specify -D_OPENBSD_SOURCE to enable OpenBSD APIs on NetBSD.
-
---- Makefile.orig      2019-02-21 15:41:00.000000000 +0000
-+++ Makefile
-@@ -12,12 +12,15 @@ OBJS        = blocks.o \
-          md4.o \
-          mkpath.o \
-          mktemp.o \
-+         pledge.o \
-+         recallocarray.o \
-          receiver.o \
-          sender.o \
-          server.o \
-          session.o \
-          socket.o \
-          symlinks.o \
-+         unveil.o \
-          uploader.o
- ALLOBJS        = $(OBJS) \
-          main.o
-@@ -27,7 +30,7 @@ MANDIR        = $(PREFIX)/man
- BINDIR         = $(PREFIX)/bin
- 
- # The -O0 is to help with debugging coredumps.
--CFLAGS        += -O0 -g -W -Wall -Wextra -Wno-unused-parameter
-+CFLAGS        += -O0 -g -W -Wall -Wextra -Wno-unused-parameter -D_OPENBSD_SOURCE
- 
- all: openrsync
- 
diff -r d950bb431a50 -r 57ef8207e196 net/openrsync/patches/patch-extern.h
--- a/net/openrsync/patches/patch-extern.h      Mon Jan 09 08:22:50 2023 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,19 +0,0 @@
-$NetBSD: patch-extern.h,v 1.1 2019/03/11 16:27:03 kamil Exp $
-
-Add fallback declarations of functions missing on !OpenBSD.
-
---- extern.h.orig      2019-02-21 15:41:00.000000000 +0000
-+++ extern.h
-@@ -383,6 +383,12 @@ int                 idents_recv(struct sess *, int, s
- void            idents_remap(struct sess *, int, struct ident *, size_t);
- int             idents_send(struct sess *, int, const struct ident *, size_t);
- 
-+#ifndef __OpenBSD__
-+void *recallocarray(void *ptr, size_t oldnmemb, size_t nmemb, size_t size);
-+int pledge(const char *promises, const char *execpromises);
-+int unveil(const char *path, const char *permissions);
-+#endif
-+
- __END_DECLS
- 
- #endif /*!EXTERN_H*/
diff -r d950bb431a50 -r 57ef8207e196 net/openrsync/patches/patch-pledge.c
--- a/net/openrsync/patches/patch-pledge.c      Mon Jan 09 08:22:50 2023 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-pledge.c,v 1.1 2019/03/11 16:27:03 kamil Exp $
-
-Add a fallback implementation of OpenBSD specific function.
-
---- pledge.c.orig      2019-03-11 16:01:37.907598032 +0000
-+++ pledge.c
-@@ -0,0 +1,8 @@
-+#ifndef __OpenBSD__
-+int
-+pledge(const char *promises, const char *execpromises)
-+{
-+
-+      return 0;
-+}
-+#endif
diff -r d950bb431a50 -r 57ef8207e196 net/openrsync/patches/patch-recallocarray.c
--- a/net/openrsync/patches/patch-recallocarray.c       Mon Jan 09 08:22:50 2023 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,99 +0,0 @@
-$NetBSD: patch-recallocarray.c,v 1.1 2019/03/11 16:27:03 kamil Exp $
-
-Add a fallback implementation of OpenBSD specific function.
-
---- recallocarray.c.orig       2019-03-11 16:01:37.907728248 +0000
-+++ recallocarray.c
-@@ -0,0 +1,92 @@
-+#ifndef __OpenBSD__
-+
-+/*    $OpenBSD: recallocarray.c,v 1.1 2017/03/06 18:44:21 otto Exp $  */
-+/*
-+ * Copyright (c) 2008, 2017 Otto Moerbeek <otto%drijf.net@localhost>
-+ *
-+ * Permission to use, copy, modify, and distribute this software for any
-+ * purpose with or without fee is hereby granted, provided that the above
-+ * copyright notice and this permission notice appear in all copies.
-+ *
-+ * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
-+ * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
-+ * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
-+ * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
-+ * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
-+ * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
-+ * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
-+ */
-+
-+#include <errno.h>
-+#include <stdlib.h>
-+#include <stdint.h>
-+#include <string.h>
-+#include <unistd.h>
-+
-+void *(* volatile __internal_explicit_memset_impl)(void *, int, size_t) = memset;
-+
-+static void *
-+__internal_explicit_bzero(void *b, size_t len)
-+{
-+
-+      return (*__internal_explicit_memset_impl)(b, 0, len);
-+}
-+
-+/*
-+ * This is sqrt(SIZE_MAX+1), as s1*s2 <= SIZE_MAX
-+ * if both s1 < MUL_NO_OVERFLOW and s2 < MUL_NO_OVERFLOW
-+ */
-+#define MUL_NO_OVERFLOW ((size_t)1 << (sizeof(size_t) * 4))
-+
-+void *
-+recallocarray(void *ptr, size_t oldnmemb, size_t newnmemb, size_t size)
-+{
-+      size_t oldsize, newsize;
-+      void *newptr;
-+
-+      if (ptr == NULL)
-+              return calloc(newnmemb, size);
-+
-+      if ((newnmemb >= MUL_NO_OVERFLOW || size >= MUL_NO_OVERFLOW) &&
-+          newnmemb > 0 && SIZE_MAX / newnmemb < size) {
-+              errno = ENOMEM;
-+              return NULL;
-+      }
-+      newsize = newnmemb * size;
-+
-+      if ((oldnmemb >= MUL_NO_OVERFLOW || size >= MUL_NO_OVERFLOW) &&
-+          oldnmemb > 0 && SIZE_MAX / oldnmemb < size) {
-+              errno = EINVAL;
-+              return NULL;
-+      }
-+      oldsize = oldnmemb * size;
-+
-+      /*
-+       * Don't bother too much if we're shrinking just a bit,
-+       * we do not shrink for series of small steps, oh well.
-+       */
-+      if (newsize <= oldsize) {
-+              size_t d = oldsize - newsize;
-+
-+              if (d < oldsize / 2 && d < (size_t)getpagesize()) {
-+                      memset((char *)ptr + newsize, 0, d);
-+                      return ptr;
-+              }
-+      }
-+
-+      newptr = malloc(newsize);
-+      if (newptr == NULL)
-+              return NULL;
-+
-+      if (newsize > oldsize) {
-+              memcpy(newptr, ptr, oldsize);
-+              memset((char *)newptr + oldsize, 0, newsize - oldsize);
-+      } else
-+              memcpy(newptr, ptr, newsize);
-+
-+      __internal_explicit_bzero(ptr, oldsize);
-+      free(ptr);
-+
-+      return newptr;
-+}
-+#endif
diff -r d950bb431a50 -r 57ef8207e196 net/openrsync/patches/patch-unveil.c
--- a/net/openrsync/patches/patch-unveil.c      Mon Jan 09 08:22:50 2023 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,15 +0,0 @@
-$NetBSD: patch-unveil.c,v 1.1 2019/03/11 16:27:03 kamil Exp $
-
-Add a fallback implementation of OpenBSD specific function.
-
---- unveil.c.orig      2019-03-11 16:01:37.907822028 +0000
-+++ unveil.c
-@@ -0,0 +1,8 @@
-+#ifndef __OpenBSD__
-+int
-+unveil(const char *path, const char *permissions)
-+{
-+
-+      return 0;
-+}
-+#endif



Home | Main Index | Thread Index | Old Index