summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorperiapt <periapt@bb5a2ed9-75f0-0310-a2b8-e46d7b0922c1>2012-05-20 10:05:16 +0000
committerperiapt <periapt@bb5a2ed9-75f0-0310-a2b8-e46d7b0922c1>2012-05-20 10:05:16 +0000
commit3cb1f4ee72fda808c1a9782009367bd3689292fe (patch)
treeff9838d37ea2bfde14b98043ac4c58b0f5660e9e
parentaed4dc5f8b27c2dcd38f9fa247dff603b2023ac3 (diff)
downloadmysql-5.5-3cb1f4ee72fda808c1a9782009367bd3689292fe.tar.gz
* New upstream source
* Refreshed patches * Standardized debian/watch and get-orig-source and made DFSG exclusion of Docs/mysql.info explicit git-svn-id: svn://svn.debian.org/svn/pkg-mysql/mysql-5.5/branches/unstable@2111 bb5a2ed9-75f0-0310-a2b8-e46d7b0922c1
-rw-r--r--debian/changelog6
-rw-r--r--debian/copyright6
-rw-r--r--debian/patches/spelling.patch17
-rw-r--r--debian/repack.local1
-rw-r--r--debian/repack.stub82
-rwxr-xr-xdebian/rules16
-rw-r--r--debian/watch10
7 files changed, 105 insertions, 33 deletions
diff --git a/debian/changelog b/debian/changelog
index 57ad11e..ad44596 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-mysql-5.5 (5.5.23-3) UNRELEASED; urgency=low
+mysql-5.5 (5.5.24+dfsg-1) UNRELEASED; urgency=low
* Migrated libmysqlclient-dev, mysql-client-5.5, mysql-server-core-5.5
and mysql-server-5.5 off dh_movefiles
@@ -24,6 +24,10 @@ mysql-5.5 (5.5.23-3) UNRELEASED; urgency=low
- missing symbols file (cf. #590905)
* Added patch for hyphen/minus sign confusion
* Dropped mailx to Suggests clause (Closes: #535496)
+ * New upstream source
+ * Refreshed patches
+ * Standardized debian/watch and get-orig-source and made DFSG exclusion
+ of Docs/mysql.info explicit
-- Nicholas Bamber <nicholas@periapt.co.uk> Tue, 08 May 2012 09:04:25 +0100
diff --git a/debian/copyright b/debian/copyright
index ff1c97d..b42b213 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -2,7 +2,11 @@ Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
Upstream-Name: MySQL 5.5
Upstream-Contact: http://bugs.mysql.com/
Source: http://dev.mysql.com/downloads/mysql/5.5.html
-Comments: originally produced by a modified version of licensecheck2dep5
+Comments:
+ The file Docs/mysql.info is removed from the upstream source
+ because it is incompatible with the Debian Free Software Guidelines.
+ .
+ Originally produced by a modified version of licensecheck2dep5
from CDBS by Clint Byrum <clint@ubuntu.com>. Hand modified to reduce
redundancy in the output and add appropriate license text.
.
diff --git a/debian/patches/spelling.patch b/debian/patches/spelling.patch
index eaf9b3d..ca86d06 100644
--- a/debian/patches/spelling.patch
+++ b/debian/patches/spelling.patch
@@ -1,7 +1,7 @@
Author <nicholas@periapt.co.uk>
Subject: spelling errors
Preceeding -> preceding
-Last-Update: 2012-05-02
+Last-Update: 2012-05-19
Forwarded: no
--- a/libmysql/errmsg.c
+++ b/libmysql/errmsg.c
@@ -14,17 +14,6 @@ Forwarded: no
"The number of columns in the result set differs from the number of bound buffers. You must reset the statement, rebind the result set columns, and execute the statement again",
"This handle is already connected. Use a separate handle for each connection.",
"Authentication plugin '%s' cannot be loaded: %s",
---- a/Docs/mysql.info
-+++ b/Docs/mysql.info
-@@ -233132,7 +233132,7 @@
-
- * Error: `2056' (`CR_STMT_CLOSED')
-
-- Message: Statement closed indirectly because of a preceeding %s()
-+ Message: Statement closed indirectly because of a preceding %s()
- call
-
- * Error: `2057' (`CR_NEW_STMT_METADATA')
--- a/mysql-test/extra/rpl_tests/rpl_ddl.test
+++ b/mysql-test/extra/rpl_tests/rpl_ddl.test
@@ -98,8 +98,8 @@
@@ -40,7 +29,7 @@ Forwarded: no
# effects like failing 'sync_slave_with_master', crashes of the slave or
--- a/mysql-test/extra/rpl_tests/rpl_row_basic.test
+++ b/mysql-test/extra/rpl_tests/rpl_row_basic.test
-@@ -186,7 +186,7 @@
+@@ -221,7 +221,7 @@
SELECT * FROM t7 ORDER BY C1;
# since bug#31552/31609 idempotency is not default any longer. In order
@@ -49,7 +38,7 @@ Forwarded: no
# temprorarily
set @@global.slave_exec_mode= 'IDEMPOTENT';
-@@ -225,7 +225,7 @@
+@@ -260,7 +260,7 @@
SELECT * FROM t8 ORDER BY a;
# since bug#31552/31609 idempotency is not default any longer. In order
diff --git a/debian/repack.local b/debian/repack.local
new file mode 100644
index 0000000..382ae5e
--- /dev/null
+++ b/debian/repack.local
@@ -0,0 +1 @@
+rm Docs/mysql.info
diff --git a/debian/repack.stub b/debian/repack.stub
new file mode 100644
index 0000000..76b65bd
--- /dev/null
+++ b/debian/repack.stub
@@ -0,0 +1,82 @@
+#!/bin/sh
+
+: <<=cut
+=pod
+
+=head1 NAME
+
+repack.stub - script to repack upstream tarballs from uscan
+
+=head1 INSTRUCTIONS
+
+put this in debian/repack.stub and add "debian sh debian/repack.stub" to
+the end of the line in debian/watch. you will also need to add a version
+mangle to debian/watch.
+
+then create a debian/repack.local. this is a shell script that is
+sourced under "set -e", so be careful to check returns codes.
+
+=head1 FUNCTIONS
+
+=over 4
+
+=item rm
+
+rm is replaced by a function that does some magic ("rm -rv" by default), but also changes MANIFEST if $MANIFEST is 1
+
+=item mv
+
+mv is replaced by a function that just does mv (by default), but also changes MANIFEST if $MANIFEST is 1
+
+=item requires_version
+
+requires_version is there for future usage for requiring certain versions of the script
+
+=back
+
+=head1 VARIABLES
+
+=over 4
+
+=item SUFFIX
+
+defaults to +dfsg
+
+what to append to the upstream version
+
+=item RM_OPTS
+
+defaults to -vrf
+
+options to pass to rm
+
+=item MANIFEST
+
+defaults to 0, set to 1 to turn on.
+
+this will manipulate MANIFEST files in CPAN tarballs.
+
+=item UP_BASE
+
+this is the directory where the upstream source is.
+
+=back
+
+=cut
+
+if [ -z "$REPACK_SH" ]; then
+ if [ -f ../../scripts/repack.sh ]; then
+ REPACK_SH=../../scripts/repack.sh
+ fi
+ if [ -z "$REPACK_SH" ] && which repack.sh > /dev/null; then
+ REPACK_SH=$(which repack.sh)
+ fi
+fi
+
+if [ ! -f "$REPACK_SH" ]; then
+ echo "Couldn't find a repack.sh. please put it in your PATH, put it at ../../scripts/repack.sh, or put it somewhere else and set the REPACK_SH variable"
+ echo "You can get it from http://anonscm.debian.org/gitweb/?p=pkg-perl/scripts.git;a=blob_plain;f=repack.sh;hb=HEAD"
+ exit 1
+fi
+
+exec "$REPACK_SH" "$@"
diff --git a/debian/rules b/debian/rules
index 3e10053..1516bf1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -182,14 +182,10 @@ auto_install-stamp:
# Exclusion Package Type
# usr/share/man/ various man
# libmysqlclient_r.so libMclient-dev links
-# usr/share/info don't install
# usr/share/mysql/magic M-server-5.5 example
# usr/bin/mysqlaccess.conf M-client-5.5 example
# usr/lib/mysql/plugin/daemon_example.ini M-server-5.5 example
# usr/share/mysql/my- M-server-5.5 example
-# Note: lintian complains about the upstream supplied info file
-# and we don't have the source to fix it.
-#
# The following exclusions have been inherited from pre short form
# debian/rules days.
# usr/share/mysql/mi_test_all
@@ -200,7 +196,6 @@ override_dh_install:
dh_install --fail-missing \
-Xusr/share/man/ \
-Xlibmysqlclient_r.so \
- -Xusr/share/info \
-Xusr/share/mysql/magic \
-Xusr/lib/mysql/plugin/daemon_example.ini \
-Xusr/bin/mysqlaccess.conf \
@@ -252,16 +247,7 @@ override_dh_makeshlibs-arch:
binary: binary-indep binary-arch
get-orig-source:
- @wget -nv -T10 -t3 \
- -O /tmp/mysql-$(DEB_UPSTREAM_VERSION).tar.gz \
- http://ftp.gwdg.de/pub/misc/mysql/Downloads/MySQL-$(DEB_UPSTREAM_VERSION_MAJOR_MINOR)/mysql-$(DEB_UPSTREAM_VERSION).tar.gz
- @tar xfz /tmp/mysql-$(DEB_UPSTREAM_VERSION).tar.gz -C /tmp
- @rm -rf /tmp/mysql-$(DEB_UPSTREAM_VERSION)/Docs
- @rm -rf /tmp/mysql-$(DEB_UPSTREAM_VERSION)/debian
- @mv /tmp/mysql-$(DEB_UPSTREAM_VERSION) /tmp/$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).orig
- @cd /tmp ; tar czf $(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_VERSION).orig.tar.gz $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).orig
- @rm -f /tmp/mysql-$(DEB_UPSTREAM_VERSION).tar.gz
- @rm -rf /tmp/$(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION).orig
+ uscan --force-download --verbose
%:
dh $@ --parallel
diff --git a/debian/watch b/debian/watch
index bfb689b..fe38b00 100644
--- a/debian/watch
+++ b/debian/watch
@@ -1,3 +1,9 @@
+# This watch file depends on repack.sh being in your PATH.
+# See http://anonscm.debian.org/gitweb/?p=pkg-perl/scripts.git;a=blob_plain;f=repack.sh;hb=HEAD
version=3
-opts="uversionmangle=s/-(rc|beta)/$1/" \
- ftp://sunsite.informatik.rwth-aachen.de/pub/mirror/www.mysql.com/Downloads/MySQL-5.5/mysql-([\d\.]*(?:-beta|-rc)?).tar.gz debian
+opts=dversionmangle=s/\+dfsg\d*$// \
+ http://mysql.linux.cz/Downloads/MySQL-5.5/mysql-([\d\.]+).tar.gz \
+ debian sh debian/repack.stub
+opts=dversionmangle=s/\+dfsg\d*$// \
+ http://ftp.gwdg.de/pub/misc/mysql/Downloads/MySQL-5.5/mysql-([\d\.]+).tar.gz \
+ debian sh debian/repack.stub