From 56aaf7b5b2a81db39feb2a9f7a58cacaa499a1157ec14aefd7b17b9a33ee049f Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Thu, 13 Dec 2007 13:02:11 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/cscope?expand=0&rev=3 --- cscope-cleanup_on_sigterm.patch | 11 +++++++++++ cscope.changes | 7 +++++++ cscope.spec | 15 ++++++++++----- 3 files changed, 28 insertions(+), 5 deletions(-) create mode 100644 cscope-cleanup_on_sigterm.patch diff --git a/cscope-cleanup_on_sigterm.patch b/cscope-cleanup_on_sigterm.patch new file mode 100644 index 0000000..be487cc --- /dev/null +++ b/cscope-cleanup_on_sigterm.patch @@ -0,0 +1,11 @@ +--- src/main.c ++++ src/main.c +@@ -379,6 +379,8 @@ + } + /* cleanup on the hangup signal */ + signal(SIGHUP, myexit); ++ /* and on termination signal */ ++ signal(SIGTERM, myexit); + + /* if the database path is relative and it can't be created */ + if (reffile[0] != '/' && access(".", WRITE) != 0) { diff --git a/cscope.changes b/cscope.changes index 61f670c..08f734a 100644 --- a/cscope.changes +++ b/cscope.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Dec 10 12:54:45 CET 2007 - pth@suse.de + +- Cleanup on receiving SIGTERM (#339807) and actually include + the patch. +- Don't remove buildroot in install section + ------------------------------------------------------------------- Fri Mar 30 02:30:07 CEST 2007 - ro@suse.de diff --git a/cscope.spec b/cscope.spec index 11512c2..f5c63d5 100644 --- a/cscope.spec +++ b/cscope.spec @@ -12,18 +12,19 @@ Name: cscope BuildRequires: ncurses-devel -License: BSD License and BSD-like +License: BSD 3-Clause Group: Development/Tools/Navigators -Autoreqprov: on +AutoReqProv: on Version: 15.6 -Release: 23 +Release: 65 Summary: Interactive Tool for Browsing C Source Code Source: cscope-%{version}.tar.bz2 Patch1: cscope-null.patch Patch2: cscope-%{version}-gcc-warnings.patch Patch3: cscope-%{version}-vpath.patch Patch4: cscope-%{version}-sprintf.patch -URL: http://cscope.sourceforge.net/ +Patch5: cscope-cleanup_on_sigterm.patch +Url: http://cscope.sourceforge.net/ BuildRoot: %{_tmppath}/%{name}-%{version}-build %define _prefix /usr @@ -47,6 +48,7 @@ Authors: %patch2 %patch3 %patch4 +%patch5 %build %{?suse_update_config:%{suse_update_config}} @@ -55,7 +57,6 @@ CFLAGS="$RPM_OPT_FLAGS" \ make %install -rm -rf $RPM_BUILD_ROOT mkdir -p $RPM_BUILD_ROOT%{_prefix}/bin mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1 install -m 755 src/cscope $RPM_BUILD_ROOT%{_prefix}/bin/cscope @@ -71,6 +72,10 @@ rm -rf $RPM_BUILD_ROOT %{_prefix}/bin/cscope %changelog +* Mon Dec 10 2007 - pth@suse.de +- Cleanup on receiving SIGTERM (#339807) and actually include + the patch. +- Don't remove buildroot in install section * Fri Mar 30 2007 - ro@suse.de - added ncurses-devel to buildreq * Fri Nov 10 2006 - ro@suse.de