Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 286636 - www-apps/gallery: mysql USE should check require_php_with_any_use mysql mysqli
Summary: www-apps/gallery: mysql USE should check require_php_with_any_use mysql mysqli
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal
Assignee: Gentoo Web Application Packages Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-27 09:44 UTC by Stef Simoens
Modified: 2010-12-09 09:03 UTC (History)
0 users

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 Stef Simoens 2009-09-27 09:44:22 UTC
I only have php configured with USE mysqli (and not mysql)

Gallery works fine with only mysqli ... the ebuild should work with my configuration

Suggested change

--- gallery-2.3.ebuild~	2009-09-27 11:41:22.000000000 +0200
+++ gallery-2.3.ebuild	2009-09-27 11:41:22.000000000 +0200
@@ -30,16 +30,17 @@
 	confutils_require_any mysql postgres
 
 	local php_flags="pcre session"
-	use mysql && php_flags="${php_flags} mysql"
 	use postgres && php_flags="${php_flags} postgres"
 
 	if ! PHPCHECKNODIE="yes" require_php_with_use ${php_flags} || \
+			( use mysql && ! PHPCHECKNODIE="yes" require_php_with_any_use mysql mysqli ) || \
 			( use gd && ! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external ) ; then
 		eerror
 		eerror "${PHP_PKG} needs to be re-installed with all of the following USE flags enabled:"
 		eerror
 		eerror "${php_flags}"
 		eerror
+		use mysql && eerror "as well as with either mysql or mysqli USE flag enabled."
 		use gd && eerror "as well as with either gd or gd-external USE flag enabled."
 		die "Re-install ${PHP_PKG}."
 	fi


Reproducible: Always

Steps to Reproduce:
1. USE="-mysql mysqli" emerge php
2. USE="mysql" emerge gallery

Actual Results:  
Build error : php needs USE="mysql"

Expected Results:  
No build error
Comment 1 Tim Harder gentoo-dev 2010-12-09 09:03:02 UTC
Fixed in gallery-2.3.1 in CVS.