packages: perl-DBD-mysql/perl-DBD-mysql.spec, perl-DBD-mysql/headers.patch ...
glen
glen at pld-linux.org
Mon Apr 4 13:26:37 CEST 2011
Author: glen Date: Mon Apr 4 11:26:37 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- fix is_prefix symbol resolving
- ensure no missing symbols (-Werror=implicit-function-declaration)
- rel 5
---- Files affected:
packages/perl-DBD-mysql:
perl-DBD-mysql.spec (1.78 -> 1.79) , headers.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: packages/perl-DBD-mysql/perl-DBD-mysql.spec
diff -u packages/perl-DBD-mysql/perl-DBD-mysql.spec:1.78 packages/perl-DBD-mysql/perl-DBD-mysql.spec:1.79
--- packages/perl-DBD-mysql/perl-DBD-mysql.spec:1.78 Thu Mar 31 20:10:26 2011
+++ packages/perl-DBD-mysql/perl-DBD-mysql.spec Mon Apr 4 13:26:32 2011
@@ -26,12 +26,13 @@
Summary(zh_CN.UTF-8): Perl 的 MySQL 界面。
Name: perl-DBD-mysql
Version: 4.018
-Release: 4
+Release: 5
# NOTE: libmysqlclient infects everything that links against it with GPL
License: GPL (Perl code also Artistic)
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/DBD/CAPTTOFU/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: d1d4ee2f20910d6491d1b6216471b2f1
+Patch0: headers.patch
URL: http://search.cpan.org/dist/DBD-mysql/
BuildRequires: mysql-devel >= 5.0.27
BuildRequires: perl-DBI >= 1.13
@@ -122,15 +123,17 @@
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
+%patch0 -p1
# we don't need no bundles
rm -rf lib/Bundle
%build
%{__perl} Makefile.PL \
+ --cflags="$(mysql_config --cflags) %{rpmcflags} -Werror=implicit-function-declaration" \
INSTALLDIRS=vendor
+
%{__make} \
CC="%{__cc}" \
- OPTIMIZE="%{rpmcflags}"
%{?with_tests:%{__make} test}
@@ -163,6 +166,11 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.79 2011/04/04 11:26:32 glen
+- fix is_prefix symbol resolving
+- ensure no missing symbols (-Werror=implicit-function-declaration)
+- rel 5
+
Revision 1.78 2011/03/31 18:10:26 arekm
- release 4
================================================================
Index: packages/perl-DBD-mysql/headers.patch
diff -u /dev/null packages/perl-DBD-mysql/headers.patch:1.1
--- /dev/null Mon Apr 4 13:26:37 2011
+++ packages/perl-DBD-mysql/headers.patch Mon Apr 4 13:26:32 2011
@@ -0,0 +1,20 @@
+--- DBD-mysql-4.018/dbdimp.h~ 2010-07-10 17:53:52.000000000 +0300
++++ DBD-mysql-4.018/dbdimp.h 2011-04-04 14:18:05.002129843 +0300
+@@ -333,3 +333,6 @@
+
+ extern int mysql_db_reconnect(SV*);
+ int mysql_st_free_result_sets (SV * sth, imp_sth_t * imp_sth);
++#if MYSQL_VERSION_ID >= MULTIPLE_RESULT_SET_VERSION
++int dbd_st_more_results(SV* sth, imp_sth_t* imp_sth);
++#endif
+--- DBD-mysql-4.018/dbdimp.h~ 2011-04-04 14:19:08.000000000 +0300
++++ DBD-mysql-4.018/dbdimp.h 2011-04-04 14:20:32.302207311 +0300
+@@ -23,6 +23,8 @@
+ #include <mysqld_error.h> /* Comes MySQL */
+
+ #include <errmsg.h> /* Comes with MySQL-devel */
++#define is_prefix mysql_is_prefix /* namespace sanity */
++extern int is_prefix(const char *, const char *);
+
+ /*
+ * This is the version of MySQL wherer
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/perl-DBD-mysql/perl-DBD-mysql.spec?r1=1.78&r2=1.79&f=u
More information about the pld-cvs-commit
mailing list