From 6657fff79cb93600566d2305eb08bcac1e345374 Mon Sep 17 00:00:00 2001 From: dillon_chen Date: Thu, 17 Nov 2022 16:38:18 +0800 Subject: [PATCH] Patch0 remove a useless shebang --- ...ove-a-useless-shebang-from-DBD-mysql.patch | 34 +++++++++++++++++++ perl-DBD-MySQL.spec | 6 +++- 2 files changed, 39 insertions(+), 1 deletion(-) create mode 100644 backport-DBD-mysql-4.050-Remove-a-useless-shebang-from-DBD-mysql.patch diff --git a/backport-DBD-mysql-4.050-Remove-a-useless-shebang-from-DBD-mysql.patch b/backport-DBD-mysql-4.050-Remove-a-useless-shebang-from-DBD-mysql.patch new file mode 100644 index 0000000..61f19ea --- /dev/null +++ b/backport-DBD-mysql-4.050-Remove-a-useless-shebang-from-DBD-mysql.patch @@ -0,0 +1,34 @@ +From fc754728272e776b48b3a432ada9954335b783b6 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= +Date: Fri, 13 Mar 2020 13:41:17 +0100 +Subject: [PATCH] Remove a useless shebang from DBD::mysql +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Shebang has only a meaning for an executable script. DBD::mysql Perl +module is not an executable script that someone would run as an +standalone program. Morover, the file would have to have set an +executable bit. It seems the erroneous shebang was added by a mistake +when removing an Emacs configuration line. + +This patch removes the shebang. + +Signed-off-by: Petr Písař +--- + lib/DBD/mysql.pm | 2 -- + 1 file changed, 2 deletions(-) + +diff --git a/lib/DBD/mysql.pm b/lib/DBD/mysql.pm +index 2277fbe..5c90f3e 100644 +--- a/lib/DBD/mysql.pm ++++ b/lib/DBD/mysql.pm +@@ -1,5 +1,3 @@ +-#!/usr/bin/perl +- + use strict; + use warnings; + require 5.008_001; # just as DBI +-- +2.21.1 + diff --git a/perl-DBD-MySQL.spec b/perl-DBD-MySQL.spec index 6fdb908..1e80780 100644 --- a/perl-DBD-MySQL.spec +++ b/perl-DBD-MySQL.spec @@ -1,10 +1,11 @@ Name: perl-DBD-MySQL Version: 4.050 -Release: 3 +Release: 4 Summary: Perl [DBI] driver for access to MySQL databases. License: GPL-1.0-or-later or Artistic-1.0 URL: https://metacpan.org/release/DBD-mysql Source0: https://cpan.metacpan.org/authors/id/D/DV/DVEEDEN/DBD-mysql-%{version}.tar.gz +Patch0: backport-DBD-mysql-4.050-Remove-a-useless-shebang-from-DBD-mysql.patch BuildRequires: coreutils findutils gcc mariadb-connector-c mariadb-connector-c-devel openssl-devel perl-devel BuildRequires: perl-generators perl-interpreter zlib-devel perl perl-macros perl-interpreter perl-File-Path @@ -56,6 +57,9 @@ make test %{_mandir}/man3/*.3* %changelog +* Thu Nov 17 2022 dillon chen - 4.050-4 +- Patch0 remove a useless shebang + * Sat Jun 25 2022 Xinyi Gou - 4.050-3 - Specify license version