Hello community,
here is the log from the commit of package perl-DBD-MariaDB for
openSUSE:Factory checked in at 2020-03-11 18:50:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-DBD-MariaDB (Old)
and /work/SRC/openSUSE:Factory/.perl-DBD-MariaDB.new.3160 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-DBD-MariaDB"
Wed Mar 11 18:50:25 2020 rev:2 rq:783472 version:1.21
Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-DBD-MariaDB/perl-DBD-MariaDB.changes
2019-07-11 13:17:14.122789281 +0200
+++
/work/SRC/openSUSE:Factory/.perl-DBD-MariaDB.new.3160/perl-DBD-MariaDB.changes
2020-03-11 18:52:36.579601462 +0100
@@ -1,0 +2,20 @@
+Mon Mar 9 12:55:09 UTC 2020 - Pedro Monreal Gonzalez
<[email protected]>
+
+- Fix build tests
+
+-------------------------------------------------------------------
+Mon Mar 9 12:19:45 UTC 2020 - Pedro Monreal Gonzalez
<[email protected]>
+
+- Add cpanspec.yml file
+
+-------------------------------------------------------------------
+Tue Jul 9 16:32:54 UTC 2019 - Pedro Monreal Gonzalez
<[email protected]>
+
+- Enable tests to run in parallel by adding HARNESS_OPTIONS=j4
+
+-------------------------------------------------------------------
+Tue Jul 9 14:59:08 UTC 2019 - Pedro Monreal Gonzalez
<[email protected]>
+
+- Added missing dependencies
+
+-------------------------------------------------------------------
New:
----
cpanspec.yml
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ perl-DBD-MariaDB.spec ++++++
--- /var/tmp/diff_new_pack.3zNvaU/_old 2020-03-11 18:52:37.335601800 +0100
+++ /var/tmp/diff_new_pack.3zNvaU/_new 2020-03-11 18:52:37.335601800 +0100
@@ -1,7 +1,7 @@
#
# spec file for package perl-DBD-MariaDB
#
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -25,33 +25,47 @@
Group: Development/Libraries/Perl
URL: https://metacpan.org/release/%{cpan_name}
Source0:
https://cpan.metacpan.org/authors/id/P/PA/PALI/%{cpan_name}-%{version}.tar.gz
-Source1: test-setup.sh
-Source2: test-clean.sh
+Source1: cpanspec.yml
+# MANUAL BEGIN
+Source2: test-setup.sh
+Source3: test-clean.sh
BuildRequires: libmariadb-devel
BuildRequires: mariadb
-BuildRequires: perl
-BuildRequires: perl-macros
BuildRequires: zlib-devel
+BuildRequires: perl(B)
+BuildRequires: perl(CPAN::Meta::YAML)
BuildRequires: perl(Config)
-BuildRequires: perl(DBI) >= 1.608
-BuildRequires: perl(DBI::Const::GetInfoType)
BuildRequires: perl(Data::Dumper)
-BuildRequires: perl(Devel::CheckLib) >= 1.12
+BuildRequires: perl(Encode)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
+BuildRequires: perl(File::Temp)
+BuildRequires: perl(FindBin)
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(Net::SSLeay)
BuildRequires: perl(Proc::ProcessTable)
-BuildRequires: perl(Test::Deep)
-BuildRequires: perl(Test::More) >= 0.90
+BuildRequires: perl(Storable)
+BuildRequires: perl(TAP::Harness)
BuildRequires: perl(Test::Pod) >= 1.41
+BuildRequires: perl(Time::HiRes)
+BuildRequires: perl(bigint)
+BuildRequires: perl(lib)
BuildRequires: perl(strict)
BuildRequires: perl(utf8)
+BuildRequires: perl(vars)
BuildRequires: perl(warnings)
-Requires: perl(DBI) >= 1.608
Requires: perl(DynaLoader)
Requires: perl(strict)
Requires: perl(warnings)
+# MANUAL END
+BuildRequires: perl
+BuildRequires: perl-macros
+BuildRequires: perl(DBI) >= 1.608
+BuildRequires: perl(DBI::Const::GetInfoType)
+BuildRequires: perl(Devel::CheckLib) >= 1.12
+BuildRequires: perl(Test::Deep)
+BuildRequires: perl(Test::More) >= 0.90
+Requires: perl(DBI) >= 1.608
%{perl_requires}
%description
@@ -70,11 +84,13 @@
make %{?_smp_mflags}
%check
+# MANUAL BEGIN
# Setup environment and start database
-. %{SOURCE1}
-make %{?_smp_mflags} test
-# Stop database
. %{SOURCE2}
+HARNESS_OPTIONS=j4 make %{?_smp_mflags} test
+# Stop database
+. %{SOURCE3}
+# MANUAL END
%install
%perl_make_install
++++++ cpanspec.yml ++++++
---
#description_paragraphs: 1
description: |-
*DBD::MariaDB* is the Perl5 Database Interface driver for MariaDB and MySQL
databases. In other words: DBD::MariaDB is an interface between the Perl
programming language and the MariaDB/MySQL programming API that comes with
the MariaDB/MySQL relational database management system. Most functions
provided by this programming API are supported. Some rarely used functions
are missing, mainly because no-one ever requested them.
#summary: override summary from CPAN
#no_testing: broken upstream
sources:
Source2: test-setup.sh
Source3: test-clean.sh
preamble: |-
BuildRequires: libmariadb-devel
BuildRequires: mariadb
BuildRequires: zlib-devel
BuildRequires: perl(B)
BuildRequires: perl(CPAN::Meta::YAML)
BuildRequires: perl(Config)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Encode)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Temp)
BuildRequires: perl(FindBin)
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(Net::SSLeay)
BuildRequires: perl(Proc::ProcessTable)
BuildRequires: perl(Storable)
BuildRequires: perl(TAP::Harness)
BuildRequires: perl(Test::Pod) >= 1.41
BuildRequires: perl(Time::HiRes)
BuildRequires: perl(bigint)
BuildRequires: perl(lib)
BuildRequires: perl(strict)
BuildRequires: perl(utf8)
BuildRequires: perl(vars)
BuildRequires: perl(warnings)
Requires: perl(DynaLoader)
Requires: perl(strict)
Requires: perl(warnings)
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s, *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL
#post_build: |-
# rm unused.files
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
custom_test: |-
# Setup environment and start database
. %{SOURCE2}
HARNESS_OPTIONS=j4 make %{?_smp_mflags} test
# Stop database
. %{SOURCE3}
#ignore_requires: Bizarre::Module
++++++ test-clean.sh ++++++
--- /var/tmp/diff_new_pack.3zNvaU/_old 2020-03-11 18:52:37.375601818 +0100
+++ /var/tmp/diff_new_pack.3zNvaU/_new 2020-03-11 18:52:37.379601819 +0100
@@ -1,5 +1,5 @@
#!/bin/bash
/usr/bin/mysqladmin --user=root --socket=${MYSQL_UNIX_PORT} shutdown 2>&1 || \
-[ ! -s "${MYSQL_PIDFILE}" ] || /bin/kill `cat "${MYSQL_PIDFILE}"` || true
+[ ! -s "${MYSQL_PIDFILE}" ] || /bin/kill $(cat "${MYSQL_PIDFILE}") || true
rm -rf ${MYSQL_DIR}
++++++ test-setup.sh ++++++
--- /var/tmp/diff_new_pack.3zNvaU/_old 2020-03-11 18:52:37.391601825 +0100
+++ /var/tmp/diff_new_pack.3zNvaU/_new 2020-03-11 18:52:37.391601825 +0100
@@ -32,9 +32,9 @@
fi
done
-mysql --user=root --socket=${MYSQL_UNIX_PORT} --execute "CREATE USER
'${DBD_MARIADB_TESTUSER}'@'localhost';" 2>&1
-mysql --user=root --socket=${MYSQL_UNIX_PORT} --execute "CREATE DATABASE IF
NOT EXISTS ${DBD_MARIADB_TESTDB} CHARACTER SET='utf8mb4';" 2>&1
-mysql --user=root --socket=${MYSQL_UNIX_PORT} --execute "GRANT ALL PRIVILEGES
ON ${DBD_MARIADB_TESTDB}.* TO '${DBD_MARIADB_TESTUSER}'@'localhost' IDENTIFIED
BY '${DBD_MARIADB_TESTPASSWORD}';" 2>&1
+mysql --socket=${MYSQL_UNIX_PORT} --execute "CREATE USER
'${DBD_MARIADB_TESTUSER}'@'localhost';" 2>&1
+mysql --socket=${MYSQL_UNIX_PORT} --execute "CREATE DATABASE IF NOT EXISTS
${DBD_MARIADB_TESTDB} CHARACTER SET='utf8mb4';" 2>&1
+mysql --socket=${MYSQL_UNIX_PORT} --execute "GRANT ALL PRIVILEGES ON
${DBD_MARIADB_TESTDB}.* TO '${DBD_MARIADB_TESTUSER}'@'localhost' IDENTIFIED BY
'${DBD_MARIADB_TESTPASSWORD}';" 2>&1
if ! /usr/bin/mysqladmin --user=${DBD_MARIADB_TESTUSER}
--password=${DBD_MARIADB_TESTPASSWORD} --socket=${DBD_MARIADB_TESTSOCKET} ping
2>&1; then
echo "skipping test, cannot connect to server with test user"