From 0fecfa66704404da740357333adf726e4d20fcce47851cdb674284bf2d24137a Mon Sep 17 00:00:00 2001 From: "Dr. Werner Fink" Date: Fri, 20 Jul 2012 15:38:20 +0000 Subject: [PATCH] . OBS-URL: https://build.opensuse.org/package/show/Base:System/ncurses?expand=0&rev=88 --- ncurses-5.9-environment.dif | 23 +++++++++++++++++++++++ ncurses-5.9-patches.tar.bz2 | 4 ++-- ncurses.changes | 9 +++++++++ ncurses.spec | 2 ++ 4 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 ncurses-5.9-environment.dif diff --git a/ncurses-5.9-environment.dif b/ncurses-5.9-environment.dif new file mode 100644 index 0000000..ea37bbe --- /dev/null +++ b/ncurses-5.9-environment.dif @@ -0,0 +1,23 @@ +--- man/curs_util.3x ++++ man/curs_util.3x 2012-07-20 15:36:56.188010145 +0000 +@@ -159,6 +159,9 @@ ncurses modifies the last step in its co + checks if the \fBLINES\fR and \fBCOLUMNS\fR environment variables + are set to a number greater than zero. + .bP ++On openSUSE/SUSE Linux the default is \fBTRUE\fR, if you do not want this ++feature you may use the \fBuse_tioctl\fR routine with \fBFALSE\fR as an argument. ++.bP + for each, ncurses updates the corresponding environment variable + with the value that it has obtained via operating system call + or from the terminal database. +--- ncurses/tinfo/lib_data.c ++++ ncurses/tinfo/lib_data.c 2012-07-20 15:16:12.708010349 +0000 +@@ -255,7 +255,7 @@ NCURSES_EXPORT_VAR(NCURSES_PRESCREEN) _n + NULL, /* _tputs_trace */ + #endif + #endif +- FALSE, /* use_tioctl */ ++ TRUE, /* use_tioctl */ + }; + /* *INDENT-ON* */ + diff --git a/ncurses-5.9-patches.tar.bz2 b/ncurses-5.9-patches.tar.bz2 index 7012a8d..bc89101 100644 --- a/ncurses-5.9-patches.tar.bz2 +++ b/ncurses-5.9-patches.tar.bz2 @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:01bbaad70126e3991c383bad902e77479fbd390f8134bcbab6e12de373cfd75b -size 1305476 +oid sha256:cca70742cec2d524229eec0faa67b97469c9154fa3e60cdc895f5ab51fb9b1cd +size 1315164 diff --git a/ncurses.changes b/ncurses.changes index 99670a9..f34ef80 100644 --- a/ncurses.changes +++ b/ncurses.changes @@ -1,3 +1,12 @@ +------------------------------------------------------------------- +Fri Jul 20 15:12:43 UTC 2012 - werner@suse.de + +- Add ncurses patch 5.9.20120714 (bnc#769788) + + add use_tioctl() function (adapted from patch by Werner Fink, + Novell #769788): +- Set the default for use_tioctl() to TRUE and add a note in the + manual page for this. + ------------------------------------------------------------------- Mon Jul 9 12:51:19 UTC 2012 - werner@suse.de diff --git a/ncurses.spec b/ncurses.spec index dfc119c..af07bd0 100644 --- a/ncurses.spec +++ b/ncurses.spec @@ -48,6 +48,7 @@ Source7: baselibs.conf Patch0: ncurses-%{version}.dif Patch3: ncurses-5.9-overwrite.dif Patch4: ncurses-5.7-tack.dif +Patch5: ncurses-5.9-environment.dif BuildRoot: %{_tmppath}/%{name}-%{version}-build %global _sysconfdir /etc %global _miscdir %{_datadir}/misc @@ -262,6 +263,7 @@ tar xfj %{S:5} mv tack-* tack %patch -P 3 -p0 -b .ow %patch -P 4 -p0 -b .hs +%patch -P 5 -p0 -b .lc %patch -P 0 -p0 -b .p0 rm -vf include/ncurses_dll.h rm -vf mkdirs.sh