From 216c3b8a51e0b9fd5a1083ac80e5e315db8f51e1 Mon Sep 17 00:00:00 2001
From: Jitka Plesnikova <[email protected]>
Date: Tue, 16 Aug 2016 17:49:06 +0200
Subject: Fix default value for nossl option (bug #1366773)
---
DBD-mysql-4.035-Fix-nossl-option.patch | 14 ++++++++++++++
perl-DBD-MySQL.spec | 10 ++++++++--
2 files changed, 22 insertions(+), 2 deletions(-)
create mode 100644 DBD-mysql-4.035-Fix-nossl-option.patch
diff --git a/DBD-mysql-4.035-Fix-nossl-option.patch
b/DBD-mysql-4.035-Fix-nossl-option.patch
new file mode 100644
index 0000000..b746d36
--- /dev/null
+++ b/DBD-mysql-4.035-Fix-nossl-option.patch
@@ -0,0 +1,14 @@
+diff -up DBD-mysql-4.035/Makefile.PL.orig DBD-mysql-4.035/Makefile.PL
+--- DBD-mysql-4.035/Makefile.PL.orig 2016-08-16 15:10:57.626484971 +0200
++++ DBD-mysql-4.035/Makefile.PL 2016-08-16 16:05:56.739956566 +0200
+@@ -680,8 +680,8 @@ section "Linker flags" or type
+ MSG
+ }
+ elsif ($param eq "nossl") {
+- $opt->{$param} = ($opt->{"libs"} =~ /ssl/) ? 1 : 0;
+- $source->{$param} = $opt->{$param} ? "choice" : "default";
++ #$opt->{$param} = ($opt->{"libs"} =~ /ssl/) ? 1 : 0;
++ #$source->{$param} = $opt->{$param} ? "choice" : "default";
+ }
+ elsif ($param eq "ssl") {
+ # default, for legacy reasons
diff --git a/perl-DBD-MySQL.spec b/perl-DBD-MySQL.spec
index 07fdde8..b73107e 100644
--- a/perl-DBD-MySQL.spec
+++ b/perl-DBD-MySQL.spec
@@ -1,11 +1,12 @@
Name: perl-DBD-MySQL
Version: 4.035
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: A MySQL interface for Perl
Group: Development/Libraries
License: GPL+ or Artistic
URL: http://search.cpan.org/dist/DBD-mysql/
Source0:
http://www.cpan.org/authors/id/M/MI/MICHIELB/DBD-mysql-%{version}.tar.gz
+Patch0: DBD-mysql-4.035-Fix-nossl-option.patch
BuildRequires: mariadb, mariadb-devel, zlib-devel
BuildRequires: coreutils
BuildRequires: findutils
@@ -40,6 +41,8 @@ management system.
%prep
%setup -q -n DBD-mysql-%{version}
+%patch0 -p1
+
# Correct file permissions
find . -type f | xargs chmod -x
@@ -50,7 +53,7 @@ for file in lib/DBD/mysql.pm Changes; do
done
%build
-perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" --ssl
+perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags}
%install
@@ -72,6 +75,9 @@ find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {}
';'
%{_mandir}/man3/*.3*
%changelog
+* Tue Aug 16 2016 Jitka Plesnikova <[email protected]> - 4.035-2
+- Fix default value for nossl option (bug #1366773)
+
* Tue Jul 26 2016 Jitka Plesnikova <[email protected]> - 4.035-1
- 4.035 bump (bug #1360280)
--
cgit v0.12
http://pkgs.fedoraproject.org/cgit/perl-DBD-MySQL.git/commit/?h=f24&id=216c3b8a51e0b9fd5a1083ac80e5e315db8f51e1
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
[email protected]
https://lists.fedoraproject.org/admin/lists/[email protected]