File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed
Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -60,6 +60,27 @@ RUN mkdir -p ${BUILD_DIR} \
6060 ${INSTALL_DIR}/share
6161
6262
63+ # ##############################################################################
64+ # SQLite
65+ # Since PHP 7.4, libsqlite must be installed (https://github.com/php/php-src/blob/99b8e67615159fc600a615e1e97f2d1cf18f14cb/UPGRADING#L616-L619)
66+ # Laravel 11 requires SQLite 3.35+ https://laravel.com/docs/11.x/upgrade#sqlite-minimum-version
67+ # Drupal 11 requires SQLite 3.45+ https://www.drupal.org/docs/getting-started/system-requirements/database-server-requirements
68+ # The AL2023 built-in version is 3.40.0, so we compile a newer version.
69+ # https://www.sqlite.org/changes.html
70+ # Needed by:
71+ # - php
72+ RUN LD_LIBRARY_PATH= dnf install -y tcl
73+ ENV VERSION_SQLITE=3.50.4
74+ ENV SQLITE_BUILD_DIR=${BUILD_DIR}/sqlite
75+ RUN set -xe; \
76+ mkdir -p ${SQLITE_BUILD_DIR}; \
77+ curl -Ls https://github.com/sqlite/sqlite/archive/refs/tags/version-${VERSION_SQLITE}.tar.gz \
78+ | tar xzC ${SQLITE_BUILD_DIR} --strip-components=1
79+ WORKDIR ${SQLITE_BUILD_DIR}
80+ RUN CFLAGS="-Os" CPPFLAGS="-Os" ./configure --prefix=${INSTALL_DIR}
81+ RUN make && make install
82+
83+
6384# ##############################################################################
6485# Install some dev files for using old libraries already on the system
6586# libcurl-devel : needed for the curl extension
You can’t perform that action at this time.
0 commit comments