Topic: php55-pecl-krb5 src.rpm

Hi, where I can find php55-pecl-krb5 Source RPM?

http://rpms.famillecollet.com/SRPMS/ does not have
php55-php-pecl-krb5-1.0.0-5.el6.remi.src.rpm file

Re: php55-pecl-krb5 src.rpm

php55-pecl-krb5 or php55-php-pecl-krb5 ?

For my curiosity, why do you need the .src.rpm when the binary packages are available ?

And, I use the same spec (and .src.rpm) for base ans SCL packages (so php-pecl-krb5)

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

3 (edited by hartois 2015-09-17 09:45:18)

Re: php55-pecl-krb5 src.rpm

Temporary I need rebuild package with custom patch.
In future this modifications will be applyed in upstream php-pecl-krb5.

Re: php55-pecl-krb5 src.rpm

> In future this modifications will be applyed in upstream php-pecl-krb5.
Yeah (it was my next question)

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: php55-pecl-krb5 src.rpm

Remi wrote:

And, I use the same spec (and .src.rpm) for base ans SCL packages (so php-pecl-krb5)

But this spec file builded php-pecl-krb5, not php55-pecl-krb5.

Re: php55-pecl-krb5 src.rpm

It build php-pecl-krb5 if standard env.
it will never build php55-pecl-krb5
it build php55-php-pecl-krb5 in SCL environment (when php55-build is installed in the buildroot)

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: php55-pecl-krb5 src.rpm

+ /opt/rh/php55/root/usr/bin/phpize
/var/tmp/rpm-tmp.4F7MkK: line 63: /opt/rh/php55/root/usr/bin/phpize: No such file or directory

Where can I found it?

Re: php55-pecl-krb5 src.rpm

to build this package, you need php55-php-devel (which is in the BuildRequires)

So I don't even understand how this can happen...

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: php55-pecl-krb5 src.rpm

[root@app ~]# rpm  -ql php55-php-devel|grep phpize
/opt/remi/php55/root/usr/lib64/php/build/phpize.m4
[root@app ~]#

It does not contain /opt/rh/php55/root/usr/bin/phpize

Re: php55-pecl-krb5 src.rpm

Once again, I don't know what you change in the original spec, but it contains

BuildRequires:  krb5-devel >= 1.8
BuildRequires:  pkgconfig(com_err)
BuildRequires:  %{?scl_prefix}php-devel > 5.2
BuildRequires:  %{?scl_prefix}php-pear

So with php55-php-devel + php55-php-pear, you should have everything needed

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: php55-pecl-krb5 src.rpm

I only add:
Patch1:        kadm_realm.patch
and
%patch1 -p1

php55 version phpize exist in php55-php-cli, but by another path:
[root@app rpmbuild]# rpm -ql php55-php-cli-5.5.29-1.el6.remi.x86_64|grep phpize
/opt/remi/php55/root/usr/bin/phpize
/opt/remi/php55/root/usr/share/man/man1/phpize.1.gz
[root@app rpmbuild]#

path
/opt/remi/php55/root/usr/bin/phpize
not
/opt/rh/php55/root/usr/bin/phpize

Re: php55-pecl-krb5 src.rpm

I think I understand your issue.

/opt/rh is default SCL prefix

I use, /opt/remi to make explicitly this a package from my repo, and to not conflict with RHSCL collections.

vendor is not defined in "macros.php55-config" by design, so people rebuilding my php spec (main package) will not use "remi" in the prefix.
but of course this breaks the build of php extension.

So you have to define, in your build environment.
  %scl_vendor = remi
  %_scl_prefix =/opt/remi


P.S. see https://github.com/remicollet/remirepo/ … xscl55.cfg

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: php55-pecl-krb5 src.rpm

/var/tmp/rpm-tmp.UDXLcc: line 67: /opt/remi/php55/root/usr/bin/zts-phpize: No such file or directory

Re: php55-pecl-krb5 src.rpm

How are you running the build ? (rpmbuild, mock, koji ?)

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: php55-pecl-krb5 src.rpm

rpmbuild -ba SPECS/php-pecl-krb5.spec

Re: php55-pecl-krb5 src.rpm

Terrible bad idea....

It seems you have both php-devel and php55-php-devel...

So __ztsphp is defined during the build.
You have to remove php-devel.

Notice: "mock" is the way to go, especially for SCL package.
Having php55-build installed in your env is really a bad idea.

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: php55-pecl-krb5 src.rpm

Thanks