Topic: Build php-5.3.9 with remi 5.3.8-4 php.spec

I'm using remi's 5.3.8-4 php.spec to build php-5.3.9 rpm, but meet a Error exit during the build progress, here is what I met

Installing header files:          /var/tmp/php-5.3.9-1.el5-root-root/usr/include/php/
Installing shared extensions:     /var/tmp/php-5.3.9-1.el5-root-root/usr/lib64/php-zts/modules/
cp: cannot stat `modules/*': No such file or directory
make: *** [install-modules] Error 1
make: Leaving directory `/usr/src/redhat/BUILD/php-5.3.9/build-zts'
error: Bad exit status from /var/tmp/rpm-tmp.13559 (%install)

in rpm-tmp is

# Install the extensions for the ZTS version
make -C build-zts install-build install-programs install-headers install-modules \
     INSTALL_ROOT=$RPM_BUILD_ROOT

in spec is

%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

# Install the extensions for the ZTS version
make -C build-zts install-build install-programs install-headers install-modules \
     INSTALL_ROOT=$RPM_BUILD_ROOT

It seems install-modules doesn't generate module files, please help out, thanks

Re: Build php-5.3.9 with remi 5.3.8-4 php.spec

PHP 5.3.9 is not yet available.... (will be available in remi repository as soon as published)

No idea about your issue, hard to help without the full build log.
Probably something wrong in your build environment or in the spec changes.


P.S. why do you need 5.3.9 without waiting for official release ?

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Build php-5.3.9 with remi 5.3.8-4 php.spec

Thanks for reply, Remi

there has a fatal threat called "multiple implementations denial-of-service via hash algorithm collision", it'll cause cpu high load. php-5.3.9 and php-5.4.0 have a solution by using a "max_input_vars" setting, so we need this patch to avoid this risk.

References:
http://www.ocert.org/advisories/ocert-2011-003.html

Re: Build php-5.3.9 with remi 5.3.8-4 php.spec

As written in the advisory, final solution is not yet implemented.
Should wait for 5.3.9.

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Build php-5.3.9 with remi 5.3.8-4 php.spec

Thanks, Remi

Re: Build php-5.3.9 with remi 5.3.8-4 php.spec

PHP 5.3.9 is available in the repo

Laptop:  Fedora 38 + rpmfusion + remi (SCL only)
x86_64 builder: Fedora 39 + rpmfusion + remi-test
aarch64 builder: RHEL 9 with EPEL
Hosting Server: CentOS 8 Stream with EPEL, rpmfusion, remi

Re: Build php-5.3.9 with remi 5.3.8-4 php.spec

thanks Remi, you are my hero!