pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/p5-Sys-Utmp p5-Sys-Utmp: update to 1.7.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/8e7d3bfb8225
branches:  trunk
changeset: 369299:8e7d3bfb8225
user:      wiz <wiz%pkgsrc.org@localhost>
date:      Thu Sep 28 04:45:11 2017 +0000

description:
p5-Sys-Utmp: update to 1.7.

Changes not documented.

diffstat:

 sysutils/p5-Sys-Utmp/Makefile                  |   6 +-
 sysutils/p5-Sys-Utmp/distinfo                  |  14 ++--
 sysutils/p5-Sys-Utmp/patches/patch-Makefile.PL |  16 ++++
 sysutils/p5-Sys-Utmp/patches/patch-Utmp.xs     |  19 +++++
 sysutils/p5-Sys-Utmp/patches/patch-aa          |  90 --------------------------
 sysutils/p5-Sys-Utmp/patches/patch-ab          |  13 ---
 6 files changed, 45 insertions(+), 113 deletions(-)

diffs (194 lines):

diff -r 00195399dd56 -r 8e7d3bfb8225 sysutils/p5-Sys-Utmp/Makefile
--- a/sysutils/p5-Sys-Utmp/Makefile     Thu Sep 28 04:19:33 2017 +0000
+++ b/sysutils/p5-Sys-Utmp/Makefile     Thu Sep 28 04:45:11 2017 +0000
@@ -1,14 +1,14 @@
-# $NetBSD: Makefile,v 1.12 2017/06/05 14:24:37 ryoon Exp $
+# $NetBSD: Makefile,v 1.13 2017/09/28 04:45:11 wiz Exp $
 
-DISTNAME=      Sys-Utmp-1.6
+DISTNAME=      Sys-Utmp-1.7
 PKGNAME=       p5-${DISTNAME}
-PKGREVISION=   9
 CATEGORIES=    sysutils perl5
 MASTER_SITES=  ${MASTER_SITE_PERL_CPAN:=Sys/}
 
 MAINTAINER=    pkgsrc-users%NetBSD.org@localhost
 HOMEPAGE=      http://search.cpan.org/dist/Sys-Utmp
 COMMENT=       Object(ish) Interface to UTMP files
+LICENSE=       ${PERL5_LICENSE}
 
 PERL5_PACKLIST=                auto/Sys/Utmp/.packlist
 
diff -r 00195399dd56 -r 8e7d3bfb8225 sysutils/p5-Sys-Utmp/distinfo
--- a/sysutils/p5-Sys-Utmp/distinfo     Thu Sep 28 04:19:33 2017 +0000
+++ b/sysutils/p5-Sys-Utmp/distinfo     Thu Sep 28 04:45:11 2017 +0000
@@ -1,8 +1,8 @@
-$NetBSD: distinfo,v 1.4 2015/11/04 01:32:25 agc Exp $
+$NetBSD: distinfo,v 1.5 2017/09/28 04:45:11 wiz Exp $
 
-SHA1 (Sys-Utmp-1.6.tar.gz) = 45548135e888d87f5c8f184b83048e04dadbfa5f
-RMD160 (Sys-Utmp-1.6.tar.gz) = fd3adb315ca2791e22054110127b85e3c54feacf
-SHA512 (Sys-Utmp-1.6.tar.gz) = 82124288f51947360c11bd944b754b22a21474352961cd522196cc3594302bcaa193a9350a9e8e152a6ddb12d105538da2dd9333c1ee2b46bbe19ed3cf3bd92c
-Size (Sys-Utmp-1.6.tar.gz) = 8818 bytes
-SHA1 (patch-aa) = fe8261da919ba380da862f47999f71fea6d9e983
-SHA1 (patch-ab) = 5a74869b9be0ecb97f8239a1ec7e65f8016e54e7
+SHA1 (Sys-Utmp-1.7.tar.gz) = 529fb6af2071a264142e1e4dad1ad2e31469530b
+RMD160 (Sys-Utmp-1.7.tar.gz) = 4dab0b8bdebb4f32cbad7d9caeeba8c2cb4e040f
+SHA512 (Sys-Utmp-1.7.tar.gz) = bf6180a452ad1d5a1d9c22ff5e2ed2048eec2bc311b741a47b09a07a0dc1e74ef2ce97d32189689790f3530b2211c66cf907ce227e4d8e4e51f4fff50b3076bb
+Size (Sys-Utmp-1.7.tar.gz) = 9169 bytes
+SHA1 (patch-Makefile.PL) = 3d29edb0431f1e997aeb0f21d0cd6ef988e8e363
+SHA1 (patch-Utmp.xs) = 3a173cf927b10e02a79d3c4fa94463f1e5bc7bf7
diff -r 00195399dd56 -r 8e7d3bfb8225 sysutils/p5-Sys-Utmp/patches/patch-Makefile.PL
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/p5-Sys-Utmp/patches/patch-Makefile.PL    Thu Sep 28 04:45:11 2017 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-Makefile.PL,v 1.1 2017/09/28 04:45:11 wiz Exp $
+
+Fix build on NetBSD.
+https://github.com/jonathanstowe/Sys-Utmp/issues/1
+
+--- Makefile.PL.orig   2013-10-27 08:58:56.000000000 +0000
++++ Makefile.PL
+@@ -8,7 +8,7 @@ my (
+ # This may require some refinement
+ if ( $^O =~ /netbsd/i )
+ {
+-    $defined = "";
++   $define = '-DNOUTFUNCS';
+ }
+ elsif ( $^O =~ /bsd/i )
+ {
diff -r 00195399dd56 -r 8e7d3bfb8225 sysutils/p5-Sys-Utmp/patches/patch-Utmp.xs
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sysutils/p5-Sys-Utmp/patches/patch-Utmp.xs        Thu Sep 28 04:45:11 2017 +0000
@@ -0,0 +1,19 @@
+$NetBSD: patch-Utmp.xs,v 1.1 2017/09/28 04:45:11 wiz Exp $
+
+Fix build on NetBSD.
+https://github.com/jonathanstowe/Sys-Utmp/issues/1
+
+--- Utmp.xs.orig       2013-10-27 08:34:17.000000000 +0000
++++ Utmp.xs
+@@ -57,11 +57,6 @@ static int ut_fd = -1;
+ 
+ static char _ut_name[] = _PATH_UTMP;
+ 
+-void utmpname(char *filename)
+-{
+-   strcpy(_ut_name, filename);
+-}
+-
+ void setutent(void)
+ {
+     if (ut_fd < 0)
diff -r 00195399dd56 -r 8e7d3bfb8225 sysutils/p5-Sys-Utmp/patches/patch-aa
--- a/sysutils/p5-Sys-Utmp/patches/patch-aa     Thu Sep 28 04:19:33 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,90 +0,0 @@
-$NetBSD: patch-aa,v 1.2 2010/07/19 12:32:24 sno Exp $
-
---- Utmp.xs.orig       2006-10-13 14:10:30.000000000 +0000
-+++ Utmp.xs
-@@ -4,24 +4,24 @@
- 
- #include <utmp.h>
- 
--#ifdef NOUTFUNCS
-+#ifdef _AIX
-+#define _HAVE_UT_HOST 1
-+#endif
- 
--#include <stdlib.h>
--#include <unistd.h>
--#include <time.h>
--#include <string.h>
--#include <stdio.h>
--#include <sys/types.h>
--#include <sys/stat.h>
--#include <fcntl.h>
-+/*
-+    It is almost certain that if these are not defined the fields they are
-+    for are not present or this is BSD :)
-+*/
- 
- #ifdef BSD
- #define _NO_UT_ID
- #define _NO_UT_TYPE
- #define _NO_UT_PID
- #define ut_user ut_name
-+#define _HAVE_UT_HOST 1
- #endif
- 
-+
- /*
-    define these so it still works as documented :)
- */
-@@ -43,21 +43,15 @@
- #endif
- 
- 
--/*
--    It is almost certain that if these are not defined the fields they are
--    for are not present or this is BSD :)
--*/
--
--
--#ifndef UT_LINESIZE
--# define UT_LINESIZE 32
--#endif
--#ifndef UT_NAMESIZE
--# define UT_NAMESIZE 32
--#endif 
--#ifndef UT_HOSTSIZE
--# define UT_HOSTSIZE
--#endif
-+#ifdef NOUTFUNCS
-+#include <stdlib.h>
-+#include <unistd.h>
-+#include <time.h>
-+#include <string.h>
-+#include <stdio.h>
-+#include <sys/types.h>
-+#include <sys/stat.h>
-+#include <fcntl.h>
- 
- static int ut_fd = -1;
- 
-@@ -207,7 +201,7 @@ SV *self
-      static SV *ut_ref;
-      static char *_ut_id;
-      static struct utmp *utent;
--     static char ut_host[UT_HOSTSIZE];
-+     static char ut_host[sizeof(utent->ut_host)];
- 
-      HV *self_hash;
- 
-@@ -249,9 +243,9 @@ SV *self
-        ut_tv = (IV)utent->ut_time;
- #endif
- #ifdef _HAVE_UT_HOST
--       strncpy(ut_host, utent->ut_host,UT_HOSTSIZE);
-+       strncpy(ut_host, utent->ut_host,sizeof(utent->ut_host));
- #else
--       strcpy(ut_host, "",1);
-+       strncpy(ut_host, "",1);
- #endif
- 
- 
diff -r 00195399dd56 -r 8e7d3bfb8225 sysutils/p5-Sys-Utmp/patches/patch-ab
--- a/sysutils/p5-Sys-Utmp/patches/patch-ab     Thu Sep 28 04:19:33 2017 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-$NetBSD: patch-ab,v 1.1 2010/07/19 12:32:24 sno Exp $
-
---- Makefile.PL.orig   2006-10-13 12:39:33.000000000 +0000
-+++ Makefile.PL
-@@ -5,7 +5,7 @@ my (
-     $libs
-    );
- 
--if ( $^O =~ /bsd/i )
-+if ( $^O =~ m/bsd/i && $^O ne 'netbsd' )
- {
-    $define = '-DNOUTFUNCS';
- }



Home | Main Index | Thread Index | Old Index