summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <hans@eds.org>2012-03-30 20:45:41 -0400
committerHans-Christoph Steiner <hans@eds.org>2012-03-30 23:14:35 -0400
commit116cdd1cbeb1d845e575e523f3e39835d176b547 (patch)
tree3dbad6ffdcfab1cb957e5348378394dadda9349a
parent671ca275d802d345225d8b99ccccbb9aa313e98d (diff)
remove 'lemon' package
-rw-r--r--debian/control14
-rw-r--r--debian/lemon.163
-rw-r--r--debian/lemon.dirs2
-rw-r--r--debian/lemon.install2
-rw-r--r--debian/lemon.manpages1
-rw-r--r--debian/patches/02-lemon-snprintf.patch83
-rw-r--r--debian/patches/30-cross.patch51
-rw-r--r--debian/patches/series2
-rwxr-xr-xdebian/rules6
9 files changed, 0 insertions, 224 deletions
diff --git a/debian/control b/debian/control
index d094d77..9cedfc8 100644
--- a/debian/control
+++ b/debian/control
@@ -7,20 +7,6 @@ Build-Conflicts: tcl8.4, tcl8.4-dev
Homepage: http://www.sqlite.org/
Standards-Version: 3.9.3
-Package: lemon
-Architecture: any
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: LALR(1) Parser Generator for C or C++
- Lemon is an LALR(1) parser generator for C or C++. It does the same
- job as bison and yacc. But lemon is not another bison or yacc
- clone. It uses a different grammar syntax which is designed to reduce
- the number of coding errors. Lemon also uses a more sophisticated
- parsing engine that is faster than yacc and bison and which is both
- reentrant and thread-safe. Furthermore, Lemon implements features
- that can be used to eliminate resource leaks, making is suitable for
- use in long-running programs such as graphical user interfaces or
- embedded controllers.
-
Package: sqlite3
Section: database
Architecture: any
diff --git a/debian/lemon.1 b/debian/lemon.1
deleted file mode 100644
index 914ee07..0000000
--- a/debian/lemon.1
+++ /dev/null
@@ -1,63 +0,0 @@
-.Dd 2002-10-04
-.Dt LEMON 1
-.Os "Debian GNU/Linux"
-.\" Manual page created by Guus Sliepen <guus@debian.org>
-.Sh NAME
-.Nm lemon
-.Nd The Lemon Parser Generator
-.Sh SYNOPSIS
-.Nm
-.Op Fl bcgmqsx
-.Ar input
-.Sh DESCRIPTION
-.Nm
-is an LALR(1) parser generator for C or C++.
-It does the same job as bison and yacc.
-But
-.Nm
-is not another bison or yacc clone.
-It uses a different grammar syntax which is designed to reduce the number of coding errors.
-.Nm
-also uses a more sophisticated parsing engine that is faster than yacc and bison
-and which is both reentrant and thread-safe.
-Furthermore,
-.Nm
-implements features that can be used to eliminate resource leaks,
-making is suitable for use in long-running programs such as graphical user interfaces or embedded controllers.
-.Pp
-.Nm
-will read the grammer from
-.Ar input
-and write out a parser for that grammar in the C language.
-.Sh OPTIONS
-.Bl -tag -width indent
-.It Fl b
-Print only the basis in report.
-.It Fl c
-Don't compress the action table.
-.It Fl g
-Print grammar without actions.
-.It Fl m
-Output a makeheaders compatible file.
-.It Fl q
-(Quiet) Don't print the report file.
-.It Fl s
-Print parser stats to standard output.
-.It Fl x
-Print the version number.
-.El
-.Sh FILES
-.Bl -tag -width indent
-.It Pa /usr/share/lemon/lempar.c
-Driver template for the
-.Nm
-parser generator.
-.El
-.Sh AUTHOR
-.Nm
-has been written by
-.An D. Richard Hipp Aq drh@hwaci.com .
-.Pp
-This manual page was written by
-.An Guus Sliepen Aq guus@debian.org
-for the Debian GNU/Linux system.
diff --git a/debian/lemon.dirs b/debian/lemon.dirs
deleted file mode 100644
index 074cdd1..0000000
--- a/debian/lemon.dirs
+++ /dev/null
@@ -1,2 +0,0 @@
-usr/bin
-usr/share/lemon
diff --git a/debian/lemon.install b/debian/lemon.install
deleted file mode 100644
index 05190de..0000000
--- a/debian/lemon.install
+++ /dev/null
@@ -1,2 +0,0 @@
-usr/bin/lemon
-usr/share/lemon/lempar.c
diff --git a/debian/lemon.manpages b/debian/lemon.manpages
deleted file mode 100644
index da374a8..0000000
--- a/debian/lemon.manpages
+++ /dev/null
@@ -1 +0,0 @@
-debian/lemon.1
diff --git a/debian/patches/02-lemon-snprintf.patch b/debian/patches/02-lemon-snprintf.patch
deleted file mode 100644
index 67c8600..0000000
--- a/debian/patches/02-lemon-snprintf.patch
+++ /dev/null
@@ -1,83 +0,0 @@
---- sqlite3-3.6.10.orig/tool/lemon.c 2010-03-13 17:12:20.004507610 +0000
-+++ sqlite3-3.6.10/tool/lemon.c 2010-03-13 17:25:51.799607483 +0000
-@@ -2347,7 +2347,7 @@
- for(z=psp->filename, nBack=0; *z; z++){
- if( *z=='\\' ) nBack++;
- }
-- sprintf(zLine, "#line %d ", psp->tokenlineno);
-+ snprintf(zLine,sizeof zLine, "#line %d ", psp->tokenlineno);
- nLine = lemonStrlen(zLine);
- n += nLine + lemonStrlen(psp->filename) + nBack;
- }
-@@ -2916,7 +2916,7 @@
- while( cfp ){
- char buf[20];
- if( cfp->dot==cfp->rp->nrhs ){
-- sprintf(buf,"(%d)",cfp->rp->index);
-+ snprintf(buf,sizeof buf,"(%d)",cfp->rp->index);
- fprintf(fp," %5s ",buf);
- }else{
- fprintf(fp," ");
-@@ -2970,6 +2970,7 @@
- char *pathbufptr;
- char *pathbuf;
- char *path,*cp;
-+ size_t pathsz;
- char c;
-
- #ifdef __WIN32__
-@@ -3087,14 +3121,16 @@
-
- cp = strrchr(lemp->filename,'.');
- if( cp ){
-- sprintf(buf,"%.*s.lt",(int)(cp-lemp->filename),lemp->filename);
-+ snprintf(buf,sizeof buf,"%.*s.lt",(int)(cp-lemp->filename),lemp->filename);
- }else{
-- sprintf(buf,"%s.lt",lemp->filename);
-+ snprintf(buf,sizeof buf,"%s.lt",lemp->filename);
- }
- if( access(buf,004)==0 ){
- tpltname = buf;
- }else if( access(templatename,004)==0 ){
- tpltname = templatename;
-+ }else if( access("/usr/share/lemon/lempar.c",004)==0 ){
-+ tpltname = "/usr/share/lemon/lempar.c";
- }else{
- tpltname = pathsearch(lemp->argv0,templatename,0);
- }
-@@ -3106,7 +3109,7 @@
- }
- in = fopen(tpltname,"rb");
- if( in==0 ){
-- fprintf(stderr,"Can't open the template file \"%s\".\n",templatename);
-+ fprintf(stderr,"Can't open the template file \"%s\".\n",tpltname);
- lemp->errorcnt++;
- return 0;
- }
-@@ -3240,7 +3243,7 @@
- while( n-- > 0 ){
- c = *(zText++);
- if( c=='%' && n>0 && zText[0]=='d' ){
-- sprintf(zInt, "%d", p1);
-+ snprintf(zInt,sizeof zInt, "%d", p1);
- p1 = p2;
- strcpy(&z[used], zInt);
- used += lemonStrlen(&z[used]);
-@@ -3856,7 +3859,7 @@
- /* Generate a table containing the symbolic name of every symbol
- */
- for(i=0; i<lemp->nsymbol; i++){
-- sprintf(line,"\"%s\",",lemp->symbols[i]->name);
-+ snprintf(line,sizeof line,"\"%s\",",lemp->symbols[i]->name);
- fprintf(out," %-15s",line);
- if( (i&3)==3 ){ fprintf(out,"\n"); lineno++; }
- }
-@@ -4022,7 +4023,7 @@
- in = file_open(lemp,".h","rb");
- if( in ){
- for(i=1; i<lemp->nterminal && fgets(line,LINESIZE,in); i++){
-- sprintf(pattern,"#define %s%-30s %2d\n",prefix,lemp->symbols[i]->name,i);
-+ snprintf(pattern,sizeof pattern,"#define %s%-30s %2d\n",prefix,lemp->symbols[i]->name,i);
- if( strcmp(line,pattern) ) break;
- }
- fclose(in);
diff --git a/debian/patches/30-cross.patch b/debian/patches/30-cross.patch
deleted file mode 100644
index a698a6e..0000000
--- a/debian/patches/30-cross.patch
+++ /dev/null
@@ -1,51 +0,0 @@
-Index: sqlite3-3.7.4/Makefile.in
-===================================================================
---- sqlite3-3.7.4.orig/Makefile.in
-+++ sqlite3-3.7.4/Makefile.in
-@@ -534,10 +534,20 @@
-
- # Rules to build the LEMON compiler generator
- #
--lemon$(BEXE): $(TOP)/tool/lemon.c $(TOP)/src/lempar.c
-+lemon-for-build$(BEXE): $(TOP)/tool/lemon.c $(TOP)/src/lempar.c
- $(BCC) -o $@ $(TOP)/tool/lemon.c
- cp $(TOP)/src/lempar.c .
-
-+lemon$(TEXE): $(TOP)/tool/lemon.c $(TOP)/src/lempar.c
-+ $(LTLINK) -o $@ $(TOP)/tool/lemon.c
-+ cp $(TOP)/src/lempar.c .
-+
-+ifeq ($(CROSS_BUILDING),yes)
-+LEMON_FOR_BUILD = lemon-for-build$(BEXE)
-+else
-+LEMON_FOR_BUILD = lemon$(TEXE)
-+endif
-+
- # Rules to build individual *.o files from generated *.c files. This
- # applies to:
- #
-@@ -790,10 +800,10 @@
- #
- parse.h: parse.c
-
--parse.c: $(TOP)/src/parse.y lemon$(BEXE) $(TOP)/addopcodes.awk
-+parse.c: $(TOP)/src/parse.y $(LEMON_FOR_BUILD) $(TOP)/addopcodes.awk
- cp $(TOP)/src/parse.y .
- rm -f parse.h
-- ./lemon$(BEXE) $(OPT_FEATURE_FLAGS) $(OPTS) parse.y
-+ ./$(LEMON_FOR_BUILD) $(OPT_FEATURE_FLAGS) $(OPTS) parse.y
- mv parse.h parse.h.temp
- $(NAWK) -f $(TOP)/addopcodes.awk parse.h.temp >parse.h
-
-@@ -930,7 +940,10 @@
- rm -f *.lo *.la *.o sqlite3$(TEXE) libsqlite3.la
- rm -f sqlite3.h opcodes.*
- rm -rf .libs .deps
-- rm -f lemon$(BEXE) lempar.c parse.* sqlite*.tar.gz
-+ rm -f $(LEMON_FOR_BUILD) lempar.c parse.* sqlite*.tar.gz
-+ifeq ($(CROSS_BUILDING), yes)
-+ rm -f lemon$(TEXE)
-+endif
- rm -f mkkeywordhash$(BEXE) keywordhash.h
- rm -f $(PUBLISH)
- rm -f *.da *.bb *.bbg gmon.out
diff --git a/debian/patches/series b/debian/patches/series
index 9dc7e3f..36ff741 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,6 +1,4 @@
-02-lemon-snprintf.patch
10-520466-libsqlite3-depends-on-libdl.patch
10-520478-squash-bad-deps.patch
11-update-manpage.patch
20-hurd-locking-style.patch
-30-cross.patch
diff --git a/debian/rules b/debian/rules
index 3dec0fb..5bc611f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -56,9 +56,6 @@ build: build-arch build-indep
build-stamp: configure
dh_testdir
$(MAKE)
-ifneq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
- $(MAKE) lemon
-endif
touch $@
@@ -79,9 +76,6 @@ install: build
chrpath -d $(DESTDIR)/usr/bin/sqlite3
chrpath -d $(DESTDIR)/usr/lib/tcltk/sqlite3/libtclsqlite3.so
install -m 0664 libtclsqlite3.la $(DESTDIR)/usr/lib/tcltk/sqlite3/
- install -d $(DESTDIR)/usr/share/lemon
- install -m 0664 tool/lempar.c $(DESTDIR)/usr/share/lemon/
- install -m 0775 lemon $(DESTDIR)/usr/bin
# Remove *.la files per policy 3.9.1.0
sed -i "/dependency_libs/ s/'.*'/''/" `find $(DESTDIR) -name '*.la'`