summaryrefslogtreecommitdiff
path: root/databases/sqlite
diff options
context:
space:
mode:
authorhe <he@pkgsrc.org>2022-06-25 09:17:38 +0000
committerhe <he@pkgsrc.org>2022-06-25 09:17:38 +0000
commite10053f753bff6b0eb3a192b45d86a9c6643e4d4 (patch)
tree38b735f1d0abf8714c0a3b4de2a3f9ce6d7ce18b /databases/sqlite
parent5edec24718b2bdff28dfb57913e2099c44b90df2 (diff)
downloadpkgsrc-e10053f753bff6b0eb3a192b45d86a9c6643e4d4.tar.gz
databases/sqlite: reinstall masking in hash computation.
Suggested by Taylor Campbell.
Diffstat (limited to 'databases/sqlite')
-rw-r--r--databases/sqlite/Makefile4
-rw-r--r--databases/sqlite/distinfo4
-rw-r--r--databases/sqlite/patches/patch-tool_lemon.c11
3 files changed, 5 insertions, 14 deletions
diff --git a/databases/sqlite/Makefile b/databases/sqlite/Makefile
index 323e029eff7..cd3e9bd24ec 100644
--- a/databases/sqlite/Makefile
+++ b/databases/sqlite/Makefile
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.48 2022/06/24 15:42:10 he Exp $
+# $NetBSD: Makefile,v 1.49 2022/06/25 09:17:38 he Exp $
DISTNAME= sqlite-2.8.17
-PKGREVISION= 2
+PKGREVISION= 3
CATEGORIES= databases
MASTER_SITES= http://www.hwaci.com/sw/sqlite/
MASTER_SITES+= http://www.sqlite.org/
diff --git a/databases/sqlite/distinfo b/databases/sqlite/distinfo
index 7340e55c06f..4129a8da7a1 100644
--- a/databases/sqlite/distinfo
+++ b/databases/sqlite/distinfo
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.28 2022/06/24 15:42:10 he Exp $
+$NetBSD: distinfo,v 1.29 2022/06/25 09:17:38 he Exp $
BLAKE2s (sqlite-2.8.17.tar.gz) = 2750dd8a0682b2047139de66b6a184b08e7674cb92846c629561604fc130fe37
SHA512 (sqlite-2.8.17.tar.gz) = 966e0b7f7ebbaaa9e1899864475040946fd7b66363be778d29fadd5184623b1e62644f3c8d4c4ecd001b88044befa7c34d9de9f68590329a1a8301d854b73e3f
@@ -6,4 +6,4 @@ Size (sqlite-2.8.17.tar.gz) = 969805 bytes
SHA1 (patch-Makefile.in) = a7e6d0c15b6bd4c8c0f3a7123e82a145b3848703
SHA1 (patch-aa) = 4df2eff8c92b3e2bff86c710ef1a803d54201559
SHA1 (patch-ab) = 00b7de05589fb62d511e26d0d864a8b5545967c8
-SHA1 (patch-tool_lemon.c) = 118f2cf965dd4eaddef7228bdca89f9cae26d7c3
+SHA1 (patch-tool_lemon.c) = c536a2784e9f360fc3d73c2ed0a243fee02358ff
diff --git a/databases/sqlite/patches/patch-tool_lemon.c b/databases/sqlite/patches/patch-tool_lemon.c
index 5177e240293..2449a8705e4 100644
--- a/databases/sqlite/patches/patch-tool_lemon.c
+++ b/databases/sqlite/patches/patch-tool_lemon.c
@@ -1,4 +1,4 @@
-$NetBSD: patch-tool_lemon.c,v 1.1 2022/06/24 15:42:10 he Exp $
+$NetBSD: patch-tool_lemon.c,v 1.2 2022/06/25 09:17:38 he Exp $
Avoid either undefined or implementation defined behaviour,
by making the base hash variable unsigned, so that we avoid
@@ -15,12 +15,3 @@ it ever going negative (as it did on powerpc).
char *name; /* Name of the parser */
/* Allocate and initialize types[] and allocate stddt[] */
-@@ -3068,7 +3068,7 @@ int mhflag; /* True if g
- for(j=0; stddt[j]; j++){
- hash = hash*53 + stddt[j];
- }
-- hash = (hash & 0x7fffffff)%arraysize;
-+ hash = hash % arraysize;
- while( types[hash] ){
- if( strcmp(types[hash],stddt)==0 ){
- sp->dtnum = hash + 1;