php-eaccelerator should depend on php for specific arch

Support/Development for PHP
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:Im asking for your help, please please please send a patch. I have too much on my plate right now.
I believe my previous post should be pretty helpful... ;-)

You need something else than the following?
--> Replace "php" with "php(x86-64)" after "Requires" in the SPEC-file of the 64-bit php-eaccelerator RPM.

If that is not sufficient, @breun could you post a patch file?
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 movement on this?
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 »

Was this ever patched? We're seeing this dependency issue for the latest version of PHP on Atomic:

Code: Select all

# yum upgrade
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
 * asl-3.0: www6.atomicorp.com
 * atomic: www7.atomicorp.com
 * base: mirror.simwood.com
 * extras: mirror.simwood.com
 * updates: mirror.simwood.com
210 packages excluded due to repository priority protections
Setting up Upgrade Process
Resolving Dependencies
--> Running transaction check
---> Package glibc.i686 0:2.12-1.107.el6_4.2 will be updated
---> Package glibc.x86_64 0:2.12-1.107.el6_4.2 will be updated
---> Package glibc.i686 0:2.12-1.107.el6_4.4 will be an update
---> Package glibc.x86_64 0:2.12-1.107.el6_4.4 will be an update
---> Package glibc-common.x86_64 0:2.12-1.107.el6_4.2 will be updated
---> Package glibc-common.x86_64 0:2.12-1.107.el6_4.4 will be an update
---> Package glibc-devel.x86_64 0:2.12-1.107.el6_4.2 will be updated
---> Package glibc-devel.x86_64 0:2.12-1.107.el6_4.4 will be an update
---> Package glibc-headers.x86_64 0:2.12-1.107.el6_4.2 will be updated
---> Package glibc-headers.x86_64 0:2.12-1.107.el6_4.4 will be an update
---> Package php.x86_64 0:5.4.18-24.el6.art will be updated
--> Processing Dependency: php = 5.4.18 for package: 1:php-eaccelerator-5.4.18_0.9.6.1-3.git42067ac.el6.art.x86_64
---> Package php.x86_64 0:5.4.19-25.el6.art will be an update
---> Package php-cli.x86_64 0:5.4.18-24.el6.art will be updated
---> Package php-cli.x86_64 0:5.4.19-25.el6.art will be an update
---> Package php-common.x86_64 0:5.4.18-24.el6.art will be updated
---> Package php-common.x86_64 0:5.4.19-25.el6.art will be an update
---> Package php-devel.x86_64 0:5.4.18-24.el6.art will be updated
---> Package php-devel.x86_64 0:5.4.19-25.el6.art will be an update
---> Package php-gd.x86_64 0:5.4.18-24.el6.art will be updated
---> Package php-gd.x86_64 0:5.4.19-25.el6.art will be an update
---> Package php-imap.x86_64 0:5.4.18-24.el6.art will be updated
---> Package php-imap.x86_64 0:5.4.19-25.el6.art will be an update
---> Package php-mbstring.x86_64 0:5.4.18-24.el6.art will be updated
---> Package php-mbstring.x86_64 0:5.4.19-25.el6.art will be an update
---> Package php-mcrypt.x86_64 0:5.4.18-24.el6.art will be updated
---> Package php-mcrypt.x86_64 0:5.4.19-25.el6.art will be an update
---> Package php-mysql.x86_64 0:5.4.18-24.el6.art will be updated
---> Package php-mysql.x86_64 0:5.4.19-25.el6.art will be an update
---> Package php-pdo.x86_64 0:5.4.18-24.el6.art will be updated
---> Package php-pdo.x86_64 0:5.4.19-25.el6.art will be an update
---> Package php-soap.x86_64 0:5.4.18-24.el6.art will be updated
---> Package php-soap.x86_64 0:5.4.19-25.el6.art will be an update
---> Package php-xml.x86_64 0:5.4.18-24.el6.art will be updated
---> Package php-xml.x86_64 0:5.4.19-25.el6.art will be an update
--> Running transaction check
---> Package php.i686 0:5.4.18-24.el6.art will be installed
--> Processing Dependency: php-common(x86-32) = 5.4.18-24.el6.art for package: php-5.4.18-24.el6.art.i686
--> Processing Dependency: php-cli(x86-32) = 5.4.18-24.el6.art for package: php-5.4.18-24.el6.art.i686
--> Processing Dependency: libgssapi_krb5.so.2 for package: php-5.4.18-24.el6.art.i686
--> Processing Dependency: libz.so.1 for package: php-5.4.18-24.el6.art.i686
--> Processing Dependency: libxml2.so.2(LIBXML2_2.4.30) for package: php-5.4.18-24.el6.art.i686
--> Processing Dependency: libxml2.so.2(LIBXML2_2.6.11) for package: php-5.4.18-24.el6.art.i686
--> Processing Dependency: libgmp.so.3 for package: php-5.4.18-24.el6.art.i686
--> Processing Dependency: libxml2.so.2(LIBXML2_2.6.5) for package: php-5.4.18-24.el6.art.i686
--> Processing Dependency: libk5crypto.so.3 for package: php-5.4.18-24.el6.art.i686
--> Processing Dependency: libcom_err.so.2 for package: php-5.4.18-24.el6.art.i686
--> Processing Dependency: libbz2.so.1 for package: php-5.4.18-24.el6.art.i686
--> Processing Dependency: libxml2.so.2 for package: php-5.4.18-24.el6.art.i686
--> Processing Dependency: libssl.so.10 for package: php-5.4.18-24.el6.art.i686
--> Processing Dependency: libxml2.so.2(LIBXML2_2.5.2) for package: php-5.4.18-24.el6.art.i686
--> Processing Dependency: libkrb5.so.3 for package: php-5.4.18-24.el6.art.i686
--> Processing Dependency: libcrypto.so.10 for package: php-5.4.18-24.el6.art.i686
--> Processing Dependency: libxml2.so.2(LIBXML2_2.6.0) for package: php-5.4.18-24.el6.art.i686
---> Package php.x86_64 0:5.4.18-24.el6.art will be updated
--> Running transaction check
---> Package bzip2-libs.i686 0:1.0.5-7.el6_0 will be installed
---> Package gmp.i686 0:4.3.1-7.el6_2.2 will be installed
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.11) for package: gmp-4.3.1-7.el6_2.2.i686
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4) for package: gmp-4.3.1-7.el6_2.2.i686
--> Processing Dependency: libstdc++.so.6(CXXABI_1.3) for package: gmp-4.3.1-7.el6_2.2.i686
--> Processing Dependency: libstdc++.so.6 for package: gmp-4.3.1-7.el6_2.2.i686
--> Processing Dependency: libgcc_s.so.1(GCC_3.0) for package: gmp-4.3.1-7.el6_2.2.i686
--> Processing Dependency: libgcc_s.so.1 for package: gmp-4.3.1-7.el6_2.2.i686
---> Package krb5-libs.i686 0:1.10.3-10.el6_4.4 will be installed
--> Processing Dependency: libselinux.so.1 for package: krb5-libs-1.10.3-10.el6_4.4.i686
--> Processing Dependency: libkeyutils.so.1(KEYUTILS_0.3) for package: krb5-libs-1.10.3-10.el6_4.4.i686
--> Processing Dependency: libkeyutils.so.1 for package: krb5-libs-1.10.3-10.el6_4.4.i686
---> Package libcom_err.i686 0:1.41.12-14.el6_4.2 will be installed
---> Package libxml2.i686 0:2.7.6-12.el6_4.1 will be installed
---> Package openssl.i686 0:1.0.0-27.el6_4.2 will be installed
---> Package php-cli.i686 0:5.4.18-24.el6.art will be installed
--> Processing Dependency: libncurses.so.5 for package: php-cli-5.4.18-24.el6.art.i686
--> Processing Dependency: libedit.so.0 for package: php-cli-5.4.18-24.el6.art.i686
---> Package php-cli.x86_64 0:5.4.18-24.el6.art will be updated
---> Package php-cli.x86_64 0:5.4.18-24.el6.art will be updated
---> Package php-common.i686 0:5.4.18-24.el6.art will be installed
--> Processing Dependency: libcurl.so.4 for package: php-common-5.4.18-24.el6.art.i686
---> Package php-common.x86_64 0:5.4.18-24.el6.art will be updated
---> Package php-common.x86_64 0:5.4.18-24.el6.art will be updated
---> Package zlib.i686 0:1.2.3-29.el6 will be installed
--> Running transaction check
---> Package keyutils-libs.i686 0:1.4-4.el6 will be installed
---> Package libcurl.i686 0:7.19.7-37.el6_4 will be installed
--> Processing Dependency: libssh2(x86-32) >= 1.4.2 for package: libcurl-7.19.7-37.el6_4.i686
--> Processing Dependency: libssl3.so(NSS_3.4) for package: libcurl-7.19.7-37.el6_4.i686
--> Processing Dependency: libssl3.so(NSS_3.2) for package: libcurl-7.19.7-37.el6_4.i686
--> Processing Dependency: libssl3.so(NSS_3.11.4) for package: libcurl-7.19.7-37.el6_4.i686
--> Processing Dependency: libssl3.so for package: libcurl-7.19.7-37.el6_4.i686
--> Processing Dependency: libssh2.so.1 for package: libcurl-7.19.7-37.el6_4.i686
--> Processing Dependency: libsmime3.so for package: libcurl-7.19.7-37.el6_4.i686
--> Processing Dependency: libplds4.so for package: libcurl-7.19.7-37.el6_4.i686
--> Processing Dependency: libplc4.so for package: libcurl-7.19.7-37.el6_4.i686
--> Processing Dependency: libnssutil3.so for package: libcurl-7.19.7-37.el6_4.i686
--> Processing Dependency: libnss3.so(NSS_3.9.3) for package: libcurl-7.19.7-37.el6_4.i686
--> Processing Dependency: libnss3.so(NSS_3.9.2) for package: libcurl-7.19.7-37.el6_4.i686
--> Processing Dependency: libnss3.so(NSS_3.5) for package: libcurl-7.19.7-37.el6_4.i686
--> Processing Dependency: libnss3.so(NSS_3.4) for package: libcurl-7.19.7-37.el6_4.i686
--> Processing Dependency: libnss3.so(NSS_3.3) for package: libcurl-7.19.7-37.el6_4.i686
--> Processing Dependency: libnss3.so(NSS_3.2) for package: libcurl-7.19.7-37.el6_4.i686
--> Processing Dependency: libnss3.so(NSS_3.12.5) for package: libcurl-7.19.7-37.el6_4.i686
--> Processing Dependency: libnss3.so(NSS_3.12.1) for package: libcurl-7.19.7-37.el6_4.i686
--> Processing Dependency: libnss3.so(NSS_3.12) for package: libcurl-7.19.7-37.el6_4.i686
--> Processing Dependency: libnss3.so(NSS_3.10) for package: libcurl-7.19.7-37.el6_4.i686
--> Processing Dependency: libnss3.so for package: libcurl-7.19.7-37.el6_4.i686
--> Processing Dependency: libnspr4.so for package: libcurl-7.19.7-37.el6_4.i686
--> Processing Dependency: libldap-2.4.so.2 for package: libcurl-7.19.7-37.el6_4.i686
--> Processing Dependency: libidn.so.11(LIBIDN_1.0) for package: libcurl-7.19.7-37.el6_4.i686
--> Processing Dependency: libidn.so.11 for package: libcurl-7.19.7-37.el6_4.i686
---> Package libedit.i686 0:3.0-2.20090923cvs.el6.art will be installed
---> Package libgcc.i686 0:4.4.7-3.el6 will be installed
---> Package libselinux.i686 0:2.0.94-5.3.el6_4.1 will be installed
---> Package libstdc++.i686 0:4.4.7-3.el6 will be installed
---> Package ncurses-libs.i686 0:5.7-3.20090208.el6 will be installed
--> Running transaction check
---> Package libidn.i686 0:1.18-2.el6 will be installed
---> Package libssh2.i686 0:1.4.2-1.el6 will be installed
---> Package nspr.i686 0:4.9.5-2.el6_4 will be installed
---> Package nss.i686 0:3.14.3-4.el6_4 will be installed
--> Processing Dependency: nss-softokn(x86-32) >= 3.14.3 for package: nss-3.14.3-4.el6_4.i686
---> Package nss-util.i686 0:3.14.3-3.el6_4 will be installed
---> Package openldap.i686 0:2.4.23-32.el6_4.1 will be installed
--> Processing Dependency: libsasl2.so.2 for package: openldap-2.4.23-32.el6_4.1.i686
--> Running transaction check
---> Package cyrus-sasl-lib.i686 0:2.1.23-13.el6_3.1 will be installed
--> Processing Dependency: libdb-4.7.so for package: cyrus-sasl-lib-2.1.23-13.el6_3.1.i686
---> Package nss-softokn.i686 0:3.14.3-3.el6_4 will be installed
--> Processing Dependency: libsqlite3.so.0 for package: nss-softokn-3.14.3-3.el6_4.i686
--> Running transaction check
---> Package db4.i686 0:4.7.25-17.el6 will be installed
---> Package sqlite.i686 0:3.7.9-1.el6.art will be installed
--> Processing Dependency: libreadline.so.6 for package: sqlite-3.7.9-1.el6.art.i686
--> Running transaction check
---> Package readline.i686 0:6.0-4.el6 will be installed
--> Finished Dependency Resolution
Error:  Multilib version problems found. This often means that the root
       cause is something else and multilib version checking is just
       pointing out that there is a problem. Eg.:

         1. You have an upgrade for php-common which is missing some
            dependency that another package requires. Yum is trying to
            solve this by installing an older version of php-common of the
            different architecture. If you exclude the bad architecture
            yum will tell you what the root cause is (which package
            requires what). You can try redoing the upgrade with
            --exclude php-common.otherarch ... this should give you an error
            message showing the root cause of the problem.

         2. You have multiple architectures of php-common installed, but
            yum can only see an upgrade for one of those arcitectures.
            If you don't want/need both architectures anymore then you
            can remove the one with the missing update and everything
            will work.

         3. You have duplicate versions of php-common installed already.
            You can use "yum check" to get yum show these errors.

       ...you can also use --setopt=protected_multilib=false to remove
       this checking, however this is almost never the correct thing to
       do as something else is very likely to go wrong (often causing
       much more problems).

       Protected multilib versions: php-common-5.4.18-24.el6.art.i686 != php-common-5.4.19-25.el6.art.x86_64
Error: Protected multilib versions: php-5.4.18-24.el6.art.i686 != php-5.4.19-25.el6.art.x86_64
Error: Protected multilib versions: php-cli-5.4.18-24.el6.art.i686 != php-cli-5.4.19-25.el6.art.x86_64
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
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 »

my guess would be unless you want to do this yourself, if you want this to work you need use nucleus (aka pay for it).
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 »

I think that was just because php-eaccelerator hadnt been published when you ran the upgrade.
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 »

Thanks Scott ... checked again and it's fine now.
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:I think that was just because php-eaccelerator hadnt been published when you ran the upgrade.
I believe that is correct. However, the fact that yum proposes to install a 32-bit version of PHP can be simply mitigated by making a tiny modification to your RPM SPEC file, as I had suggested earlier. If you could make this change, a lot of sysadmins here would be very happy I believe. :-)
--> Replace "php" with "php(x86-64)" after "Requires" in the SPEC-file of the 64-bit php-eaccelerator RPM.
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 »

Whats the change?
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 »

--> Replace "php" with "php(x86-64)" after "Requires" in the SPEC-file of the 64-bit php-eaccelerator RPM.
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 »

If you did that, it would break i386 packages.
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:If you did that, it would break i386 packages.
Not if you would only put the php 64-bit requirement on the php-eccelerator 64-bit package.
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 »

There is only one spec file for each package, there are no architecture specific versions
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:There is only one spec file for each package, there are no architecture specific versions
In that case you can use "%{?_isa}" in stead of (x86-64). This will make sure the PHP dependency will be resolved to the same architecture as the package being installed, hooray for everyone! :-)

Documentation: http://www.rpm.org/wiki/PackagerDocs/ArchDependencies
Lemonbit Internet Dedicated Server Management
Post Reply