pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/logrotate logrotate: fix build on NetBSD



details:   https://anonhg.NetBSD.org/pkgsrc/rev/524e88a7a574
branches:  trunk
changeset: 440400:524e88a7a574
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Thu Oct 08 07:50:51 2020 +0000

description:
logrotate: fix build on NetBSD

(no secure_getenv function)

diffstat:

 sysutils/logrotate/distinfo               |   4 ++--
 sysutils/logrotate/patches/patch-config.c |  10 +++++++---
 2 files changed, 9 insertions(+), 5 deletions(-)

diffs (44 lines):

diff -r 957ed582bab0 -r 524e88a7a574 sysutils/logrotate/distinfo
--- a/sysutils/logrotate/distinfo       Thu Oct 08 07:47:02 2020 +0000
+++ b/sysutils/logrotate/distinfo       Thu Oct 08 07:50:51 2020 +0000
@@ -1,10 +1,10 @@
-$NetBSD: distinfo,v 1.18 2020/10/01 20:14:56 nils Exp $
+$NetBSD: distinfo,v 1.19 2020/10/08 07:50:51 wiz Exp $
 
 SHA1 (logrotate-3.17.0.tar.gz) = 143fcf6010ff32cfb0a13ea49df22cb383843b63
 RMD160 (logrotate-3.17.0.tar.gz) = d79e0e2c03bc47e970acd28875cebf045635f33a
 SHA512 (logrotate-3.17.0.tar.gz) = ada4415ef68ad97c1415fa0c1ba7bf108621777cd91599bf4f999dea1c1025596543aa00fd579cae4d39315b71c4d8f96a9c9d1178f78be7c523470588ab1d31
 Size (logrotate-3.17.0.tar.gz) = 224559 bytes
-SHA1 (patch-config.c) = 2064e2e1186305eaea1b3597a634d57c04cc4fc4
+SHA1 (patch-config.c) = 5f967ff8479c78628e62e23e200c6373aebd0786
 SHA1 (patch-configure.ac) = 3d9d232f386b286288ba0f543804d10feeb306cf
 SHA1 (patch-examples_logrotate.conf) = 4d0aad215e66850e8ae1a005764f8bd109fb76c9
 SHA1 (patch-examples_logrotate.cron) = 31a19e1b697e945299bbbe6701674d886379a49c
diff -r 957ed582bab0 -r 524e88a7a574 sysutils/logrotate/patches/patch-config.c
--- a/sysutils/logrotate/patches/patch-config.c Thu Oct 08 07:47:02 2020 +0000
+++ b/sysutils/logrotate/patches/patch-config.c Thu Oct 08 07:50:51 2020 +0000
@@ -1,10 +1,10 @@
-$NetBSD: patch-config.c,v 1.6 2019/03/20 10:34:10 he Exp $
+$NetBSD: patch-config.c,v 1.7 2020/10/08 07:50:51 wiz Exp $
 
 Fix NetBSD compilation.
 
---- config.c.orig      2016-12-02 13:12:33.000000000 +0000
+--- config.c.orig      2020-07-10 08:22:39.000000000 +0000
 +++ config.c
-@@ -23,7 +23,9 @@
+@@ -19,7 +19,13 @@
  #include <wctype.h>
  #include <fnmatch.h>
  #include <sys/mman.h>
@@ -12,6 +12,10 @@
 +#ifndef _LIBGEN_H_
 +#  include <libgen.h>
 +#endif
++
++#ifndef secure_getenv
++#define secure_getenv getenv
++#endif
  
  #if !defined(PATH_MAX) && defined(__FreeBSD__)
  #include <sys/param.h>



Home | Main Index | Thread Index | Old Index