Mon Jul 9 19:06:22 2012 UTC ()
Merge patch-ai into patch-ak. Don't remove __attribute__().


(joerg)
diff -r1.21 -r1.22 pkgsrc/x11/rxvt/distinfo
diff -r1.1 -r0 pkgsrc/x11/rxvt/patches/patch-ai
diff -r1.2 -r1.3 pkgsrc/x11/rxvt/patches/patch-ak
diff -r0 -r1.1 pkgsrc/x11/rxvt/patches/patch-src_rxvt.h

cvs diff -r1.21 -r1.22 pkgsrc/x11/rxvt/distinfo (expand / switch to unified diff)

--- pkgsrc/x11/rxvt/distinfo 2008/04/03 22:33:00 1.21
+++ pkgsrc/x11/rxvt/distinfo 2012/07/09 19:06:21 1.22
@@ -1,18 +1,18 @@ @@ -1,18 +1,18 @@
1$NetBSD: distinfo,v 1.21 2008/04/03 22:33:00 tonnerre Exp $ 1$NetBSD: distinfo,v 1.22 2012/07/09 19:06:21 joerg Exp $
2 2
3SHA1 (rxvt-2.7.10.tar.bz2) = 16eae23c3227e28e5e7a53a58eaa3226affe65f9 3SHA1 (rxvt-2.7.10.tar.bz2) = 16eae23c3227e28e5e7a53a58eaa3226affe65f9
4RMD160 (rxvt-2.7.10.tar.bz2) = 83fab8df589e2413ba820d04bafb069e6af8c445 4RMD160 (rxvt-2.7.10.tar.bz2) = 83fab8df589e2413ba820d04bafb069e6af8c445
5Size (rxvt-2.7.10.tar.bz2) = 493199 bytes 5Size (rxvt-2.7.10.tar.bz2) = 493199 bytes
6SHA1 (patch-aa) = 11656b4c2d9e22055d203669b588b626079aa320 6SHA1 (patch-aa) = 11656b4c2d9e22055d203669b588b626079aa320
7SHA1 (patch-ab) = 62ef5b28f8842b769829fed0d217a9c54f48c832 7SHA1 (patch-ab) = 62ef5b28f8842b769829fed0d217a9c54f48c832
8SHA1 (patch-ac) = 57e55b689dbdbc40008a65147d830b4a00611b9d 8SHA1 (patch-ac) = 57e55b689dbdbc40008a65147d830b4a00611b9d
9SHA1 (patch-ad) = 86047c69fa397d71f3e71ae476bd7addd153729f 9SHA1 (patch-ad) = 86047c69fa397d71f3e71ae476bd7addd153729f
10SHA1 (patch-ae) = 76221e9b3cd35a0f40fb6128e0bf9d74d232d907 10SHA1 (patch-ae) = 76221e9b3cd35a0f40fb6128e0bf9d74d232d907
11SHA1 (patch-af) = 6a4f5cf91bc449f7ecef51695be278074e603c8b 11SHA1 (patch-af) = 6a4f5cf91bc449f7ecef51695be278074e603c8b
12SHA1 (patch-ag) = 11019ed97892c8bd8834c56433573719892336c4 12SHA1 (patch-ag) = 11019ed97892c8bd8834c56433573719892336c4
13SHA1 (patch-ah) = 5e6fcf6b4b4fe1111b97d0b916501ab5855a755a 13SHA1 (patch-ah) = 5e6fcf6b4b4fe1111b97d0b916501ab5855a755a
14SHA1 (patch-ai) = 0f3e800efc5b87243208de9fb9fafe9abde73201 
15SHA1 (patch-aj) = 43ca25f034e6160f3a3dabbf1488df31cdecf95b 14SHA1 (patch-aj) = 43ca25f034e6160f3a3dabbf1488df31cdecf95b
16SHA1 (patch-ak) = 960d0bd263a6b8776df93603dc5322b685a6afae 15SHA1 (patch-ak) = 83f7ffcf91d671bd8e75e5c063fd1336c0e08ed6
17SHA1 (patch-al) = 7107ec12205d0a5011a5828f8d30fbd577de41b7 16SHA1 (patch-al) = 7107ec12205d0a5011a5828f8d30fbd577de41b7
18SHA1 (patch-am) = db69ba3b6754454613aa4aec61c1b033d7e013ae 17SHA1 (patch-am) = db69ba3b6754454613aa4aec61c1b033d7e013ae
 18SHA1 (patch-src_rxvt.h) = 86db6ffc24f1133771b6e94275a9edab07b97437

File Deleted: pkgsrc/x11/rxvt/patches/Attic/patch-ai

cvs diff -r1.2 -r1.3 pkgsrc/x11/rxvt/patches/patch-ak (expand / switch to unified diff)

--- pkgsrc/x11/rxvt/patches/patch-ak 2005/06/16 10:47:43 1.2
+++ pkgsrc/x11/rxvt/patches/patch-ak 2012/07/09 19:06:22 1.3
@@ -1,25 +1,78 @@ @@ -1,25 +1,78 @@
1$NetBSD: patch-ak,v 1.2 2005/06/16 10:47:43 hira Exp $ 1$NetBSD: patch-ak,v 1.3 2012/07/09 19:06:22 joerg Exp $
2 2
3--- src/logging.c.orig 2005-01-16 16:33:20.000000000 -0500 3--- src/logging.c.orig 2002-12-16 00:33:04.000000000 +0000
4+++ src/logging.c 2005-01-16 16:55:25.000000000 -0500 4+++ src/logging.c
5@@ -66,9 +66,7 @@ 5@@ -66,9 +66,7 @@ rxvt_makeutent(rxvt_t *r, const char *pt
6 #ifdef HAVE_STRUCT_UTMPX 6 #ifdef HAVE_STRUCT_UTMPX
7 struct utmpx *utx = &(r->h->utx); 7 struct utmpx *utx = &(r->h->utx);
8 #endif 8 #endif
9-#ifdef HAVE_UTMP_PID 9-#ifdef HAVE_UTMP_PID
10 int i; 10 int i;
11-#endif 11-#endif
12 char ut_id[5]; 12 char ut_id[5];
13 struct passwd *pwent = getpwuid(getuid()); 13 struct passwd *pwent = getpwuid(getuid());
14  14
15@@ -78,10 +76,8 @@ 15@@ -78,10 +76,8 @@ rxvt_makeutent(rxvt_t *r, const char *pt
16 if (!STRNCMP(pty, "pty", 3) || !STRNCMP(pty, "tty", 3)) { 16 if (!STRNCMP(pty, "pty", 3) || !STRNCMP(pty, "tty", 3)) {
17 STRNCPY(ut_id, (pty + 3), sizeof(ut_id)); 17 STRNCPY(ut_id, (pty + 3), sizeof(ut_id));
18 } 18 }
19-#ifdef HAVE_UTMP_PID 19-#ifdef HAVE_UTMP_PID
20 else if (sscanf(pty, "pts/%d", &i) == 1) 20 else if (sscanf(pty, "pts/%d", &i) == 1)
21 sprintf(ut_id, "vt%02x", (i & 0xff)); /* sysv naming */ 21 sprintf(ut_id, "vt%02x", (i & 0xff)); /* sysv naming */
22-#endif 22-#endif
23 else if (STRNCMP(pty, "pty", 3) && STRNCMP(pty, "tty", 3)) { 23 else if (STRNCMP(pty, "pty", 3) && STRNCMP(pty, "tty", 3)) {
24 rxvt_print_error("can't parse tty name \"%s\"", pty); 24 rxvt_print_error("can't parse tty name \"%s\"", pty);
25 return; 25 return;
 26@@ -137,7 +133,9 @@ rxvt_makeutent(rxvt_t *r, const char *pt
 27 STRNCPY(utx->ut_user, (pwent && pwent->pw_name) ? pwent->pw_name : "?",
 28 sizeof(utx->ut_user));
 29 STRNCPY(utx->ut_id, ut_id, sizeof(utx->ut_id));
 30+# ifdef HAVE_UTMPX_SESSION
 31 utx->ut_session = getsid(0);
 32+# endif
 33 utx->ut_tv.tv_sec = time(NULL);
 34 utx->ut_tv.tv_usec = 0;
 35 utx->ut_pid = r->h->cmd_pid;
 36@@ -203,7 +201,11 @@ rxvt_makeutent(rxvt_t *r, const char *pt
 37 # endif
 38 # endif
 39 # ifdef HAVE_STRUCT_UTMPX
 40+# ifdef HAVE_UPDWTMPX
 41 updwtmpx(RXVT_WTMPX_FILE, utx);
 42+# else
 43+ pututxline(utx);
 44+# endif
 45 # endif
 46 }
 47 #endif
 48@@ -254,7 +256,9 @@ rxvt_cleanutent(rxvt_t *r)
 49 if ((tmputx = getutxid(utx))) /* position to entry in utmp file */
 50 utx = tmputx;
 51 utx->ut_type = DEAD_PROCESS;
 52+# ifdef HAVE_UTMPX_SESSION
 53 utx->ut_session = getsid(0);
 54+# endif
 55 utx->ut_tv.tv_sec = time(NULL);
 56 utx->ut_tv.tv_usec = 0;
 57 #endif
 58@@ -275,7 +279,11 @@ rxvt_cleanutent(rxvt_t *r)
 59 # endif
 60 # endif
 61 # ifdef HAVE_STRUCT_UTMPX
 62+# ifdef HAVE_UPDWTMPX
 63 updwtmpx(RXVT_WTMPX_FILE, utx);
 64+# else
 65+ pututxline(utx);
 66+# endif
 67 # endif
 68 }
 69 #endif
 70@@ -327,7 +335,7 @@ rxvt_write_bsd_utmp(int utmp_pos, struct
 71 /*
 72 * Update a BSD style wtmp entry
 73 */
 74-#if defined(WTMP_SUPPORT) && !defined(HAVE_UPDWTMP)
 75+#if defined(WTMP_SUPPORT) && !defined(HAVE_UPDWTMP) && defined(HAVE_STRUCT_UTMP)
 76 /* INTPROTO */
 77 void
 78 rxvt_update_wtmp(const char *fname, const struct utmp *putmp)

File Added: pkgsrc/x11/rxvt/patches/patch-src_rxvt.h
$NetBSD: patch-src_rxvt.h,v 1.1 2012/07/09 19:06:22 joerg Exp $

--- src/rxvt.h.orig	2012-07-06 12:46:29.000000000 +0000
+++ src/rxvt.h
@@ -1097,8 +1097,9 @@ struct rxvt_hidden {
 #  if (__GNUC__ == 2 && __GNUC_MINOR__ < 5) || (__GNUC__ < 2)
 #   define __attribute__(x)
 #  endif
-# endif
+# else
 # define __attribute__(x)
+# endif
 #endif
 
 /*