Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 60495 - mail-client/squirrelmail needs testing w/ PHP 5
Summary: mail-client/squirrelmail needs testing w/ PHP 5
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Jeremy Huddleston (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 60438
  Show dependency tree
 
Reported: 2004-08-15 14:57 UTC by Stuart Herbert (RETIRED)
Modified: 2006-01-20 08:11 UTC (History)
5 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stuart Herbert (RETIRED) gentoo-dev 2004-08-15 14:57:42 UTC
Please test this package against PHP 5.0.1.  

If the package works, please add a comment to this bug to say that the package works, and close this bug as 'RESOLVED INVALID'.

If the package does not work, please add a blocker against 'virtual/php' (for dev-php/php) or 'virtual/httpd-php' (for mod_php or php-cgi) as appropriate, and close this bug as 'RESOLVED FIXED'.

Thanks,
Stu
Comment 1 Paul Varner (RETIRED) gentoo-dev 2004-08-16 18:26:37 UTC
I just did a fresh install of apache2 / PHP 5 / Squirrelmail.

I get the following error
Fatal error: Call to undefined function session_id() in /var/www/localhost/htdocs/squirrelmail/functions/global.php on line 293
Comment 2 Paul Varner (RETIRED) gentoo-dev 2004-08-16 19:34:52 UTC
As a quick sanity check, I umerged PHP5 and emerged PHP4. Squirrelmail worked correctly with PHP4 installed.
Comment 3 Stuart Herbert (RETIRED) gentoo-dev 2004-08-16 22:57:31 UTC
Don't forget to set the necessary USE flags for PHP 5 before testing.

Best regards,
Stu
Comment 4 Paul Varner (RETIRED) gentoo-dev 2004-08-17 07:53:19 UTC
So far no luck with USE flag settings - Here is what I have so far:

garath ~ # emerge -pv mod_php php

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

Calculating dependencies ...done!
[ebuild   R   ] dev-php/mod_php-5.0.1  -adabas +apache2 -bcmath +berkdb -birdstep -bzlib -calendar -cdb -cpdflib +crypt -ctype -curl -curlwrappers -db2 +dba -dbase -dbm -dbmaker -dbx -debug -dio -empress -empress-bcs -esoob -exif +fam -fdftk -filepro -flatfile -frontbase -ftp +gd -gd-external +gdbm -gmp -hyperwave-api -iconv -imap -informix -ingres -inifile -interbase -iodbc +jpeg -ldap -libedit -mcve -memlimit -mhash -mime -ming -mnogosearch -msession -msql -mssql -mysql -mysqli +ncurses -nis +nls -oci8 -odbc -oracle7 -ovrimos -pcntl -pcre -pfpro +png -posix -postgres -qdbm +readline -recode -sapdb -sasl -session -shared -sharedmem -simplexml -snmp -soap -sockets -solid +spell -spl -sqlite +ssl -sybase -sybase-ct -sysvipc -tidy +tiff -tokenizer +truetype -wddx +xml2 -xmlrpc -xpm -xsl +zlib 0 kB
[ebuild   R   ] dev-php/php-5.0.1  -adabas -bcmath +berkdb -birdstep -bzlib -calendar -cdb -cpdflib +crypt -ctype -curl -curlwrappers -db2 +dba -dbase -dbm -dbmaker -dbx -dio -empress -empress-bcs -esoob -exif +fam -fdftk -filepro -flatfile -frontbase -ftp +gd -gd-external +gdbm -gmp -hyperwave-api -iconv -imap -informix -ingres -inifile -interbase -iodbc +jpeg -ldap -libedit -mcve -memlimit -mhash -mime -ming -mnogosearch -msession -msql -mssql -mysql -mysqli +ncurses -nis +nls -oci8 -odbc -oracle7 -ovrimos -pcntl -pcre -pfpro +png -posix -postgres -qdbm +readline -recode -sapdb -sasl +session -shared -sharedmem -simplexml -snmp -soap -sockets -solid +spell -spl -sqlite +ssl -sybase -sybase-ct -sysvipc -tidy +tiff -tokenizer +truetype -wddx +xml2 -xmlrpc -xpm -xsl +zlib 0 kB
Comment 5 Paul Varner (RETIRED) gentoo-dev 2004-08-17 08:58:17 UTC
I found it, posting my info here helped me to see it.  I had added session to /etc/portage/package.use, but I had misspelled it for the mod_php entry.

Bottom line is squirrelmail requires the session USE flag to work correctly.
Comment 6 Tuan Van (RETIRED) gentoo-dev 2004-08-23 21:23:27 UTC
as comment #5 stated. Please add 'session dev-php/php dev-php/mod_php' to use.defaults so squirrelmail works.
Comment 7 Jeremy Huddleston (RETIRED) gentoo-dev 2004-09-05 15:53:46 UTC
stuart: We need a way for the php ebuilds to make sure certain php features are enabled... is there a way to do this?
Comment 8 Eldad Zack (RETIRED) gentoo-dev 2004-10-22 04:41:47 UTC
I wrote a check_useflag function for cacti:

check_useflag() {
        local my_pkg=$(best_version ${1})
        local my_flag=${2}

        if [[ $(grep -wo ${my_flag} /var/db/pkg/${my_pkg}/USE) ]]
        then
                return 0
        fi

        eerror "${my_pkg} was compiled without ${my_flag}. Please re-emerge it with USE=${my_flag}"
        die "check_useflag failed"

}

and invoke it at pkg_setup like this:

pkg_setup() {
        webapp_pkg_setup

        # Check if php, mod_php was emerged with mysql useflag

        check_useflag dev-php/php mysql
        check_useflag dev-php/mod_php mysql
}
Comment 9 Eldad Zack (RETIRED) gentoo-dev 2004-10-22 05:12:07 UTC
BTW, squirrelmail works just fine for me with php 5.0.1.

Comment 10 Janne Pikkarainen 2005-02-28 03:58:38 UTC
Works for me, too, although only handful of users are using it. Apache 2.0.52 + PHP 5.0.3 + SquirrelMail 1.4.4 + Cyrus 2.1.12 installed. :)
Comment 11 Eldad Zack (RETIRED) gentoo-dev 2005-05-08 01:33:11 UTC
built_with_use is in eutils for a long time.

Jeremy, want me to fix it?
Comment 12 gent_bz 2005-06-20 17:35:51 UTC
Was having problems with squirrelmail-1.4.4-r1 and mod_php-5.1.0_beta ("Cannot
re-assign $this...").   (Had success in the past with squirrelmail-1.4.4 and
mod_php-5.0.1 iirc)

Bumping squirrelmail to 1.4.5_rc1 and tweaking the ebuild ever so slighty
resolved the above problem for me.
Comment 13 VinnieNZ 2005-09-12 17:28:00 UTC
Using the new PHP5 overlay (dev-lang/php version 5.0.5 and apparently on 5.1)
breaks squirrelmail when connecting to an Imap server in file
squirrelmail/functions/imap_messages.php

Fix for anyone else who comes across this can be found here (fix currently at
very bottom of page):
http://www.squirrelmail.org/wiki/en_US/BrowseProblemsByPhpError

This makes it work fine (at least on my server anyway).
Comment 14 Sander van Vliet 2005-11-25 08:31:58 UTC
Squirrelmail works fine here since the first php-5 non-beta.
I've compiled dev-lang/php with the following use flags:
-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
+xml2 +xmlrpc -xpm +xsl -yaz -zip +zlib

and squirrelmail with:
+crypt +ldap +mysql +postgres +spell +ssl +vhosts +virus-scan
Comment 15 Jakub Moc (RETIRED) gentoo-dev 2006-01-20 08:11:34 UTC
Closing.