Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 286636

Summary: www-apps/gallery: mysql USE should check require_php_with_any_use mysql mysqli
Product: Gentoo Linux Reporter: Stef Simoens <stef.simoens>
Component: New packagesAssignee: Gentoo Web Application Packages Maintainers <web-apps>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---

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.