pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/net/Geomyidae Geomyidae: Add a patch to not exit on SI...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/dd05a35e640f
branches:  trunk
changeset: 385376:dd05a35e640f
user:      leot <leot%pkgsrc.org@localhost>
date:      Fri Sep 21 17:10:57 2018 +0000

description:
Geomyidae: Add a patch to not exit on SIGHUP

Now having `geomyidae=yes' in rc.conf correctly works.

Bump PKGREVISION

diffstat:

 net/Geomyidae/Makefile             |   3 ++-
 net/Geomyidae/distinfo             |   3 ++-
 net/Geomyidae/patches/patch-main.c |  23 +++++++++++++++++++++++
 3 files changed, 27 insertions(+), 2 deletions(-)

diffs (52 lines):

diff -r 60e9a59d3bf9 -r dd05a35e640f net/Geomyidae/Makefile
--- a/net/Geomyidae/Makefile    Fri Sep 21 14:48:08 2018 +0000
+++ b/net/Geomyidae/Makefile    Fri Sep 21 17:10:57 2018 +0000
@@ -1,7 +1,8 @@
-# $NetBSD: Makefile,v 1.10 2018/08/10 10:44:13 leot Exp $
+# $NetBSD: Makefile,v 1.11 2018/09/21 17:10:57 leot Exp $
 
 DISTNAME=      geomyidae-v0.32.2
 PKGNAME=       ${DISTNAME:S/-v/-/}
+PKGREVISION=   1
 CATEGORIES=    net
 MASTER_SITES=  ftp://bitreich.org/releases/geomyidae/
 EXTRACT_SUFX=  .tgz
diff -r 60e9a59d3bf9 -r dd05a35e640f net/Geomyidae/distinfo
--- a/net/Geomyidae/distinfo    Fri Sep 21 14:48:08 2018 +0000
+++ b/net/Geomyidae/distinfo    Fri Sep 21 17:10:57 2018 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.6 2018/08/10 10:41:20 leot Exp $
+$NetBSD: distinfo,v 1.7 2018/09/21 17:10:57 leot Exp $
 
 SHA1 (geomyidae-v0.32.2.tgz) = cf7e947cdbcc3aa050e474595e728c773733e23e
 RMD160 (geomyidae-v0.32.2.tgz) = 48c80bf1f1b2c4126c461a84674d58030ca0aba7
 SHA512 (geomyidae-v0.32.2.tgz) = 3b0927a16082df862b9efacc2f29fd1b1ca76f7d465426e179d5995a416bc27b518daba422512091304ed5479ff133e3d40f7bf66aedfbd8d99d13710809d519
 Size (geomyidae-v0.32.2.tgz) = 20897 bytes
+SHA1 (patch-main.c) = 2a1efaff4b894da05f609a638a9ad38af8ba59fe
diff -r 60e9a59d3bf9 -r dd05a35e640f net/Geomyidae/patches/patch-main.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/net/Geomyidae/patches/patch-main.c        Fri Sep 21 17:10:57 2018 +0000
@@ -0,0 +1,23 @@
+$NetBSD: patch-main.c,v 1.1 2018/09/21 17:10:57 leot Exp $
+
+don't exit on SIGHUP
+
+SIGHUP is normally often used in daemons to reload the config and/or reopen log
+files.
+
+This was noticed on OpenBSD not starting the geomyidae server on boot.  The
+init implementations on OpenBSD, NetBSD and possibly others send SIGHUP to
+processes in a boot transition period.
+
+Backport from upstream commit 8d9bad389a4ac22fc292f92d0128af8679e640fa.
+
+--- main.c.orig        2018-06-29 19:21:00.000000000 +0000
++++ main.c
+@@ -256,7 +256,6 @@ sighandler(int sig)
+       case SIGCHLD:
+               while (waitpid(-1, NULL, WNOHANG) > 0);
+               break;
+-      case SIGHUP:
+       case SIGINT:
+       case SIGQUIT:
+       case SIGABRT:



Home | Main Index | Thread Index | Old Index