Bug 128889 - databases/phpmyadmin should not install if you run MySQL version older than 5.0.15
Summary: databases/phpmyadmin should not install if you run MySQL version older than 5...
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Martin Wilke
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-11-15 16:10 UTC by Till Klampaeckel
Modified: 2008-11-22 22:50 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Till Klampaeckel 2008-11-15 16:10:05 UTC
databases/phpmyadmin installs even though we are still using MySQL 4.1.

However, when I try to access it as usual, I am presented with the following error: You should upgrade to MySQL 5.0.15 or later.

Fix: 

This quickfix is to install databases/phpmyadmin211, or of course to update to databases/mysql50-*.

But the port's Makefile should require mysql/50 at least.
How-To-Repeat: Install databases/mysql41-client and then databases/phpmyadmin.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2008-11-15 16:10:13 UTC
Maintainer of databases/phpmyadmin,

Please note that PR ports/128889 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/128889

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2008-11-15 16:10:14 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Martin Wilke freebsd_committer freebsd_triage 2008-11-15 17:10:05 UTC
Responsible Changed
From-To: freebsd-ports-bugs->miwi

I'll take it.
Comment 4 Mark Linimon 2008-11-16 15:45:10 UTC
----- Forwarded message from Matthew Seaman <m.seaman@infracaninophile.co.uk> -----

Hmmm... I can confirm that the problem behaviour exists.  
I built databases/mysql41-client in a jail with no other ports
installed, and then built databases/phpmyadmin

Everything installed without any complaint:

sandbox:...ports/databases/phpmyadmin:# pkg_info -Ix mysql
mysql-client-4.1.22_1 Multithreaded SQL database (client)
php5-mysql-5.2.6_2  The mysql shared extension for php
sandbox:...ports/databases/phpmyadmin:# pkg_info -Ix phpMyAdmin
phpMyAdmin-3.0.1.1  A set of PHP-scripts to manage MySQL over the web

Please apply this patch:

diff -Nur /usr/ports/databases/phpmyadmin/Makefile phpmyadmin/Makefile
--- /usr/ports/databases/phpmyadmin/Makefile 2008-11-01 16:09:55.000000000 
+0000
+++ phpmyadmin/Makefile 2008-11-16 09:24:42.000000000 +0000
@@ -14,6 +14,7 @@
MAINTAINER= m.seaman@infracaninophile.co.uk
COMMENT= A set of PHP-scripts to manage MySQL over the web

+USE_MYSQL= yes
IGNORE_WITH_PHP= 4
IGNORE_WITH_MYSQL= 323 40 41
USE_BZIP2= yes

The result should now be:

sandbox:~/src/ports/phpmyadmin:% make
===>  phpMyAdmin-3.0.1.1 cannot install: doesn't work with MySQL version : 
41 (Doesn't support MySQL 323 40 41).
*** Error code 1

Stop in /home/matthew/src/ports/phpmyadmin.

-- 
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                 Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
                                                 Kent, CT11 9PW

----- End forwarded message -----
Comment 5 dfilter service freebsd_committer freebsd_triage 2008-11-22 22:43:22 UTC
miwi        2008-11-22 22:43:10 UTC

  FreeBSD ports repository

  Modified files:
    databases/phpmyadmin Makefile 
  Log:
  - Use explicit mysql 5
  
  PR:             128889
  Reported by:    Till Klampaeckel <till@php.net>
  Approved by:    maintainer
  
  Revision  Changes    Path
  1.98      +1 -0      ports/databases/phpmyadmin/Makefile
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
Comment 6 Martin Wilke freebsd_committer freebsd_triage 2008-11-22 22:43:55 UTC
State Changed
From-To: feedback->closed

Committed. Thanks!