--- kimwitu-4.6.1.orig/debian/README.Debian +++ kimwitu-4.6.1/debian/README.Debian @@ -0,0 +1,8 @@ +kimwitu for Debian +---------------------- + +Note that there's no technical difference between version 4.6 and +4.6.1 - the only change is that 4.6.1 is licensed under the terms of +the GNU GPL. + + -- W. Borgert , Sat, 15 Apr 2000 16:22:50 +0000 --- kimwitu-4.6.1.orig/debian/changelog +++ kimwitu-4.6.1/debian/changelog @@ -0,0 +1,65 @@ +kimwitu (4.6.1-7.1ubuntu1) yakkety; urgency=medium + + * debian/rules: + - Remove legacy DH_COMPAT export. + - Add recommended build-arch and build-indep targets. + - Use dh_prep instead of dh_clean -k. + * debian/compat: Indicate compatibility level of 9. + * debian/control: + - Build-depend on debhelper (>= 9). + - Depend on ${misc:Depends}. + + -- Logan Rosen Tue, 19 Jul 2016 23:33:45 -0400 + +kimwitu (4.6.1-7.1) unstable; urgency=high + + * Non-maintainer upload. + * Made package compile twice in a row, closes: #424456 + + -- Michael Meskes Sun, 06 Apr 2008 17:22:50 +0200 + +kimwitu (4.6.1-7) unstable; urgency=low + + * Avoid mktemp and work with Bison of the 3rd millenium + + -- Michael Piefel Mon, 08 May 2006 16:00:45 +0200 + +kimwitu (4.6.1-6) unstable; urgency=low + + * Finally: /usr/doc transition (closes: #359439) + + -- Michael Piefel Fri, 28 Apr 2006 11:10:09 +0200 + +kimwitu (4.6.1-5) unstable; urgency=low + + * Changed the perl script errmsg.pl (which shouldn't have been called + anyway) so it produces correct output with modern bison. (closes: #86161) + * Makefile now touches two file so that abovementioned script is not called. + + -- Michael Piefel Fri, 16 Feb 2001 16:28:23 +0100 + +kimwitu (4.6.1-4) unstable; urgency=low + + * New maintainer + + -- Michael Piefel Fri, 9 Feb 2001 14:24:50 +0100 + +kimwitu (4.6.1-3) unstable; urgency=low + + * Could not be build w/o fakeroot. Fixed bug#70423, + thanks to Roman Hodek . + + -- W. Borgert Tue, 29 Aug 2000 06:25:01 +0000 + +kimwitu (4.6.1-2) unstable; urgency=low + + * Fixed a lintian warning. + + -- W. Borgert Sun, 20 Aug 2000 14:13:29 +0000 + +kimwitu (4.6.1-1) unstable; urgency=low + + * Initial Release. + + -- W. Borgert Sat, 15 Apr 2000 16:22:50 +0000 + --- kimwitu-4.6.1.orig/debian/compat +++ kimwitu-4.6.1/debian/compat @@ -0,0 +1 @@ +9 --- kimwitu-4.6.1.orig/debian/control +++ kimwitu-4.6.1/debian/control @@ -0,0 +1,26 @@ +Source: kimwitu +Section: devel +Priority: optional +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Michael Piefel +Standards-Version: 3.7.0 +Build-Depends: debhelper (>= 9) + +Package: kimwitu +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends} +Recommends: c-compiler, kimwitu-doc +Suggests: bison | byacc | btyacc +Description: Compiler development tool, complementary to lex and yacc + Kimwitu (pronounced kee'mweetoo) is a system that supports + the construction of programs that use trees or terms as + their main data structure. It is a ‘meta-tool’ in the + development process of tools. + . + It can easily be interfaced with Yacc and Lex – the idea + is that yacc and lex are used to do the parsing, and + Kimwitu routines are used to built and manipulate the + parse tree. + . + There is also Kimwitu++ (also packaged for Debian) which interfaces + with C++ instead of C. --- kimwitu-4.6.1.orig/debian/copyright +++ kimwitu-4.6.1/debian/copyright @@ -0,0 +1,42 @@ +This package was debianized by W. Borgert on Sat, +15 Apr 2000 16:22:50 +0000. + +It was downloaded from ftp://ftp.cs.utwente.nl/pub/src/kimwitu/. + +Upstream Author(s): Axel Belinfante . + +Copyright: + +Kimwitu, a system that supports the construction of programs that +use trees or terms as their main data structure. +Copyright (C) 1988-1998 Axel Belinfante, University of Twente, +Enschede, The Netherlands. All Rights Reserved + +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 of the License, 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +Output of Kimwitu (and of works based on Kimwitu) can be used without +restriction (even though this output may contain fragments from the +source code of Kimwitu (or of works based on Kimwitu), with one nota- +ble exception (because Kimwitu is built using itself): The output +generated by Kimwitu (and by works based on Kimwitu) from the source +code of Kimwitu (and from the source code of works based on Kimwitu) +is covered by the GNU General Public License. + +The structure-file-io reading and writing code has been derived, in part, +from The Synthesizer Generator (tm), a product of GrammaTech, Inc, +copyright (C) 1991, GrammaTech, Inc. Used with permission. + +GrammaTech and Synthesizer Generator, are tradenames of GrammaTech, Inc., +One Hopkins Place, Ithaca, NY 14850, (607) 273-7340. --- kimwitu-4.6.1.orig/debian/dirs +++ kimwitu-4.6.1/debian/dirs @@ -0,0 +1 @@ +usr/bin --- kimwitu-4.6.1.orig/debian/docs +++ kimwitu-4.6.1/debian/docs @@ -0,0 +1,5 @@ +README.doc +doc/about-kimwitu +AUTHORS +INCOMPATBLE_CHANGE +README --- kimwitu-4.6.1.orig/debian/postinst +++ kimwitu-4.6.1/debian/postinst @@ -0,0 +1,8 @@ +#! /bin/sh + +set -e + +#DEBHELPER# + +exit 0 + --- kimwitu-4.6.1.orig/debian/postrm +++ kimwitu-4.6.1/debian/postrm @@ -0,0 +1,8 @@ +#! /bin/sh + +set -e + +#DEBHELPER# + +exit 0 + --- kimwitu-4.6.1.orig/debian/preinst +++ kimwitu-4.6.1/debian/preinst @@ -0,0 +1,8 @@ +#! /bin/sh + +set -e + +#DEBHELPER# + +exit 0 + --- kimwitu-4.6.1.orig/debian/prerm +++ kimwitu-4.6.1/debian/prerm @@ -0,0 +1,8 @@ +#! /bin/sh + +set -e + +#DEBHELPER# + +exit 0 + --- kimwitu-4.6.1.orig/debian/rules +++ kimwitu-4.6.1/debian/rules @@ -0,0 +1,64 @@ +#!/usr/bin/make -f + +build: build-arch build-indep +build-arch: build-stamp +build-indep: build-stamp +build-stamp: + dh_testdir + +# compile the package. + cd src; $(MAKE) + + touch build-stamp + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + +# clean up after the build process. + -cd src; $(MAKE) clean + # -cd src; rm -f kimwy.{c,h,hh} y.output + -cd src; rm -rf Gen/ + -rm COPYING + -rm `pwd`/README.doc + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + # Add here commands to install the package into debian/kimwitu. + cp `pwd`/src/Gen/kc `pwd`/debian/kimwitu/usr/bin/ + cp `pwd`/doc/README `pwd`/README.doc + +# Build architecture-dependent files here. +binary-arch: build install +# dh_testversion + dh_testdir + dh_testroot +# dh_installdebconf + dh_installdocs +# dh_installexamples +# dh_installemacsen + dh_installman man/kc.1 +# dh_installinfo + dh_installchangelogs + dh_link + dh_strip + dh_compress + dh_fixperms +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary-indep: + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- kimwitu-4.6.1.orig/src/Makefile +++ kimwitu-4.6.1/src/Makefile @@ -268,6 +268,7 @@ do $(RM) $${f}; $(LN) $${olddir}/$${f} $${f}; done; \ for f in $(LY_CFILES) $(LY_HFILES) $(LY_TFILE) $(DF_HFILES) $(ERRMSG_C_FILE); \ do $(RM) $${f}; $(CP) $${olddir}/$(BS_PREFIX)$${f} $${f}; done; \ + touch $(LY_CFILES); sleep 1; touch $(ERRMSG_C_FILE); \ touch tstamp.kc; \ touch bootstrap.kc; --- kimwitu-4.6.1.orig/src/errmsg.pl +++ kimwitu-4.6.1/src/errmsg.pl @@ -44,8 +44,8 @@ while(<>){ $foo = $_; if($foo =~ /^state [0-9]+/){ - $term =~ s/\"/\\\"/g; - $rules =~ s/\"/\\\"/g; + $term =~ s/\'\"\'/\'\\\"\'/g; + $rules =~ s/\'\"\'/\'\\\"\'/g; $rules =~ s/\\n\\t$//g; print "{\n\"$nonterm\",\n\"$term\",\n\"$rules\"\n},\n"; $term = ""; --- kimwitu-4.6.1.orig/src/gen.k +++ kimwitu-4.6.1/src/gen.k @@ -878,7 +878,8 @@ /***************************************************************************/ PhylumDeclarations( d ) -> [view_gen_nodetypedefs_h: -"typedef union kc_tag_YYSTYPE YYSTYPE; +"#define YYSTYPE_IS_DECLARED +typedef union kc_tag_YYSTYPE YYSTYPE; typedef struct kc_tag_kc_hashnode_t *kc_hashnode_t; typedef struct kc_tag_kc_dotedgenode_t *kc_dotedgenode_t; --- kimwitu-4.6.1.orig/src/main.c +++ kimwitu-4.6.1/src/main.c @@ -52,7 +52,7 @@ #if defined(_WIN32) && ! defined (__GNUC__) # include -# define mktemp _mktemp +# define mkstemp _mkstemp # define open _open # define O_RDONLY _O_RDONLY # define read _read @@ -138,10 +138,6 @@ static boolean verbose = False; -#line 142 "main.c" -#line 616 "../main.k" - extern KC__CLINKAGE char *mktemp KC__P(( char* )); - #line 146 "main.c" #line 647 "../main.k" # define MYBUFSIZ 8*BUFSIZ @@ -833,8 +829,8 @@ { (void) strcpy(Thetempcfile, ".kc.c.XXXXXX"); (void) strcpy(Thetemphfile, ".kc.h.XXXXXX"); - (void) mktemp(Thetempcfile); - (void) mktemp(Thetemphfile); + (void) mkstemp(Thetempcfile); + (void) mkstemp(Thetemphfile); *tmp_cfilename = Thetempcfile; *tmp_hfilename = Thetemphfile; --- kimwitu-4.6.1.orig/src/main.k +++ kimwitu-4.6.1/src/main.k @@ -36,7 +36,7 @@ #if defined(_WIN32) && ! defined (__GNUC__) # include -# define mktemp _mktemp +# define mkstemp _mkstemp # define open _open # define O_RDONLY _O_RDONLY # define read _read @@ -612,15 +612,12 @@ return( 0 ); } -%{ - extern KC__CLINKAGE char *mktemp KC__P(( char* )); -%} static void make_tempfile_names(Thetempcfile, Thetemphfile, tmp_cfilename, tmp_hfilename) char *Thetempcfile; char *Thetemphfile; char **tmp_cfilename; char **tmp_hfilename; { (void) strcpy(Thetempcfile, ".kc.c.XXXXXX"); (void) strcpy(Thetemphfile, ".kc.h.XXXXXX"); - (void) mktemp(Thetempcfile); - (void) mktemp(Thetemphfile); + (void) mkstemp(Thetempcfile); + (void) mkstemp(Thetemphfile); *tmp_cfilename = Thetempcfile; *tmp_hfilename = Thetemphfile; } --- kimwitu-4.6.1.orig/src/unpk.c +++ kimwitu-4.6.1/src/unpk.c @@ -5835,7 +5835,8 @@ if (( kc_p->prod_sel == sel_PhylumDeclarations)) { #line 880 "../gen.k" phylumdeclarations d = kc_p->u.PhylumDeclarations.phylumdeclarations_1; - { (*kc_printer)("typedef union kc_tag_YYSTYPE YYSTYPE;\ + { (*kc_printer)("#define YYSTYPE_IS_DECLARED\ +\ntypedef union kc_tag_YYSTYPE YYSTYPE;\ \ntypedef struct kc_tag_kc_hashnode_t *kc_hashnode_t;\ \ntypedef struct kc_tag_kc_dotedgenode_t *kc_dotedgenode_t;\ \n\