1 (edited by coka_vencida 2015-02-19 19:39:40)

Topic: Change install folder

Hi,

I'm using a php.spec file of your repository. I want to change the default install folder to /usr/php55 and modules to lib64/php55. How can I make this?

Thanks!

Ps.: Your job it's very good!

Re: Change install folder

Use SCL packages, everything is already relocated and allow parallel installation.

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: Change install folder

More information:
* http://blog.famillecollet.com/pages/English-FAQ#scl
* http://blog.famillecollet.com/tag/SCL

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: Change install folder

I saw the websites but i don't know if the .rpm it's the better choise:
- I just need a change in the default install folder of the .spec file because I did many particular configurations.

I pulled the SCL git repo but I don't understood the code (where set the folder install).

Thanks for the help.

Re: Change install folder

> I don't understood the code (where set the folder install).
Everything is magically relocated by scl-utils and php## metapackage.

Remi.

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: Change install folder

Thanks a lot.

I'll take a better look in SCL git repo. To construct rpm, I use php.spec of scl-php56/php?

Re: Change install folder

I still don't understand what is your need and why you want to rebuild... but yes scl-php56 contains the sources for php 5.6 as a SCL.

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: Change install folder

Resume of what is my need:

Rebuild the package with a different install folder (/usr/php53 /usr/php54 /usr/php55 /usr/php56) and configurations that pass to me.

So, I'm looking for where is set the install folder in .spec file but I don't see.

Re: Change install folder

Sorry, I still don't understand.

To provide some configuration files... just create a package of these configurations files... or simply use a puppet/ansible/chief/whatever script.

And sorry but I don't think I can help more.
I can help people using my package, not people wanting some change to suite strange needs.

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: Change install folder

The configurations are OK in the .spec file (I edited your package). Only that I need it's understand where I edit to change the install folder of php in .spec file in your package.

The SCL pacakge installs on different folder but I need a simple solution: change the default folder of instalation in your package direct in .spec file of it.

Sorry of the low knowledge but I'm new in this world.

Re: Change install folder

Hi again,
Reformulating the question: if I want to install php in another directory that not the default (/usr/bin/php), using your php.spec file to build the package, is that possible?

Thanks.