summaryrefslogtreecommitdiffstats
path: root/php.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-05-21 07:34:11 +0200
committerRemi Collet <remi@php.net>2025-05-21 07:34:11 +0200
commit0d37634fa596f880acd8ecc9f1d0385dab64035d (patch)
tree935005303d82c96045871e46622173bf2e31b8f7 /php.spec
parent55ac724e01673c5a4161ec1264ca09790fa7ec51 (diff)
Update to 8.4.8RC1
use same build tree for fpm and embed
Diffstat (limited to 'php.spec')
-rw-r--r--php.spec44
1 files changed, 18 insertions, 26 deletions
diff --git a/php.spec b/php.spec
index e409a84..4880e91 100644
--- a/php.spec
+++ b/php.spec
@@ -93,8 +93,8 @@
#global gh_date 20230605
%global gh_owner php
%global gh_project php-src
-%global upver 8.4.7
-#global rcver RC2
+%global upver 8.4.8
+%global rcver RC1
# TODO set PHP_EXTRA_VERSION for EOL version
Summary: PHP scripting language for creating dynamic web sites
@@ -883,10 +883,10 @@ cp ext/bcmath/libbcmath/LICENSE libbcmath_LICENSE
cp ext/date/lib/LICENSE.rst timelib_LICENSE
# Multiple builds for multiple SAPIs
+# mod_php (apache2handler) and libphp (embed) can not be built from same tree
mkdir \
build-fpm \
build-apache \
- build-embedded \
build-cgi
# ----- Manage known as failed test -------
@@ -1093,11 +1093,10 @@ fi
make %{?_smp_mflags}
}
-# Build /usr/bin/php-cgi with the CGI SAPI, and most the shared extensions
+# Build cli and cgi SAPI, and most shared extensions
pushd build-cgi
-build --libdir=%{_libdir}/php \
- --enable-pcntl \
+build --enable-pcntl \
--enable-opcache \
--enable-opcache-file \
--with-capstone \
@@ -1187,6 +1186,8 @@ popd
without_shared="--disable-gd \
--disable-dom --disable-dba --without-unixODBC \
+ --without-mysqli \
+ --disable-pdo \
--disable-opcache \
--disable-phpdbg \
--without-ffi \
@@ -1199,36 +1200,23 @@ without_shared="--disable-gd \
--disable-shmop --disable-tokenizer \
--disable-sysvmsg --disable-sysvshm --disable-sysvsem"
-# Build Apache module, and the CLI SAPI, /usr/bin/php
+# Build Apache module
+# use separate build to avoid libedit, libncurses...
pushd build-apache
build --with-apxs2=%{_httpd_apxs} \
- --libdir=%{_libdir}/php \
%if %{with lsws}
--enable-litespeed \
%endif
- --without-mysqli \
- --disable-pdo \
${without_shared}
popd
-# Build php-fpm
+# Build php-fpm and embed
pushd build-fpm
build --enable-fpm \
--with-fpm-systemd \
--with-fpm-selinux \
--with-fpm-acl \
- --libdir=%{_libdir}/php \
- --without-mysqli \
- --disable-pdo \
- ${without_shared}
-popd
-
-# Build for inclusion as embedded script language into applications,
-# /usr/lib[64]/libphp.so
-pushd build-embedded
-build --enable-embed \
- --without-mysqli \
- --disable-pdo \
+ --enable-embed \
${without_shared}
popd
@@ -1263,7 +1251,7 @@ unset NO_INTERACTION REPORT_EXIT_STATUS MALLOC_CHECK_
%{?dtsenable}
# Install the version for embedded script language in applications + php_embed.h
-make -C build-embedded install-sapi install-headers \
+make -C build-fpm install-sapi install-headers \
INSTALL_ROOT=$RPM_BUILD_ROOT
# Install the php-fpm binary
@@ -1275,7 +1263,7 @@ make -C build-cgi install \
INSTALL_ROOT=$RPM_BUILD_ROOT
# Use php-config from embed SAPI to reduce used libs
-install -m 755 build-embedded/scripts/php-config $RPM_BUILD_ROOT%{_bindir}/php-config
+install -m 755 build-fpm/scripts/php-config $RPM_BUILD_ROOT%{_bindir}/php-config
# Install the default configuration file
install -m 755 -d $RPM_BUILD_ROOT%{_sysconfdir}/
@@ -1316,7 +1304,7 @@ install -m 755 -d $RPM_BUILD_ROOT%{_docdir}/pecl
install -m 755 -d $RPM_BUILD_ROOT%{_datadir}/tests/pecl
%if %{with lsws}
-install -m 755 build-apache/sapi/litespeed/php $RPM_BUILD_ROOT%{_bindir}/lsphp
+install -m 755 build-apache/sapi/litespeed/lsphp $RPM_BUILD_ROOT%{_bindir}/lsphp
%endif
# PHP-FPM stuff
@@ -1666,6 +1654,10 @@ fi
%changelog
+* Wed May 21 2025 Remi Collet <remi@remirepo.net> - 8.4.8~RC1-1
+- Update to 8.4.8RC1
+- use same build tree for fpm and embed
+
* Tue May 6 2025 Remi Collet <remi@remirepo.net> - 8.4.7-1
- Update to 8.4.7 - http://www.php.net/releases/8_4_7.php