Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 419835 - virtual/httpd-php suggests dev-lang/php[apache2] first
Summary: virtual/httpd-php suggests dev-lang/php[apache2] first
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: PHP Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-06-06 02:22 UTC by schmitt953
Modified: 2012-08-01 13:08 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 schmitt953 2012-06-06 02:22:04 UTC
Roundcube pulls in apache as a dependancy while roundcube can also work on nginx with fastcgi and php. It may be better to have an apache2 useflag and an nginx use flag for roundcube.
Comment 1 Michael Orlitzky gentoo-dev 2012-06-06 03:28:28 UTC
Roundcube doesn't have apache as a direct dependency. Instead, it pulls virtual/httpd-php, and that has a dependency on any of the following:

  * dev-lang/php[apache2]
  * dev-lang/php[cgi]
  * dev-lang/php[fpm]

So, if you have php[cgi] or php[fpm] emerged (necessary for e.g. nginx), it shouldn't pull apache.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2012-06-06 04:01:45 UTC
virtual/httpd-php
Comment 3 schmitt953 2012-06-06 15:12:02 UTC
I tried USE="-apache2" emerge roundcube and it told me I needed to enable the apache2 use flag.
Comment 4 Michael Orlitzky gentoo-dev 2012-06-06 15:25:48 UTC
(In reply to comment #3)
> I tried USE="-apache2" emerge roundcube and it told me I needed to enable
> the apache2 use flag.

Indeed! I set php[-apache2] in package.use:

  The following USE changes are necessary to proceed:
  #required by virtual/httpd-php-5.3, required by mail-client/roundcube-0.7.2, 
  required by roundcube (argument)
  =dev-lang/php-5.3.10 apache2

I expected it to suggest all three.
Comment 5 schmitt953 2012-06-06 16:40:08 UTC
I looked at the ebuild for roundcube it does not mention apache. I think it may be in one of the PEAR ebuilds. I'll take a look--shall we mark this bug as confirmed?
Comment 6 Michael Orlitzky gentoo-dev 2012-06-06 16:48:28 UTC
(In reply to comment #5)
> I looked at the ebuild for roundcube it does not mention apache. I think it
> may be in one of the PEAR ebuilds. I'll take a look--shall we mark this bug
> as confirmed?

It's virtual/httpd-php that's pulling apache in.
Comment 7 Michael Orlitzky gentoo-dev 2012-06-06 16:50:12 UTC
(In reply to comment #6)
> 
> It's virtual/httpd-php that's pulling apache in.

To clarify:

It's not pulling apache directly, but makes you set one of several PHP USE flags, the first of which is 'apache2'. It looks to me like portage only suggests the first USE flag that would satisfy the requirement.
Comment 8 schmitt953 2012-06-08 07:14:05 UTC
So how do we fix this?
Comment 9 Ole Markus With (RETIRED) gentoo-dev 2012-08-01 13:08:05 UTC
There is nothing here that needs to be fixed. Add fpm to the php USE flags and you should be good.