to compile app-misc/sphinx-0.9.8_rc1 with postgresql support the only needed package is dev-db/libpq, not whole dev-db/postgresql Reproducible: Always
Created attachment 147240 [details, diff] patch for app-misc/sphinx-0.9.8_rc.ebuild
fixed, thanks for the report