Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129488 - php with postgresql and threads requires libpq built with threads USE flag
Summary: php with postgresql and threads requires libpq built with threads USE flag
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on: 120190
Blocks:
  Show dependency tree
 
Reported: 2006-04-10 08:37 UTC by Chris Bainbridge (RETIRED)
Modified: 2007-09-23 00:12 UTC (History)
1 user (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 Chris Bainbridge (RETIRED) gentoo-dev 2006-04-10 08:37:17 UTC
php with postgresql and threads requires libpq built with threads USE flag.
Comment 1 Luca Longinotti (RETIRED) gentoo-dev 2006-04-18 05:55:20 UTC
Fixed with an additional check to the PHP eclasses:

php_check_pgsql() {
	if useq "postgres" \
	&& useq "apache2" && useq "threads" \
	&& has_version ">=dev-db/libpq-8.1.3-r1" \
	&& ! built_with_use ">=dev-db/libpq-8.1.3-r1" "threads" ; then
		eerror
		eerror "You must build dev-db/libpq with the 'threads' USE flag"
		eerror "turned on if you want to build PHP with threads support!"
		eerror
		die "Rebuild dev-db/libpq with 'threads' USE flag enabled"
	fi
}

It checks for both use "apache2" and "threads" in PHP, as only if both are enabled, PHP is compiled with thread-safety/support enabled. It also checks for the libpq version, since I've seen that only >=libpq-8.1.3-r1 has the "threads" USE flag/support.
Best regards, CHTEKK.