[Bug 1577916] Re: Missing dependencies

Nish Aravamudan nish.aravamudan at canonical.com
Thu Jun 30 22:48:52 UTC 2016


On 30.06.2016 [22:17:28 -0000], Jeremy Bicha wrote:
> nacc, why didn't you make libapache2-mod-php preferred in the latest
> php7.0 upload for xenial?
>
> How many php apps does the libapache issue affect? If it's a lot (or
> most or all), shouldn't the change just be made in php7.0?
> 
> Because for drupal I added a dependency on php-xml (just like here) but
> did not add the libapache2 dependency.

Well, here's the thing, there's not a good answer, afaict. Debian (and
16.10) have changed the order around. Maybe that would be the principle
of least surprise. But then we'll immediately get complaints from the
nginx crowd that installing 'php' pulls in apache2 by default (simple
workaround there, just like here, is to specify 'php php-fpm' during
installation and use nginx with FPM).

I'm not sure how many applications the change of default affects. I was
trying to focus on getting known bugfixes through, and changing the
packaging in a release version of Ubuntu was riskier than I could
justify immediately. In particular, I need to think about what might
break (I don't think anything) for those people already running 16.04.
Beause what might happen if we change the order is that upgraders and
fresh installers will have different configurations and that will result
in its own set of bugs.

-Nish

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1577916

Title:
  Missing dependencies

Status in ganglia-web package in Ubuntu:
  In Progress
Status in ganglia-web source package in Xenial:
  In Progress
Status in ganglia-web package in Debian:
  Unknown

Bug description:
  [Impact]

   * After installing ganglia-webfrontend, no frontend displays at
  http://<ip>/ganglia even if the instructions in /usr/share/doc
  /ganglia-webfrontend/README.Debian are followed.

   * On 16.04, php-fpm is the first listed dependency for the php
  metapackage. There is no FPM configuration for ganglia and in fact it
  is only designed to work with libapache2-mod-php from apache (as far
  as I can tell). Indicate this in the dependencies. In 16.10, for
  reference, the php dependency order has changed (so libapache2-mod-php
  is preferred).

   * Also, php-xml is now split out from the core and ganglia-
  webfrontend needs to explicitly indicate this dependency.

  [Test Case]

   * Install ganglia-webfrontend. Follow the instructions at
  /usr/share/doc/ganglia-webfrontend/README.Debian to enable the apache
  configuration.

   * Navigate to http://<ip>/ganglia

   * Without the fixes, raw PHP is displayed (as php-fpm is being used
  to service PHP requests instead of mod_php7.0). With the fixes, the
  ganglia web interface is displayed.

  [Regression Potential]

   * The php-xml change has no chance of regression, as the current
  package errors out otherwise.

   * The dependency order change might have some chance of regression,
  *if* a user has configured php-fpm correctly to service ganglia-
  webfrontend. However, this is non-standard and probably implies that
  user is not using the Debian-provided configuration. In that specific
  case, as well, I believe installing this newer package will have no
  impact to their base, as php7.0-fpm satisfies php7.0 satisfies php
  (which is still an alternative in the affected Depends line).

  
  ganglia-webfrontend depends on libapache2-mod-php7.0 and on php7.0-xml but it is not in the Depends: section in control.

  This leads to errors `Sorry, you do not have access to this resource.
  "); } try { $dwoo = new Dwoo($conf['dwoo_compiled_dir'],
  $conf['dwoo_cache_dir']); } catch (Exception $e) { print " ...`

  Installing these 2 dependencies fixes it.

  1) lsb_release -rd
  Description:	Ubuntu 16.04 LTS
  Release:	16.04

  2) apt-cache policy ganglia-webfrontend
  ganglia-webfrontend:
    Installed: 3.6.1-1ubuntu1
    Candidate: 3.6.1-1ubuntu1
    Version table:
   *** 3.6.1-1ubuntu1 500
          500 http://ubuntu.thayer.dartmouth.edu xenial/universe amd64 Packages
          500 http://ubuntu.thayer.dartmouth.edu xenial/universe i386 Packages
          100 /var/lib/dpkg/status

  3) I expected the dependencies to be installed

  4) The dependencies were missing, it was difficult for me to debug
  because I am not a php guy. Got help from 'vvuksan' on irc.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ganglia-web/+bug/1577916/+subscriptions



More information about the Ubuntu-sponsors mailing list