OpenPKG CVS Repository
http://cvs.openpkg.org/
____________________________________________________________________________
Server: cvs.openpkg.org Name: Ralf S. Engelschall
Root: /e/openpkg/cvs Email: [EMAIL PROTECTED]
Module: openpkg-src Date: 21-Apr-2004 16:11:08
Branch: HEAD Handle: 2004042115110700
Modified files:
openpkg-src/ncurses ncurses.patch ncurses.spec
Log:
add Tru64 support and explain why this patch is necessary at all
Summary:
Revision Changes Path
1.4 +10 -1 openpkg-src/ncurses/ncurses.patch
1.149 +1 -1 openpkg-src/ncurses/ncurses.spec
____________________________________________________________________________
patch -p0 <<'@@ .'
Index: openpkg-src/ncurses/ncurses.patch
============================================================================
$ cvs diff -u -r1.3 -r1.4 ncurses.patch
--- openpkg-src/ncurses/ncurses.patch 22 Feb 2004 08:39:48 -0000 1.3
+++ openpkg-src/ncurses/ncurses.patch 21 Apr 2004 14:11:07 -0000 1.4
@@ -1,3 +1,12 @@
+NCurses determines the presence of the <stdbool.h> header during its
+own build time but the result is used in a public header <curses.h>.
+It cannot be assumed that the application building against this public
+header <curses.h> also uses the same compiler NCurses was built with.
+Hence the public header <curses.h> has to perform an own in-place check
+for <stdbool.h>. This way NCurses can be build with OpenPKG's GCC 3.x
+while an application could build against the provided <curses.h> with an
+arbitrary C compiler (usually a non-GCC 3.x vendor compiler!).
+
Index: include/curses.h.in
--- include/curses.h.in.orig 2004-02-22 09:36:58.000000000 +0100
+++ include/curses.h.in 2004-02-22 09:37:14.000000000 +0100
@@ -6,7 +15,7 @@
*/
#ifndef NCURSES_ENABLE_STDBOOL_H
-#define NCURSES_ENABLE_STDBOOL_H @cf_cv_header_stdbool_h@
-+#if defined(__STDC__) && (__STDC_VERSION__ >= 199901L)
++#if defined(__STDC__) && (__STDC_VERSION__ >= 199901L) && !defined(__osf__)
+#define NCURSES_ENABLE_STDBOOL_H 1
+#else
+#define NCURSES_ENABLE_STDBOOL_H 0
@@ .
patch -p0 <<'@@ .'
Index: openpkg-src/ncurses/ncurses.spec
============================================================================
$ cvs diff -u -r1.148 -r1.149 ncurses.spec
--- openpkg-src/ncurses/ncurses.spec 18 Apr 2004 07:08:15 -0000 1.148
+++ openpkg-src/ncurses/ncurses.spec 21 Apr 2004 14:11:07 -0000 1.149
@@ -49,7 +49,7 @@
Group: Terminal
License: GPL
Version: %{V_base}.%{V_patchL}
-Release: 20040418
+Release: 20040421
# list of sources
Source0: ftp://invisible-island.net/ncurses/ncurses-%{V_base}.tar.gz
@@ .
______________________________________________________________________
The OpenPKG Project www.openpkg.org
CVS Repository Commit List [EMAIL PROTECTED]