r51676 - in /trunk/libcurses-perl: Curses.c Curses.pm CursesVar.c HISTORY INSTALL MAINTENANCE debian/changelog
franck at users.alioth.debian.org
franck at users.alioth.debian.org
Wed Jan 27 22:27:21 UTC 2010
Author: franck
Date: Wed Jan 27 22:27:15 2010
New Revision: 51676
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=51676
Log:
Integrating new upstream release into trunk.
Modified:
trunk/libcurses-perl/Curses.c
trunk/libcurses-perl/Curses.pm
trunk/libcurses-perl/CursesVar.c
trunk/libcurses-perl/HISTORY
trunk/libcurses-perl/INSTALL
trunk/libcurses-perl/MAINTENANCE
trunk/libcurses-perl/debian/changelog
Modified: trunk/libcurses-perl/Curses.c
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcurses-perl/Curses.c?rev=51676&op=diff
==============================================================================
--- trunk/libcurses-perl/Curses.c (original)
+++ trunk/libcurses-perl/Curses.c Wed Jan 27 22:27:15 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: trunk/libcurses-perl/Curses.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcurses-perl/Curses.pm?rev=51676&op=diff
==============================================================================
--- trunk/libcurses-perl/Curses.pm (original)
+++ trunk/libcurses-perl/Curses.pm Wed Jan 27 22:27:15 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: trunk/libcurses-perl/CursesVar.c
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcurses-perl/CursesVar.c?rev=51676&op=diff
==============================================================================
--- trunk/libcurses-perl/CursesVar.c (original)
+++ trunk/libcurses-perl/CursesVar.c Wed Jan 27 22:27:15 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: trunk/libcurses-perl/HISTORY
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcurses-perl/HISTORY?rev=51676&op=diff
==============================================================================
--- trunk/libcurses-perl/HISTORY (original)
+++ trunk/libcurses-perl/HISTORY Wed Jan 27 22:27:15 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: trunk/libcurses-perl/INSTALL
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcurses-perl/INSTALL?rev=51676&op=diff
==============================================================================
--- trunk/libcurses-perl/INSTALL (original)
+++ trunk/libcurses-perl/INSTALL Wed Jan 27 22:27:15 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: trunk/libcurses-perl/MAINTENANCE
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcurses-perl/MAINTENANCE?rev=51676&op=diff
==============================================================================
--- trunk/libcurses-perl/MAINTENANCE (original)
+++ trunk/libcurses-perl/MAINTENANCE Wed Jan 27 22:27:15 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:
Modified: trunk/libcurses-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libcurses-perl/debian/changelog?rev=51676&op=diff
==============================================================================
--- trunk/libcurses-perl/debian/changelog (original)
+++ trunk/libcurses-perl/debian/changelog Wed Jan 27 22:27:15 2010
@@ -1,4 +1,4 @@
-libcurses-perl (1.27-3) UNRELEASED; urgency=low
+libcurses-perl (1.28-1) UNRELEASED; urgency=low
[ Ryan Niebur ]
* Update ryan52's email address
@@ -7,7 +7,10 @@
* Add debian/README.source to document quilt usage, as required by
Debian Policy since 3.8.0.
- -- Ryan Niebur <ryan at debian.org> Fri, 25 Sep 2009 00:24:20 -0700
+ [Franck Joncourt]
+ * New upstream release.
+
+ -- Franck Joncourt <franck at debian.org> Wed, 27 Jan 2010 23:26:28 +0100
libcurses-perl (1.27-2) unstable; urgency=low
More information about the Pkg-perl-cvs-commits
mailing list