I'm trying to set up a separate machine exclusively for php-fpm. PHP need to have postgres support in PHP, so it need to be compiled with "--with-pdo-pgsql" flag. I've added this line to my /etc/portage/package.use/php file:

dev-lang/php postgres

Now emerge -av php wants to install also whole PostgreSQL database engine, which is completely useless for my use case.

I've tried to put dev-db/postgresql into package.mask, but now I can't install PHP at all. Is there any way to omit this particular package when building PHP with --with-pdo-pgsql flag?

share|improve this question
    
You miss the point of a USE Flag. In order for --with-pdo-pgsql to pass the configure phase dev-db/postgresql must be installed, as the postgresql executable and libraries are linked against at compile time. This is standard behavior. – eyoung100 Sep 6 '16 at 16:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.