--- bc-1.06.95.orig/bc/main.c +++ bc-1.06.95/bc/main.c @@ -358,6 +358,9 @@ errno = save; #else write (1, "\n(interrupt) Exiting bc.\n", 26); +#ifdef READLINE + rl_initialize (); /* Clear readline buffer */ +#endif #if defined(LIBEDIT) if (edit != NULL) el_end(edit); --- bc-1.06.95.orig/bc/y.tab.h +++ bc-1.06.95/bc/y.tab.h @@ -0,0 +1,137 @@ +/* A Bison parser, made by GNU Bison 2.3. */ + +/* Skeleton interface for Bison's Yacc-like parsers in C + + Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006 + Free Software Foundation, Inc. + + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2, or (at your option) + any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + 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 Street, Fifth Floor, + Boston, MA 02110-1301, USA. */ + +/* As a special exception, you may create a larger work that contains + part or all of the Bison parser skeleton and distribute that work + under terms of your choice, so long as that work isn't itself a + parser generator using the skeleton or a modified version thereof + as a parser skeleton. Alternatively, if you modify or redistribute + the parser skeleton itself, you may (at your option) remove this + special exception, which will cause the skeleton and the resulting + Bison output files to be licensed under the GNU General Public + License without this special exception. + + This special exception was added by the Free Software Foundation in + version 2.2 of Bison. */ + +/* Tokens. */ +#ifndef YYTOKENTYPE +# define YYTOKENTYPE + /* Put the tokens into the symbol table, so that GDB and other debuggers + know about them. */ + enum yytokentype { + ENDOFLINE = 258, + AND = 259, + OR = 260, + NOT = 261, + STRING = 262, + NAME = 263, + NUMBER = 264, + ASSIGN_OP = 265, + REL_OP = 266, + INCR_DECR = 267, + Define = 268, + Break = 269, + Quit = 270, + Length = 271, + Return = 272, + For = 273, + If = 274, + While = 275, + Sqrt = 276, + Else = 277, + Scale = 278, + Ibase = 279, + Obase = 280, + Auto = 281, + Read = 282, + Random = 283, + Warranty = 284, + Halt = 285, + Last = 286, + Continue = 287, + Print = 288, + Limits = 289, + UNARY_MINUS = 290, + HistoryVar = 291, + Void = 292 + }; +#endif +/* Tokens. */ +#define ENDOFLINE 258 +#define AND 259 +#define OR 260 +#define NOT 261 +#define STRING 262 +#define NAME 263 +#define NUMBER 264 +#define ASSIGN_OP 265 +#define REL_OP 266 +#define INCR_DECR 267 +#define Define 268 +#define Break 269 +#define Quit 270 +#define Length 271 +#define Return 272 +#define For 273 +#define If 274 +#define While 275 +#define Sqrt 276 +#define Else 277 +#define Scale 278 +#define Ibase 279 +#define Obase 280 +#define Auto 281 +#define Read 282 +#define Random 283 +#define Warranty 284 +#define Halt 285 +#define Last 286 +#define Continue 287 +#define Print 288 +#define Limits 289 +#define UNARY_MINUS 290 +#define HistoryVar 291 +#define Void 292 + + + + +#if ! defined YYSTYPE && ! defined YYSTYPE_IS_DECLARED +typedef union YYSTYPE +#line 54 "bc.y" +{ + char *s_value; + char c_value; + int i_value; + arg_list *a_value; + } +/* Line 1489 of yacc.c. */ +#line 130 "y.tab.h" + YYSTYPE; +# define yystype YYSTYPE /* obsolescent; will be withdrawn */ +# define YYSTYPE_IS_DECLARED 1 +# define YYSTYPE_IS_TRIVIAL 1 +#endif + +extern YYSTYPE yylval; + --- bc-1.06.95.orig/doc/dc.1 +++ bc-1.06.95/doc/dc.1 @@ -501,6 +501,10 @@ because the 2 was stored in an instance of 0:a that was later popped. .SH +FILES +\fI~/.dcrc\fP The commands in this file will be executed when dc is +first run. +.SH BUGS .PP Email bug reports to --- bc-1.06.95.orig/doc/bc.texi +++ bc-1.06.95/doc/bc.texi @@ -9,12 +9,13 @@ @c This file has the new style title page commands. @c Run `makeinfo' rather than `texinfo-format-buffer'. -@smallbook +@c smallbook @c tex @c \overfullrule=0pt @c end tex +@dircategory Math @ifinfo @direntry * bc: (bc). An arbitrary precision calculator language. --- bc-1.06.95.orig/doc/dc.texi +++ bc-1.06.95/doc/dc.texi @@ -22,6 +22,7 @@ @syncodeindex pg fn @syncodeindex tp fn +@dircategory Math @ifinfo @direntry * dc: (dc). Arbitrary precision RPN ``Desktop Calculator''. --- bc-1.06.95.orig/doc/bc.info +++ bc-1.06.95/doc/bc.info @@ -1,5 +1,6 @@ -This is bc.info, produced by makeinfo version 4.8 from bc.texi. +This is bc.info, produced by makeinfo version 4.13 from bc.texi. +INFO-DIR-SECTION Math START-INFO-DIR-ENTRY * bc: (bc). An arbitrary precision calculator language. END-INFO-DIR-ENTRY @@ -1002,29 +1003,29 @@  Tag Table: -Node: Top181 -Node: Introduction473 -Node: Description638 -Node: Command Line Options2097 -Node: Basic Elements2667 -Node: Numbers2842 -Node: Variables3610 -Node: Comments4724 -Node: Expressions5470 -Node: About Expressions and Special Variables5754 -Node: Basic Expressions7495 -Node: Relational Expressions10441 -Node: Boolean Expressions11451 -Node: Precedence12011 -Node: Special Expressions13176 -Node: Statements14563 -Node: Pseudo Statements21192 -Node: Functions21845 -Node: Math Library Functions27008 -Node: Examples27723 -Node: Readline and Libedit Options29707 -Node: Comparison with Other Implementations30738 -Node: Limits35990 -Node: Environment Variables37247 +Node: Top204 +Node: Introduction496 +Node: Description661 +Node: Command Line Options2120 +Node: Basic Elements2690 +Node: Numbers2865 +Node: Variables3633 +Node: Comments4747 +Node: Expressions5493 +Node: About Expressions and Special Variables5777 +Node: Basic Expressions7518 +Node: Relational Expressions10464 +Node: Boolean Expressions11474 +Node: Precedence12034 +Node: Special Expressions13199 +Node: Statements14586 +Node: Pseudo Statements21215 +Node: Functions21868 +Node: Math Library Functions27031 +Node: Examples27746 +Node: Readline and Libedit Options29730 +Node: Comparison with Other Implementations30761 +Node: Limits36013 +Node: Environment Variables37270  End Tag Table --- bc-1.06.95.orig/doc/dc.info +++ bc-1.06.95/doc/dc.info @@ -1,5 +1,6 @@ -This is dc.info, produced by makeinfo version 4.8 from dc.texi. +This is dc.info, produced by makeinfo version 4.13 from dc.texi. +INFO-DIR-SECTION Math START-INFO-DIR-ENTRY * dc: (dc). Arbitrary precision RPN "Desktop Calculator". END-INFO-DIR-ENTRY @@ -462,18 +463,18 @@  Tag Table: -Node: Top1109 -Node: Introduction1688 -Node: Invocation3037 -Node: Printing Commands3888 -Node: Arithmetic5933 -Node: Stack Control8850 -Node: Registers9334 -Ref: Registers-Footnote-110302 -Node: Parameters10454 -Node: Strings11719 -Node: Status Inquiry14876 -Node: Miscellaneous15936 -Node: Reporting bugs16909 +Node: Top1132 +Node: Introduction1711 +Node: Invocation3060 +Node: Printing Commands3911 +Node: Arithmetic5956 +Node: Stack Control8873 +Node: Registers9357 +Ref: Registers-Footnote-110325 +Node: Parameters10477 +Node: Strings11742 +Node: Status Inquiry14899 +Node: Miscellaneous15959 +Node: Reporting bugs16932  End Tag Table --- bc-1.06.95.orig/debian/bc.menu +++ bc-1.06.95/debian/bc.menu @@ -0,0 +1 @@ +?package(bc):needs="text" section="Applications/Science/Mathematics" title="Bc" hints="Calculators" command="/usr/bin/bc" --- bc-1.06.95.orig/debian/bc.postinst +++ bc-1.06.95/debian/bc.postinst @@ -0,0 +1,26 @@ +#!/bin/sh +# +# This is the postinst script for the Debian GNU/Linux bc package +# +# Written by John G. Hasler +# Previous versions written by Dirk Eddelbuettel, Bill Mitchell, +# Austin Donnelly and James Troup + +set -e + +#DEBHELPER# + +case "$1" in + configure) + if [ -x "`which update-menus 2>/dev/null`" ]; then + update-menus + fi + ;; + abort-remove|abort-deconfigure|abort-upgrade) + # Nothing to undo + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + ;; +esac --- bc-1.06.95.orig/debian/bc.postrm +++ bc-1.06.95/debian/bc.postrm @@ -0,0 +1,23 @@ +#! /bin/sh +# +# This is the postrm script for the Debian GNU/Linux bc package +# +# Written by John G. Hasler +# Previous versions written by Dirk Eddelbuettel, Bill Mitchell, +# Austin Donnelly and James Troup + +set -e + +#DEBHELPER# + +case "$1" in + purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + if [ -x /usr/bin/update-menus ] + then + update-menus + fi + ;; + *) + echo "postrm called with unknown argument \`$1'" >&2 + ;; +esac --- bc-1.06.95.orig/debian/changelog +++ bc-1.06.95/debian/changelog @@ -0,0 +1,463 @@ +bc (1.06.95-2) unstable; urgency=low + + * Fixed errors in debian/rules that prevented info files from + being correctly generated. + + -- John G. Hasler Thu, 15 Oct 2009 12:17:23 -0500 + +bc (1.06.95-1) unstable; urgency=low + + * New upstream release + Closes: #538419: New bc upstream version 1.06.95 + + Fixed libreadline build dependencies. + + Cleaned up maintscripts, brought package up to current + standards-version, fixed menu entries, patched texi files + to add @dircategory lines. + + -- John G. Hasler Tue, 06 Oct 2009 13:57:38 -0500 + +bc (1.06.94-3) unstable; urgency=low + + * Added "-pbc" to dh_installdirs line for bc in debian/rules. + Fixes build failure with "-j3". + + -- John Hasler Sun, 02 Dec 2007 14:46:56 -0600 + +bc (1.06.94-2) unstable; urgency=low + + * Uncommented dh_md5sums in debian/rules. + + * Corrected menu entries. + + -- John Hasler Fri, 05 Oct 2007 12:29:18 -0500 + +bc (1.06.94-1) unstable; urgency=low + + * New upstream release + + Code cleanup upstream has fixed these + Closes: #357728: bc: Segfaults + Closes: #221781: dc: precision >= 1000000000 does not work + Closes: #429156: dc: segfaults when generating primes + Closes: #296232: dc directory' should print an error + Closes: #301921: 'man bc' typos: "environent", "specifing" + + * Patched use_quit() in main.c to run rl_initialize(). + Closes: #287210: bc: Interrupt should reset the input line + + * BC_LINE_LENGTH=0 disables the multi-line feature. + Closes: #245899: bc: BC_LINE_LENGTH=0 or similar for ``do never split'' + should be added, or the manpage should be fixed + + * Upstream says this in correct POSIX behavior. + Closes: #388487: bc: scale strangeness + + * Applied patch from Justin Pryzby. + Closes: #374818: dc: maintscript prerm arguments + + * Remove '-s' from calls to install in debian/rules. Fixes both bc and dc. + Closes: #436578: bc: not handling nostrip build option (policy 10.1) sid/i386 + + * Upstream has removed the '-E' option. + Closes: #389345: dc: man page formatting bug + + * Added -DDONTEXIT to debian/rules as it is not the default. + + * Man page typos fixed upstream. + + * Added home page (such as it is) to descriptions. + + * Fixed make distclean call in debian/rules. + + -- John Hasler Thu, 23 Aug 2007 15:18:09 -0500 + +bc (1.06-20) unstable; urgency=low + + * Had already fixed menu titles but failed to close the bug. + Closes: #320605: Conformance with menu policy + + * Also had fixed typos. + Closes: #301921: 'man bc' typos: "environent", "specifing" + + -- John Hasler Sat, 7 Oct 2006 10:45:18 -0500 + +bc (1.06-19) unstable; urgency=low + + * Fixed libreadline dependency. + Closes: #326385: please rebuild with libreadline5-dev as build dependency + + -- John Hasler Thu, 17 Nov 2005 15:41:52 -0600 + +bc (1.06-18) unstable; urgency=low + + * Corrected link in copyright file. + + * Fixed capitalization in menu titles. + Closes: #320605: Conformance with menu policy + + -- John Hasler Sun, 28 Aug 2005 18:36:46 -0500 + +bc (1.06-17) unstable; urgency=low + + * New maintainer. + + -- John Hasler Sat, 15 Jan 2005 18:20:00 -0600 + +bc (1.06-16) unstable; urgency=low + + * debian/rules: Applied patch by NIIBE Yutaka to + distinguish between GNU types build and host (Closes: #285304) + + -- Dirk Eddelbuettel Sun, 19 Dec 2004 18:08:47 -0600 + +bc (1.06-15) unstable; urgency=low + + * configure.in: Patch was supposed to be '-I -8' (Closes: #237957) + * Also ran autoconf2.50 to re-create configure + + -- Dirk Eddelbuettel Thu, 29 Apr 2004 20:54:22 -0500 + +bc (1.06-14) unstable; urgency=low + + * configure.in: Applied patch by Andreas Jochens to invoke flex + with argument '-I 8' instead of '-I8' (Closes: #237957) + + -- Dirk Eddelbuettel Mon, 26 Apr 2004 19:55:50 -0500 + +bc (1.06-13) unstable; urgency=low + + * bc/bc.y: Apply patch by Matt Kraai to fix flex issues (Closes: #236991) + * debian/control: Upgraded to Standards-Version: 3.6.1 + * debian/dc.menu: Quoted one more argument (thanks, lintian) + + -- Dirk Eddelbuettel Wed, 10 Mar 2004 21:34:02 -0600 + +bc (1.06-12) unstable; urgency=low + + * configure.in: Avoid time skew via AM_MAINTAINER_MODE (Closes: #208195) + * {bc,dc,lib}/Makefile.am: s/CFLAGS/AM_CFLAGS/,s/YFLAGS/AM_YFLAGS/ + * Ran 'aclocal; autoconf; automake-1.7 --gnu --add-missing --copy' + * doc/bc.1: Patch by N. Francois with two minor corrections (Closes: #215292) + + -- Dirk Eddelbuettel Tue, 14 Oct 2003 20:43:21 -0500 + +bc (1.06-11) unstable; urgency=low + + * doc/dc.{1,texi}: Applied upstream patch by Ken Pizzini (Closes: #100344) + + -- Dirk Eddelbuettel Mon, 12 May 2003 16:01:32 -0500 + +bc (1.06-10) unstable; urgency=low + + * dc/{dc.c,eval.c,dc-proto.h}: Added new upstream patch by Ken Pizzini + which fixes one old and one new bug report(Closes: #135029, #191663) + * dc/dc.c: Corrected function argument to pointer to string + * debian/control: Increased Standards-Version to 3.5.9 + * debian/dc_factor: New example script + + -- Dirk Eddelbuettel Fri, 9 May 2003 20:20:29 -0500 + +bc (1.06-9) unstable; urgency=low + + * dc/dc.c, doc/dc.1: Applied patch by Terran Melconian + for an additional command-line argument, + and rc file handling; also forwarded upstream (Closes: #167274) + + -- Dirk Eddelbuettel Fri, 1 Nov 2002 23:51:51 -0600 + +bc (1.06-8) unstable; urgency=low + + * debian/control: Priority changed to standard as per overrides file + * debian/control: Standards-Version upgraded to 3.5.0 + * debian/copyright: Debian/GNU Linux typo fix (lintian) + + -- Dirk Eddelbuettel Sat, 13 Apr 2002 11:33:49 -0500 + +bc (1.06-7) unstable; urgency=low + + * bc/scan.l, bc/scan.c: Commented out three declarations that are now + also in libreadline 4.2; mini-patch sent upstream (Closes: #100178) + + -- Dirk Eddelbuettel Sat, 9 Jun 2001 06:03:33 -0500 + +bc (1.06-6) unstable; urgency=low + + * The "surprise, another build-depends bug" upload + * debian/control: Added bison to Build-Depends (Closes: #86977) + + -- Dirk Eddelbuettel Thu, 22 Feb 2001 20:43:44 -0600 + +bc (1.06-5) unstable; urgency=low + + * The "there's yet another in the pipeline" revisions + * bc/bc.y: Another small patch from upstream + + -- Dirk Eddelbuettel Mon, 19 Feb 2001 20:05:31 -0600 + +bc (1.06-4) unstable; urgency=low + + * The "Let's make it three uploads in twenty-four hours" revisison + * debian/control: Added file, flex, texinfo, libreadline4-dev (Closes: #86593) + + -- Dirk Eddelbuettel Mon, 19 Feb 2001 08:26:45 -0600 + +bc (1.06-3) unstable; urgency=low + + * bc/load.c: Another small patch from upstream + + -- Dirk Eddelbuettel Sun, 18 Feb 2001 23:04:08 -0600 + +bc (1.06-2) unstable; urgency=low + + * bc/main.c: Applied modified patch from the upstream and CVSh, supplied + in response the to the bug supplied with the bug report (Closes: #86425) + + -- Dirk Eddelbuettel Sun, 18 Feb 2001 10:06:05 -0600 + +bc (1.06-1) unstable; urgency=low + + * Upgraded to new upstream release 1.06 (Closes: #82207) + + -- Dirk Eddelbuettel Sun, 14 Jan 2001 23:03:26 -0600 + +bc (1.05a-13) unstable; urgency=low + + * debian/control: Build-Depends on texi2html, not tetex-bin (Closes: #81196) + + -- Dirk Eddelbuettel Thu, 4 Jan 2001 20:38:12 -0600 + +bc (1.05a-12) unstable; urgency=low + + * debian/control: Added Build-Depends + * debian/dc.menu: Added hints="Calculator" (Closes: #80012) + * debian/bc.menu: Added hints="Calculator" (Closes: #80050) + + -- Dirk Eddelbuettel Tue, 19 Dec 2000 22:09:44 -0600 + +bc (1.05a-11) frozen; urgency=low + + * Argh, 1.05a-10 was meant for frozen - this really closes #57908. + + -- Dirk Eddelbuettel Sun, 13 Feb 2000 17:05:49 -0500 + +bc (1.05a-10) unstable; urgency=low + + * Rebuilt against libreadline4 (Closes: #57908) + + -- Dirk Eddelbuettel Sun, 13 Feb 2000 00:17:31 -0500 + +bc (1.05a-9) unstable; urgency=low + + * Applied upstream patch by Ken Pizzini to correct the + dc.1 manual page (Closes: #48881) + + -- Dirk Eddelbuettel Wed, 3 Nov 1999 22:10:33 -0500 + +bc (1.05a-8) unstable; urgency=low + + * Applied another upstream patch by Phil Nelson ; this + one improves the cosine and cosine and bessel functions + + * debian/rules: make sure we link bc with readline (Closes: #46535) + + -- Dirk Eddelbuettel Sun, 3 Oct 1999 17:00:38 -0400 + +bc (1.05a-7) unstable; urgency=low + + * Applied new upstream patch by Phil Nelson to improve + the raise operation. Thanks to Aaron Digulla for the + report. + + * debian/rules: Adapted to use /usr/share/ following the recommendation + on FHS transition from the Technical Committee + * debian/rules: Test for debhelper >= 2.0.40 for FHS compliance + * debian/control: Upgraded to Debian Policy 3.0.1 + + -- Dirk Eddelbuettel Sat, 2 Oct 1999 09:14:41 -0400 + +bc (1.05a-6) unstable; urgency=low + + * debian/control: Actually changed maintainer name + + -- Dirk Eddelbuettel Fri, 4 Jun 1999 22:54:45 -0400 + +bc (1.05a-5) unstable; urgency=low + + * New maintainer + * debian/rules: Converted to debhelper + * debian/*: Added doc-base support for dc + * debian/{bc,dc}.{post,pre}{inst,rm}: Cosmetic changes + + -- Dirk Eddelbuettel Fri, 28 May 1999 23:47:40 -0400 + +bc (1.05a-4) unstable; urgency=low + + * debian/control (Standards-Version): updated to 2.5.0.0. + * configure.in: changed test for readline to use READLINELIB and not + LIBS so we can link just bc with readline (as dc doesn't use it). + [#31473] + * bc/Makefile.am (LDADD): add @READLINELIB@. + + -- James Troup Sat, 16 Jan 1999 15:19:32 +0000 + +bc (1.05a-3) frozen unstable; urgency=high + + * bc/scan.l (rl_len): int not char, to allow input > 128 characters in + length without crashing. Reported by Wakko Warner + , Jeff Noxon and Camm + Maguire . [#23304, #24113, #27731] + + -- James Troup Mon, 9 Nov 1998 02:45:00 +0000 + +bc (1.05a-2) unstable; urgency=low + + * debian/control (Maintainer): new address. + * debian/copyright: ditto. + * Recompile with ncurses4. + + -- James Troup Fri, 23 Oct 1998 18:27:44 +0100 + +bc (1.05a-1) unstable; urgency=low + + * New upstream version. + * debian/control (Standards-Version): updated to 2.4.1.0. + + -- James Troup Tue, 30 Jun 1998 00:54:37 +0200 + +bc (1.04-4) unstable; urgency=low + + * debian/copyright: correct the FSF's address. + * debian/copyright: refer to bc source package, not hello. + * debian/control (Standards-Version): updated to 2.4.0.0. + + -- James Troup Mon, 2 Mar 1998 18:10:02 +0000 + +bc (1.04-3) unstable; urgency=low + + * Uses pristine upstream source. + * Added menu entries. + * debian/control: Updated Standards-Version to 2.3.0.1. + * debian/control: Shortened dc's long description. + * debian/rules: No longer uses {,}. + * debian/rules: Compile with -g and -Wall. + * debian/rules: Split binary-arch into binary-bc and binary-dc. + * debian/rules: Lots of other minor changes. + * bc/scan.l: Don't use readline when not interactive. (Patch from + Andreas Schwab). This fixes the problem of bc echoing it's input + when used in a pipe [#16069] + * Test/timetest: correct location of bc. (Patch from Karl Heuer) + * lib/number.c: Fix for broken sqrt function. (Patch from Phil Nelson) + + -- James Troup Mon, 29 Dec 1997 19:34:45 +0000 + +bc (1.04-2) unstable; urgency=low + + * Rebuilt with libc6. + * Compiled with readline. + + -- James Troup Mon, 30 Jun 1997 01:21:23 +0100 + +bc (1.04-1) unstable; urgency=low + + * New upstream release. + + -- James Troup Wed, 30 Apr 1997 17:18:39 +0100 + +bc (1.03-14) unstable; urgency=low + + * Made bc flush its output unconditionally (bug #6986). + + -- James Troup Thu, 13 Feb 1997 16:56:49 +0000 + +bc (1.03-13) unstable; urgency=low + + * Corrected location of example files (bug #7041). + + -- James Troup Mon, 3 Feb 1997 02:50:29 +0000 + +bc (1.03-12) unstable; urgency=low + + * Corrected priority (optional -> important). + + -- James Troup Fri, 31 Jan 1997 00:59:11 +0000 + +bc (1.03-11) unstable; urgency=low + + * New maintainer. + * Updated to Standards-Version 2.1.1.2. + * Included Austin Donnelly's fix for bug #6463. + * Fixed dc.1 so mandb can parse it (bug #4991). + + -- James Troup Thu, 30 Jan 1997 04:07:04 +0000 + +Changes for bc-1.03-10: + elf package + * added dependency on libc5 + +Changes for bc-1.03-9: + * rebuilt for elf + +Changes for bc-1.03-8: + +Priority: Routine +Changes: Various administrative changes + changed extended description for the bc package to the one used by GNU. + renamed source package debian.* files + added SECTON field to control files + added /usr/doc/dc with dc.texinfo man Makefile + +Changes for bc-1.03-7: + +1. Fixed problem with debian.rules sed invocation for debian.control + +2. Remove several files created by the build in debian.rules clean: + +Changes for bc-1.03-6: + +1. Cleaned up control file descriptions and extended descriptions. + +Changes for bc-1.03-5: + +1. Changed mode of man pages from 755 to 644 + +Changes for bc-1.03-4: + +1. In debian.rules, added code to fix broken "orig" target. + (This was most likely broken by my bc-1.03-3 changes) (??) + +Changes for bc-1.03-3: + +1. In debian.rules: + + Changed the "d = 2" to "d = 3" to change the bc-1.03- + line in the control files from 2 to 3. + + Changed references to source package files control.bc and + control.dc to pre-pend "debian." to those names. + + Changed references to source package files control.bc and + control.dc to pre-pend "debian." to those names. + + Changed references to source package files postinst.dc and + postrm.dc to pre-pend "debian." to those names. + + Added dependency on clean to source and diff targets. + + Moved "make distclean" to the last action in the clean target + to prevent a failure here from aborting the preceeding cleanup. + +2. Renamed files + + control.bc to debian.control.bc + control.dc to debian.control.bc + postinst.dc to debian.postinst.bc + postrm.dc to debian.postrm.bc + +3. In debian.control.* changed maintainer name. + +This file documents changes since maintenamce of this package +was taken over by Bill Mitchell +beginning with bc-1.03-3. + --- bc-1.06.95.orig/debian/compat +++ bc-1.06.95/debian/compat @@ -0,0 +1 @@ +7 --- bc-1.06.95.orig/debian/control +++ bc-1.06.95/debian/control @@ -0,0 +1,28 @@ +Source: bc +Section: math +Priority: standard +Maintainer: John G. Hasler +Standards-Version: 3.8.3 +Build-Depends: bison, debhelper (>= 7), file, flex, libreadline-dev | libreadline6-dev | libreadline5-dev, texi2html, texinfo + +Package: bc +Architecture: any +Depends: ${shlibs:Depends}, dpkg (>= 1.15.4) | install-info +Description: The GNU bc arbitrary precision calculator language + GNU bc is an interactive algebraic language with arbitrary precision which + follows the POSIX 1003.2 draft standard, with several extensions including + multi-character variable names, an `else' statement and full Boolean + expressions. GNU bc does not require the separate GNU dc program. + Home page: http://directory.fsf.org/GNU/bc.html + +Package: dc +Architecture: any +Depends: ${shlibs:Depends}, dpkg (>= 1.15.4) | install-info +Description: The GNU dc arbitrary precision reverse-polish calculator + GNU dc is a reverse-polish desk calculator which supports unlimited + precision arithmetic. It also allows you to define and call macros. + . + A reverse-polish calculator stores numbers on a stack. Entering a number + pushes it on the stack. Arithmetic operations pop arguments off the + stack and push the results. + Home page: http://directory.fsf.org/GNU/bc.html --- bc-1.06.95.orig/debian/copyright +++ bc-1.06.95/debian/copyright @@ -0,0 +1,60 @@ +This is Debian GNU/Linux's prepackaged version of the FSF's GNU bc and dc +utilities. GNU bc is an interactive algebraic language with arbitrary +precision. GNU dc is a reverse-polish desk calculator which supports +unlimited precision arithmetic. bc was written by Phil Nelson, Ken Pizzini +wrote dc. + +bc was previously maintained by Bill Mitchell, Austin Donnelly, James +Troup, and Dirk Eddelbuettel. The current package was put together by John +G. Hasler from the GNU sources from +http://ftp.us.xemacs.org/pub/mirrors/gnu/alpha/gnu/bc/ +Changes are documented in the changelog.Debian file, and below. + +James Troup, the previous maintainer made the following changes :- + +o adding support for the Debian package maintenance scheme, by adding + various debian/* files. +o bc/scan.l (rc_len): define as int not char, to allow input > 128 + characters in length without crashing. +o configure.in: changed test for readline to use READLINELIB and not + LIBS so we can link just bc with readline (as dc doesn't use it). +o bc/Makefile.am (LDADD): add @READLINELIB@ + + +Program Copyright (C) 1991, 1992, 1993, 1994, 1997 Free Software +Foundation, Inc. +Modifications for Debian Copyright (C) 1997, 1998, 1999 James Troup. +Further modifications for Debian Copyright (C) 1999 Dirk Eddelbuettel. + +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License as published by +the Free Software Foundation; either version 2, or (at your option) +any later version. + +This program is distributed in the hope that it will be useful, but +WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +General Public License for more details. + +You should have received a copy of the GNU General Public License with your +Debian GNU/Linux system, in /usr/share/common-licenses/GPL, or with the +Debian GNU/Linux bc source package as the file COPYING. If not, write to the +Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, +MA 02110-1301, USA. + + +Manual (dc.info) Copyright (C) 1984 Free Software Foundation, Inc. + +Permission is granted to make and distribute verbatim copies of this +manual provided the copyright notice and this permission notice are +preserved on all copies. + +Permission is granted to copy and distribute modified versions of this +manual under the conditions for verbatim copying, provided that the +entire resulting derived work is distributed under the terms of a +permission notice identical to this one. + +Permission is granted to copy and distribute translations of this +manual into another language, under the above conditions for modified +versions, except that this permission notice may be stated in a +translation approved by the Foundation. --- bc-1.06.95.orig/debian/dc.doc-base +++ bc-1.06.95/debian/dc.doc-base @@ -0,0 +1,14 @@ +Document: dc +Title: The GNU DC arbitrary precision calculator +Author: Ken Pizzini +Abstract: GNU dc is a reverse-polish desk calculator which supports unlimited + precision arithmetic. It also allows you to define and call macros. + Normally DC reads from the standard input; if any command arguments are + given to it, they are filenames, and DC reads and executes the contents + of the files instead of reading from standard input. All normal output + is to standard output; all error messages are written to standard error. +Section: Science/Mathematics + +Format: HTML +Index: /usr/share/doc/dc/dc.html +Files: /usr/share/doc/dc/dc.html --- bc-1.06.95.orig/debian/dc.menu +++ bc-1.06.95/debian/dc.menu @@ -0,0 +1 @@ +?package(dc):needs="text" title="Dc" section="Applications/Science/Mathematics" hints="Calculators" command="/usr/bin/dc" --- bc-1.06.95.orig/debian/dc.postinst +++ bc-1.06.95/debian/dc.postinst @@ -0,0 +1,26 @@ +#!/bin/sh +# +# This is the postinst script for the Debian GNU/Linux dc package +# +# Written by John G. Hasler +# Previous versions written by Dirk Eddelbuettel, Bill Mitchell, +# Austin Donnelly and James Troup + +set -e + +#DEBHELPER# + +case "$1" in + configure) + if [ -x "`which update-menus 2>/dev/null`" ]; then + update-menus + fi + ;; + abort-remove|abort-deconfigure|abort-upgrade) + # Nothing to undo + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + ;; +esac --- bc-1.06.95.orig/debian/dc.postrm +++ bc-1.06.95/debian/dc.postrm @@ -0,0 +1,23 @@ +#! /bin/sh +# +# This is the postrm script for the Debian GNU/Linux dc package +# +# Written by John G. Hasler +# Previous versions written by Dirk Eddelbuettel, Bill Mitchell, +# Austin Donnelly and James Troup + +set -e + +#DEBHELPER# + +case "$1" in + purge|remove|upgrade|failed-upgrade|abort-install|abort-upgrade|disappear) + if [ -x /usr/bin/update-menus ] + then + update-menus + fi + ;; + *) + echo "postrm called with unknown argument \`$1'" >&2 + ;; +esac --- bc-1.06.95.orig/debian/dc_factor +++ bc-1.06.95/debian/dc_factor @@ -0,0 +1,17 @@ +#!/bin/sh +# +# Example taken from http://www.cs.unh.edu/~charpov/Programming/DC/ +# and minimally modified to use dc -e '...' instead of echo '...' | dc +# +# Usage: +# Invoke as 'dc_factor $ARG' and $ARG will be factored +# Example: +# $ ./dc_factor 123456789 +# 3 +# 3 +# 3607 +# 3803 +# +# Dirk Eddelbuettel 09 May 2003 + +dc -e "$1[p]s2[lip/dli%0=1dvsr]s12sid2%0=13sidvsr[dli%0=1lrli2+dsi!>.]ds.xd1<2" --- bc-1.06.95.orig/debian/menu.bc +++ bc-1.06.95/debian/menu.bc @@ -0,0 +1 @@ +?package(units):needs="text" section="Applications/Science/Mathematics" title="Bc" command="bc" --- bc-1.06.95.orig/debian/menu.dc +++ bc-1.06.95/debian/menu.dc @@ -0,0 +1 @@ +?package(units):needs="text" section="Applications/Science/Mathematics" title="Dc" command="dc" --- bc-1.06.95.orig/debian/rules +++ bc-1.06.95/debian/rules @@ -0,0 +1,118 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# debian/rules file for the Debian/GNU bc package +# Copyright 1999 - 2004 by Dirk Eddelbuettel + +package1 = bc +package2 = dc +deb_bc := $(CURDIR)/debian/$(package1) +deb_dc := $(CURDIR)/debian/$(package2) + +DEB_BUILD_GNU_TYPE = $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +DEB_HOST_GNU_TYPE = $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +ifneq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE)) +CONFARGS = --host=$(DEB_HOST_GNU_TYPE) +endif + +#export DH_VERBOSE=1 + + +build: build-stamp +build-stamp: + dh_testdir + ./configure --prefix=/usr --with-readline $(CONFARGS) + $(MAKE) CFLAGS="-O2 -g -Wall -D_POSIX_SOURCE -DDOT_IS_LAST -DDONTEXIT" + (cd doc; texi2html -monolithic -expandinfo -number $(package1).texi) + (cd doc; texi2html -monolithic -expandinfo -number $(package2).texi) + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp install-stamp + [ ! -f Makefile ] || $(MAKE) distclean + dh_clean config.log confdefs.h doc/dc.html + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_prep + dh_installdirs + # Add here commands to install the package into debian/tmp. + #$(MAKE) prefix=`pwd`/debian/tmp/usr install +# dh_movefiles + touch install-stamp + +binary-indep: build install + +binary-arch: build binary-arch-bc binary-arch-dc + +binary-arch-bc: + + dh_testdir -pbc + dh_prep + dh_installdirs -pbc usr/bin usr/share/info + dh_testroot -pbc + install -p -m 0755 bc/bc $(deb_bc)/usr/bin/. + install -p -m 0644 doc/bc.info $(deb_bc)/usr/share/info/. + dh_installdocs -pbc NEWS README AUTHORS doc/bc.html + dh_installexamples -pbc Examples/* + dh_installmenu -pbc +# dh_installemacsen -pbc +# dh_installinit -pbc +# dh_installcron -pbc + dh_installman -pbc doc/bc.1 +# dh_undocumented + dh_installchangelogs -pbc ChangeLog + dh_strip -pbc + dh_link -pbc + dh_compress -pbc + dh_fixperms -pbc + # You may want to make some executables suid here. +# dh_suidregister -pbc + dh_installdeb -pbc +# dh_makeshlibs -pbc + dh_shlibdeps -pbc + dh_gencontrol -pbc + dh_md5sums -pbc + dh_builddeb -pbc + +binary-arch-dc: + + dh_testdir -pdc + dh_prep + dh_installdirs -pdc usr/bin usr/share/info + dh_testroot -pdc + install -p -m 0755 dc/dc $(deb_dc)/usr/bin/. + install -p -m 0644 doc/dc.info $(deb_dc)/usr/share/info/. + dh_installdocs -pdc NEWS README AUTHORS \ + doc/dc.html + dh_installexamples -pdc debian/dc_factor + dh_installmenu -pdc +# dh_installemacsen -pdc +# dh_installinit -pdc +# dh_installcron -pdc + dh_installman -pdc doc/dc.1 +# dh_undocumented + dh_installchangelogs -pdc ChangeLog + dh_strip -pdc + dh_link -pdc + dh_compress -pdc + dh_fixperms -pdc + # You may want to make some executables suid here. +# dh_suidregister -pdc + dh_installdeb -pdc +# dh_makeshlibs -pdc + dh_shlibdeps -pdc + dh_gencontrol -pdc + dh_md5sums -pdc + dh_builddeb -pdc + +source diff: + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install + +