Topic: php-sqlsrv

Hello,

I am trying to build php-sqlsrv with SCL (rh-php72) based on your SRPM using mock.

The step in failure is the package installation of msodbcsql17, which requires (I guess) the environment variable "ACCEPT_EULA=Y".


I tried to use the following command:

ACCEPT_EULA=Y mock --define "scl rh-php72" -r  /etc/mock/rhel-7-x86_64.cfg --resultdir rpmbuild/ php-sqlsrv-5.6.1-5.remi.src.rpm

Is there a way of building this kind of RPM using mock?

Thanks.

Jérémy

Re: php-sqlsrv

> I am trying to build php-sqlsrv with SCL

Why don't you simply use the provided binary RPM ?

> Is there a way of building this kind of RPM using mock?

Yes, using in your mock configuration file

config_opts['environment']['ACCEPT_EULA'] = 'Y'

P.S. all the mock configuration files I used are tracked online in my git repo
https://git.remirepo.net/cgit/tools/mock.git/

Desktop: Fedora 29 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 30 x86_64 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 6.10 x86_64 with EPEL, remi, remi-php72 and remi-php72-test

Re: php-sqlsrv

Hi Remi,

Thanks for the response.

Remi wrote:

> I am trying to build php-sqlsrv with SCL
Why don't you simply use the provided binary RPM ?

Was not sure what was the best option regarding support:

* use your repository
* use the rhel one, with one custom PHP module...

Remi wrote:

>
Yes, using in your mock configuration file

config_opts['environment']['ACCEPT_EULA'] = 'Y'

Thank you!


Remi wrote:

> P.S. all the mock configuration files I used are tracked online in my git repo
https://git.remirepo.net/cgit/tools/mock.git/

Is there any doc where I can find all the options available? My research didn't return anything so far...

Re: php-sqlsrv

> Was not sure what was the best option regarding support:

Don't know wink

> Is there any doc where I can find all the options available? My research didn't return anything so far...

See comments in /etc/mock/site-defaults.cfg

Desktop: Fedora 29 x86_64 + rpmfusion + remi-test + remi-dev
Laptop:  Fedora 30 x86_64 + rpmfusion + remi (SCL only)
Hosting Server: CentOS 6.10 x86_64 with EPEL, remi, remi-php72 and remi-php72-test