Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
PEAR-PEAR needs php-5?
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
uraes
Tux's lil' helper
Tux's lil' helper


Joined: 28 Nov 2002
Posts: 120
Location: Estonia

PostPosted: Fri Jan 20, 2006 3:57 pm    Post subject: PEAR-PEAR needs php-5? Reply with quote

Code:

# emerge -p dev-php/PEAR-PEAR

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

Calculating dependencies ...done!
[blocks B     ] dev-php/PEAR-Archive_Tar (is blocking dev-php/PEAR-PEAR-1.3.6-r4)
[blocks B     ] dev-php/PEAR-Console_Getopt (is blocking dev-php/PEAR-PEAR-1.3.6-r4)
[blocks B     ] dev-php/mod_php (is blocking dev-lang/php-5.0.5-r5)
[blocks B     ] dev-php/php (is blocking dev-lang/php-5.0.5-r5)
[blocks B     ] dev-php/PEAR-XML_RPC (is blocking dev-php/PEAR-PEAR-1.3.6-r4)
[blocks B     ] <dev-php/PEAR-PEAR-1.3.6-r2 (is blocking dev-php/PEAR-PEAR-1.3.6-r4)
[blocks B     ] dev-php/mod_php (is blocking dev-php/PEAR-PEAR-1.3.6-r4)
[blocks B     ] dev-php/php (is blocking dev-php/PEAR-PEAR-1.3.6-r4)
[ebuild  N    ] app-admin/php-toolkit-1.0-r2
[ebuild  N    ] dev-lang/php-5.0.5-r5
[ebuild     U ] dev-php/PEAR-PEAR-1.3.6-r4 [1.3.5]


..but I have php-4 and I NEED it, not php-5. What to do now, disable pear-pear version update?
Back to top
View user's profile Send private message
llongi
Retired Dev
Retired Dev


Joined: 15 Apr 2004
Posts: 459
Location: Switzerland

PostPosted: Fri Jan 20, 2006 5:17 pm    Post subject: Reply with quote

http://blog.stuartherbert.com/gentoo.php/2006/01/20/gentoo_s_dev_lang_php_packages_being_sta and http://chtekk.longitekk.com/?p=11

Basically, to use the new PEAR-PEAR migrate to dev-lang/php, wich offers both PHP4 and PHP5, you can choose wich to install (and install both too). See the links above for other links to guides etc.!
_________________
Best regards, Luca.
Back to top
View user's profile Send private message
zidour
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2004
Posts: 103

PostPosted: Fri Jan 20, 2006 6:12 pm    Post subject: Reply with quote

CHTEKK, thanks for the links. But anyway, there is something wrong with PHP ebuilds in Gentoo...

Code:

# emerge -pvDu world

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

Calculating world dependencies ...done!
[blocks B     ] dev-php/mod_php (is blocking dev-lang/php-5.0.5-r5)
[blocks B     ] media-libs/libswf (is blocking dev-lang/php-5.0.5-r5)
[blocks B     ] dev-php/php (is blocking dev-lang/php-5.0.5-r5)
[blocks B     ] dev-php/mod_php (is blocking dev-php/PEAR-PEAR-1.3.6-r4)
[blocks B     ] dev-php/php (is blocking dev-php/PEAR-PEAR-1.3.6-r4)
[ebuild     U ] sys-apps/baselayout-1.11.14-r2 [1.11.14-r1] -bootstrap -build -static +unicode 0 kB
[ebuild     U ] kde-base/kdelibs-3.4.3-r1 [3.4.3] +alsa +arts +cups -debug -doc +jpeg2k -kdeenablefinal -kerberos -openexr +spell +ssl +tiff -xinerama -zeroconf 0 kB
[ebuild     U ] net-www/mplayerplug-in-3.17 [3.15] -gecko-sdk +gtk 199 kB
[ebuild  N    ] media-libs/libswf-0.99  0 kB
[ebuild  N    ] dev-php/mod_php-4.4.0-r9  +X +apache2 +berkdb +crypt -curl -debug -doc -fdftk +firebird +flash -freetds +gd -gd-external +gdbm -gmp -hardenedphp +imap -informix -ipv6 +java +jpeg -kerberos -ldap -mcal -memlimit -mssql +mysql +nls -oci8 -odbc +pam +png -postgres -snmp +spell +ssl +tiff +truetype +xml2 -yaz 0 kB
[ebuild  N    ] dev-php/php-4.4.0-r4  +X +berkdb +crypt -curl -debug -doc -fdftk +firebird +flash -freetds +gd -gd-external +gdbm -gmp -hardenedphp +imap -informix -ipv6 +java +jpeg -kerberos -ldap -mcal -memlimit -mssql +mysql +ncurses +nls -oci8 -odbc +pam +png -postgres +readline -snmp +spell +ssl +tiff +truetype +xml2 -yaz 0 kB
[ebuild     UD] dev-tex/pgf-0.64-r1 [0.65-r1] 356 kB
[ebuild     UD] dev-tex/latex-beamer-3.00-r1 [3.01-r1] 2,482 kB
[ebuild     U ] app-admin/logrotate-3.7.1-r2 [3.7.1-r1] (-selinux) 0 kB
[ebuild  N    ] dev-lang/php-5.0.5-r5  -adabas -apache +apache2 -bcmath +berkdb -birdstep +bzip2 -calendar -cdb -cgi -cjk -cli +crypt -ctype -curl -curlwrappers -db2 +dba -dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob +exif -fdftk -filepro +firebird -flatfile -force-cgi-redirect -frontbase -ftp +gd -gd-external +gdbm -gmp -hardenedphp -hyperwave-api -iconv +imap -informix -inifile -interbase -iodbc -ipv6 -java-external -kerberos -ldap -libedit -mcve -memlimit +mhash +ming -mnogosearch -msql -mssql +mysql -mysqli +ncurses +nls -oci8 -oci8-instant-client -odbc -oracle7 -ovrimos -pcntl +pcre -pdo-external -pear -pfpro -pic -posix -postgres -qdbm +readline -recode -sapdb -sasl -session -sharedext -sharedmem -simplexml -snmp -soap -sockets -solid +spell -spl +sqlite +ssl -sybase -sybase-ct -sysvipc -threads -tidy +tiff -tokenizer +truetype -wddx -xml -xmlrpc -xpm -xsl -yaz -zip +zlib 0 kB
[ebuild  N    ] dev-php/PEAR-PEAR-1.3.6-r4  150 kB


But according to me, blockers are not installed...
Code:

# equery list dev-php/mod_php
[ Searching for package 'mod_php' in 'dev-php' among: ]
 * installed packages
# equery list media-libs/libswf
[ Searching for package 'libswf' in 'media-libs' among: ]
 * installed packages
# equery list dev-php/php
[ Searching for package 'php' in 'dev-php' among: ]
 * installed packages
#             


Moreover, the new php can be installed separately:
Code:

# emerge -pv '=dev-lang/php-4*' '=dev-lang/php-5*'

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

Calculating dependencies ...done!
[ebuild  N    ] dev-lang/php-4.4.1-r3  -adabas -apache +apache2 -bcmath +berkdb -birdstep +bzip2 -calendar -cdb -cgi -cjk -cli +crypt -ctype -curl -db2 +dba -dbase -dbmaker -dbx -debug -discard-path -doc -empress -empress-bcs -esoob +exif +expat -fastbuild -fdftk -filepro +firebird -flatfile -force-cgi-redirect -frontbase -ftp +gd -gd-external +gdbm -gmp -hardenedphp -hyperwave-api -iconv +imap -informix -inifile -interbase -iodbc -ipv6 -java-external -java-internal -kerberos -ldap -libedit -mcal -mcve -memlimit +mhash +ming -mnogosearch -msql -mssql +mysql +ncurses +nls -oci8 -oci8-instant-client -odbc -oracle7 -overload -ovrimos -pcntl +pcre -pear -pfpro -pic -posix -postgres +readline -recode -sapdb -session -sharedext -sharedmem -snmp -sockets -solid +spell +sqlite +ssl -sybase -sybase-ct -sysvipc -threads +tiff -tokenizer +truetype -wddx -xml -xmlrpc -xpm -xsl -yaz -zip +zlib 0 kB
[ebuild  N    ] dev-lang/php-5.0.5-r5  -adabas -apache +apache2 -bcmath +berkdb -birdstep +bzip2 -calendar -cdb -cgi -cjk -cli +crypt -ctype -curl -curlwrappers -db2 +dba -dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob +exif -fdftk -filepro +firebird -flatfile -force-cgi-redirect -frontbase -ftp +gd -gd-external +gdbm -gmp -hardenedphp -hyperwave-api -iconv +imap -informix -inifile -interbase -iodbc -ipv6 -java-external -kerberos -ldap -libedit -mcve -memlimit +mhash +ming -mnogosearch -msql -mssql +mysql -mysqli +ncurses +nls -oci8 -oci8-instant-client -odbc -oracle7 -ovrimos -pcntl +pcre -pdo-external -pear -pfpro -pic -posix -postgres -qdbm +readline -recode -sapdb -sasl -session -sharedext -sharedmem -simplexml -snmp -soap -sockets -solid +spell -spl +sqlite +ssl -sybase -sybase-ct -sysvipc -threads -tidy +tiff -tokenizer +truetype -wddx -xml -xmlrpc -xpm -xsl -yaz -zip +zlib 0 kB

Total size of downloads: 0 kB
#   


Am I missing something?
Back to top
View user's profile Send private message
llongi
Retired Dev
Retired Dev


Joined: 15 Apr 2004
Posts: 459
Location: Switzerland

PostPosted: Fri Jan 20, 2006 6:25 pm    Post subject: Reply with quote

Hrmmm I think the case may be the following: at the moment the default for the virtual/php package is to still use mod_php, now it would look like a pacakge on your system is trying to install dev-php/mod_php, wich tries to install dev-php/php. Now, since it also tries to install the newest PEAR-PEAR, wich depends on dev-lang/php, it tries in the end to install both old and new style PHP, resulting in the blocker.
Please post the output of 'emerge -pDuvt world' here, so we can see what requires dev-php/{mod_}php and try to fix that. :)
_________________
Best regards, Luca.
Back to top
View user's profile Send private message
zidour
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2004
Posts: 103

PostPosted: Fri Jan 20, 2006 6:36 pm    Post subject: Reply with quote

Code:

# emerge -pDuvt world

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

Calculating world dependencies ...done!
[blocks B     ] dev-php/php (is blocking dev-php/PEAR-PEAR-1.3.6-r4)
[blocks B     ] dev-php/mod_php (is blocking dev-php/PEAR-PEAR-1.3.6-r4)
[blocks B     ] dev-php/php (is blocking dev-lang/php-5.0.5-r5)
[blocks B     ] media-libs/libswf (is blocking dev-lang/php-5.0.5-r5)
[blocks B     ] dev-php/mod_php (is blocking dev-lang/php-5.0.5-r5)
[nomerge      ] dev-php/PEAR-Auth-1.2.3
[ebuild  N    ]  dev-php/PEAR-PEAR-1.3.6-r4  0 kB
[ebuild  N    ]   dev-lang/php-5.0.5-r5  -adabas -apache +apache2 -bcmath +berkdb -birdstep +bzip2 -calendar -cdb -cgi -cjk +cli +crypt -ctype -curl -curlwrappers -db2 +dba -dbase -dbmaker -debug -discard-path -doc -empress -empress-bcs -esoob +exif -fdftk -filepro +firebird -flatfile -force-cgi-redirect -frontbase -ftp +gd -gd-external +gdbm -gmp -hardenedphp -hyperwave-api -iconv +imap -informix -inifile -interbase -iodbc -ipv6 -java-external -kerberos -ldap -libedit -mcve -memlimit +mhash +ming -mnogosearch -msql -mssql +mysql -mysqli +ncurses +nls -oci8 -oci8-instant-client -odbc -oracle7 -ovrimos -pcntl +pcre -pdo-external -pear -pfpro -pic -posix -postgres -qdbm +readline -recode -sapdb -sasl -session -sharedext -sharedmem -simplexml -snmp -soap -sockets -solid +spell -spl +sqlite +ssl -sybase -sybase-ct -sysvipc -threads -tidy +tiff -tokenizer +truetype -wddx -xml -xmlrpc -xpm -xsl -yaz -zip +zlib 0 kB
[ebuild  N    ]    app-admin/php-toolkit-1.0-r2  0 kB
[ebuild  N    ] dev-php/php-4.4.0-r4  +X +berkdb +crypt -curl -debug -doc -fdftk +firebird +flash -freetds +gd -gd-external +gdbm -gmp -hardenedphp +imap -informix -ipv6 +java +jpeg -kerberos -ldap -mcal -memlimit -mssql +mysql +ncurses +nls -oci8 -odbc +pam +png -postgres +readline -snmp +spell +ssl +tiff +truetype +xml2 -yaz 0 kB
[ebuild  N    ]  dev-php/mod_php-4.4.0-r9  +X +apache2 +berkdb +crypt -curl -debug -doc -fdftk +firebird +flash -freetds +gd -gd-external +gdbm -gmp -hardenedphp +imap -informix -ipv6 +java +jpeg -kerberos -ldap -mcal -memlimit -mssql +mysql +nls -oci8 -odbc +pam +png -postgres -snmp +spell +ssl +tiff +truetype +xml2 -yaz 0 kB
[ebuild  N    ]   media-libs/libswf-0.99  0 kB
[ebuild     U ] net-www/mplayerplug-in-3.17 [3.15] -gecko-sdk +gtk 199 kB
[nomerge      ] kde-base/korganizer-3.4.3  +arts -debug -kdeenablefinal -kdexdeltas -xinerama
[nomerge      ]  kde-base/libkholidays-3.4.3  +arts -debug -kdeenablefinal -kdexdeltas -xinerama
[ebuild     U ]   kde-base/kdelibs-3.4.3-r1 [3.4.3] +alsa +arts +cups -debug -doc +jpeg2k -kdeenablefinal -kerberos -openexr +spell +ssl +tiff -xinerama -zeroconf 0 kB

Total size of downloads: 199 kB
#


I don't know if there is something interesting in this output... but anyway, here it is... And thanks.
Back to top
View user's profile Send private message
llongi
Retired Dev
Retired Dev


Joined: 15 Apr 2004
Posts: 459
Location: Switzerland

PostPosted: Fri Jan 20, 2006 11:34 pm    Post subject: Reply with quote

The PEAR ebuilds all need to be added to package.keywords for now (only PEAR-PEAR itself does not need this), in your case for example PEAR-Auth. Please see https://bugs.gentoo.org/show_bug.cgi?id=119722 for progress on this, sorry for the inconvenience.
_________________
Best regards, Luca.
Back to top
View user's profile Send private message
zidour
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2004
Posts: 103

PostPosted: Fri Jan 20, 2006 11:51 pm    Post subject: Reply with quote

CHTEKK wrote:
Hrmmm I think the case may be the following: at the moment the default for the virtual/php package is to still use mod_php, now it would look like a pacakge on your system is trying to install dev-php/mod_php, wich tries to install dev-php/php


OK, you are right... I did some research and it seems to me that the problems are caused by
Code:

dev-php/PEAR-Auth-1.2.3
dev-php/PEAR-DB-1.7.6
dev-php/PEAR-HTML_Common-1.2.1

packages, which I have installed. After unmerging them the blockers disappeared. Unfortunately I nedd PEAR-DB, so I emerged it again with --nodeps option. It seems to work fine.

May be it has something to do with the folowing lines in the /usr/portage/eclass/php-pear.eclass file, which is inherited in the PEAR-DB ebuild:

Code:

# We must depend on the virtual as well as the base package as we need it to do
# install tasks (it provides the pear binary).
DEPEND="$DEPEND virtual/php dev-php/php"
RDEPEND="$RDEPEND $DEPEND"


On the other hand, this code is NOT inherited in the PEAR-PEAR ebuild. There is an explicit dev-lang/php dependence instead (and dev-php/php blocker).

In my opinion, there is a bug in /usr/portage/eclass/php-pear.eclass. What do you think?
Back to top
View user's profile Send private message
llongi
Retired Dev
Retired Dev


Joined: 15 Apr 2004
Posts: 459
Location: Switzerland

PostPosted: Sat Jan 21, 2006 12:06 am    Post subject: Reply with quote

As I mentioned earlier this is not a bug, just a little bit of bad timing on our part. :) The PEAR packages marked as unstable (~ARCH) are those compatible with dev-lang/php, generally speaking the -r1 versions, for example dev-php/PEAR-Auth-1.2.3-r1 works with dev-lang/php correctly, dev-php/PEAR-Auth-1.2.3 does not and only works with the old dev-php/{mod}_php, this is expected and intended to be like that. Just add the needed PEAR packages to your package.keywords and the problem will fix itself, and/or wait till the arch-teams can stable the needed PEAR packages (see the bug I mentioned above).
_________________
Best regards, Luca.
Back to top
View user's profile Send private message
zidour
Tux's lil' helper
Tux's lil' helper


Joined: 29 Apr 2004
Posts: 103

PostPosted: Sat Jan 21, 2006 12:25 am    Post subject: Reply with quote

I am sorry, I did not read your previous post before submitting mine...
Back to top
View user's profile Send private message
skunkworx
Guru
Guru


Joined: 02 Feb 2003
Posts: 420
Location: Planet Houston

PostPosted: Tue Jan 24, 2006 1:52 am    Post subject: Reply with quote

CHTEKK wrote:
http://blog.stuartherbert.com/gentoo.php/2006/01/20/gentoo_s_dev_lang_php_packages_being_sta and http://chtekk.longitekk.com/?p=11

Basically, to use the new PEAR-PEAR migrate to dev-lang/php, wich offers both PHP4 and PHP5, you can choose wich to install (and install both too). See the links above for other links to guides etc.!


CHTEKK, the first link supposedly links to a set of migration instructions, but that link 404's on me. I'm looking elsewhere for those instructions, but would you have an idea of where they can be found? Thanks!

Edit: A-ha, found it!
_________________
Proud to be a... eh, forget it.

"Everyday is just one day." -- not the Traveling Wilburys
Back to top
View user's profile Send private message
andreask
Apprentice
Apprentice


Joined: 09 Sep 2003
Posts: 282
Location: Aachen, Germany

PostPosted: Mon Jan 30, 2006 7:02 pm    Post subject: Reply with quote

skunkworx wrote:
CHTEKK, the first link supposedly links to a set of migration instructions, but that link 404's on me. I'm looking elsewhere for those instructions, but would you have an idea of where they can be found?

I added dummy pages to the SVN again, which point people to the new PHP Herd Projekt Page: http://www.gentoo.org/proj/en/php/
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