pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/sysutils/consolekit Fix NetBSD.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9dbd189702c8
branches:  trunk
changeset: 381305:9dbd189702c8
user:      youri <youri%pkgsrc.org@localhost>
date:      Mon Jun 04 01:01:23 2018 +0000

description:
Fix NetBSD.

diffstat:

 sysutils/consolekit/distinfo                              |   4 +-
 sysutils/consolekit/patches/patch-src_ck-sysdeps-netbsd.c |  20 ++++++++++++++-
 2 files changed, 21 insertions(+), 3 deletions(-)

diffs (47 lines):

diff -r dc55b69e4cdc -r 9dbd189702c8 sysutils/consolekit/distinfo
--- a/sysutils/consolekit/distinfo      Sun Jun 03 23:53:02 2018 +0000
+++ b/sysutils/consolekit/distinfo      Mon Jun 04 01:01:23 2018 +0000
@@ -1,7 +1,7 @@
-$NetBSD: distinfo,v 1.16 2018/05/16 11:30:36 youri Exp $
+$NetBSD: distinfo,v 1.17 2018/06/04 01:01:23 youri Exp $
 
 SHA1 (ConsoleKit2-1.2.1.tar.bz2) = 28869807eed0cc4a7a1d98030be1f2c7e5700d0e
 RMD160 (ConsoleKit2-1.2.1.tar.bz2) = 641171ca6e8290924fae4ab2d1ead6b13de88ad5
 SHA512 (ConsoleKit2-1.2.1.tar.bz2) = 31befe89f7fa604138bfb0722fc6cf12f0934bac004f98fc331004eb5a7f466ed7bd0dc9adc9869da739974208f9a3bc125068ff8a60d4b2badb58ef70a3eb10
 Size (ConsoleKit2-1.2.1.tar.bz2) = 1182946 bytes
-SHA1 (patch-src_ck-sysdeps-netbsd.c) = 4b8cabcd47bef0b8edaf6dd292686aa3297794bc
+SHA1 (patch-src_ck-sysdeps-netbsd.c) = 0f832ec2bb487d5faec0de774449defe4f5721a6
diff -r dc55b69e4cdc -r 9dbd189702c8 sysutils/consolekit/patches/patch-src_ck-sysdeps-netbsd.c
--- a/sysutils/consolekit/patches/patch-src_ck-sysdeps-netbsd.c Sun Jun 03 23:53:02 2018 +0000
+++ b/sysutils/consolekit/patches/patch-src_ck-sysdeps-netbsd.c Mon Jun 04 01:01:23 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-src_ck-sysdeps-netbsd.c,v 1.2 2018/05/16 11:30:36 youri Exp $
+$NetBSD: patch-src_ck-sysdeps-netbsd.c,v 1.3 2018/06/04 01:01:23 youri Exp $
 
 Fix NetBSD build.
 
@@ -12,6 +12,24 @@
  #include <sys/ioctl.h>
  
  #ifdef HAVE_SYS_MOUNT_H
+@@ -121,7 +120,7 @@ ck_process_stat_get_tty (CkProcessStat *
+ {
+         g_return_val_if_fail (stat != NULL, NULL);
+ 
+-        if (stat->tty == NODEV){
++        if (stat->tty == ENODEV){
+                 return NULL;
+         }
+ 
+@@ -164,7 +163,7 @@ stat2proc (pid_t        pid,
+         }
+ 
+         num = KI_MAXCOMLEN;
+-        if (num >= sizeof(P->cmd)) {
++        if ((unsigned)num >= sizeof(P->cmd)) {
+                 num = sizeof(P->cmd) - 1;
+         }
+ 
 @@ -494,7 +493,11 @@ ck_make_tmpfs (guint uid, guint gid, con
  
          opts = g_strdup_printf ("mode=0700,uid=%d", uid);



Home | Main Index | Thread Index | Old Index