OBS User unknown 2008-06-23 18:45:09 +00:00 committed by Git OBS Bridge
parent 56aaf7b5b2
commit 719ea179a5
3 changed files with 64 additions and 23 deletions

View File

@ -0,0 +1,29 @@
--- src/main.c 2008-06-07 14:19:34.000000000 +0400
+++ src/main.c.my 2008-06-07 14:19:21.000000000 +0400
@@ -153,12 +153,7 @@
yyout = stdout;
/* save the command name for messages */
argv0 = argv[0];
-#if defined(KEY_RESIZE) && !defined(__DJGPP__)
- winch_action.sa_sigaction = sigwinch_handler;
- sigemptyset(&winch_action.sa_mask);
- winch_action.sa_flags = SA_SIGINFO;
- sigaction(SIGWINCH,&winch_action,NULL);
-#endif
+
/* set the options */
while (--argc > 0 && (*++argv)[0] == '-') {
/* HBB 20030814: add GNU-style --help and --version options */
@@ -402,6 +397,12 @@
}
if (linemode == NO) {
+#if defined(KEY_RESIZE) && !defined(__DJGPP__)
+ winch_action.sa_sigaction = sigwinch_handler;
+ sigemptyset(&winch_action.sa_mask);
+ winch_action.sa_flags = SA_SIGINFO;
+ sigaction(SIGWINCH,&winch_action,NULL);
+#endif
signal(SIGINT, SIG_IGN); /* ignore interrupts */
signal(SIGPIPE, SIG_IGN);/* | command can cause pipe signal */

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jun 18 16:17:26 CEST 2008 - anosek@suse.cz
- fixed cscope segfaults when detaching from screen (bnc#398268)
- applied attached patch (sigwinch-linemode.patch)
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Dec 10 12:54:45 CET 2007 - pth@suse.de Mon Dec 10 12:54:45 CET 2007 - pth@suse.de

View File

@ -1,7 +1,7 @@
# #
# spec file for package cscope (Version 15.6) # spec file for package cscope (Version 15.6)
# #
# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine # This file and all modifications and additions to the pristine
# package are under the same license as the package itself. # package are under the same license as the package itself.
# #
@ -10,13 +10,14 @@
# norootforbuild # norootforbuild
Name: cscope Name: cscope
BuildRequires: ncurses-devel BuildRequires: ncurses-devel
License: BSD 3-Clause License: BSD 3-Clause
Group: Development/Tools/Navigators Group: Development/Tools/Navigators
AutoReqProv: on AutoReqProv: on
Version: 15.6 Version: 15.6
Release: 65 Release: 95
Summary: Interactive Tool for Browsing C Source Code Summary: Interactive Tool for Browsing C Source Code
Source: cscope-%{version}.tar.bz2 Source: cscope-%{version}.tar.bz2
Patch1: cscope-null.patch Patch1: cscope-null.patch
@ -24,6 +25,7 @@ Patch2: cscope-%{version}-gcc-warnings.patch
Patch3: cscope-%{version}-vpath.patch Patch3: cscope-%{version}-vpath.patch
Patch4: cscope-%{version}-sprintf.patch Patch4: cscope-%{version}-sprintf.patch
Patch5: cscope-cleanup_on_sigterm.patch Patch5: cscope-cleanup_on_sigterm.patch
Patch6: %{name}-%{version}-sigwinch-linemode.patch
Url: http://cscope.sourceforge.net/ Url: http://cscope.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
%define _prefix /usr %define _prefix /usr
@ -49,6 +51,7 @@ Authors:
%patch3 %patch3
%patch4 %patch4
%patch5 %patch5
%patch6
%build %build
%{?suse_update_config:%{suse_update_config}} %{?suse_update_config:%{suse_update_config}}
@ -72,56 +75,59 @@ rm -rf $RPM_BUILD_ROOT
%{_prefix}/bin/cscope %{_prefix}/bin/cscope
%changelog %changelog
* Mon Dec 10 2007 - pth@suse.de * Wed Jun 18 2008 anosek@suse.cz
- fixed cscope segfaults when detaching from screen (bnc#398268)
- applied attached patch (sigwinch-linemode.patch)
* Mon Dec 10 2007 pth@suse.de
- Cleanup on receiving SIGTERM (#339807) and actually include - Cleanup on receiving SIGTERM (#339807) and actually include
the patch. the patch.
- Don't remove buildroot in install section - Don't remove buildroot in install section
* Fri Mar 30 2007 - ro@suse.de * Fri Mar 30 2007 ro@suse.de
- added ncurses-devel to buildreq - added ncurses-devel to buildreq
* Fri Nov 10 2006 - ro@suse.de * Fri Nov 10 2006 ro@suse.de
- fix manpage permissions - fix manpage permissions
* Wed Oct 18 2006 - anosek@suse.cz * Wed Oct 18 2006 anosek@suse.cz
- updated to version 15.6 - updated to version 15.6
* fixed various security issues * fixed various security issues
- dropped obsolete CVE-2006-4262.patch, tmpfile.patch - dropped obsolete CVE-2006-4262.patch, tmpfile.patch
* Wed Aug 30 2006 - anosek@suse.cz * Wed Aug 30 2006 anosek@suse.cz
- fixed previous change - fixed previous change
* Tue Aug 29 2006 - anosek@suse.de * Tue Aug 29 2006 anosek@suse.de
- fixed multiple buffer overflows [#200534] (CVE-2006-4262.pach) - fixed multiple buffer overflows [#200534] (CVE-2006-4262.pach)
* Mon May 29 2006 - mmarek@suse.cz * Mon May 29 2006 mmarek@suse.cz
- replace sprintf() with snprintf() (patch taken from debian - replace sprintf() with snprintf() (patch taken from debian
package) to avoid buffer overflows such as CVE-2004-2541 package) to avoid buffer overflows such as CVE-2004-2541
[#177568] (sprintf.patch) [#177568] (sprintf.patch)
* Mon Feb 27 2006 - mmarek@suse.cz * Mon Feb 27 2006 mmarek@suse.cz
- fix handling of empty VPATH components - fix handling of empty VPATH components
[#152643] (vpath.patch) [#152643] (vpath.patch)
* Wed Jan 25 2006 - mls@suse.de * Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires - converted neededforbuild to BuildRequires
* Mon Sep 19 2005 - mmarek@suse.cz * Mon Sep 19 2005 mmarek@suse.cz
- fix "control reaches end of non-void function" warning in exec.c - fix "control reaches end of non-void function" warning in exec.c
* Sat Jan 29 2005 - meissner@suse.de * Sat Jan 29 2005 meissner@suse.de
- use NULL as execlp arglist terminator. - use NULL as execlp arglist terminator.
* Mon Nov 29 2004 - ltinkl@suse.cz * Mon Nov 29 2004 ltinkl@suse.cz
- fix insecure temp file handling vulnerability (#48541) - fix insecure temp file handling vulnerability (#48541)
* Sat Jan 10 2004 - adrian@suse.de * Sat Jan 10 2004 adrian@suse.de
- build as user - build as user
* Tue Sep 30 2003 - ltinkl@suse.cz * Tue Sep 30 2003 ltinkl@suse.cz
- updated to 15.5 - updated to 15.5
- dropped obsolete patch - dropped obsolete patch
* Mon Jan 20 2003 - vbobek@suse.cz * Mon Jan 20 2003 vbobek@suse.cz
- updated to version 15.4 (bugfixes only) - updated to version 15.4 (bugfixes only)
- used $RPM_OPT_FLAGS - used $RPM_OPT_FLAGS
* Tue Dec 17 2002 - sf@suse.de * Tue Dec 17 2002 sf@suse.de
- added suse_update_config (bug #22296) - added suse_update_config (bug #22296)
* Thu Nov 07 2002 - tcrhak@suse.cz * Thu Nov 07 2002 tcrhak@suse.cz
- fixed egrep.y for bison 1.75: - fixed egrep.y for bison 1.75:
use `{ action }' instead of `={ action }' use `{ action }' instead of `={ action }'
* Tue Sep 17 2002 - ro@suse.de * Tue Sep 17 2002 ro@suse.de
- removed bogus self-provides - removed bogus self-provides
* Fri Aug 10 2001 - pmladek@suse.cz * Fri Aug 10 2001 pmladek@suse.cz
- updated to version 15.3 - updated to version 15.3
- bzipped sources - bzipped sources
* Thu Mar 22 2001 - pblaha@suse.cz * Thu Mar 22 2001 pblaha@suse.cz
- add URL - add URL
* Fri Dec 01 2000 - uzi@suse.com * Fri Dec 01 2000 uzi@suse.com
- Initial package based on version 15.1 - Initial package based on version 15.1