summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjoerg <joerg>2012-07-09 19:06:21 +0000
committerjoerg <joerg>2012-07-09 19:06:21 +0000
commit3437643935b8630abdd0ce2263b983c374383cfd (patch)
treeb686ba7641d751c37ee319871427a83e9741650a
parente8e046b9d97df4c3e325fa89abac4f70c24aeaf2 (diff)
downloadpkgsrc-3437643935b8630abdd0ce2263b983c374383cfd.tar.gz
Merge patch-ai into patch-ak. Don't remove __attribute__().
-rw-r--r--x11/rxvt/distinfo6
-rw-r--r--x11/rxvt/patches/patch-ai57
-rw-r--r--x11/rxvt/patches/patch-ak63
-rw-r--r--x11/rxvt/patches/patch-src_rxvt.h15
4 files changed, 76 insertions, 65 deletions
diff --git a/x11/rxvt/distinfo b/x11/rxvt/distinfo
index dd9dae3d129..36d41b23eeb 100644
--- a/x11/rxvt/distinfo
+++ b/x11/rxvt/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.21 2008/04/03 22:33:00 tonnerre Exp $
+$NetBSD: distinfo,v 1.22 2012/07/09 19:06:21 joerg Exp $
SHA1 (rxvt-2.7.10.tar.bz2) = 16eae23c3227e28e5e7a53a58eaa3226affe65f9
RMD160 (rxvt-2.7.10.tar.bz2) = 83fab8df589e2413ba820d04bafb069e6af8c445
@@ -11,8 +11,8 @@ SHA1 (patch-ae) = 76221e9b3cd35a0f40fb6128e0bf9d74d232d907
SHA1 (patch-af) = 6a4f5cf91bc449f7ecef51695be278074e603c8b
SHA1 (patch-ag) = 11019ed97892c8bd8834c56433573719892336c4
SHA1 (patch-ah) = 5e6fcf6b4b4fe1111b97d0b916501ab5855a755a
-SHA1 (patch-ai) = 0f3e800efc5b87243208de9fb9fafe9abde73201
SHA1 (patch-aj) = 43ca25f034e6160f3a3dabbf1488df31cdecf95b
-SHA1 (patch-ak) = 960d0bd263a6b8776df93603dc5322b685a6afae
+SHA1 (patch-ak) = 83f7ffcf91d671bd8e75e5c063fd1336c0e08ed6
SHA1 (patch-al) = 7107ec12205d0a5011a5828f8d30fbd577de41b7
SHA1 (patch-am) = db69ba3b6754454613aa4aec61c1b033d7e013ae
+SHA1 (patch-src_rxvt.h) = 86db6ffc24f1133771b6e94275a9edab07b97437
diff --git a/x11/rxvt/patches/patch-ai b/x11/rxvt/patches/patch-ai
deleted file mode 100644
index f3230a80199..00000000000
--- a/x11/rxvt/patches/patch-ai
+++ /dev/null
@@ -1,57 +0,0 @@
-$NetBSD: patch-ai,v 1.1 2004/09/15 18:29:20 minskim Exp $
-
---- src/logging.c.orig Sun Dec 15 18:33:04 2002
-+++ src/logging.c
-@@ -137,7 +137,9 @@ rxvt_makeutent(rxvt_t *r, const char *pt
- STRNCPY(utx->ut_user, (pwent && pwent->pw_name) ? pwent->pw_name : "?",
- sizeof(utx->ut_user));
- STRNCPY(utx->ut_id, ut_id, sizeof(utx->ut_id));
-+# ifdef HAVE_UTMPX_SESSION
- utx->ut_session = getsid(0);
-+# endif
- utx->ut_tv.tv_sec = time(NULL);
- utx->ut_tv.tv_usec = 0;
- utx->ut_pid = r->h->cmd_pid;
-@@ -203,7 +205,11 @@ rxvt_makeutent(rxvt_t *r, const char *pt
- # endif
- # endif
- # ifdef HAVE_STRUCT_UTMPX
-+# ifdef HAVE_UPDWTMPX
- updwtmpx(RXVT_WTMPX_FILE, utx);
-+# else
-+ pututxline(utx);
-+# endif
- # endif
- }
- #endif
-@@ -254,7 +260,9 @@ rxvt_cleanutent(rxvt_t *r)
- if ((tmputx = getutxid(utx))) /* position to entry in utmp file */
- utx = tmputx;
- utx->ut_type = DEAD_PROCESS;
-+# ifdef HAVE_UTMPX_SESSION
- utx->ut_session = getsid(0);
-+# endif
- utx->ut_tv.tv_sec = time(NULL);
- utx->ut_tv.tv_usec = 0;
- #endif
-@@ -275,7 +283,11 @@ rxvt_cleanutent(rxvt_t *r)
- # endif
- # endif
- # ifdef HAVE_STRUCT_UTMPX
-+# ifdef HAVE_UPDWTMPX
- updwtmpx(RXVT_WTMPX_FILE, utx);
-+# else
-+ pututxline(utx);
-+# endif
- # endif
- }
- #endif
-@@ -327,7 +339,7 @@ rxvt_write_bsd_utmp(int utmp_pos, struct
- /*
- * Update a BSD style wtmp entry
- */
--#if defined(WTMP_SUPPORT) && !defined(HAVE_UPDWTMP)
-+#if defined(WTMP_SUPPORT) && !defined(HAVE_UPDWTMP) && defined(HAVE_STRUCT_UTMP)
- /* INTPROTO */
- void
- rxvt_update_wtmp(const char *fname, const struct utmp *putmp)
diff --git a/x11/rxvt/patches/patch-ak b/x11/rxvt/patches/patch-ak
index 98f1dc07d26..34880218c66 100644
--- a/x11/rxvt/patches/patch-ak
+++ b/x11/rxvt/patches/patch-ak
@@ -1,8 +1,8 @@
-$NetBSD: patch-ak,v 1.2 2005/06/16 10:47:43 hira Exp $
+$NetBSD: patch-ak,v 1.3 2012/07/09 19:06:22 joerg Exp $
---- src/logging.c.orig 2005-01-16 16:33:20.000000000 -0500
-+++ src/logging.c 2005-01-16 16:55:25.000000000 -0500
-@@ -66,9 +66,7 @@
+--- src/logging.c.orig 2002-12-16 00:33:04.000000000 +0000
++++ src/logging.c
+@@ -66,9 +66,7 @@ rxvt_makeutent(rxvt_t *r, const char *pt
#ifdef HAVE_STRUCT_UTMPX
struct utmpx *utx = &(r->h->utx);
#endif
@@ -12,7 +12,7 @@ $NetBSD: patch-ak,v 1.2 2005/06/16 10:47:43 hira Exp $
char ut_id[5];
struct passwd *pwent = getpwuid(getuid());
-@@ -78,10 +76,8 @@
+@@ -78,10 +76,8 @@ rxvt_makeutent(rxvt_t *r, const char *pt
if (!STRNCMP(pty, "pty", 3) || !STRNCMP(pty, "tty", 3)) {
STRNCPY(ut_id, (pty + 3), sizeof(ut_id));
}
@@ -23,3 +23,56 @@ $NetBSD: patch-ak,v 1.2 2005/06/16 10:47:43 hira Exp $
else if (STRNCMP(pty, "pty", 3) && STRNCMP(pty, "tty", 3)) {
rxvt_print_error("can't parse tty name \"%s\"", pty);
return;
+@@ -137,7 +133,9 @@ rxvt_makeutent(rxvt_t *r, const char *pt
+ STRNCPY(utx->ut_user, (pwent && pwent->pw_name) ? pwent->pw_name : "?",
+ sizeof(utx->ut_user));
+ STRNCPY(utx->ut_id, ut_id, sizeof(utx->ut_id));
++# ifdef HAVE_UTMPX_SESSION
+ utx->ut_session = getsid(0);
++# endif
+ utx->ut_tv.tv_sec = time(NULL);
+ utx->ut_tv.tv_usec = 0;
+ utx->ut_pid = r->h->cmd_pid;
+@@ -203,7 +201,11 @@ rxvt_makeutent(rxvt_t *r, const char *pt
+ # endif
+ # endif
+ # ifdef HAVE_STRUCT_UTMPX
++# ifdef HAVE_UPDWTMPX
+ updwtmpx(RXVT_WTMPX_FILE, utx);
++# else
++ pututxline(utx);
++# endif
+ # endif
+ }
+ #endif
+@@ -254,7 +256,9 @@ rxvt_cleanutent(rxvt_t *r)
+ if ((tmputx = getutxid(utx))) /* position to entry in utmp file */
+ utx = tmputx;
+ utx->ut_type = DEAD_PROCESS;
++# ifdef HAVE_UTMPX_SESSION
+ utx->ut_session = getsid(0);
++# endif
+ utx->ut_tv.tv_sec = time(NULL);
+ utx->ut_tv.tv_usec = 0;
+ #endif
+@@ -275,7 +279,11 @@ rxvt_cleanutent(rxvt_t *r)
+ # endif
+ # endif
+ # ifdef HAVE_STRUCT_UTMPX
++# ifdef HAVE_UPDWTMPX
+ updwtmpx(RXVT_WTMPX_FILE, utx);
++# else
++ pututxline(utx);
++# endif
+ # endif
+ }
+ #endif
+@@ -327,7 +335,7 @@ rxvt_write_bsd_utmp(int utmp_pos, struct
+ /*
+ * Update a BSD style wtmp entry
+ */
+-#if defined(WTMP_SUPPORT) && !defined(HAVE_UPDWTMP)
++#if defined(WTMP_SUPPORT) && !defined(HAVE_UPDWTMP) && defined(HAVE_STRUCT_UTMP)
+ /* INTPROTO */
+ void
+ rxvt_update_wtmp(const char *fname, const struct utmp *putmp)
diff --git a/x11/rxvt/patches/patch-src_rxvt.h b/x11/rxvt/patches/patch-src_rxvt.h
new file mode 100644
index 00000000000..85bf446b889
--- /dev/null
+++ b/x11/rxvt/patches/patch-src_rxvt.h
@@ -0,0 +1,15 @@
+$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
+
+ /*