1 (edited by withgod 2014-06-12 11:31:08)

Topic: owned rpm require php-common(remi). yum dependency probelm

Apologize first, a poorly my English.

i tried remi php-common dependency owned rpm.

rpm -ivh or yum install URL, works fine. but don't work yum install. dependency problem.

spec https://github.com/withgod/php-timecop/ … mecop.spec

[vagrant@localdev tmp]$ yum whatprovides --enablerepo=fizz-php54,remi 'php(api)'
...
php-common-5.4.29-3.el6.remi.x86_64 : Common files for PHP
Repo        : installed
Matched from:
Other       : Provides-match: php(api)
[vagrant@localdev tmp]$ rpm -q --provides php-common.x86_64  | grep 20100412
php-api = 20100412-x86-64
php(api) = 20100412-x86-64
[vagrant@localdev tmp]$ yum --enablerepo=fizz-php54,remi deplist php-pecl-apcu-4.0.5
...
  dependency: php(api) = 20100412-x86-64
   provider: php-common.x86_64 5.4.29-2.el6.remi
   provider: php-common.x86_64 5.4.29-3.el6.remi
[vagrant@localdev tmp]$ yum --enablerepo=fizz-php54,remi deplist php-timecop
...
  dependency: php(api) = 20100412-x86-64
   Unsatisfied dependency
  dependency: libc.so.6(GLIBC_2.2.5)(64bit)
   provider: glibc.x86_64 2.12-1.132.el6
   provider: glibc.x86_64 2.12-1.132.el6_5.1
   provider: glibc.x86_64 2.12-1.132.el6_5.2
  dependency: php
   provider: php.x86_64 5.4.29-2.el6.remi
   provider: php.x86_64 5.4.29-3.el6.remi
   provider: php.x86_64 5.3.3-26.el6
   provider: php.x86_64 5.3.3-27.el6_5
[vagrant@localdev tmp]$ sudo yum --enablerepo=fizz-php54 install php-timecop
Loaded plugins: fastestmirror, versionlock
Loading mirror speeds from cached hostfile
 * base: ... //replace for spam filter(permit 1url)
 * epel: ...
 * extras: ...
 * updates: ...
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package php-timecop.x86_64 0:1.0.4-1.el6 will be installed
--> Processing Dependency: php(api) = 20100412-x86-64 for package: php-timecop-1.0.4-1.el6.x86_64
--> Finished Dependency Resolution
Error: Package: php-timecop-1.0.4-1.el6.x86_64 (fizz-php54)
           Requires: php(api) = 20100412-x86-64
           Installed: php-common-5.4.29-3.el6.remi.x86_64 (@remi)
               php(api) = 20100412-x86-64
           Available: php-common-5.3.3-26.el6.x86_64 (base)
               php(api) = 20090626
           Available: php-common-5.3.3-27.el6_5.x86_64 (updates)
               php(api) = 20090626
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

Why do not know what can not be solved.

Re: owned rpm require php-common(remi). yum dependency probelm

1/ I don't know what "fizz-php54" is

2/ I don't know what php-timecop is

as

           Requires: php(api) = 20100412-x86-64
           Installed: php-common-5.4.29-3.el6.remi.x86_64 (@remi)
               php(api) = 20100412-x86-64

Do you use satellite/specewalk ?
I think you are hitten by the metadata bug...

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: owned rpm require php-common(remi). yum dependency probelm

sorry replaced text.

1/ I don't know what "fizz-php54" is

owned yum repository.

2/ I don't know what php-timecop is

https://github.com/withgod/php-timecop

this is not your rpm.
i made spec depend remi's php(api).

>Do you use satellite/specewalk ?

first time, i don't know these.

>I think you are hitten by the metadata bug...

wow, i tried sometimes yum clean all & retry yum installed ;(

i can't judge my misstake or yum bug because i dont daily use centos.

thank you advice  smile

Re: owned rpm require php-common(remi). yum dependency probelm

i made spec depend remi's php(api).

How ?

Should use

Requires:     php(zend-abi) = %{php_zend_api}
Requires:     php(api) = %{php_core_api}
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: owned rpm require php-common(remi). yum dependency probelm

https://github.com/withgod/php-timecop/ … p.spec#L15

i tried this spec.

Re: owned rpm require php-common(remi). yum dependency probelm

> owned yum repository.
How do you create the repo metadata ?

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: owned rpm require php-common(remi). yum dependency probelm

/usr/bin/createrepo -v /var/www/html/yum/6-php54/x86_64

this one

Re: owned rpm require php-common(remi). yum dependency probelm

try with -d option... dont think it should change metadata... but ... no other 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: owned rpm require php-common(remi). yum dependency probelm

tried -d don't work..

but now fixed this problem.

don't work. Centos5.9 createrepo 0.4.11
works fine. Centos6.5 createrepo 0.9.9

http://createrepo.baseurl.org/#GetCreaterepo

0.4.11 - Latest 'stable' series
0.9.8 - Latest 'development' series - Requires yum >= 3.2.23

what the stable... ;(

thanks your help.

Re: owned rpm require php-common(remi). yum dependency probelm

Ok, I understand you generate you repo unders C5... bad idea.

Problem solved smile

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