File: 02-use-packaged-lempar.c.patch

package info (click to toggle)
sqlite3 3.16.2-5+deb9u1
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 88,416 kB
  • sloc: ansic: 195,593; tcl: 14,245; sh: 10,163; yacc: 1,246; makefile: 1,058; cs: 299; cpp: 128
file content (18 lines) | stat: -rw-r--r-- 567 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: use packaged lempar.c
 Look for lempar.c under the package directory.
Author: Laszlo Boszormenyi (GCS) <gcs@debian.org>
Last-Update: 2014-04-26

---

--- sqlite3-3.8.4.3.orig/tool/lemon.c
+++ sqlite3-3.8.4.3/tool/lemon.c
@@ -3241,6 +3241,8 @@ PRIVATE FILE *tplt_open(struct lemon *le
     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);
   }