Hi guys,
I've been working on a yum repo for PHP 5.2 and today I wanted to update it[1], however on a test machine using my PHP packages (e.g. php-common-5.2.16-1nux) a yum update to the new RPMs with version 5.2.17 gives the following error: "Error: Package tuple ('php-common', 'i386', '0', '5.2.17', '1nux') could not be found in packagesack".
Any rpm guru around has an idea of what is causing this? The php-common package is clearly mentioned in the spec file: "%package common Group: Development/Languages Summary: Common files for PHP Provides: php-api = %{apiver}, php-zend-abi = %{zendver} Provides: php(api) = %{apiver}, php(zend-abi) = %{zendver} # Provides for all builtin modules: Provides: php-bz2, php-calendar, php-ctype, php-curl, php-date, php-exif Provides: php-ftp, php-gettext, php-gmp, php-hash, php-iconv, php-libxml Provides: php-reflection, php-session, php-shmop, php-simplexml, php-sockets Provides: php-spl, php-tokenizer, php-openssl, php-pcre Provides: php-zlib, php-json, php-zip, php-dbase Obsoletes: php-openssl, php-pecl-zip, php-json, php-dbase
%description common The php-common package contains files used by both the php package and the php-cli package."
On Fri, 7 Jan 2011, nux@li.nux.ro wrote:
To: centos@centos.org From: nux@li.nux.ro Subject: [CentOS] rpm/yum/repo issue - Error: Package tuple could not be found in packagesack
Hi guys,
I've been working on a yum repo for PHP 5.2 and today I wanted to update it[1], however on a test machine using my PHP packages (e.g. php-common-5.2.16-1nux) a yum update to the new RPMs with version 5.2.17 gives the following error: "Error: Package tuple ('php-common', 'i386', '0', '5.2.17', '1nux') could not be found in packagesack".
Will you be adding the readline library, which allows PHP to be used as an interactive interpreter, similar to GW-Basic.
That's very helpfull for debugging 2-3 lines of complex code, like regex patterns.
http://cnswww.cns.cwru.edu/php/chet/readline/rltop.html
http://forums.fedoraforum.org/showthread.php?t=160348
Installed Packages Name : readline Arch : i386 Version : 5.1 Release : 3.el5 Size : 337 k Repo : installed Summary : A library for editing typed command lines. ...
Kind Regards,
Keith Roberts
----------------------------------------------------------------- Websites: http://www.karsites.net http://www.php-debuggers.net http://www.raised-from-the-dead.org.uk
All email addresses are challenge-response protected with TMDA [http://tmda.net] -----------------------------------------------------------------
Keith Roberts writes:
On Fri, 7 Jan 2011, nux@li.nux.ro wrote: Will you be adding the readline library, which allows PHP to be used as an interactive interpreter, similar to GW-Basic.
Yes, that's included, but my repo is not usable right now due to the problem in the $subj soo.. any tips on that one? :-)
On Fri, 7 Jan 2011, nux@li.nux.ro wrote:
To: CentOS mailing list centos@centos.org From: nux@li.nux.ro Subject: Re: [CentOS] rpm/yum/repo issue - Error: Package tuple could not be found in packagesack
Keith Roberts writes:
On Fri, 7 Jan 2011, nux@li.nux.ro wrote: Will you be adding the readline library, which allows PHP to be used as an interactive interpreter, similar to GW-Basic.
Yes, that's included, but my repo is not usable right now due to the problem in the $subj soo.. any tips on that one? :-)
I'm working my way through the RPM build process using MaximumRPM snapshot, and learning patch and diff as well. So I cannot really help on your original question.
Keith
----------------------------------------------------------------- Websites: http://www.karsites.net http://www.php-debuggers.net http://www.raised-from-the-dead.org.uk
All email addresses are challenge-response protected with TMDA [http://tmda.net] -----------------------------------------------------------------
nux@li.nux.ro writes:
Hi guys,
I've been working on a yum repo for PHP 5.2 and today I wanted to update it[1], however on a test machine using my PHP packages (e.g. php-common-5.2.16-1nux) a yum update to the new RPMs with version 5.2.17 gives the following error: "Error: Package tuple ('php-common', 'i386', '0', '5.2.17', '1nux') could not be found in packagesack".
Any rpm guru around has an idea of what is causing this? The php-common package is clearly mentioned in the spec file: "%package common Group: Development/Languages Summary: Common files for PHP Provides: php-api = %{apiver}, php-zend-abi = %{zendver} Provides: php(api) = %{apiver}, php(zend-abi) = %{zendver} # Provides for all builtin modules: Provides: php-bz2, php-calendar, php-ctype, php-curl, php-date, php-exif Provides: php-ftp, php-gettext, php-gmp, php-hash, php-iconv, php-libxml Provides: php-reflection, php-session, php-shmop, php-simplexml, php-sockets Provides: php-spl, php-tokenizer, php-openssl, php-pcre Provides: php-zlib, php-json, php-zip, php-dbase Obsoletes: php-openssl, php-pecl-zip, php-json, php-dbase
%description common The php-common package contains files used by both the php package and the php-cli package."
[1] - http://www.php.net/archive/2011.php#id2011-01-06-1 _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos
No ideas guys? What I could figure out is that the spec file is not the problem, it's somehow my build environment. If I use the centos-testing repo for php everything works fine, if i rebuild the srpm from centos-testing.. the error appears again.. I tried building both "manually" and from mock. Same sad result on both cases.
-- Nux! www.nux.ro
On Mon, 10 Jan 2011, nux@li.nux.ro wrote:
To: CentOS mailing list centos@centos.org From: nux@li.nux.ro Subject: Re: [CentOS] rpm/yum/repo issue - Error: Package tuple could not be found in packagesack
nux@li.nux.ro writes:
*snip*
No ideas guys? What I could figure out is that the spec file is not the problem, it's somehow my build environment. If I use the centos-testing repo for php everything works fine, if i rebuild the srpm from centos-testing.. the error appears again.. I tried building both "manually" and from mock. Same sad result on both cases.
Maybe it's ypur build environment? Try creating a new user and build environment to build RPM packages, and test that out with a simple package you know works first.
HTH
Keith
----------------------------------------------------------------- Websites: http://www.karsites.net http://www.php-debuggers.net http://www.raised-from-the-dead.org.uk
All email addresses are challenge-response protected with TMDA [http://tmda.net] -----------------------------------------------------------------
Keith Roberts writes:
Maybe it's ypur build environment? Try creating a new user and build environment to build RPM packages, and test that out with a simple package you know works first.
HTH
Keith
Changing the user account didn't help. I ended up building a new kvm virtual machine. All works flawlessly… No idea what the problem was, but glad it's working :-( the repo is at http://dl.nux.ro/rpm/nux-php52.repo if you like testing.
-- Nux! www.nux.ro