build sockets extension statically

This commit is contained in:
Remi Collet 2023-11-08 08:29:40 +01:00
parent 8285331b95
commit 7f12105fea

View File

@ -70,7 +70,7 @@
Summary: PHP scripting language for creating dynamic web sites Summary: PHP scripting language for creating dynamic web sites
Name: php Name: php
Version: %{upver}%{?rcver:~%{rcver}} Version: %{upver}%{?rcver:~%{rcver}}
Release: 1%{?dist} Release: 2%{?dist}
# All files licensed under PHP version 3.01, except # All files licensed under PHP version 3.01, except
# Zend is licensed under Zend # Zend is licensed under Zend
# TSRM is licensed under BSD # TSRM is licensed under BSD
@ -865,6 +865,7 @@ mkdir Zend && cp ../Zend/zend_{language,ini}_{parser,scanner}.[ch] Zend
# date, ereg, filter, libxml, reflection, spl: not supported # date, ereg, filter, libxml, reflection, spl: not supported
# hash: for PHAR_SIG_SHA256 and PHAR_SIG_SHA512 # hash: for PHAR_SIG_SHA256 and PHAR_SIG_SHA512
# session: dep on hash, used by soap # session: dep on hash, used by soap
# sockets: heavily used by FPM test suite
# pcre: used by filter, zip # pcre: used by filter, zip
# pcntl, readline: only used by CLI sapi # pcntl, readline: only used by CLI sapi
# openssl: for PHAR_SIG_OPENSSL # openssl: for PHAR_SIG_OPENSSL
@ -898,6 +899,7 @@ ln -sf ../configure
--with-mhash \ --with-mhash \
--without-password-argon2 \ --without-password-argon2 \
--enable-dtrace \ --enable-dtrace \
--enable-sockets \
$* $*
if test $? != 0; then if test $? != 0; then
tail -500 config.log tail -500 config.log
@ -943,7 +945,6 @@ build --libdir=%{_libdir}/php \
--enable-ftp=shared \ --enable-ftp=shared \
--with-gettext=shared \ --with-gettext=shared \
--with-iconv=shared \ --with-iconv=shared \
--enable-sockets=shared \
--enable-tokenizer=shared \ --enable-tokenizer=shared \
--with-ldap=shared --with-ldap-sasl \ --with-ldap=shared --with-ldap-sasl \
--enable-mysqlnd=shared \ --enable-mysqlnd=shared \
@ -1006,7 +1007,7 @@ without_shared="--without-gd \
--without-curl --disable-posix --disable-xml \ --without-curl --disable-posix --disable-xml \
--disable-simplexml --disable-exif --without-gettext \ --disable-simplexml --disable-exif --without-gettext \
--without-iconv --disable-ftp --without-bz2 --disable-ctype \ --without-iconv --disable-ftp --without-bz2 --disable-ctype \
--disable-shmop --disable-sockets --disable-tokenizer \ --disable-shmop --disable-tokenizer \
--disable-sysvmsg --disable-sysvshm --disable-sysvsem" --disable-sysvmsg --disable-sysvshm --disable-sysvsem"
%if %{with modphp} %if %{with modphp}
@ -1079,7 +1080,6 @@ build --includedir=%{_includedir}/php-zts \
%endif %endif
--with-gettext=shared \ --with-gettext=shared \
--with-iconv=shared \ --with-iconv=shared \
--enable-sockets=shared \
--enable-tokenizer=shared \ --enable-tokenizer=shared \
--enable-exif=shared \ --enable-exif=shared \
--enable-ftp=shared \ --enable-ftp=shared \
@ -1263,7 +1263,7 @@ for mod in pgsql odbc ldap snmp \
mysqlnd mysqli \ mysqlnd mysqli \
mbstring gd dom xsl soap bcmath dba \ mbstring gd dom xsl soap bcmath dba \
simplexml bz2 calendar ctype exif ftp gettext gmp iconv \ simplexml bz2 calendar ctype exif ftp gettext gmp iconv \
sockets tokenizer opcache \ tokenizer opcache \
sqlite3 \ sqlite3 \
enchant phar fileinfo intl \ enchant phar fileinfo intl \
ffi \ ffi \
@ -1356,7 +1356,7 @@ cat files.sqlite3 >> files.pdo
# Package curl, phar and fileinfo in -common. # Package curl, phar and fileinfo in -common.
cat files.curl files.phar files.fileinfo \ cat files.curl files.phar files.fileinfo \
files.exif files.gettext files.iconv files.calendar \ files.exif files.gettext files.iconv files.calendar \
files.ftp files.bz2 files.ctype files.sockets \ files.ftp files.bz2 files.ctype \
files.tokenizer > files.common files.tokenizer > files.common
# The default Zend OPcache blacklist file # The default Zend OPcache blacklist file
@ -1552,6 +1552,9 @@ systemctl try-restart php-fpm.service >/dev/null 2>&1 || :
%changelog %changelog
* Wed Nov 8 2023 Remi Collet <remi@remirepo.net> - 8.3.0~RC6-2
- build sockets extension statically
* Wed Nov 8 2023 Remi Collet <remi@remirepo.net> - 8.3.0~RC6-1 * Wed Nov 8 2023 Remi Collet <remi@remirepo.net> - 8.3.0~RC6-1
- update to 8.3.0RC6 - update to 8.3.0RC6