Date: Fri, 13 Sep 2013 22:46:10 GMT From: John Marino <freebsd@marino.st> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/182071: [PATCH] databases/mysql56-server: Fix shebang on installed perl scripts Message-ID: <201309132246.r8DMkAKB040273@oldred.freebsd.org> Resent-Message-ID: <201309132250.r8DMo0IJ096840@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201309132246.r8DMkAKB040273>