Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Issues unmerging old versions of php [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
AA
n00b
n00b


Joined: 29 Jul 2003
Posts: 59

PostPosted: Thu Jan 12, 2006 9:39 pm    Post subject: Issues unmerging old versions of php [SOLVED] Reply with quote

Code:
bluepoint ~ # emerge horde
Calculating dependencies ...done!

!!! Error: the dev-lang/php package conflicts with another package.
!!!        both can't be installed on the same system together.
!!!        Please use 'emerge --pretend' to determine blockers.

bluepoint ~ #
bluepoint ~ #
bluepoint ~ #
bluepoint ~ #
bluepoint ~ # emerge -p horde

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[blocks B     ] dev-lang/php (is blocking dev-php/mod_php-4.4.0-r9)
[blocks B     ] dev-lang/php (is blocking dev-php/php-4.4.0-r4)
[ebuild  N    ] app-admin/php-toolkit-1.0-r1
[ebuild  N    ] dev-lang/php-5.1.1  USE="berkdb bzip2 crypt curl exif gdbm gmp ipv6 mhash mysql ncurses nls pcre readline spell ssl truetype xml xpm zlib -apache -apache2 -bcmath -calendar -cdb -cgi -cjk -cli -ctype -curlwrappers -db2 -dba -dbase -debug -discard-path -doc -fastbuild -flatfile -force-cgi-redirect -ftp -gd -gd-external -hardenedphp -hyperwave-api -iconv -imap -inifile -interbase -iodbc -java-external -kerberos -ldap -libedit -mcve -memlimit -ming -msql -mssql -mysqli -oci8 -odbc -pcntl -pdo -pdo-external -pear -pic -posix -postgres -qdbm -recode -sapdb -sasl -session -sharedext -sharedmem -simplexml -snmp -soap -sockets -spl -sqlite -sysvipc -threads -tidy -tokenizer -vm-goto -vm-switch -wddx -xmlreader -xmlrpc -xsl -yaz -zip"
[ebuild  N    ] dev-php/PEAR-PEAR-1.3.6-r1
[ebuild  N    ] dev-php/PEAR-DB-1.7.6-r1
[ebuild  N    ] dev-php/PEAR-Log-1.9.3
[ebuild  N    ] dev-php/PEAR-Archive_Tar-1.3.2
[ebuild  N    ] dev-php/PEAR-Console_Getopt-1.2-r1
[ebuild  N    ] dev-php/PEAR-XML_RPC-1.4.4
[ebuild  N    ] dev-php/mod_php-4.4.0-r9  USE="X berkdb crypt curl gdbm gmp ipv6 java jpeg mysql nls pam png spell ssl tiff truetype xml2 -apache2 -debug -doc -flash -freetds -gd -gd-external -hardenedphp -imap -kerberos -ldap -mcal -memlimit -mssql -oci8 -odbc -postgres -snmp -yaz"
[ebuild  N    ] dev-php/php-4.4.0-r4  USE="X berkdb crypt curl gdbm gmp ipv6 java jpeg mysql ncurses nls pam png readline spell ssl tiff truetype xml2 -debug -doc -flash -freetds -gd -gd-external -hardenedphp -imap -kerberos -ldap -mcal -memlimit -mssql -oci8 -odbc -postgres -snmp -yaz"
[ebuild  N    ] dev-php/PEAR-Mail_Mime-1.3.1-r1
[ebuild  N    ] dev-php/PEAR-Auth_SASL-1.0.1-r1
[ebuild  N    ] dev-php/PEAR-Net_Socket-1.0.6-r1
[ebuild  N    ] dev-php/PEAR-Net_SMTP-1.2.7
[ebuild  N    ] dev-php/PEAR-Mail-1.1.9
[ebuild  N    ] dev-php/PEAR-Date-1.4.6
[ebuild  N    ] dev-php/PEAR-File-1.2.2
[ebuild  N    ] dev-php/PEAR-Cache-1.5.4-r1
[ebuild  N    ] dev-php/PEAR-Net_URL-1.0.14-r1
[ebuild  N    ] dev-php/PEAR-HTTP_Request-1.3.0
[ebuild  N    ] dev-php/PEAR-Net_DIME-0.3-r1
[ebuild  N    ] dev-php/PEAR-SOAP-0.9.1
[ebuild  N    ] dev-php/PEAR-XML_Parser-1.2.7
[ebuild  N    ] dev-php/PEAR-XML_Util-1.1.1-r1
[ebuild  N    ] dev-php/PEAR-XML_Serializer-0.18.0
[ebuild  N    ] dev-php/PEAR-Services_Weather-1.3.2-r1
[ebuild  N    ] www-apps/horde-pear-1.3-r3
[ebuild  N    ] www-apps/horde-3.0.9  USE="mysql -vhosts"
bluepoint ~ #
bluepoint ~ #
bluepoint ~ #
bluepoint ~ # emerge --unmerge dev-lang/php

--- Couldn't find dev-lang/php to unmerge.

>>> unmerge: No packages selected for removal.

bluepoint ~ #



As you can see above, I can't emerge horde untill I unmerge the old versions of dev-lang/php that still remain.
Can anyone tell me how I would do that ?

Thanks in advance!

_AA_


Last edited by AA on Fri Jan 13, 2006 12:21 am; edited 1 time in total
Back to top
View user's profile Send private message
AA
n00b
n00b


Joined: 29 Jul 2003
Posts: 59

PostPosted: Thu Jan 12, 2006 9:43 pm    Post subject: Reply with quote

I'm even more confused now after a closer inspection because it's going to want to re-emerge php anyway ???
Back to top
View user's profile Send private message
Seather
Apprentice
Apprentice


Joined: 23 May 2003
Posts: 194
Location: South Africa

PostPosted: Fri Jan 13, 2006 12:02 am    Post subject: Reply with quote

dev-lang/php is the "new" php ebuild while dev-php/php and dev-php/mod_php should not be installed. Obviously one of the ports listed as a dependency (I am guessing a PEAR package) is trying to install an old version of it self, who requires dev-php/php.

Read through these 2 links, it will tell you how to go about things with our new dev-lang/php and all our php ports:

http://svn.gnqs.org/projects/gentoo-php-overlay/file/docs/php-upgrading.html?format=raw
http://svn.gnqs.org/projects/gentoo-php-overlay/

If you don't have quite a bit of a clue what is going on at the moment with our new way of running with php, you are going to make life very difficult for yourself!
Back to top
View user's profile Send private message
AA
n00b
n00b


Joined: 29 Jul 2003
Posts: 59

PostPosted: Fri Jan 13, 2006 12:20 am    Post subject: Reply with quote

Got it soreted in the end by compiling each package individually.

USE flags were basically the problem.

Anyone else trying to do the same thing, when you compile them individually and if the package expect a specific use flag and you dont have it, it will tell you which use flags it is expecting.

Thanx for the advice Seather
Back to top
View user's profile Send private message
dopey
Apprentice
Apprentice


Joined: 10 Feb 2003
Posts: 235

PostPosted: Sat Jan 21, 2006 10:20 am    Post subject: Reply with quote

How did you resolve this with USE flags?

As far as I can tell, the problem is horde depends on the various PEAR-* packages. The current stable PEAR-* packages inherit php-pear.eclass. php-pear.eclass includes the following DEPEND line:
DEPEND="$DEPEND virtual/php dev-php/php"

This is causing it to depend on dev-php/php which is being blocked by dev-lang/php.
Back to top
View user's profile Send private message
AA
n00b
n00b


Joined: 29 Jul 2003
Posts: 59

PostPosted: Sat Jan 21, 2006 10:32 am    Post subject: Reply with quote

I was unable to unmerge an old version of php.
I then started emerging the packages required one at a time.
When I tried installing them one at a time I was able to tell which use flags I didnt use. that and because each package REQUIRES different use flags, try to emerge the whole group with the same use flags seemed to be causing problems.

If you are trying to do the same thing, run down the list generated by emerge --pretend one at a time and see for yourself.

I didn't really solve it I dont think, I think it's rather just a work around.
Back to top
View user's profile Send private message
palocortado
n00b
n00b


Joined: 09 Nov 2005
Posts: 2
Location: Jerez de la Frontera, SPAIN

PostPosted: Wed Feb 08, 2006 11:43 am    Post subject: Re: Issues unmerging old versions of php [SOLVED] Reply with quote

AA wrote:
Code:
bluepoint ~ # emerge horde
Calculating dependencies ...done!

!!! Error: the dev-lang/php package conflicts with another package.
!!!        both can't be installed on the same system together.
!!!        Please use 'emerge --pretend' to determine blockers.

luepoint ~ #
bluepoint ~ # emerge -p horde

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[blocks B     ] dev-lang/php (is blocking dev-php/mod_php-4.4.0-r9)
[blocks B     ] dev-lang/php (is blocking dev-php/php-4.4.0-r4)
[ebuild  N    ] app-admin/php-toolkit-1.0-r1
[ebuild  N    ] dev-lang/php-5.1.1  USE="berkdb bzip2 crypt curl exif gdbm gmp ipv6 mhash mysql ncurses nls pcre readline spell ssl truetype xml xpm zlib -apache -apache2 -bcmath -calendar -cdb -cgi -cjk -cli -ctype -curlwrappers -db2 -dba -dbase -debug -discard-path -doc -fastbuild -flatfile -force-cgi-redirect -ftp -gd -gd-external -hardenedphp -hyperwave-api -iconv -imap -inifile -interbase -iodbc -java-external -kerberos -ldap -libedit -mcve -memlimit -ming -msql -mssql -mysqli -oci8 -odbc -pcntl -pdo -pdo-external -pear -pic -posix -postgres -qdbm -recode -sapdb -sasl -session -sharedext -sharedmem -simplexml -snmp -soap -sockets -spl -sqlite -sysvipc -threads -tidy -tokenizer -vm-goto -vm-switch -wddx -xmlreader -xmlrpc -xsl -yaz -zip"
[ebuild  N    ] dev-php/PEAR-PEAR-1.3.6-r1
[ebuild  N    ] dev-php/PEAR-DB-1.7.6-r1
[ebuild  N    ] dev-php/PEAR-Log-1.9.3
[ebuild  N    ] dev-php/PEAR-Archive_Tar-1.3.2
[ebuild  N    ] dev-php/PEAR-Console_Getopt-1.2-r1
[ebuild  N    ] dev-php/PEAR-XML_RPC-1.4.4
bluepoint ~ # emerge --unmerge dev-lang/php

--- Couldn't find dev-lang/php to unmerge.

>>> unmerge: No packages selected for removal.

bluepoint ~ #


Hi friends!
dev-php/php is not consolidated and most of packages used by php are deprecated, masked or in conflict with dev-lang/php
In order to do an emerge world you should uninstall dev-php/php and dev-php/mod_php to install dev-lang/php
Is possible to have dev-php/ packages installed even with php and mod_php unemerged, so, the solution is:
equery list 'dev-php/'
unmerge dev-php/php
...
then unemerge all packages shown from last command, and edit (or create if you don't have it)
/etc/portage/package.use adding the next line
dev-lang/php -berkdb -gdbm cli apache2 ctype gd jpeg pcre png session truetype xml xsl zlib

If you have still more problems, try to add to /etc/portage/package.keywors all that has not been found by emerge world
and if there are more Blocking packages you can also add them to /etc/portage/package.mask

Finally, emerge dev-lang/php and forget dev-php/php
If you have some software which requires dev-php/php or dev-php/mod_php update your software or portage with emerge sync

See you,

Viva el Sherry, las Motos y la gente de Jerez!
Back to top
View user's profile Send private message
tomk
Bodhisattva
Bodhisattva


Joined: 23 Sep 2003
Posts: 7221
Location: Sat in front of my computer

PostPosted: Tue Feb 21, 2006 10:25 pm    Post subject: Reply with quote

Moved from Portage & Programming to Duplicate Threads, please see this topic.
_________________
Search | Read | Answer | Report | Strip
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum