CRUX-ARM : Home

Home :: Documentation :: Download :: Development :: Community :: Ports :: Packages :: Bugs :: Links :: About :: Donors
gtmess: Fixed va_list error.
authorVictor Martinez <pitillo@ono.com>
Wed, 26 May 2010 14:30:46 +0000 (14:30 +0000)
committerVictor Martinez <pitillo@ono.com>
Wed, 26 May 2010 14:30:46 +0000 (14:30 +0000)
gtmess/.md5sum
gtmess/Pkgfile
gtmess/gtmess-0.96beta3_valist.patch [new file with mode: 0644]

index db3d94307162286546e74561bb7894abb538e249..70735ed4cae6c1a27981e0c774a372db53327a42 100644 (file)
@@ -1 +1,2 @@
 d2d2a2070d214d78ee7cfecdefc6b16f  gtmess-0.96beta3.tar.gz
+3e70f49787653849c2e47b196bf31710  gtmess-0.96beta3_valist.patch
index 82e2a476722b6381866b026383ca67fb506aa2d6..1978b2bb33a354ae2656eebaf0e5ee25acb79df9 100644 (file)
@@ -6,14 +6,15 @@
 
 name=gtmess
 version=0.96beta3
-release=1
-source=(http://dl.sourceforge.net/$name/$name-$version.tar.gz)
+release=2
+source=(http://dl.sourceforge.net/$name/$name-$version.tar.gz \
+        gtmess-0.96beta3_valist.patch)
 
 build() {
   cd $name-$version
+  patch -p1 -i $SRC/gtmess-0.96beta3_valist.patch
   ./configure --build=$CHOST \
               --host=$CTARGET \
-              --disable-nls \
               --prefix=/usr \
               --mandir=/usr/man
   make
diff --git a/gtmess/gtmess-0.96beta3_valist.patch b/gtmess/gtmess-0.96beta3_valist.patch
new file mode 100644 (file)
index 0000000..37ba958
--- /dev/null
@@ -0,0 +1,21 @@
+diff -pruN gtmess-0.96beta3orig//src/client/screen.c gtmess-0.96beta3//src/client/screen.c
+--- gtmess-0.96beta3orig//src/client/screen.c  2010-05-26 13:46:47.000000000 +0000
++++ gtmess-0.96beta3//src/client/screen.c      2010-05-26 14:02:51.000000000 +0000
+@@ -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) vmsg(C_ERR, SML, "msg(): output truncated\n", ap);
+ }
+ void msgn(int attr, int size, const char *fmt, ...)
+@@ -266,7 +266,7 @@ void msgn(int attr, int size, const char
+     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) vmsg(C_ERR, SML, "msgn(): output truncated\n", ap);
+ }
+ int screen_shut()