Skip to content

Commit

Permalink
ossfuzz: pin SQLite version to 3.47.0 [ci skip]
Browse files Browse the repository at this point in the history
Current sqlite head from git requires TCL which is a pain for i386 cross
compilation
  • Loading branch information
rouault committed Oct 25, 2024
1 parent f67a151 commit 95cce30
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions fuzzers/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,10 @@ git clone --depth 1 https://gitbox.apache.org/repos/asf/xerces-c.git

# Build sqlite from source to avoid upstream bugs
rm -rf sqlite
git clone --depth 1 https://github.com/sqlite/sqlite sqlite
curl -L https://sqlite.org/2024/sqlite-autoconf-3470000.tar.gz > sqlite-autoconf-3470000.tar.gz && \
tar xzf sqlite-autoconf-3470000.tar.gz && \
mv sqlite-autoconf-3470000 sqlite && \
rm sqlite-autoconf-3470000.tar.gz

# libxerces-c-dev${ARCH_SUFFIX}
# libsqlite3-dev${ARCH_SUFFIX}
Expand Down Expand Up @@ -186,7 +189,7 @@ NON_FUZZING_CXXFLAGS="$NON_FUZZING_CFLAGS -stdlib=libc++"

# build sqlite
cd sqlite
CFLAGS="$NON_FUZZING_CFLAGS -DSQLITE_ENABLE_COLUMN_METADATA" ./configure --prefix=$SRC/install --enable-rtree --disable-tcl
CFLAGS="$NON_FUZZING_CFLAGS -DSQLITE_ENABLE_COLUMN_METADATA" ./configure --prefix=$SRC/install --enable-rtree
make clean -s
make -j$(nproc) -s
make install
Expand Down

0 comments on commit 95cce30

Please sign in to comment.