ports/182071: [PATCH] databases/mysql56-server: Fix shebang on installed perl scripts
John Marino
freebsd at marino.st
Fri Sep 13 22:50:01 UTC 2013
>Number: 182071
>Category: ports
>Synopsis: [PATCH] databases/mysql56-server: Fix shebang on installed perl scripts
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Sep 13 22:50:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator: John Marino
>Release:
>Organization:
>Environment:
>Description:
The MySQL 5.6 server (also MySQL 5.5 server) installs a number of perl-based scripts, but they are all hard-coded to /usr/bin/perl, an optional and discouraged location that may disappear in the future:
mysqldumpslow:1:#!/usr/bin/perl
mysql_setpermission:1:#!/usr/bin/perl
mysqlhotcopy:1:#!/usr/bin/perl
mysql_convert_table_format:1:#!/usr/bin/perl
mysql_zap:1:#!/usr/bin/perl
mysqld_multi:1:#!/usr/bin/perl
mysql_install_db:1:#!/usr/bin/perl
mysql_fix_extensions:1:#!/usr/bin/perl
mysql_secure_installation:1:#!/usr/bin/perl
These scripts need to have their shebang fixed. Attached patch fixes it for MySQL 5.6. To fix MySQL 5.5 is very similar.
>How-To-Repeat:
>Fix:
Patch attached with submission follows:
--- Makefile.orig 2013-08-14 22:35:50.000000000 +0000
+++ Makefile
@@ -13,7 +13,7 @@ MAINTAINER= ale at FreeBSD.org
COMMENT?= Multithreaded SQL database (server)
SLAVEDIRS= databases/mysql56-client
-USES= cmake
+USES= cmake shebangfix
CMAKE_ARGS+= -DINSTALL_DOCDIR="share/doc/mysql" \
-DINSTALL_DOCREADMEDIR="share/doc/mysql" \
@@ -33,6 +33,8 @@ CMAKE_ARGS+= -DINSTALL_DOCDIR="share/doc
-DWITH_EDITLINE=system \
-DWITH_LIBWRAP=1
+SHEBANG_FILES= scripts/*.pl* scripts/*.sh
+
.ifdef USE_MYSQL
.error You have `USE_MYSQL' variable defined either in environment or in make(1) arguments. Please undefine and try again.
.endif
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list