Topic: Building packages against /opt/remi/php56

I'm trying to rebuild the php-oci8 package, because there is no php56-php-oci8 variant.

I'm using the following command with the spec file now:

rpmbuild -bb php-pecl-oci8.spec --define 'scl php56'

This allows the dependencies to be resolved correctly, but still gives problems because the build process is looking in /opt/rh instead of /opt/remi.

What should I do so that it looks in /opt/remi? Is that an extra define? I haven't built packages for a software collection before and the only define I found mentioned around was the scl one.

Thanks in advance for any response.

Re: Building packages against /opt/remi/php56

> I'm trying to rebuild the php-oci8 package, because there is no php56-php-oci8 variant.

=> http://rpms.remirepo.net/enterprise/7/r … -oci8.html

(missing in safe... will add it)

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: Building packages against /opt/remi/php56

Wow, that was quick! Thanks!!

I'm still wondering how I was supposed to do it myself with rpmbuild though smile

Re: Building packages against /opt/remi/php56

Building for SCL is not trivial. "mock" MUST be used with a tweaked configuration to workaround some bug in scl-utils.

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