php-eaccelerator should depend on php for specific arch

Support/Development for PHP
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

php-eaccelerator should depend on php for specific arch

Unread post by breun »

The php-eaccelerator package usually gets built later than the other php* packages in Atomic. Between the time a new PHP release is available in Atomic and the time the corresponding php-eaccelerator package is available yum offers some counter-intuitive update advice:

Code: Select all

# yum update php\*
(...)
--> Processing Dependency: php = 5.3.21 for package: php-eaccelerator
---> Package php.x86_64 0:5.3.22-15.el5.art set to be updated
(...)
Dependencies Resolved

========================================================================================================================
Package                      Arch                 Version                                   Repository            Size
========================================================================================================================
Updating:
php                          x86_64               5.3.22-15.el5.art                         atomic               2.8 M
php-bcmath                   x86_64               5.3.22-15.el5.art                         atomic                41 k
php-cli                      x86_64               5.3.22-15.el5.art                         atomic               2.6 M
php-common                   x86_64               5.3.22-15.el5.art                         atomic               1.0 M
php-devel                    x86_64               5.3.22-15.el5.art                         atomic               1.3 M
php-gd                       x86_64               5.3.22-15.el5.art                         atomic               209 k
php-imap                     x86_64               5.3.22-15.el5.art                         atomic                88 k
php-mbstring                 x86_64               5.3.22-15.el5.art                         atomic               2.3 M
php-mcrypt                   x86_64               5.3.22-15.el5.art                         atomic                48 k
php-mysqlnd                  x86_64               5.3.22-15.el5.art                         atomic               305 k
php-pdo                      x86_64               5.3.22-15.el5.art                         atomic               120 k
php-soap                     x86_64               5.3.22-15.el5.art                         atomic               280 k
php-xml                      x86_64               5.3.22-15.el5.art                         atomic               226 k
Installing for dependencies:
bzip2-libs                   i386                 1.0.3-6.el5_5                             base                  37 k
curl                         i386                 7.15.5-15.el5                             base                 235 k
device-mapper                i386                 1.02.67-2.el5                             base                 799 k
e2fsprogs-libs               i386                 1.39-35.el5                               base                 120 k
glibc                        i686                 2.5-107                                   base                 5.4 M
gmp                          i386                 4.1.4-10.el5                              base                 664 k
keyutils-libs                i386                 1.2-1.el5                                 base                  18 k
krb5-libs                    i386                 1.6.1-70.el5                              base                 669 k
libedit                      i386                 3.0-2.20090923cvs.el5.art                 atomic                80 k
libgcc                       i386                 4.1.2-54.el5                              base                  97 k
libidn                       i386                 0.6.5-1.1                                 base                 194 k
libselinux                   i386                 1.33.4-5.7.el5                            base                  77 k
libsepol                     i386                 2.0.36-1.el5.art                          atomic               129 k
libstdc++                    i386                 4.1.2-54.el5                              base                 363 k
libxml2                      i386                 2.6.26-2.1.15.el5_8.6                     base                 798 k
ncurses                      i386                 5.5-24.20060715                           base                 1.1 M
openssl                      i686                 0.9.8e-22.el5_8.4                         base                 1.5 M
php                          i386                 5.3.21-14.el5.art                         atomic               2.7 M
php-cli                      i386                 5.3.21-14.el5.art                         atomic               2.7 M
php-common                   i386                 5.3.21-14.el5.art                         atomic               1.0 M
zlib                         i386                 1.2.3-7.el5                               base                  51 k

Transaction Summary
========================================================================================================================
Install      21 Package(s)
Upgrade      13 Package(s)

Total download size: 30 M
Is this ok [y/N]: n
What happens here is that yum is suggesting to upgrade the 64-bit PHP installation from 5.3.21 to 5.3.22 and install a fresh copy of 32-bit PHP 5.3.21 (!) to satisfy php-eaccelerator's dependency on PHP 5.3.21.

I believe the solution here would be to make the 64-bit php-eaccelerator package explicitly depend on the corresponding 64-bit version of PHP, instead of just the version number without an architecture.
Lemonbit Internet Dedicated Server Management
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Re: php-eaccelerator should depend on php for specific arch

Unread post by breun »

And of course a release of php-eaccelerator for PHP 5.3.22 would be welcome as well, to avoid users of php-eaccelerator getting stuck on PHP 5.3.21. :)
Lemonbit Internet Dedicated Server Management
hostingguy
Forum Regular
Forum Regular
Posts: 661
Joined: Mon Oct 29, 2007 6:51 pm

Re: php-eaccelerator should depend on php for specific arch

Unread post by hostingguy »

Any chance of this happening soon?
DarkF@der
Forum Regular
Forum Regular
Posts: 313
Joined: Thu May 07, 2009 12:46 pm

Re: php-eaccelerator should depend on php for specific arch

Unread post by DarkF@der »

Please release php-eaccelerator for PHP 5.3.22 :)
redpaint
Forum Regular
Forum Regular
Posts: 101
Joined: Mon Oct 31, 2011 11:47 am
Location: UK

Re: php-eaccelerator should depend on php for specific arch

Unread post by redpaint »

Breun's suggestion in the first post sounds like it might save a lot of time and potential problems with each new ASL release for users and for the ASL team, thumbs up from us.
User avatar
mikeshinn
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 4149
Joined: Thu Feb 07, 2008 7:49 pm
Location: Chantilly, VA

Re: php-eaccelerator should depend on php for specific arch

Unread post by mikeshinn »

Breun's suggestion in the first post sounds like it might save a lot of time and potential problems with each new ASL release for users and for the ASL team, thumbs up from us.
I dont understand, these packages have nothing to do with ASL. ASL doesnt install them, upgrade them, or use them. These are all free Atomic rpms, and not part of ASL.

Am I misunderstanding something?
hostingguy
Forum Regular
Forum Regular
Posts: 661
Joined: Mon Oct 29, 2007 6:51 pm

Re: php-eaccelerator should depend on php for specific arch

Unread post by hostingguy »

I think you can replace the word ASL with ATOMIC in the previous response :)
Basically when putting out a new php version in atomic it would be great to put out a new version of the e-accelerator that is built on the proper arch instead of being tied to i386.
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Re: php-eaccelerator should depend on php for specific arch

Unread post by breun »

hostingguy wrote:Basically when putting out a new php version in atomic it would be great to put out a new version of the e-accelerator that is built on the proper arch instead of being tied to i386.
It's not tied to i386. It's not tied to any specific arch at all, that's what causes the somewhat peculiar upgrade path offered by yum when combined with the version of PHP being newer than the version required by php-eaccelerator on 64-bit machines.
Lemonbit Internet Dedicated Server Management
hostingguy
Forum Regular
Forum Regular
Posts: 661
Joined: Mon Oct 29, 2007 6:51 pm

Re: php-eaccelerator should depend on php for specific arch

Unread post by hostingguy »

it seems to me that it is tied to i386 as the i386 php package is marked as a dependency and tries to install. Either way I dont care about the symantecs of it, I just want it to work.
breun
Long Time Forum Regular
Long Time Forum Regular
Posts: 2813
Joined: Sat Aug 20, 2005 9:30 am
Location: The Netherlands

Re: php-eaccelerator should depend on php for specific arch

Unread post by breun »

hostingguy wrote:it seems to me that it is tied to i386 as the i386 php package is marked as a dependency and tries to install.
It is marked as a package which solves the dependency on PHP 5.3.21, but there is no dependency on 32-bit PHP 5.3.21 specifically:

Code: Select all

# rpm -q --requires php-eaccelerator | grep ^php
php = 5.3.21
Lemonbit Internet Dedicated Server Management
faris
Long Time Forum Regular
Long Time Forum Regular
Posts: 2321
Joined: Thu Dec 09, 2004 11:19 am

Re: php-eaccelerator should depend on php for specific arch

Unread post by faris »

I think we need to ask Scott very nicely if he could please make the appropriate adjustments to the php-eaccelerator package.

Please please please Scott? With radioactive turtle treats on top?
--------------------------------
<advert>
If you want to rent a UK-based VPS that comes with friendly advice and support from a fellow ART fan, please get in touch.
</advert>
prupert
Forum Regular
Forum Regular
Posts: 573
Joined: Tue Aug 01, 2006 2:45 pm
Location: Netherlands

Re: php-eaccelerator should depend on php for specific arch

Unread post by prupert »

An updated php-eaccelerator is now available, so those who are using the php-eaccelerator package from ART can now safely update their PHP packages. Thank you Scott.

However, I found that unfortunately the requirement is not yet on a specific arch. This means that with a future update of PHP combined with a delay in the update of php-eaccelerator the same problem (as explained by breun in the original post) will occur.
Lemonbit Internet Dedicated Server Management
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: php-eaccelerator should depend on php for specific arch

Unread post by scott »

Send a patch!
prupert
Forum Regular
Forum Regular
Posts: 573
Joined: Tue Aug 01, 2006 2:45 pm
Location: Netherlands

Re: php-eaccelerator should depend on php for specific arch

Unread post by prupert »

scott wrote:Send a patch!
AFAIK you only need to add the architecture to the requires-statement in the rpm SPEC-file.

For example for php-eccelerator 64-bit, it is now:

Code: Select all

Requires: php = 5.3.22
But this could be changed to:

Code: Select all

Requires: php(x86-64) = 5.3.22
See http://www.rpm.org/wiki/PackagerDocs/ArchDependencies.

As an example the stock CentOS 6 package for php-xml (php-xml-5.3.3-22.el6.x86_64) has a dependency on the php-common package with explicitly defined 1) the same architecture and 2) the same version number.

Code: Select all

# rpm -q --requires php-xml
[...]
php-common(x86-64) = 5.3.3-22.el6
Lemonbit Internet Dedicated Server Management
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Re: php-eaccelerator should depend on php for specific arch

Unread post by scott »

Im asking for your help, please please please send a patch. I have too much on my plate right now.
Post Reply