PHPUnit depends on Apache
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| | One Hundred Papercuts |
Low
|
Unassigned | ||
| | phpunit (Ubuntu) |
Low
|
Unassigned | ||
Bug Description
When I try to install phpunit, it also wants to install apache2 server.
It's because phpunit depends on php-text-template and php-text-template depends on php5 not php5-cli.
I think php-text-template should depend on php5-cli and/or phpunit shouldn't depend on php-text-template at all.
It must be possible to install phpunit without apache2 server.
Ubuntu 14.04 LTS
PHPUnit 3.7.28-1
| no longer affects: | selenium-zoetrope |
| Hans Joachim Desserud (hjd) wrote : | #2 |
Thanks for taking your time to report this issue and help making Ubuntu better.
I looked into this and have found the following:
Starting with Ubuntu 14.10, php-text-template depends on php5-common instead of php5 [1]. So that dependency is fixed.
Though I attempted to install phpunit on Ubuntu 14.10 and it would still install apache2 alongside. Skimmed over few of the other dependencies and looks like at least php-file-iterator has a dependency on php5 [2]. There might be others too. However, php-file-iterator has been changed to depend on php5-common on Ubuntu Vivid [3].
So I checked with Ubuntu Vivid, and there it is possible to install phpunit without getting apache2 at the same time. (It is still listed among suggested packages, but those are optional.)
So, in summary, this issue is fixed in newer releases of Ubuntu which makes it Fixed Released. In some cases it is possible to apply the fix for older releases but that seems to be harder here as it spans multiple packages and newer versions of them.
[1] http://
[2] http://
[3] http://
| tags: | added: trusty utopic |
| Changed in hundredpapercuts: | |
| status: | New → Confirmed |
| Changed in phpunit (Ubuntu): | |
| importance: | Undecided → Low |
| Changed in hundredpapercuts: | |
| importance: | Undecided → Low |
| Joern Heissler (joernheissler) wrote : | #3 |
Will this be fixed in trusty?
As a workaround, php5-cgi can be installed. Shouldn't hurt too much.
| Nish Aravamudan (nacc) wrote : | #4 |
I am not sure this qualifies as an SRU candidate. The newer versions of Ubuntu have this fixed, and it's not so much a bug as an annoyance (in some sense). And there is (IMO, valid) workaround (`apt-get install phpunit php5-cgi`).
I believe the php-text-template change in 14.10 mentioned in #c2 is not a source change to php-text-template, but a change in dh_phpcomposer (from pkg-php-tools). Changing pkg-php-tools (and rebuilding affected packages) is a much larger change, and I don't think it would qualify for SRU either.
| Hans Joachim Desserud (hjd) wrote : | #5 |
Nish: Oh, I didn't consider that. If it is indeed a result of changes in the packaging tools, that's an even larger impact. I guess that would likely be considered too large and risky for an SRU.
Oh, and I'm marking this as Fix released since it has been resolved in newer releases. (Not sure why I didn't with my previous comment)
| Changed in phpunit (Ubuntu): | |
| status: | Confirmed → Fix Released |
| Changed in hundredpapercuts: | |
| status: | Confirmed → Fix Released |


Status changed to 'Confirmed' because the bug affects multiple users.