rpms/ncurses/F-7 ncurses-5.6-20070612-libs.patch, NONE, 1.1 ncurses-5.6-20070812-comphash.patch, NONE, 1.1 ncurses-5.6-20070812-pad.patch, NONE, 1.1 .cvsignore, 1.25, 1.26 ncurses.spec, 1.73, 1.74 sources, 1.25, 1.26 ncurses-5.5-20061209-tgetent.patch, 1.1, NONE
Miroslav Lichvar (mlichvar)
fedora-extras-commits at redhat.com
Thu Oct 4 15:52:44 UTC 2007
Author: mlichvar
Update of /cvs/pkgs/rpms/ncurses/F-7
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv25560
Modified Files:
.cvsignore ncurses.spec sources
Added Files:
ncurses-5.6-20070612-libs.patch
ncurses-5.6-20070812-comphash.patch
ncurses-5.6-20070812-pad.patch
Removed Files:
ncurses-5.5-20061209-tgetent.patch
Log Message:
- update to patch 20070812 (#310071)
- fix comp_hash string output
- avoid comparing padding in cchar_t structure
- buildrequire diffutils
ncurses-5.6-20070612-libs.patch:
--- NEW FILE ncurses-5.6-20070612-libs.patch ---
--- ncurses-5.6/menu/Makefile.in.libs 2007-06-13 15:01:12.000000000 +0200
+++ ncurses-5.6/menu/Makefile.in 2007-06-13 15:01:13.000000000 +0200
@@ -95,7 +95,7 @@ LINK = $(LIBTOOL_LINK)
LDFLAGS = @LDFLAGS@ @LD_MODEL@ @LIBS@
SHLIB_DIRS = -L../lib
-SHLIB_LIST = $(SHLIB_DIRS) -lncurses at LIB_SUFFIX@ @SHLIB_LIST@
+SHLIB_LIST = $(SHLIB_DIRS) -lncurses at LIB_SUFFIX@ #@SHLIB_LIST@
MK_SHARED_LIB = @MK_SHARED_LIB@
--- ncurses-5.6/panel/Makefile.in.libs 2007-06-13 15:01:12.000000000 +0200
+++ ncurses-5.6/panel/Makefile.in 2007-06-13 15:01:13.000000000 +0200
@@ -96,7 +96,7 @@ LINK = $(LIBTOOL_LINK)
LDFLAGS = @LDFLAGS@ @LD_MODEL@ @LIBS@
SHLIB_DIRS = -L../lib
-SHLIB_LIST = $(SHLIB_DIRS) -lncurses at LIB_SUFFIX@ @SHLIB_LIST@
+SHLIB_LIST = $(SHLIB_DIRS) -lncurses at LIB_SUFFIX@ #@SHLIB_LIST@
MK_SHARED_LIB = @MK_SHARED_LIB@
--- ncurses-5.6/form/Makefile.in.libs 2007-06-13 15:01:12.000000000 +0200
+++ ncurses-5.6/form/Makefile.in 2007-06-13 15:01:13.000000000 +0200
@@ -95,7 +95,7 @@ LINK = $(LIBTOOL_LINK)
LDFLAGS = @LDFLAGS@ @LD_MODEL@ @LIBS@
SHLIB_DIRS = -L../lib
-SHLIB_LIST = $(SHLIB_DIRS) -lncurses at LIB_SUFFIX@ @SHLIB_LIST@
+SHLIB_LIST = $(SHLIB_DIRS) -lncurses at LIB_SUFFIX@ #@SHLIB_LIST@
MK_SHARED_LIB = @MK_SHARED_LIB@
ncurses-5.6-20070812-comphash.patch:
--- NEW FILE ncurses-5.6-20070812-comphash.patch ---
Index: ncurses/tinfo/comp_hash.c
Prereq: 1.32
--- ncurses-5.6-20070812+/ncurses/tinfo/comp_hash.c 2007-08-12 00:40:27.000000000 +0000
+++ ncurses-5.6-20070818/ncurses/tinfo/comp_hash.c 2007-08-18 21:42:25.000000000 +0000
@@ -50,7 +50,7 @@
#define DEBUG(level, params) /*nothing */
#endif
-MODULE_ID("$Id: comp_hash.c,v 1.32 2007/08/12 00:40:27 tom Exp $")
+MODULE_ID("$Id: comp_hash.c,v 1.33 2007/08/18 21:42:25 tom Exp $")
static int hash_function(const char *);
@@ -299,17 +299,17 @@
int len = 0;
int nxt;
- printf("static const char %s_names_text[] = \"\\\n", root_name);
+ printf("static const char %s_names_text[] = \\\n", root_name);
for (n = 0; n < CAPTABSIZE; n++) {
- nxt = strlen(name_table[n].nte_name) + 2;
+ nxt = strlen(name_table[n].nte_name) + 5;
if (nxt + len > 72) {
printf("\\\n");
len = 0;
}
- printf("%s\\0", name_table[n].nte_name);
+ printf("\"%s\\0\" ", name_table[n].nte_name);
len += nxt;
}
- printf("\";\n\n");
+ printf(";\n\n");
len = 0;
printf("static name_table_data const %s_names_data[] =\n",
ncurses-5.6-20070812-pad.patch:
--- NEW FILE ncurses-5.6-20070812-pad.patch ---
diff -up ncurses-5.6/ncurses/tty/hashmap.c.pad ncurses-5.6/ncurses/tty/hashmap.c
--- ncurses-5.6/ncurses/tty/hashmap.c.pad 2007-10-04 10:08:40.000000000 +0200
+++ ncurses-5.6/ncurses/tty/hashmap.c 2007-10-04 10:08:40.000000000 +0200
@@ -131,8 +131,8 @@ update_cost(NCURSES_CH_T * from, NCURSES
int cost = 0;
int i;
- for (i = TEXTWIDTH; i > 0; i--)
- if (!(CharEq(*from++, *to++)))
+ for (i = TEXTWIDTH; i > 0; i--, from++, to++)
+ if (!(CharEq(*from, *to)))
cost++;
return cost;
@@ -148,8 +148,8 @@ update_cost_from_blank(NCURSES_CH_T * to
if (back_color_erase)
SetPair(blank, GetPair(stdscr->_nc_bkgd));
- for (i = TEXTWIDTH; i > 0; i--)
- if (!(CharEq(blank, *to++)))
+ for (i = TEXTWIDTH; i > 0; i--, to++)
+ if (!(CharEq(blank, *to)))
cost++;
return cost;
diff -up ncurses-5.6/ncurses/curses.priv.h.pad ncurses-5.6/ncurses/curses.priv.h
--- ncurses-5.6/ncurses/curses.priv.h.pad 2007-10-04 10:08:40.000000000 +0200
+++ ncurses-5.6/ncurses/curses.priv.h 2007-10-04 10:38:33.000000000 +0200
@@ -902,7 +902,14 @@ extern NCURSES_EXPORT_VAR(SIG_ATOMIC_T)
#define SetAttr(c,a) AttrOf(c) = ((a) & A_ATTRIBUTES) | WidecExt(c)
#define NewChar2(c,a) { a, { c, NulChar } NulColor }
#define NewChar(ch) NewChar2(ChCharOf(ch), ChAttrOf(ch))
-#define CharEq(a,b) (!memcmp(&(a), &(b), sizeof(a)))
+#if CCHARW_MAX == 5
+#define CharEq(a,b) ((a).attr == (b).attr && (a).chars[0] == (b).chars[0] \
+ && (a).chars[1] == (b).chars[1] && (a).chars[2] == (b).chars[2] \
+ && (a).chars[3] == (b).chars[3] && (a).chars[4] == (b).chars[4] \
+ if_EXT_COLORS(&& (a).ext_color == (b).ext_color))
+#else
+#error CCHARW_MAX != 5
+#endif
#define SetChar(ch,c,a) do { \
NCURSES_CH_T *_cp = &ch; \
memset(_cp, 0, sizeof(ch)); \
Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/ncurses/F-7/.cvsignore,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- .cvsignore 8 Mar 2007 14:04:24 -0000 1.25
+++ .cvsignore 4 Oct 2007 15:52:12 -0000 1.26
@@ -1,2 +1,3 @@
ncurses-5.6.tar.gz
-ncurses-5.6-20070303-patch.sh.bz2
+ncurses-5.6-20070714-patch.sh.bz2
+ncurses-5.6-20070714-20070812.patch.bz2
Index: ncurses.spec
===================================================================
RCS file: /cvs/pkgs/rpms/ncurses/F-7/ncurses.spec,v
retrieving revision 1.73
retrieving revision 1.74
diff -u -r1.73 -r1.74
--- ncurses.spec 8 Mar 2007 14:04:24 -0000 1.73
+++ ncurses.spec 4 Oct 2007 15:52:12 -0000 1.74
@@ -1,19 +1,23 @@
Summary: A terminal handling library
Name: ncurses
Version: 5.6
-Release: 6.20070303%{?dist}
+Release: 7.20070812%{?dist}
License: MIT
Group: System Environment/Libraries
URL: http://invisible-island.net/ncurses/ncurses.html
Source0: ftp://invisible-island.net/ncurses/ncurses-%{version}.tar.gz
-Patch1: ncurses-5.6-20070303-patch.sh.bz2
+Patch1: ncurses-5.6-20070714-patch.sh.bz2
+Patch2: ncurses-5.6-20070714-20070812.patch.bz2
-Patch6: ncurses-5.5-20061209-tgetent.patch
Patch8: ncurses-5.5-20061209-config.patch
+Patch9: ncurses-5.6-20070612-libs.patch
Patch10: ncurses-5.5-20061209-xterm.patch
Patch11: ncurses-5.6-20070120-urxvt.patch
+Patch12: ncurses-5.6-20070812-comphash.patch
+Patch13: ncurses-5.6-20070812-pad.patch
BuildRequires: gpm-devel
+BuildRequires: diffutils
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
@@ -48,11 +52,14 @@
%patch1 -p1
# tack isn't in ncurses tree since 20070203
rm -rf tack
+%patch2 -p1
-%patch6 -p1 -b .tgetent
%patch8 -p1 -b .config
+%patch9 -p1 -b .libs
%patch10 -p1 -b .xterm
%patch11 -p1 -b .urxvt
+%patch12 -p1 -b .comphash
+%patch13 -p1 -b .pad
# this will be in documentation, drop executable bits
chmod 644 test/*
@@ -182,6 +189,12 @@
rm -rf ${RPM_BUILD_ROOT}
%changelog
+* Thu Oct 04 2007 Miroslav Lichvar <mlichvar at redhat.com> 5.6-7.20070812.fc7
+- update to patch 20070812 (#310071)
+- fix comp_hash string output
+- avoid comparing padding in cchar_t structure
+- buildrequire diffutils
+
* Thu Mar 08 2007 Miroslav Lichvar <mlichvar at redhat.com> 5.6-6.20070303
- update to patch 20070303
- use one libtinfo for both libncurses and libncursesw
Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/ncurses/F-7/sources,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -r1.25 -r1.26
--- sources 8 Mar 2007 14:04:24 -0000 1.25
+++ sources 4 Oct 2007 15:52:12 -0000 1.26
@@ -1,2 +1,3 @@
b6593abe1089d6aab1551c105c9300e3 ncurses-5.6.tar.gz
-8d3f8d5a55baa9b1feb163d152ce67f8 ncurses-5.6-20070303-patch.sh.bz2
+538ee3ad54b446ad8e8e2fd593db7435 ncurses-5.6-20070714-patch.sh.bz2
+7df5199209339dca1d9a8e349060434b ncurses-5.6-20070714-20070812.patch.bz2
--- ncurses-5.5-20061209-tgetent.patch DELETED ---
More information about the fedora-extras-commits
mailing list