From 2532a731d79ab37ac27c17fb84b6017a7f1ae4cb Mon Sep 17 00:00:00 2001 From: tony mancill Date: Thu, 3 Jun 2010 13:40:55 +0200 Subject: Bug#565727: cscope: diff for NMU version 15.7a-3.1 tags 565727 + pending thanks Dear maintainer, I've prepared an NMU for cscope (versioned as 15.7a-3.1) and uploaded it to DELAYED/3. Please feel free to tell me if I should delay it longer. Regards, Tony --- debian/README.source | 29 - debian/changelog | 38 + debian/control | 37 +- debian/copyright | 10 +- debian/cscope-el.install | 1 + debian/cscope-indexer.1 | 2 +- debian/cscope.install | 13 +- debian/cscope.manpages | 3 + debian/cscope.preinst | 2 + debian/docs | 4 + debian/ocs.1 | 12 +- debian/patches/00list | 3 - debian/patches/02-fix-xcscope-el-typo.dpatch | 17 - debian/patches/02-fix-xcscope-el-typo.patch | 30 + debian/patches/03-fix-ocs-bashisms.dpatch | 67 -- debian/patches/03-fix-ocs-bashisms.patch | 80 ++ debian/patches/04-fix-manpage-warning.dpatch | 15 - debian/patches/04-fix-manpage-warning.patch | 133 +++ debian/patches/debian-changes-15.7a-3.1 | 1154 ++++++++++++++++++++++++++ debian/patches/series | 4 + debian/rules | 100 +-- debian/source/format | 1 + 22 files changed, 1505 insertions(+), 250 deletions(-) delete mode 100644 debian/README.source create mode 100644 debian/cscope-el.install create mode 100644 debian/cscope.manpages create mode 100644 debian/docs delete mode 100644 debian/patches/00list delete mode 100755 debian/patches/02-fix-xcscope-el-typo.dpatch create mode 100644 debian/patches/02-fix-xcscope-el-typo.patch delete mode 100755 debian/patches/03-fix-ocs-bashisms.dpatch create mode 100644 debian/patches/03-fix-ocs-bashisms.patch delete mode 100755 debian/patches/04-fix-manpage-warning.dpatch create mode 100644 debian/patches/04-fix-manpage-warning.patch create mode 100644 debian/patches/debian-changes-15.7a-3.1 create mode 100644 debian/patches/series create mode 100644 debian/source/format diff --git a/debian/README.source b/debian/README.source deleted file mode 100644 index 9c3627b..0000000 --- a/debian/README.source +++ /dev/null @@ -1,29 +0,0 @@ -cscope for Debian ------------------ - -This package uses dpatch to manage all modifications to the upstream -source. Changes are stored in the source package as diffs in -debian/patches and applied during the build. - -To get the fully patched source after unpacking the source package, cd -to the root level of the source package and run: - - debian/rules patch - -Removing a patch is as simple as removing its entry from the -debian/patches/00list file, and please also remove the patch file -itself. - -Creating a new patch is done with "dpatch-edit-patch patch XX_patchname" -where you should replace XX with a new number and patchname with a -descriptive shortname of the patch. You can then simply edit all the -files your patch wants to edit, and then simply "exit 0" from the shell -to actually create the patch file. - -To tweak an already existing patch, call "dpatch-edit-patch XX_patchname" -and replace XX_patchname with the actual filename from debian/patches -you want to use. - -To clean up afterwards again, "debian/rules unpatch" will do the -work for you - or you can of course choose to call -"fakeroot debian/rules clean" all together. diff --git a/debian/changelog b/debian/changelog index 29128eb..cd6bfc4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,41 @@ +cscope (15.7a-3.1) unstable; urgency=low + + [ Jari Aalto ] + * Non-maintainer upload. + - Move to packaging format "3.0 (quilt)" due to patch. + - Move from dpatch to quilt patch system. + * debian/copyright + - Point to GPL-2. Use FSF URL (Lintian). + * debian/control + - (Build-Depends): Update to debhelper 7.1. + - (cscope::Description): Fix french hyphens. + - (cscope-el::Description): Extend description. + * debian/{cscope,cscope-el}.preinst + - Add "set -e". + * debian/cscope-indexer.1 + - Fix hyphens. + * debian/patches + - Convert all dpatch(es) into quilt format. + - (Number 04): Refresh patch. Fix also hyphens in manpage. + * debian/README.source + - Delete; obsoleted by new packaging format. + * debian/ocs.1 + - Fix hyphens and spelling. + * debian/rules + - Remove dpatch. Move to dh(1) build system. + - (clean): Add rm for config.log. + * debian/source/format + - New file. + + [ Hideki Yamane (Debian-JP) ] + * debian/control + - (Package::cscope-el): New. separete emacs lisp to cscope-el package + (Closes: #565727). + * debian/cscope-el.{emacsen-install,emacsen-remove,install,preinst} + - New files. + + -- Jari Aalto Sat, 08 May 2010 20:29:08 +0300 + cscope (15.7a-3) unstable; urgency=low * Depend on emacsen-common to be able to install xcscope.el correctly diff --git a/debian/control b/debian/control index 91a4af7..e07fb22 100644 --- a/debian/control +++ b/debian/control @@ -2,15 +2,15 @@ Source: cscope Section: devel Priority: optional Maintainer: Tobias Klauser -Build-Depends: debhelper (>= 7), dpatch, autotools-dev, bison, flex, libncurses5-dev -Standards-Version: 3.8.3 +Build-Depends: debhelper (>= 7.1), autotools-dev, bison, flex, libncurses5-dev +Standards-Version: 3.8.4 Homepage: http://cscope.sourceforge.net Vcs-Git: http://git.distanz.ch/scm/debian/pkg-cscope.git Vcs-Browser: http://git.distanz.ch/?p=debian/pkg-cscope.git Package: cscope Architecture: any -Depends: ${shlibs:Depends}, ${misc:Depends}, emacsen-common +Depends: ${shlibs:Depends}, ${misc:Depends} Suggests: cbrowser Description: Interactively examine a C program source Cscope is an interactive text screen based source browsing tool. @@ -18,13 +18,26 @@ Description: Interactively examine a C program source and yacc files), it can also be used for C++ code. . Using cscope, you can easily search for where symbols are used and - defined. Cscope is designed to answer questions like: + defined. Cscope is designed to answer questions like: . - Where is this variable used? - What is the value of this preprocessor symbol? - Where is this function in the source files? - What functions call this function? - What functions are called by this function? - Where does the message "out of space" come from? - Where is this source file in the directory structure? - What files include this header file? + - Where is this variable used? + - What is the value of this preprocessor symbol? + - Where is this function in the source files? + - What functions call this function? + - What functions are called by this function? + - Where does the message "out of space" come from? + - Where is this source file in the directory structure? + - What files include this header file? + +Package: cscope-el +Architecture: all +Depends: cscope (>= ${source:Version}), emacs23 | emacsen, ${misc:Depends} +Description: Interactively examine a C program source, cscope emacs binding + Cscope is a program that generates index tables from C and C++ source + files. It is also a client program that knows how to use the + generated index tables to answer questions such as where is a symbol + defined, where is a symbol referenced, etc. + . + cscope-el contains the Emacs interfaces to cscope; Darryl Okahata’s + xcscope.el, + See http://www.emacswiki.org/emacs/CScopeAndEmacs \ No newline at end of file diff --git a/debian/copyright b/debian/copyright index ca8bbfd..4a2f755 100644 --- a/debian/copyright +++ b/debian/copyright @@ -59,11 +59,10 @@ Copyright: (webcscope) GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + along with this program. If not, see . On Debian systems, the complete text of the GNU General Public -License can be found in `/usr/share/common-licenses/GPL'. +License can be found in `/usr/share/common-licenses/GPL-2'. Copyright: (cgi-lib.pl, part of webcscope) Copyright (C) 1993-1999 Steven E. Brenner @@ -86,8 +85,7 @@ Copyright: (xcscope and cscope-indexer) GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + along with this program. If not, see . On Debian systems, the complete text of the GNU General Public -License can be found in `/usr/share/common-licenses/GPL'. +License can be found in `/usr/share/common-licenses/GPL-2'. diff --git a/debian/cscope-el.install b/debian/cscope-el.install new file mode 100644 index 0000000..2ff4aa3 --- /dev/null +++ b/debian/cscope-el.install @@ -0,0 +1 @@ +contrib/xcscope/xcscope.el usr/share/emacs/site-lisp diff --git a/debian/cscope-indexer.1 b/debian/cscope-indexer.1 index 5e0f296..e3337ef 100644 --- a/debian/cscope-indexer.1 +++ b/debian/cscope-indexer.1 @@ -14,7 +14,7 @@ to just build a list of files, or it can be used to build a list and database. This script is not used to just build a database (skipping the list of files step), as this can be simply done by just calling -"cscope -b". +"cscope \-b". Normally, cscope will do its own indexing, but this script can be used to force indexing. This is useful diff --git a/debian/cscope.install b/debian/cscope.install index 2ff4aa3..c60d27e 100644 --- a/debian/cscope.install +++ b/debian/cscope.install @@ -1 +1,12 @@ -contrib/xcscope/xcscope.el usr/share/emacs/site-lisp + +src/cscope usr/bin +contrib/ocs usr/bin +contrib/xcscope/cscope-indexer usr/bin +contrib/README usr/share/doc/cscope/contrib + +contrib/webcscope/cgi-lib.pl usr/share/doc/cscope/contrib/webcscope +contrib/webcscope/cscope usr/share/doc/cscope/contrib/webcscope +contrib/webcscope/hilite.c usr/share/doc/cscope/contrib/webcscope +contrib/webcscope/icons usr/share/doc/cscope/contrib/webcscope +contrib/webcscope/INSTALL usr/share/doc/cscope/contrib/webcscope +contrib/webcscope/TODO usr/share/doc/cscope/contrib/webcscope diff --git a/debian/cscope.manpages b/debian/cscope.manpages new file mode 100644 index 0000000..52a779c --- /dev/null +++ b/debian/cscope.manpages @@ -0,0 +1,3 @@ +debian/ocs.1 +debian/cscope-indexer.1 +doc/cscope.1 diff --git a/debian/cscope.preinst b/debian/cscope.preinst index f2c5f51..ea3d057 100644 --- a/debian/cscope.preinst +++ b/debian/cscope.preinst @@ -1,5 +1,7 @@ #!/bin/sh -e +set -e + cleanup_sitestart() { if [ -e /etc/emacs/site-start.d/50cscope.el ]; then rm -f /etc/emacs/site-start.d/50cscope.el diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..c17f037 --- /dev/null +++ b/debian/docs @@ -0,0 +1,4 @@ +AUTHORS +NEWS +README +TODO diff --git a/debian/ocs.1 b/debian/ocs.1 index 9000772..77354de 100644 --- a/debian/ocs.1 +++ b/debian/ocs.1 @@ -7,13 +7,13 @@ ocs \- creates and maintains the database for cscope on a recursive directory set .SH SYNOPSIS .B ocs -[-x] [-f] [-q] [-u] +[\-x] [\-f] [\-q] [\-u] .br .SH DESCRIPTION -This manual page briefly documents +This manual page briefly documents .B ocs -, a shell script wrapper that automates the creation and maintainance of a +, a shell script wrapper that automates the creation and maintenance of a .BR cscope(1) database on a recursive set of directories. Under normal circumstances, .B ocs @@ -24,7 +24,7 @@ in interactive mode. .SH OPTIONS .B -.IP -x +.IP -x Enable debugging. .br .B @@ -36,7 +36,7 @@ Force. Do not ask about regenerating 'TMP' lists (lists generated by ) lists. .br .B -.IP -q +.IP -q Tell cscope to build a fast reverse index. Database disk space usage is doubled, but searching speed is increased. .br .B @@ -47,7 +47,7 @@ Request that the database be updated or regenerated. .IP ./cscope.rc If this is an executable shell script, it will be included in the body of .B ocs -in order to override intenal filenames and other options. See the comments at the top of +in order to override intenal filenames and other options. See the comments at the top of .B /usr/bin/ocs for more information. .SH BUGS diff --git a/debian/patches/00list b/debian/patches/00list deleted file mode 100644 index 847de41..0000000 --- a/debian/patches/00list +++ /dev/null @@ -1,3 +0,0 @@ -02-fix-xcscope-el-typo -03-fix-ocs-bashisms -04-fix-manpage-warning diff --git a/debian/patches/02-fix-xcscope-el-typo.dpatch b/debian/patches/02-fix-xcscope-el-typo.dpatch deleted file mode 100755 index 6ebe4df..0000000 --- a/debian/patches/02-fix-xcscope-el-typo.dpatch +++ /dev/null @@ -1,17 +0,0 @@ -#!/bin/sh /usr/share/dpatch/dpatch-run -## 02-fix-xcscope-el-typo.dpatch -## -## DP: Fixes a typo in contrib/xcscope/xcscope.el -## DP: (Closes: #438170) - ---- cscope-15.6/contrib/xcscope/xcscope.el.orig 2007-08-16 13:38:28.000000000 +0200 -+++ cscope-15.6/contrib/xcscope/xcscope.el 2007-08-16 13:38:38.000000000 +0200 -@@ -114,7 +114,7 @@ - ;; (define-key global-map [(control f11)] 'cscope-prev-symbol) - ;; (define-key global-map [(control f12)] 'cscope-prev-file) - ;; (define-key global-map [(meta f9)] 'cscope-display-buffer) --;; (defin-ekey global-map [(meta f10)] 'cscope-display-buffer-toggle) -+;; (define-key global-map [(meta f10)] 'cscope-display-buffer-toggle) - ;; - ;; 6. Restart (X)Emacs. That's it. - ;; diff --git a/debian/patches/02-fix-xcscope-el-typo.patch b/debian/patches/02-fix-xcscope-el-typo.patch new file mode 100644 index 0000000..ca1be71 --- /dev/null +++ b/debian/patches/02-fix-xcscope-el-typo.patch @@ -0,0 +1,30 @@ +From d847996d6d4f9f9c4e78d237c3ccb58619642865 Mon Sep 17 00:00:00 2001 +From: Jari Aalto +Date: Sat, 8 May 2010 20:14:55 +0300 +Subject: [PATCH] contrib/xcscope/xcscope.el: Fix typo Closes: #438170) +Organization: Private +Content-Type: text/plain; charset="utf-8" +Content-Transfer-Encoding: 8bit + + +Signed-off-by: Jari Aalto +--- + contrib/xcscope/xcscope.el | 2 +- + 1 files changed, 1 insertions(+), 1 deletions(-) + +diff --git a/contrib/xcscope/xcscope.el b/contrib/xcscope/xcscope.el +index ce382a4..2a1098c 100644 +--- a/contrib/xcscope/xcscope.el ++++ b/contrib/xcscope/xcscope.el +@@ -114,7 +114,7 @@ + ;; (define-key global-map [(control f11)] 'cscope-prev-symbol) + ;; (define-key global-map [(control f12)] 'cscope-prev-file) + ;; (define-key global-map [(meta f9)] 'cscope-display-buffer) +-;; (defin-ekey global-map [(meta f10)] 'cscope-display-buffer-toggle) ++;; (define-key global-map [(meta f10)] 'cscope-display-buffer-toggle) + ;; + ;; 6. Restart (X)Emacs. That's it. + ;; +-- +1.7.0 + diff --git a/debian/patches/03-fix-ocs-bashisms.dpatch b/debian/patches/03-fix-ocs-bashisms.dpatch deleted file mode 100755 index 01cd011..0000000 --- a/debian/patches/03-fix-ocs-bashisms.dpatch +++ /dev/null @@ -1,67 +0,0 @@ -#!/bin/sh /usr/share/dpatch/dpatch-run -## 03-fix-ocs-bashisms.dpatch -## -## DP: Fixes bashims in ocs -## DP: (Closes: #480591) - ---- a/contrib/ocs -+++ b/contrib/ocs -@@ -87,7 +87,7 @@ if [ ! -d ${SYSDIR} ]; then - fi - - # Check that cscope is in PATH --type cscope 1>/dev/null 2>&1 -+which cscope 1>/dev/null 2>&1 - - if [ $? -ne 0 ] - then -@@ -168,8 +168,8 @@ create_list() - - if [ "${FORCE}" != "Y" ] - then -- echo "\n${LIST}" -- echo "Update the library? <(Y)es, (N)o, (Q)uit> [n] \c" -+ printf "\n${LIST}\n" -+ printf "Update the library? <(Y)es, (N)o, (Q)uit> [n] " - read x y - case $x in - [Yy]* ) ;; -@@ -177,9 +177,9 @@ create_list() - *) return ;; - esac - fi -- echo "Updating library:\n ${LIST} \c" -+ printf "Updating library:\n ${LIST} " - else -- echo "Creating library:\n ${LIST} \c" -+ printf "Creating library:\n ${LIST} " - fi - - ( -@@ -197,7 +197,7 @@ create_list() - -print - ) | grep -v SCCS | sort -u > ${LIST} - -- echo "\n`cat ${LIST} | wc -l` files listed" -+ printf "\n`cat ${LIST} | wc -l` files listed\n" - } - - # -@@ -211,7 +211,7 @@ exp_inc() - then - for i in `cat ${theInc}` - do -- echo "-I $i \c" -+ printf "-I $i " - done - fi - } -@@ -286,7 +286,7 @@ std_libs ${SYSDIR}$PWD - - DIR=$PWD - if [ ! -n "${NOUPDATE}" -o -n "${SPECDEST}" ] ; then --echo "Create new library? <(L)ocal, (H)ome, (S)ystem, (Q)uit> [q] \c" -+printf "Create new library? <(L)ocal, (H)ome, (S)ystem, (Q)uit> [q] " - read x y - case $x in - [Ll]* ) DIR=$PWD ;; diff --git a/debian/patches/03-fix-ocs-bashisms.patch b/debian/patches/03-fix-ocs-bashisms.patch new file mode 100644 index 0000000..242d801 --- /dev/null +++ b/debian/patches/03-fix-ocs-bashisms.patch @@ -0,0 +1,80 @@ +From 8294f4a6d33b69055623935b9b0969ee61a683a4 Mon Sep 17 00:00:00 2001 +From: Jari Aalto +Date: Sat, 8 May 2010 20:15:35 +0300 +Subject: [PATCH] contrib/ocs: Fix bashims (Closes: #480591) +Organization: Private +Content-Type: text/plain; charset="utf-8" +Content-Transfer-Encoding: 8bit + + +Signed-off-by: Jari Aalto +--- + contrib/ocs | 16 ++++++++-------- + 1 files changed, 8 insertions(+), 8 deletions(-) + +diff --git a/contrib/ocs b/contrib/ocs +index 736de94..c476ab8 100755 +--- a/contrib/ocs ++++ b/contrib/ocs +@@ -87,7 +87,7 @@ if [ ! -d ${SYSDIR} ]; then + fi + + # Check that cscope is in PATH +-type cscope 1>/dev/null 2>&1 ++which cscope 1>/dev/null 2>&1 + + if [ $? -ne 0 ] + then +@@ -168,8 +168,8 @@ create_list() + + if [ "${FORCE}" != "Y" ] + then +- echo "\n${LIST}" +- echo "Update the library? <(Y)es, (N)o, (Q)uit> [n] \c" ++ printf "\n${LIST}\n" ++ printf "Update the library? <(Y)es, (N)o, (Q)uit> [n] " + read x y + case $x in + [Yy]* ) ;; +@@ -177,9 +177,9 @@ create_list() + *) return ;; + esac + fi +- echo "Updating library:\n ${LIST} \c" ++ printf "Updating library:\n ${LIST} " + else +- echo "Creating library:\n ${LIST} \c" ++ printf "Creating library:\n ${LIST} " + fi + + ( +@@ -197,7 +197,7 @@ create_list() + -print + ) | grep -v SCCS | sort -u > ${LIST} + +- echo "\n`cat ${LIST} | wc -l` files listed" ++ printf "\n`cat ${LIST} | wc -l` files listed\n" + } + + # +@@ -211,7 +211,7 @@ exp_inc() + then + for i in `cat ${theInc}` + do +- echo "-I $i \c" ++ printf "-I $i " + done + fi + } +@@ -286,7 +286,7 @@ std_libs ${SYSDIR}$PWD + + DIR=$PWD + if [ ! -n "${NOUPDATE}" -o -n "${SPECDEST}" ] ; then +-echo "Create new library? <(L)ocal, (H)ome, (S)ystem, (Q)uit> [q] \c" ++printf "Create new library? <(L)ocal, (H)ome, (S)ystem, (Q)uit> [q] " + read x y + case $x in + [Ll]* ) DIR=$PWD ;; +-- +1.7.0 + diff --git a/debian/patches/04-fix-manpage-warning.dpatch b/debian/patches/04-fix-manpage-warning.dpatch deleted file mode 100755 index 21e8fd1..0000000 --- a/debian/patches/04-fix-manpage-warning.dpatch +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh /usr/share/dpatch/dpatch-run -## 04-fix-manpage-warning.dpatch -## -## DP: Fix warning in manpage caused by unknown symbol (fixes a lintian -## DP: warning). - -diff --git a/doc/cscope.1 b/doc/cscope.1 -index 6a3a86b..194cf0c 100644 ---- a/doc/cscope.1 -+++ b/doc/cscope.1 -@@ -1,4 +1,3 @@ --.PU - .TH CSCOPE "1" "January 2007" "The Santa Cruz Operation" - .SH NAME - cscope - interactively examine a C program diff --git a/debian/patches/04-fix-manpage-warning.patch b/debian/patches/04-fix-manpage-warning.patch new file mode 100644 index 0000000..5cb03ca --- /dev/null +++ b/debian/patches/04-fix-manpage-warning.patch @@ -0,0 +1,133 @@ +From 270908781fcb34a70d60d036836b8908613606e0 Mon Sep 17 00:00:00 2001 +From: Jari Aalto +Date: Sat, 8 May 2010 20:16:14 +0300 +Subject: [PATCH] doc/cscope.1: Fix hyphens +Organization: Private +Content-Type: text/plain; charset="utf-8" +Content-Transfer-Encoding: 8bit + + +Signed-off-by: Jari Aalto +--- + doc/cscope.1 | 33 ++++++++++++++++----------------- + 1 files changed, 16 insertions(+), 17 deletions(-) + +diff --git a/doc/cscope.1 b/doc/cscope.1 +index 6a3a86b..26a153e 100644 +--- a/doc/cscope.1 ++++ b/doc/cscope.1 +@@ -1,4 +1,3 @@ +-.PU + .TH CSCOPE "1" "January 2007" "The Santa Cruz Operation" + .SH NAME + cscope - interactively examine a C program +@@ -106,7 +105,7 @@ below. (The #include files + may be specified with either double quotes or angle brackets.) + The incdir directory is searched in addition to the current + directory (which is searched first) and the standard list +-(which is searched last). If more than one occurrence of -I ++(which is searched last). If more than one occurrence of \-I + appears, the directories are searched in the order they appear + on the command line. + .TP +@@ -129,7 +128,7 @@ source trees generally do not use it. + .TP + .B -L + Do a single search with line-oriented output when used with the +--num pattern option. ++\-num pattern option. + .TP + .B -l + Line-oriented interface (see ``Line-Oriented Interface'' +@@ -146,7 +145,7 @@ Prepend + .I path + to relative file names in a pre-built cross-reference file so you do + not have to change to the directory where the cross-reference file was +-built. This option is only valid with the -d option. ++built. This option is only valid with the \-d option. + .TP + .BI -p n + Display the last +@@ -192,7 +191,7 @@ database building and searches. + .I files + A list of file names to operate on. + .PP +-The -I, -c, -k, -p, -q, and -T options can also be in the cscope.files file. ++The \-I, \-c, \-k, \-p, \-q, and \-T options can also be in the cscope.files file. + .PP + .SS Requesting the initial search + .PP +@@ -261,7 +260,7 @@ Append the displayed list of lines to a file. + .TP + .B < + Read lines from a file that is in symbol reference format +-(created by > or >>), just like the -F option. ++(created by > or >>), just like the \-F option. + .TP + .B ^ + Filter all lines through a shell command and display the +@@ -366,7 +365,7 @@ commands, respectively. + .PP + .SS Line-Oriented interface + .PP +-The -l option lets you use cscope where a screen-oriented interface ++The \-l option lets you use cscope where a screen-oriented interface + would not be useful, for example, from another screen-oriented + program. + .PP +@@ -375,10 +374,10 @@ with the field number (counting from 0) immediately followed by the + search pattern, for example, ``lmain'' finds the definition of the + main function. + .PP +-If you just want a single search, instead of the -l option use the -L +-and -num pattern options, and you won't get the >> prompt. ++If you just want a single search, instead of the \-l option use the \-L ++and \-num pattern options, and you won't get the >> prompt. + .PP +-For -l, cscope outputs the number of reference lines ++For \-l, cscope outputs the number of reference lines + cscope: 2 lines + .PP + For each reference found, cscope outputs a line consisting of the file +@@ -463,11 +462,11 @@ is not set, cscope searches only in the current directory. + .SH FILES + .TP + .B cscope.files +-Default files containing -I, -p, -q, and -T options and the +-list of source files (overridden by the -i option). ++Default files containing \-I, \-p, \-q, and \-T options and the ++list of source files (overridden by the \-i option). + .TP + .B cscope.out +-Symbol cross-reference file (overridden by the -f option), ++Symbol cross-reference file (overridden by the \-f option), + which is put in the home directory if it cannot be created in + the current directory. + .TP +@@ -477,11 +476,11 @@ the current directory. + .B cscope.po.out + .PD 1 + Default files containing the inverted index used for quick +-symbol searching (-q option). If you use the -f option to ++symbol searching (\-q option). If you use the \-f option to + rename the cross-reference file (so it's not cscope.out), the + names for these inverted index files will be created by adding +- .in and .po to the name you supply with -f. For example, if you +-indicated -f xyz, then these files would be named xyz.in and ++ .in and .po to the name you supply with \-f. For example, if you ++indicated \-f xyz, then these files would be named xyz.in and + xyz.po. + .TP + .B INCDIR +@@ -549,7 +548,7 @@ definition, for example, + .PP + char flag + #ifdef ALLOCATE_STORAGE +- = -1 ++ = \-1 + #endif + ; + .PP +-- +1.7.0 + diff --git a/debian/patches/debian-changes-15.7a-3.1 b/debian/patches/debian-changes-15.7a-3.1 new file mode 100644 index 0000000..37f583f --- /dev/null +++ b/debian/patches/debian-changes-15.7a-3.1 @@ -0,0 +1,1154 @@ +Description: Upstream changes introduced in version 15.7a-3.1 + This patch has been created by dpkg-source during the package build. + Here's the last changelog entry, hopefully it gives details on why + those changes were made: + . + cscope (15.7a-3.1) unstable; urgency=low + . + [ Jari Aalto ] + * Non-maintainer upload. + - Move to packaging format "3.0 (quilt)" due to patch. + - Move from dpatch to quilt patch system. + * debian/copyright + - Point to GPL-2. Use FSF URL (Lintian). + * debian/control + - (Build-Depends): Update to debhelper 7.1. + - (cscope::Description): Fix french hyphens. + - (cscope-el::Description): Extend description. + * debian/{cscope,cscope-el}.preinst + - Add "set -e". + * debian/cscope-indexer.1 + - Fix hyphens. + * debian/patches + - Convert all dpatch(es) into quilt format. + - (Number 04): Refresh patch. Fix also hyphens in manpage. + * debian/README.source + - Delete; obsoleted by new packaging format. + * debian/ocs.1 + - Fix hyphens and spelling. + * debian/rules + - Remove dpatch. Move to dh(1) build system. + - (clean): Add rm for config.log. + * debian/source/format + - New file. + . + [ Hideki Yamane (Debian-JP) ] + * debian/control + - (Package::cscope-el): New. separete emacs lisp to cscope-el package + (Closes: #565727). + * debian/cscope-el.{emacsen-install,emacsen-remove,install,preinst} + - New files. + . + The person named in the Author field signed this changelog entry. +Author: Jari Aalto +Bug-Debian: http://bugs.debian.org/565727 + +--- +The information above should follow the Patch Tagging Guidelines, please +checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here +are templates for supplementary fields that you might want to add: + +Origin: , +Bug: +Bug-Debian: http://bugs.debian.org/ +Forwarded: +Reviewed-By: +Last-Update: + +--- cscope-15.7a.orig/config.sub ++++ cscope-15.7a/config.sub +@@ -1,9 +1,10 @@ + #! /bin/sh + # Configuration validation subroutine script. + # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, +-# 2000, 2001, 2002, 2003, 2004, 2005 Free Software Foundation, Inc. ++# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 ++# Free Software Foundation, Inc. + +-timestamp='2005-07-08' ++timestamp='2010-01-22' + + # This file is (in principle) common to ALL GNU software. + # The presence of a machine in this file suggests that SOME GNU software +@@ -31,13 +32,16 @@ timestamp='2005-07-08' + + + # Please send patches to . Submit a context +-# diff and a properly formatted ChangeLog entry. ++# diff and a properly formatted GNU ChangeLog entry. + # + # Configuration subroutine to validate and canonicalize a configuration type. + # Supply the specified configuration type as an argument. + # If it is invalid, we print an error message on stderr and exit with code 1. + # Otherwise, we print the canonical config type on stdout and succeed. + ++# You can get the latest version of this script from: ++# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD ++ + # This file is supposed to be the same for all GNU packages + # and recognize all the CPU types, system types and aliases + # that are meaningful with *any* GNU software. +@@ -71,8 +75,9 @@ Report bugs and patches to . +-# Please send patches to . Submit a context +-# diff and a properly formatted ChangeLog entry. ++# Originally written by Per Bothner. Please send patches (context ++# diff format) to and include a ChangeLog ++# entry. + # + # This script attempts to guess a canonical system name similar to + # config.sub. If it succeeds, it prints the system name on stdout, and + # exits with 0. Otherwise, it exits with 1. + # +-# The plan is that this can be called by configure scripts if you +-# don't specify an explicit build system type. ++# You can get the latest version of this script from: ++# http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD + + me=`echo "$0" | sed -e 's,.*/,,'` + +@@ -55,8 +56,9 @@ version="\ + GNU config.guess ($timestamp) + + Originally written by Per Bothner. +-Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005 +-Free Software Foundation, Inc. ++Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, ++2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free ++Software Foundation, Inc. + + This is free software; see the source for copying conditions. There is NO + warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE." +@@ -106,7 +108,7 @@ set_cc_for_build=' + trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ; + trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ; + : ${TMPDIR=/tmp} ; +- { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || ++ { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } || + { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } || + { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } || + { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ; +@@ -160,6 +162,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ + arm*) machine=arm-unknown ;; + sh3el) machine=shl-unknown ;; + sh3eb) machine=sh-unknown ;; ++ sh5el) machine=sh5le-unknown ;; + *) machine=${UNAME_MACHINE_ARCH}-unknown ;; + esac + # The Operating System including object format, if it has switched +@@ -168,7 +171,7 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ + arm*|i386|m68k|ns32k|sh3*|sparc|vax) + eval $set_cc_for_build + if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \ +- | grep __ELF__ >/dev/null ++ | grep -q __ELF__ + then + # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout). + # Return netbsd for either. FIX? +@@ -206,8 +209,11 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ + *:ekkoBSD:*:*) + echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE} + exit ;; ++ *:SolidBSD:*:*) ++ echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE} ++ exit ;; + macppc:MirBSD:*:*) +- echo powerppc-unknown-mirbsd${UNAME_RELEASE} ++ echo powerpc-unknown-mirbsd${UNAME_RELEASE} + exit ;; + *:MirBSD:*:*) + echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE} +@@ -319,14 +325,33 @@ case "${UNAME_MACHINE}:${UNAME_SYSTEM}:$ + case `/usr/bin/uname -p` in + sparc) echo sparc-icl-nx7; exit ;; + esac ;; ++ s390x:SunOS:*:*) ++ echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` ++ exit ;; + sun4H:SunOS:5.*:*) + echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*) + echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; +- i86pc:SunOS:5.*:*) +- echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` ++ i86pc:AuroraUX:5.*:* | i86xen:AuroraUX:5.*:*) ++ echo i386-pc-auroraux${UNAME_RELEASE} ++ exit ;; ++ i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*) ++ eval $set_cc_for_build ++ SUN_ARCH="i386" ++ # If there is a compiler, see if it is configured for 64-bit objects. ++ # Note that the Sun cc does not turn __LP64__ into 1 like gcc does. ++ # This test works for both compilers. ++ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then ++ if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \ ++ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ ++ grep IS_64BIT_ARCH >/dev/null ++ then ++ SUN_ARCH="x86_64" ++ fi ++ fi ++ echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'` + exit ;; + sun4*:SunOS:6*:*) + # According to config.sub, this is the proper way to canonicalize +@@ -527,7 +552,7 @@ EOF + echo rs6000-ibm-aix3.2 + fi + exit ;; +- *:AIX:*:[45]) ++ *:AIX:*:[456]) + IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'` + if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then + IBM_ARCH=rs6000 +@@ -635,7 +660,7 @@ EOF + # => hppa64-hp-hpux11.23 + + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | +- grep __LP64__ >/dev/null ++ grep -q __LP64__ + then + HP_ARCH="hppa2.0w" + else +@@ -764,12 +789,19 @@ EOF + echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE} + exit ;; + *:FreeBSD:*:*) +- echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ++ case ${UNAME_MACHINE} in ++ pc98) ++ echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; ++ amd64) ++ echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; ++ *) ++ echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;; ++ esac + exit ;; + i*:CYGWIN*:*) + echo ${UNAME_MACHINE}-pc-cygwin + exit ;; +- i*:MINGW*:*) ++ *:MINGW*:*) + echo ${UNAME_MACHINE}-pc-mingw32 + exit ;; + i*:windows32*:*) +@@ -779,12 +811,24 @@ EOF + i*:PW*:*) + echo ${UNAME_MACHINE}-pc-pw32 + exit ;; +- x86:Interix*:[34]*) +- echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//' +- exit ;; ++ *:Interix*:*) ++ case ${UNAME_MACHINE} in ++ x86) ++ echo i586-pc-interix${UNAME_RELEASE} ++ exit ;; ++ authenticamd | genuineintel | EM64T) ++ echo x86_64-unknown-interix${UNAME_RELEASE} ++ exit ;; ++ IA64) ++ echo ia64-unknown-interix${UNAME_RELEASE} ++ exit ;; ++ esac ;; + [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*) + echo i${UNAME_MACHINE}-pc-mks + exit ;; ++ 8664:Windows_NT:*) ++ echo x86_64-pc-mks ++ exit ;; + i*:Windows_NT*:* | Pentium*:Windows_NT*:*) + # How do we know it's Interix rather than the generic POSIX subsystem? + # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we +@@ -794,7 +838,7 @@ EOF + i*:UWIN*:*) + echo ${UNAME_MACHINE}-pc-uwin + exit ;; +- amd64:CYGWIN*:*:*) ++ amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*) + echo x86_64-unknown-cygwin + exit ;; + p*:CYGWIN*:*) +@@ -814,7 +858,31 @@ EOF + i*86:Minix:*:*) + echo ${UNAME_MACHINE}-pc-minix + exit ;; ++ alpha:Linux:*:*) ++ case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in ++ EV5) UNAME_MACHINE=alphaev5 ;; ++ EV56) UNAME_MACHINE=alphaev56 ;; ++ PCA56) UNAME_MACHINE=alphapca56 ;; ++ PCA57) UNAME_MACHINE=alphapca56 ;; ++ EV6) UNAME_MACHINE=alphaev6 ;; ++ EV67) UNAME_MACHINE=alphaev67 ;; ++ EV68*) UNAME_MACHINE=alphaev68 ;; ++ esac ++ objdump --private-headers /bin/sh | grep -q ld.so.1 ++ if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi ++ echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ++ exit ;; + arm*:Linux:*:*) ++ eval $set_cc_for_build ++ if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \ ++ | grep -q __ARM_EABI__ ++ then ++ echo ${UNAME_MACHINE}-unknown-linux-gnu ++ else ++ echo ${UNAME_MACHINE}-unknown-linux-gnueabi ++ fi ++ exit ;; ++ avr32*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; + cris:Linux:*:*) +@@ -826,6 +894,17 @@ EOF + frv:Linux:*:*) + echo frv-unknown-linux-gnu + exit ;; ++ i*86:Linux:*:*) ++ LIBC=gnu ++ eval $set_cc_for_build ++ sed 's/^ //' << EOF >$dummy.c ++ #ifdef __dietlibc__ ++ LIBC=dietlibc ++ #endif ++EOF ++ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^LIBC'` ++ echo "${UNAME_MACHINE}-pc-linux-${LIBC}" ++ exit ;; + ia64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; +@@ -835,63 +914,33 @@ EOF + m68*:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; +- mips:Linux:*:*) +- eval $set_cc_for_build +- sed 's/^ //' << EOF >$dummy.c +- #undef CPU +- #undef mips +- #undef mipsel +- #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) +- CPU=mipsel +- #else +- #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) +- CPU=mips +- #else +- CPU= +- #endif +- #endif +-EOF +- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` +- test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } +- ;; +- mips64:Linux:*:*) ++ mips:Linux:*:* | mips64:Linux:*:*) + eval $set_cc_for_build + sed 's/^ //' << EOF >$dummy.c + #undef CPU +- #undef mips64 +- #undef mips64el ++ #undef ${UNAME_MACHINE} ++ #undef ${UNAME_MACHINE}el + #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL) +- CPU=mips64el ++ CPU=${UNAME_MACHINE}el + #else + #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB) +- CPU=mips64 ++ CPU=${UNAME_MACHINE} + #else + CPU= + #endif + #endif + EOF +- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=` ++ eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep '^CPU'` + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; } + ;; +- ppc:Linux:*:*) +- echo powerpc-unknown-linux-gnu ++ or32:Linux:*:*) ++ echo or32-unknown-linux-gnu + exit ;; +- ppc64:Linux:*:*) +- echo powerpc64-unknown-linux-gnu ++ padre:Linux:*:*) ++ echo sparc-unknown-linux-gnu + exit ;; +- alpha:Linux:*:*) +- case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in +- EV5) UNAME_MACHINE=alphaev5 ;; +- EV56) UNAME_MACHINE=alphaev56 ;; +- PCA56) UNAME_MACHINE=alphapca56 ;; +- PCA57) UNAME_MACHINE=alphapca56 ;; +- EV6) UNAME_MACHINE=alphaev6 ;; +- EV67) UNAME_MACHINE=alphaev67 ;; +- EV68*) UNAME_MACHINE=alphaev68 ;; +- esac +- objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null +- if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi +- echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC} ++ parisc64:Linux:*:* | hppa64:Linux:*:*) ++ echo hppa64-unknown-linux-gnu + exit ;; + parisc:Linux:*:* | hppa:Linux:*:*) + # Look for CPU level +@@ -901,8 +950,11 @@ EOF + *) echo hppa-unknown-linux-gnu ;; + esac + exit ;; +- parisc64:Linux:*:* | hppa64:Linux:*:*) +- echo hppa64-unknown-linux-gnu ++ ppc64:Linux:*:*) ++ echo powerpc64-unknown-linux-gnu ++ exit ;; ++ ppc:Linux:*:*) ++ echo powerpc-unknown-linux-gnu + exit ;; + s390:Linux:*:* | s390x:Linux:*:*) + echo ${UNAME_MACHINE}-ibm-linux +@@ -916,68 +968,15 @@ EOF + sparc:Linux:*:* | sparc64:Linux:*:*) + echo ${UNAME_MACHINE}-unknown-linux-gnu + exit ;; ++ vax:Linux:*:*) ++ echo ${UNAME_MACHINE}-dec-linux-gnu ++ exit ;; + x86_64:Linux:*:*) + echo x86_64-unknown-linux-gnu + exit ;; +- i*86:Linux:*:*) +- # The BFD linker knows what the default object file format is, so +- # first see if it will tell us. cd to the root directory to prevent +- # problems with other programs or directories called `ld' in the path. +- # Set LC_ALL=C to ensure ld outputs messages in English. +- ld_supported_targets=`cd /; LC_ALL=C ld --help 2>&1 \ +- | sed -ne '/supported targets:/!d +- s/[ ][ ]*/ /g +- s/.*supported targets: *// +- s/ .*// +- p'` +- case "$ld_supported_targets" in +- elf32-i386) +- TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu" +- ;; +- a.out-i386-linux) +- echo "${UNAME_MACHINE}-pc-linux-gnuaout" +- exit ;; +- coff-i386) +- echo "${UNAME_MACHINE}-pc-linux-gnucoff" +- exit ;; +- "") +- # Either a pre-BFD a.out linker (linux-gnuoldld) or +- # one that does not give us useful --help. +- echo "${UNAME_MACHINE}-pc-linux-gnuoldld" +- exit ;; +- esac +- # Determine whether the default compiler is a.out or elf +- eval $set_cc_for_build +- sed 's/^ //' << EOF >$dummy.c +- #include +- #ifdef __ELF__ +- # ifdef __GLIBC__ +- # if __GLIBC__ >= 2 +- LIBC=gnu +- # else +- LIBC=gnulibc1 +- # endif +- # else +- LIBC=gnulibc1 +- # endif +- #else +- #ifdef __INTEL_COMPILER +- LIBC=gnu +- #else +- LIBC=gnuaout +- #endif +- #endif +- #ifdef __dietlibc__ +- LIBC=dietlibc +- #endif +-EOF +- eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=` +- test x"${LIBC}" != x && { +- echo "${UNAME_MACHINE}-pc-linux-${LIBC}" +- exit +- } +- test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; } +- ;; ++ xtensa*:Linux:*:*) ++ echo ${UNAME_MACHINE}-unknown-linux-gnu ++ exit ;; + i*86:DYNIX/ptx:4*:*) + # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there. + # earlier versions are messed up and put the nodename in both +@@ -1006,7 +1005,7 @@ EOF + i*86:syllable:*:*) + echo ${UNAME_MACHINE}-pc-syllable + exit ;; +- i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*) ++ i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*) + echo i386-unknown-lynxos${UNAME_RELEASE} + exit ;; + i*86:*DOS:*:*) +@@ -1050,8 +1049,11 @@ EOF + pc:*:*:*) + # Left here for compatibility: + # uname -m prints for DJGPP always 'pc', but it prints nothing about +- # the processor, so we play safe by assuming i386. +- echo i386-pc-msdosdjgpp ++ # the processor, so we play safe by assuming i586. ++ # Note: whatever this is, it MUST be the same as what config.sub ++ # prints for the "djgpp" host, or else GDB configury will decide that ++ # this is a cross-build. ++ echo i586-pc-msdosdjgpp + exit ;; + Intel:Mach:3*:*) + echo i386-pc-mach3 +@@ -1089,6 +1091,16 @@ EOF + 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*) + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ + && { echo i486-ncr-sysv4; exit; } ;; ++ NCR*:*:4.2:* | MPRAS*:*:4.2:*) ++ OS_REL='.3' ++ test -r /etc/.relid \ ++ && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid` ++ /bin/uname -p 2>/dev/null | grep 86 >/dev/null \ ++ && { echo i486-ncr-sysv4.3${OS_REL}; exit; } ++ /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \ ++ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ++ /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \ ++ && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;; + m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*) + echo m68k-unknown-lynxos${UNAME_RELEASE} + exit ;; +@@ -1101,7 +1113,7 @@ EOF + rs6000:LynxOS:2.*:*) + echo rs6000-unknown-lynxos${UNAME_RELEASE} + exit ;; +- PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*) ++ PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*) + echo powerpc-unknown-lynxos${UNAME_RELEASE} + exit ;; + SM[BE]S:UNIX_SV:*:*) +@@ -1164,6 +1176,9 @@ EOF + BePC:BeOS:*:*) # BeOS running on Intel PC compatible. + echo i586-pc-beos + exit ;; ++ BePC:Haiku:*:*) # Haiku running on Intel PC compatible. ++ echo i586-pc-haiku ++ exit ;; + SX-4:SUPER-UX:*:*) + echo sx4-nec-superux${UNAME_RELEASE} + exit ;; +@@ -1173,6 +1188,15 @@ EOF + SX-6:SUPER-UX:*:*) + echo sx6-nec-superux${UNAME_RELEASE} + exit ;; ++ SX-7:SUPER-UX:*:*) ++ echo sx7-nec-superux${UNAME_RELEASE} ++ exit ;; ++ SX-8:SUPER-UX:*:*) ++ echo sx8-nec-superux${UNAME_RELEASE} ++ exit ;; ++ SX-8R:SUPER-UX:*:*) ++ echo sx8r-nec-superux${UNAME_RELEASE} ++ exit ;; + Power*:Rhapsody:*:*) + echo powerpc-apple-rhapsody${UNAME_RELEASE} + exit ;; +@@ -1182,7 +1206,16 @@ EOF + *:Darwin:*:*) + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown + case $UNAME_PROCESSOR in +- *86) UNAME_PROCESSOR=i686 ;; ++ i386) ++ eval $set_cc_for_build ++ if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then ++ if (echo '#ifdef __LP64__'; echo IS_64BIT_ARCH; echo '#endif') | \ ++ (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \ ++ grep IS_64BIT_ARCH >/dev/null ++ then ++ UNAME_PROCESSOR="x86_64" ++ fi ++ fi ;; + unknown) UNAME_PROCESSOR=powerpc ;; + esac + echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE} +@@ -1261,6 +1294,12 @@ EOF + i*86:skyos:*:*) + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//' + exit ;; ++ i*86:rdos:*:*) ++ echo ${UNAME_MACHINE}-pc-rdos ++ exit ;; ++ i*86:AROS:*:*) ++ echo ${UNAME_MACHINE}-pc-aros ++ exit ;; + esac + + #echo '(No uname command or uname output not recognized.)' 1>&2 +@@ -1421,9 +1460,9 @@ This script, last modified $timestamp, h + the operating system you are using. It is advised that you + download the most up to date version of the config scripts from + +- http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.guess ++ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD + and +- http://savannah.gnu.org/cgi-bin/viewcvs/*checkout*/config/config/config.sub ++ http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD + + If the version you run ($0) is already up to date, please + send the following data and any information you think might be diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..888c622 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,4 @@ +02-fix-xcscope-el-typo.patch +03-fix-ocs-bashisms.patch +04-fix-manpage-warning.patch +debian-changes-15.7a-3.1 diff --git a/debian/rules b/debian/rules index c0d4f44..881719b 100755 --- a/debian/rules +++ b/debian/rules @@ -1,99 +1,13 @@ #!/usr/bin/make -f -include /usr/share/dpatch/dpatch.make - -DEST = $(CURDIR)/debian/cscope - -DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) -DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) - -confflags = -ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE)) - confflags += --build $(DEB_HOST_GNU_TYPE) -else - confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) -endif - -CFLAGS = -Wall -g - -ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) - CFLAGS += -O0 -else - CFLAGS += -O2 -endif - -config.status: patch-stamp configure - dh_testdir - -ifneq "$(wildcard /usr/share/misc/config.sub)" "" - cp -f /usr/share/misc/config.sub config.sub -endif -ifneq "$(wildcard /usr/share/misc/config.guess)" "" - cp -f /usr/share/misc/config.guess config.guess -endif - - CFLAGS="$(CFLAGS) -Wl,-z,defs" ./configure $(confflags) \ - --prefix=/usr \ - --mandir=\$${prefix}/share/man \ - --infodir=\$${prefix}/share/info - -build: build-stamp - -build-stamp: config.status - dh_testdir - - $(MAKE) - - touch build-stamp - -clean: unpatch - dh_testdir - dh_testroot - rm -f build-stamp - - [ ! -f Makefile ] || $(MAKE) distclean - rm -f config.sub config.guess +override_dh_auto_install: + # Disabled. See debian/*.install files +override_dh_clean: dh_clean + find -type d -name CVS | xargs --no-run-if-empty rm -rf +%: + dh $@ -install: build - dh_testdir - dh_testroot - dh_prep - - $(MAKE) install DESTDIR=$(DEST) - - # Install xcscope - install -m755 -p contrib/xcscope/cscope-indexer $(DEST)/usr/bin/ - -binary-indep: build install -# We have nothing to do by default. - -binary-arch: build install - dh_testdir - dh_testroot - dh_install - dh_installdocs AUTHORS NEWS README TODO - dh_installman debian/ocs.1 debian/cscope-indexer.1 - install -d $(DEST)/usr/share/doc/cscope/contrib/webcscope - cp -av contrib/README $(DEST)/usr/share/doc/cscope/contrib - cp -av contrib/webcscope/cgi-lib.pl contrib/webcscope/cscope \ - contrib/webcscope/hilite.c contrib/webcscope/icons \ - contrib/webcscope/INSTALL contrib/webcscope/TODO \ - $(DEST)/usr/share/doc/cscope/contrib/webcscope - # Prevent CVS metadata from being installed - find $(DEST)/usr/share/doc/cscope/contrib/webcscope -type d -name CVS | xargs rm -rf - dh_installmenu - dh_installemacsen - dh_installchangelogs ChangeLog - dh_strip - dh_compress - dh_fixperms - dh_installdeb - dh_shlibdeps - dh_gencontrol - dh_md5sums - dh_builddeb +# End of file -binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install diff --git a/debian/source/format b/debian/source/format new file mode 100644 index 0000000..163aaf8 --- /dev/null +++ b/debian/source/format @@ -0,0 +1 @@ +3.0 (quilt) -- cgit v1.2.3-54-g00ecf