phpmyadmin requires php5-gettext cannot install with php 7.0

Bug #1555012 reported by Angel Guzman Maeso
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
phpmyadmin (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I am trying to install phpmyadmin with php7.0 but it requires as dependancy php5-gettext, so it is impossible to install it

ProblemType: Bug
DistroRelease: Ubuntu 16.04
Package: phpmyadmin (not installed)
ProcVersionSignature: Ubuntu 4.4.0-11.26-generic 4.4.4
Uname: Linux 4.4.0-11-generic x86_64
ApportVersion: 2.20-0ubuntu3
Architecture: amd64
CurrentDesktop: Unity
Date: Wed Mar 9 11:19:27 2016
InstallationDate: Installed on 2014-05-08 (670 days ago)
InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release amd64 (20140417)
SourcePackage: phpmyadmin
UpgradeStatus: No upgrade log present (probably fresh install)

Revision history for this message
Angel Guzman Maeso (shakaran) wrote :
summary: - phpmyadmin require php5-gettext cannot install with php 7.0
+ phpmyadmin requires php5-gettext cannot install with php 7.0
Revision history for this message
Michal Čihař (nijel) wrote :

Eh, I don't see any dependency on php5-gettext in phpMyAdmin, it's only on php-gettext.

It's not phpMyAdmin package which forces PHP 5, the package depends alternatively on PHP 5 and 7.0. Probably it's one of it's dependencies, so better ask their maintainers for fix.

Following deps packaging is not yet ready for PHP 7.0:

- php-phpseclib (should not matter for phpMyAdmin PPA package as it embeds this library)
- php-tcpdf (recommended, so it should be possible to install without it)

The php-gettext was fixed in December to depend on unversioned php-pear, so I don't see problem in this either.

Revision history for this message
Angel Guzman Maeso (shakaran) wrote :

Hi Michal, thanks for your reply.

I try to generate the dependency graph with the following commands:

debtree phpmyadmin --no-alternatives > phpmyadmin.dot
dot -Tpng phpmyadmin.dot -o phpmyadmin.png

As far I see the php-phpseclib depends of php5-common and this from php5-mhash
phpmyadmin has too the php5-mysql dependency which has too with php5-mysqi and php5-mysqlnd
phpmyadmin has too the php5-gd
php-tpdf has dependency with php5-gd and php5-mcrypt
Another problem is the libapache2-mod-php5 that depends of libapache2-mod-php5filter and php5-cli and php5-cli depends of php5-readline and php5-json

So as far I see there are enough dependencies that avoid install phpmyadmin for php7.0 instead php5

So which is the first step for solve this? Request to upstream of that packages to fix properly in debian?

Revision history for this message
Michal Čihař (nijel) wrote :

Please note that all phpmyadmin PHP dependecies have alternatives for 5.5 and 7.0, so the only problem are external libs as I've written before. It's problem in the debian packaging, both packages work fine with 7.0.

Revision history for this message
Michal Čihař (nijel) wrote :

I've just uploaded packages which prefer PHP 7.0, so even with --no-alternatives the output could be better now (though the problem with phpseclib still remains).

I'm also reporting bug on the mentioned Debian packages:

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=817271

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=817272

Changed in phpmyadmin (Ubuntu):
status: New → Fix Released
Revision history for this message
Alex (normadize) wrote :

The problem is actually with php-tcpdf <-- it's this one that installs php5 packages. I just reported a bug and fix up to Xenial

https://bugs.launchpad.net/ubuntu/+source/tcpdf/+bug/1562046

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.