Author: viric
Date: Fri Nov  4 18:10:44 2011
New Revision: 30230
URL: https://nixos.org/websvn/nix/?rev=30230&sc=1

Log:
Patching gtmess; it did not build on arm.

Added:
   
nixpkgs/trunk/pkgs/applications/networking/instant-messengers/gtmess/va_list.patch
Modified:
   
nixpkgs/trunk/pkgs/applications/networking/instant-messengers/gtmess/default.nix

Modified: 
nixpkgs/trunk/pkgs/applications/networking/instant-messengers/gtmess/default.nix
==============================================================================
--- 
nixpkgs/trunk/pkgs/applications/networking/instant-messengers/gtmess/default.nix
    Fri Nov  4 17:40:00 2011        (r30229)
+++ 
nixpkgs/trunk/pkgs/applications/networking/instant-messengers/gtmess/default.nix
    Fri Nov  4 18:10:44 2011        (r30230)
@@ -10,6 +10,8 @@
 
   buildInputs = [ ncurses openssl tcl tk];
 
+  patches = [ ./va_list.patch ];
+
   meta = {
     description = "Console MSN Messenger client for Linux and other unix 
systems";
     homepage = http://gtmess.sourceforge.net/;

Added: 
nixpkgs/trunk/pkgs/applications/networking/instant-messengers/gtmess/va_list.patch
==============================================================================
--- /dev/null   00:00:00 1970   (empty, because file is newly added)
+++ 
nixpkgs/trunk/pkgs/applications/networking/instant-messengers/gtmess/va_list.patch
  Fri Nov  4 18:10:44 2011        (r30230)
@@ -0,0 +1,22 @@
+diff --git a/src/client/screen.c b/src/client/screen.c
+index e8fa75f..d3842ac 100644
+--- a/src/client/screen.c
++++ b/src/client/screen.c
+@@ -255,7 +255,7 @@ void msg(int attr, const char *fmt, ...)
+     va_start(ap, fmt);
+     r = vmsg(attr, SML, fmt, ap);
+     va_end(ap);
+-    if (r) vmsg(C_ERR, SML, "msg(): output truncated\n", NULL);
++    if (r) msgn(C_ERR, SML, "msg(): output truncated\n");
+ }
+ 
+ void msgn(int attr, int size, const char *fmt, ...)
+@@ -266,7 +266,7 @@ void msgn(int attr, int size, const char *fmt, ...)
+     va_start(ap, fmt);
+     r = vmsg(attr, size, fmt, ap);
+     va_end(ap);
+-    if (r) vmsg(C_ERR, SML, "msgn(): output truncated\n", NULL);
++    if (r) msgn(C_ERR, SML, "msgn(): output truncated\n");
+ }
+ 
+ int screen_shut()
_______________________________________________
nix-commits mailing list
nix-comm...@lists.science.uu.nl
http://lists.science.uu.nl/mailman/listinfo/nix-commits

Reply via email to