pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/games/xpilot The author assumes defined(__STDC__) && d...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d08ed4a786b6
branches:  trunk
changeset: 569102:d08ed4a786b6
user:      is <is%pkgsrc.org@localhost>
date:      Thu Jan 07 15:22:49 2010 +0000

description:
The author assumes defined(__STDC__) && defined(__sun__) results in no
<stdarg.h> available... this is not the case with even vaguely recent
gcc on Solaris.
Build fixed, Man page installation stays broken on Solaris as it is a
different (and more general) problem.

diffstat:

 games/xpilot/Makefile         |   4 ++--
 games/xpilot/distinfo         |   5 ++++-
 games/xpilot/patches/patch-ac |  13 +++++++++++++
 games/xpilot/patches/patch-ad |  13 +++++++++++++
 games/xpilot/patches/patch-ae |  13 +++++++++++++
 5 files changed, 45 insertions(+), 3 deletions(-)

diffs (80 lines):

diff -r 52f88f3dc464 -r d08ed4a786b6 games/xpilot/Makefile
--- a/games/xpilot/Makefile     Thu Jan 07 15:00:35 2010 +0000
+++ b/games/xpilot/Makefile     Thu Jan 07 15:22:49 2010 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.14 2008/07/14 12:56:04 joerg Exp $
+# $NetBSD: Makefile,v 1.15 2010/01/07 15:22:49 is Exp $
 #
 
 DISTNAME=      xpilot-4.5.4
-PKGREVISION=   2
+PKGREVISION=   3
 CATEGORIES=    games x11
 MASTER_SITES=  ${MASTER_SITE_SOURCEFORGE:=xpilotgame/}
 
diff -r 52f88f3dc464 -r d08ed4a786b6 games/xpilot/distinfo
--- a/games/xpilot/distinfo     Thu Jan 07 15:00:35 2010 +0000
+++ b/games/xpilot/distinfo     Thu Jan 07 15:22:49 2010 +0000
@@ -1,7 +1,10 @@
-$NetBSD: distinfo,v 1.8 2006/01/23 16:46:20 joerg Exp $
+$NetBSD: distinfo,v 1.9 2010/01/07 15:22:49 is Exp $
 
 SHA1 (xpilot-4.5.4.tar.gz) = d295977be8c27c3b9aecf8e69061a451bf8d7e4b
 RMD160 (xpilot-4.5.4.tar.gz) = db8e62fbfa7a7ba19abeb41da651ae4b0298bbc2
 Size (xpilot-4.5.4.tar.gz) = 1384615 bytes
 SHA1 (patch-aa) = 8cd85761965ded5186d19a7553b10c75dcc34b4f
 SHA1 (patch-ab) = 26e80e4ef932bc2f5ebcff19b2d41f83641be83c
+SHA1 (patch-ac) = 949ea447de5bd653a849ec16fc044c803615f6c6
+SHA1 (patch-ad) = 88ffc97307afe633a626027d6699bb08b3c0827e
+SHA1 (patch-ae) = a459b61013bddc3b214811568cf660131221b7da
diff -r 52f88f3dc464 -r d08ed4a786b6 games/xpilot/patches/patch-ac
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xpilot/patches/patch-ac     Thu Jan 07 15:22:49 2010 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ac,v 1.1 2010/01/07 15:22:49 is Exp $
+
+--- src/common/error.h.orig    2001-05-30 11:34:15.000000000 -0700
++++ src/common/error.h
+@@ -34,7 +34,7 @@
+ #ifndef       ERROR_H
+ #define       ERROR_H
+ 
+-# if (defined(__STDC__) && !defined(__sun__) || defined(__cplusplus) || defined(_WINDOWS))
++# if (defined(__STDC__) || defined(__cplusplus) || defined(_WINDOWS))
+ #  include <stdarg.h>
+     extern void warn(const char *fmt, ...);
+     extern void error(const char *fmt, ...);
diff -r 52f88f3dc464 -r d08ed4a786b6 games/xpilot/patches/patch-ad
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xpilot/patches/patch-ad     Thu Jan 07 15:22:49 2010 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.1 2010/01/07 15:22:49 is Exp $
+
+--- src/common/error.c.orig    2001-05-27 10:15:04.000000000 -0700
++++ src/common/error.c
+@@ -36,7 +36,7 @@
+ #undef HAVE_STDARG
+ #undef HAVE_VARARG
+ #ifndef _WINDOWS
+-# if (defined(__STDC__) && !defined(__sun__) || defined(__cplusplus))
++# if (defined(__STDC__) || defined(__cplusplus))
+ #  define HAVE_STDARG 1
+ # else
+ #  define HAVE_VARARG 1
diff -r 52f88f3dc464 -r d08ed4a786b6 games/xpilot/patches/patch-ae
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/xpilot/patches/patch-ae     Thu Jan 07 15:22:49 2010 +0000
@@ -0,0 +1,13 @@
+$NetBSD: patch-ae,v 1.1 2010/01/07 15:22:49 is Exp $
+
+--- src/common/net.h.orig      2001-06-02 14:02:14.000000000 -0700
++++ src/common/net.h
+@@ -84,7 +84,7 @@ int Sockbuf_read(sockbuf_t *sbuf);
+ int Sockbuf_copy(sockbuf_t *dest, sockbuf_t *src, int len);
+ 
+ #if !defined(STDVA)
+-#   if defined(__STDC__) && !defined(__sun__) || defined(__cplusplus)
++#   if defined(__STDC__) || defined(__cplusplus)
+ #     define STDVA    1               /* has ANSI stdarg stuff */
+ #   else
+ #     define STDVA    0               /* nope, still the K&R way */



Home | Main Index | Thread Index | Old Index