Skip to content
This repository has been archived by the owner on Oct 19, 2023. It is now read-only.

Compile PHP 7.2 with-sodium #410

Merged
merged 1 commit into from
Jan 9, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion deb-package-builder/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,10 @@ build_php_version()
export ARTIFACT_PKG_DIR="${ARTIFACT_DIR}/${FULL_VERSION}"
if [ "${SHORT_VERSION}" == "72" ]; then
export EXTRA_DEPS="libsodium18, "
export EXTRA_OPTS="--with-sodium"
else
export EXTRA_DEPS=""
export EXTRA_OPTS=""
fi
mkdir -p ${ARTIFACT_PKG_DIR}

Expand Down Expand Up @@ -117,7 +119,7 @@ build_php_version()
${PACKAGE_NAME}-${PHP_VERSION}
popd
fi
envsubst '${SHORT_VERSION}' < debian/rules.in > debian/rules
envsubst '${SHORT_VERSION} ${EXTRA_OPTS}' < debian/rules.in > debian/rules
chmod +x debian/rules
envsubst '${SHORT_VERSION} ${EXTRA_DEPS}' < debian/control.in > debian/control
envsubst '${SHORT_VERSION}' < debian/patches/series.in > \
Expand Down
2 changes: 1 addition & 1 deletion deb-package-builder/debian/rules.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ override_dh_auto_configure:
rm -f configure \
&& ./buildconf --force \
&& ln -s /usr/include/x86_64-linux-gnu/gmp.h /usr/include/gmp.h \
&& dh_auto_configure -- --prefix=/opt/php${SHORT_VERSION} \
&& dh_auto_configure -- --prefix=/opt/php${SHORT_VERSION} ${EXTRA_OPTS} \
--with-config-file-path=/opt/php${SHORT_VERSION}/lib \
--with-config-file-scan-dir=/opt/php${SHORT_VERSION}/lib/ext.enabled:/opt/php${SHORT_VERSION}/lib/conf.d \
--enable-sysvsem \
Expand Down