Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Dec 2012 19:04:57 GMT
From:      Remko Lodder <remko@FreeBSD.org>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/174419: www/mediawiki
Message-ID:  <201212131904.qBDJ4vFN084093@red.freebsd.org>
Resent-Message-ID: <201212131910.qBDJA0nd085191@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         174419
>Category:       ports
>Synopsis:       www/mediawiki
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 13 19:10:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Remko Lodder
>Release:        9.1-PRERELEASE
>Organization:
FreeBSD
>Environment:
FreeBSD krondor.jr-hosting.nl 9.1-PRERELEASE FreeBSD 9.1-PRERELEASE #12: Fri Aug 10 09:35:50 CEST 2012     root@krondor.jr-hosting.nl:/usr/obj/usr/src/sys/JRHOSTING  amd64
>Description:
The Mediawiki ports have an option that enables a user to use MySQL as backend for the Mediawiki application. The dependency however is on a MySQL-server instead of MySQL-client. Installing the port with MySQL support thus gives you the MySQL-server installation, where that is not needed. One should have the client package for MySQL so that 'a' MySQL server can be used but not being forced to have the server installed itself.

This is especially "interesting" when you have a jail with a WWW service installed, and only -client packages and no -server packages (well at least for MySQL with this port :-)).

# pkg_info -rR "mysql-*"
Information for mysql-client-5.5.28:

Depends on:
Required by:
p5-DBD-mysql-4.021
mysql-server-5.5.28
mediawiki-1.20.2



Information for mysql-server-5.5.28:

Depends on:
Dependency: mysql-client-5.5.28
Required by:
mediawiki-1.20.2
>How-To-Repeat:
see above.
>Fix:
--- Makefile    2012-12-05 09:39:47.000000000 +0100
+++ Makefile.new        2012-12-13 19:38:05.000000000 +0100
@@ -34,7 +34,7 @@
 .include <bsd.port.options.mk>
 
 .if ${PORT_OPTIONS:MMYSQL}
-USE_MYSQL=     server
+USE_MYSQL=     client
 USE_PHP+=      mysql
 .endif

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201212131904.qBDJ4vFN084093>