Compare commits
No commits in common. "e5efc6c8c7655133c97f9b48bb3e447fd7ec0d10" and "8ab85b0dcdcd2739df4388a40e07a256151c8c52" have entirely different histories.
e5efc6c8c7
...
8ab85b0dcd
@ -0,0 +1,71 @@
|
|||||||
|
From 051748825e77172677d9e3b319b870c3c0a70a38 Mon Sep 17 00:00:00 2001
|
||||||
|
From: Jitka Plesnikova <jplesnik@redhat.com>
|
||||||
|
Date: Fri, 14 Jul 2017 14:13:50 +0200
|
||||||
|
Subject: [PATCH] Fix build failures for MariaDB 10.2
|
||||||
|
MIME-Version: 1.0
|
||||||
|
Content-Type: text/plain; charset=UTF-8
|
||||||
|
Content-Transfer-Encoding: 8bit
|
||||||
|
|
||||||
|
<mariadb_version.h> does not exist in mariadb-5.5.26. Do not include
|
||||||
|
it explicitly. Instead rely on including <mysql.h> that transitively
|
||||||
|
includes <mariadb_version.h> or <mysql_version.h>. This makes this
|
||||||
|
patch more portable.
|
||||||
|
|
||||||
|
Signed-off-by: Petr Písař <ppisar@redhat.com>
|
||||||
|
---
|
||||||
|
dbdimp.c | 7 +++++++
|
||||||
|
mysql.xs | 4 ++--
|
||||||
|
2 files changed, 9 insertions(+), 2 deletions(-)
|
||||||
|
|
||||||
|
# Fixed in 4.045
|
||||||
|
#diff --git a/dbdimp.c b/dbdimp.c
|
||||||
|
#index 71251da..97fa9c4 100644
|
||||||
|
#--- a/dbdimp.c
|
||||||
|
#+++ b/dbdimp.c
|
||||||
|
#@@ -2104,6 +2104,9 @@ MYSQL *mysql_dr_connect(
|
||||||
|
#
|
||||||
|
# if (result)
|
||||||
|
# {
|
||||||
|
#+#if MYSQL_VERSION_ID >= 50013
|
||||||
|
#+ my_bool reconnect= 1;
|
||||||
|
#+#endif
|
||||||
|
# #if MYSQL_VERSION_ID >=SERVER_PREPARE_VERSION
|
||||||
|
# /* connection succeeded. */
|
||||||
|
# /* imp_dbh == NULL when mysql_dr_connect() is called from mysql.xs
|
||||||
|
#@@ -2122,7 +2125,11 @@ MYSQL *mysql_dr_connect(
|
||||||
|
# we turn off Mysql's auto reconnect and handle re-connecting ourselves
|
||||||
|
# so that we can keep track of when this happens.
|
||||||
|
# */
|
||||||
|
#+#if MYSQL_VERSION_ID >= 50013
|
||||||
|
#+ mysql_options(result, MYSQL_OPT_RECONNECT, &reconnect);
|
||||||
|
#+#else
|
||||||
|
# result->reconnect=0;
|
||||||
|
#+#endif
|
||||||
|
# }
|
||||||
|
# else {
|
||||||
|
# /*
|
||||||
|
diff --git a/mysql.xs b/mysql.xs
|
||||||
|
index 60cf9c6..750c763 100644
|
||||||
|
--- a/mysql.xs
|
||||||
|
+++ b/mysql.xs
|
||||||
|
@@ -787,7 +787,7 @@ dbd_mysql_get_info(dbh, sql_info_type)
|
||||||
|
D_imp_dbh(dbh);
|
||||||
|
IV type = 0;
|
||||||
|
SV* retsv=NULL;
|
||||||
|
-#if !defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID >= 50709
|
||||||
|
+#if MYSQL_VERSION_ID >= 50709
|
||||||
|
/* MariaDB 10 is not MySQL source level compatible so this only applies to MySQL*/
|
||||||
|
IV buffer_len;
|
||||||
|
#endif
|
||||||
|
@@ -819,7 +819,7 @@ dbd_mysql_get_info(dbh, sql_info_type)
|
||||||
|
retsv = newSVpvn("`", 1);
|
||||||
|
break;
|
||||||
|
case SQL_MAXIMUM_STATEMENT_LENGTH:
|
||||||
|
-#if !defined(MARIADB_BASE_VERSION) && MYSQL_VERSION_ID >= 50709
|
||||||
|
+#if MYSQL_VERSION_ID >= 50709
|
||||||
|
/* MariaDB 10 is not MySQL source level compatible so this
|
||||||
|
only applies to MySQL*/
|
||||||
|
/* mysql_get_option() was added in mysql 5.7.3 */
|
||||||
|
--
|
||||||
|
2.13.6
|
||||||
|
|
||||||
BIN
DBD-mysql-4.046.tar.gz
Normal file
BIN
DBD-mysql-4.046.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1,34 +0,0 @@
|
|||||||
From fc754728272e776b48b3a432ada9954335b783b6 Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
|
|
||||||
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ř <ppisar@redhat.com>
|
|
||||||
---
|
|
||||||
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
|
|
||||||
|
|
||||||
@ -1,20 +1,19 @@
|
|||||||
Name: perl-DBD-MySQL
|
Name: perl-DBD-MySQL
|
||||||
Version: 4.050
|
Version: 4.046
|
||||||
Release: 4
|
Release: 7
|
||||||
Summary: Perl [DBI] driver for access to MySQL databases.
|
Summary: Perl [DBI] driver for access to MySQL databases.
|
||||||
License: GPL-1.0-or-later or Artistic-1.0
|
License: GPL+ or Artistic
|
||||||
URL: https://metacpan.org/release/DBD-mysql
|
URL: https://metacpan.org/release/DBD-mysql
|
||||||
Source0: https://cpan.metacpan.org/authors/id/D/DV/DVEEDEN/DBD-mysql-%{version}.tar.gz
|
Source0: https://cpan.metacpan.org/authors/id/C/CA/CAPTTOFU/DBD-mysql-%{version}.tar.gz
|
||||||
Patch0: backport-DBD-mysql-4.050-Remove-a-useless-shebang-from-DBD-mysql.patch
|
|
||||||
|
|
||||||
|
Patch0: 0000-DBD-mysql-4.043-Fix-build-failures-for-MariaDB-10.2.patch
|
||||||
BuildRequires: coreutils findutils gcc mariadb-connector-c mariadb-connector-c-devel openssl-devel perl-devel
|
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
|
BuildRequires: perl-generators perl-interpreter zlib-devel perl perl-macros perl-interpreter perl-File-Path
|
||||||
BuildRequires: perl-PathTools perl-Getopt-Long perl-libs perl-ExtUtils-MakeMaker perl-Data-Dumper
|
BuildRequires: perl-PathTools perl-Getopt-Long perl-libs perl-ExtUtils-MakeMaker perl-Data-Dumper git
|
||||||
BuildRequires: perl(DBI) >= 1.609
|
BuildRequires: perl(DBI) >= 1.609
|
||||||
BuildRequires: perl(DBI::DBD)
|
BuildRequires: perl(DBI::DBD)
|
||||||
BuildRequires: perl(Test::Deep)
|
BuildRequires: perl(Test::Deep)
|
||||||
BuildRequires: perl(Test::Simple) >= 0.90
|
BuildRequires: perl(Test::Simple) >= 0.90
|
||||||
BuildRequires: perl(Devel::CheckLib) >= 1.09
|
|
||||||
Requires: perl-libs
|
Requires: perl-libs
|
||||||
Provides: perl-DBD-mysql = %{version}-%{release}
|
Provides: perl-DBD-mysql = %{version}-%{release}
|
||||||
|
|
||||||
@ -34,7 +33,7 @@ Requires: man
|
|||||||
This contains man files for the using of perl-DBD-MySQL.
|
This contains man files for the using of perl-DBD-MySQL.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n DBD-mysql-%{version} -p1
|
%autosetup -Sgit -n DBD-mysql-%{version}
|
||||||
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
find . -type f ! -name \*.pl -print0 | xargs -0 chmod 644
|
||||||
|
|
||||||
%build
|
%build
|
||||||
@ -57,18 +56,6 @@ make test
|
|||||||
%{_mandir}/man3/*.3*
|
%{_mandir}/man3/*.3*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Thu Nov 17 2022 dillon chen <dillon.chen@gmail.com> - 4.050-4
|
|
||||||
- Patch0 remove a useless shebang
|
|
||||||
|
|
||||||
* Sat Jun 25 2022 Xinyi Gou <plerks@163.com> - 4.050-3
|
|
||||||
- Specify license version
|
|
||||||
|
|
||||||
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 4.050-2
|
|
||||||
- DESC: delete -Sgit from %autosetup, and delete BuildRequires git
|
|
||||||
|
|
||||||
* Thu Jan 14 2021 yanglongkang <yanglongkang@huawei.com> - 4.050-1
|
|
||||||
- update version 4.050
|
|
||||||
|
|
||||||
* Mon Aug 10 2020 volcanodragon <linfeilong@huawei.com> - 4.064-7
|
* Mon Aug 10 2020 volcanodragon <linfeilong@huawei.com> - 4.064-7
|
||||||
- Type:enhancement
|
- Type:enhancement
|
||||||
- ID:NA
|
- ID:NA
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
version_control: github
|
version_control: git
|
||||||
src_repo: perl5-dbi/DBD-mysql
|
src_repo: metacpan/metacpan-web
|
||||||
tag_prefix: ""
|
tag_prefix: "^v"
|
||||||
seperator: "_"
|
seperator: "."
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user