r51673 - in /branches/upstream/libcurses-perl/current: Curses.c Curses.pm CursesVar.c HISTORY INSTALL MAINTENANCE
franck at users.alioth.debian.org
franck at users.alioth.debian.org
Wed Jan 27 22:21:28 UTC 2010
Author: franck
Date: Wed Jan 27 22:21:18 2010
New Revision: 51673
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=51673
Log:
[svn-upgrade] Integrating new upstream version, libcurses-perl (1.28)
Modified:
branches/upstream/libcurses-perl/current/Curses.c
branches/upstream/libcurses-perl/current/Curses.pm
branches/upstream/libcurses-perl/current/CursesVar.c
branches/upstream/libcurses-perl/current/HISTORY
branches/upstream/libcurses-perl/current/INSTALL
branches/upstream/libcurses-perl/current/MAINTENANCE
Modified: branches/upstream/libcurses-perl/current/Curses.c
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcurses-perl/current/Curses.c?rev=51673&op=diff
==============================================================================
--- branches/upstream/libcurses-perl/current/Curses.c (original)
+++ branches/upstream/libcurses-perl/current/Curses.c Wed Jan 27 22:21:18 2010
@@ -131,21 +131,21 @@
c_fun_not_there(fn)
char *fn;
{
- croak("Curses function '%s' is not defined by your vendor", fn);
+ croak("Curses function '%s' is not defined in your Curses library", fn);
}
static void
c_var_not_there(fn)
char *fn;
{
- croak("Curses variable '%s' is not defined by your vendor", fn);
+ croak("Curses variable '%s' is not defined in your Curses library", fn);
}
static void
c_con_not_there(fn)
char *fn;
{
- croak("Curses constant '%s' is not defined by your vendor", fn);
+ croak("Curses constant '%s' is not defined in your Curses library", fn);
}
/*
Modified: branches/upstream/libcurses-perl/current/Curses.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcurses-perl/current/Curses.pm?rev=51673&op=diff
==============================================================================
--- branches/upstream/libcurses-perl/current/Curses.pm (original)
+++ branches/upstream/libcurses-perl/current/Curses.pm Wed Jan 27 22:21:18 2010
@@ -51,7 +51,7 @@
package Curses;
-$VERSION = '1.27'; # Makefile.PL picks this up
+$VERSION = '1.28'; # Makefile.PL picks this up
use Carp;
require Exporter;
Modified: branches/upstream/libcurses-perl/current/CursesVar.c
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcurses-perl/current/CursesVar.c?rev=51673&op=diff
==============================================================================
--- branches/upstream/libcurses-perl/current/CursesVar.c (original)
+++ branches/upstream/libcurses-perl/current/CursesVar.c Wed Jan 27 22:21:18 2010
@@ -182,6 +182,7 @@
{
dXSARGS;
{
+#ifdef ALLOW_VARS_STORE
int num = (int)SvIV((SV*)SvRV(ST(0)));
switch (num) {
@@ -232,6 +233,25 @@
/* NOTREACHED */
}
ST(0) = &PL_sv_yes;
+#else
+ croak("Curses::Vars::STORE is not available in this version of "
+ "Curses.pm. Setting of variables is not allowed in recent "
+ "Curses (C) libraries.");
+
+ /* In January 2010, we first saw a version of Ncurses that does not
+ allow setting of variables. This has to do with making the library
+ re-entrant. The variables do not exist, but code that refers to them
+ still works because the variable names are defined as macros that call
+ functions that retrieve the value. For some of the variables, it
+ doesn't even make sense to set the variables, and we assume few programs
+ ever exploited this ability, so simply removed it by default for
+ everyone starting with the January 2010 release.
+
+ If you have an old Ncurses library that allows setting of variables
+ and really want this function in Curses.pm, #define ALLOW_VARS_STORE
+ in your c-config.h.
+ */
+#endif
}
XSRETURN(1);
}
Modified: branches/upstream/libcurses-perl/current/HISTORY
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcurses-perl/current/HISTORY?rev=51673&op=diff
==============================================================================
--- branches/upstream/libcurses-perl/current/HISTORY (original)
+++ branches/upstream/libcurses-perl/current/HISTORY Wed Jan 27 22:21:18 2010
@@ -10,6 +10,14 @@
Curses itself is much older than the Perl implementation. Curses was
originally only a C programming library.
+
+New in 1.28 (Released January 27, 2010)
+
+ Disable Curses::Var::STORE. It doesn't work (doesn't even compile) with
+ newer Ncurses (due to updates to make Ncurses reentrant). One can
+ re-enable it by defining ALLOW_VARS_STORE in c-config.h.
+
+ Improve "not provided by your vendor" message.
New in 1.27 (Released January 20, 2009)
Modified: branches/upstream/libcurses-perl/current/INSTALL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcurses-perl/current/INSTALL?rev=51673&op=diff
==============================================================================
--- branches/upstream/libcurses-perl/current/INSTALL (original)
+++ branches/upstream/libcurses-perl/current/INSTALL Wed Jan 27 22:21:18 2010
@@ -25,7 +25,7 @@
file "c-config.h" in the current ("Curses") directory. If not,
copy "hints/c-none.h" to "c-config.h" in the current directory.
Then edit "c-config.h" and follow the directions. If you have to
- "roll your own", be sure and save a copy. A "make clean" will
+ "roll your own", be sure to save a copy. A "make clean" will
delete "c-config.h". If you "rolled your own", please send me a
copy so I can include it in future distributions (see
"hints/c-isc.h" for an example of a user-contributed "c-config.h").
@@ -141,7 +141,7 @@
Alternatively, if you see that test.syms is picking the wrong
values, you can edit "CursesDef.h" by hand and follow the
- directions. If you have to "roll your own", be sure and save a
+ directions. If you have to "roll your own", be sure to save a
copy. A "make clean" will delete "CursesDef.h".
`make' will then try to compile "Curses.c". If you get any
@@ -241,8 +241,8 @@
- Set environment variables (for Perl Curses Makefile.PL):
- CURSES_CFLAGS=-Ic:\dev\pdc33
- CURSES_LDFLAGS=-Lc:\dev\pdc33 pdcurses.lib
+ CURSES_CFLAGS='-Ic:\dev\pdc33'
+ CURSES_LDFLAGS='-Lc:\dev\pdc33 pdcurses.lib'
- Build and Test
Modified: branches/upstream/libcurses-perl/current/MAINTENANCE
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libcurses-perl/current/MAINTENANCE?rev=51673&op=diff
==============================================================================
--- branches/upstream/libcurses-perl/current/MAINTENANCE (original)
+++ branches/upstream/libcurses-perl/current/MAINTENANCE Wed Jan 27 22:21:18 2010
@@ -33,11 +33,6 @@
- PAUSE will open the tarball automatically and index the packages it finds
in there by name (Curses::Window, Curses::Screen, etc.).
-
- It will find and index the package "Gen" and extract its README too. I'm
- pretty sure this is wrong -- this looks like it's just supposed to be a
- private thing used in the build. Someday, we should find a way to stop
- this.
For Bryan's test system:
More information about the Pkg-perl-cvs-commits
mailing list