Merge lp:~abychko/percona-server/percona-server-5.6-lintian into lp:percona-server/5.6

Proposed by Alexey Bychko
Status: Rejected
Rejected by: Laurynas Biveinis
Proposed branch: lp:~abychko/percona-server/percona-server-5.6-lintian
Merge into: lp:percona-server/5.6
Diff against target: 310 lines (+48/-83)
11 files modified
CMakeLists.txt (+5/-0)
build-ps/debian/control (+3/-3)
build-ps/debian/libperconaserverclient18.1.postinst (+0/-14)
build-ps/debian/percona-server-client-5.6.lintian-overrides (+2/-9)
build-ps/debian/percona-server-common-5.6.lintian-overrides (+1/-0)
build-ps/debian/percona-server-server-5.6.dirs (+3/-1)
build-ps/debian/percona-server-server-5.6.lintian-overrides (+4/-3)
build-ps/debian/percona-server-server-5.6.postinst (+10/-9)
build-ps/debian/percona-server-server-5.6.postrm (+3/-3)
build-ps/debian/percona-server-test-5.6.lintian-overrides (+3/-0)
build-ps/debian/rules (+14/-41)
To merge this branch: bzr merge lp:~abychko/percona-server/percona-server-5.6-lintian
Reviewer Review Type Date Requested Status
Laurynas Biveinis (community) Needs Resubmitting
Review via email: mp+204818@code.launchpad.net

Description of the change

fixed packaging and lintian errors

To post a comment you must log in.
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :

    - have_QC_Disabled.inc having the executable bit should be fixed
      not by chmod -x in debian/rules but by removing the bit from
      the file in the bzr repo instead (here
      http://bugs.mysql.com/bug.php?id=71112 applies and not
      http://bugs.mysql.com/bug.php?id=71113)

review: Needs Fixing
Revision history for this message
Laurynas Biveinis (laurynas-biveinis) wrote :
review: Needs Resubmitting

Unmerged revisions

538. By Alexey Bychko

[-] cleaned commented code produced output garbage
[-] cleaned nonexisting cmake variables in debian/rules
[-] LINUX_NATIVE_AIO is removed from debian/rules, because it set automatically in ./storage/innobase/CMakeLists.txt:29
[+] added cmake policy definition to fix not-useful warnings about INTERFACE_LINK_LIBRARIES policy. upstream fix is incorrect, it doesn't work with Ubuntu saucy version set to 2.6.11.1
[+] added VERBOSE=1 to make command
[-] removed static mysqld build and related cmake option
[-] | server | removed mysqld directory from /var/run (lintian)
[+] | server | added /etc/mysql/conf.d directory to the package
[*] fixed percona-server-server-5.6.postinst: line 220: unexpected EOF while looking for matching ``'
[*] fixed debian-maint user creation
[+] added dh_lintian build step
[*] fixed reasonable lintian warnings and errors
[*] fixed indentation for debian/rules, converted to <TAB>s, as per debian spec

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CMakeLists.txt'
2--- CMakeLists.txt 2013-12-20 03:15:04 +0000
3+++ CMakeLists.txt 2014-02-05 05:14:36 +0000
4@@ -19,6 +19,11 @@
5 CMAKE_POLICY(VERSION 2.8)
6 endif()
7
8+#fix for http://bugs.mysql.com/bug.php?id=71089
9+IF(NOT(CMAKE_VERSION VERSION_LESS "2.8.12"))
10+ CMAKE_POLICY(SET CMP0022 OLD)
11+ENDIF()
12+
13 MESSAGE(STATUS "Running cmake version ${CMAKE_VERSION}")
14
15 SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}/cmake)
16
17=== modified file 'build-ps/debian/control'
18--- build-ps/debian/control 2014-01-28 10:42:55 +0000
19+++ build-ps/debian/control 2014-02-05 05:14:36 +0000
20@@ -3,7 +3,7 @@
21 Priority: extra
22 Maintainer: Percona Server Development Team <mysql-dev@percona.com>
23 Uploaders: Stewart Smith <stewart.smith@percona.com>, Alexey Bychko <alexey.bychko@percona.com>
24-Build-Depends: libtool (>= 1.4.2-7), procps | hurd, debhelper, file (>= 3.28), libncurses5-dev (>= 5.0-6), perl (>= 5.6.0), libwrap0-dev (>= 7.6-8.3), zlib1g-dev (>= 1:1.1.3-5), libreadline-dev, psmisc, po-debconf, chrpath, ghostscript, gawk, bison, lsb-release, cmake, gcc, g++, libaio-dev[linux-any], libpam-dev, libssl-dev
25+Build-Depends: libtool (>= 1.4.2-7), procps, debhelper (>= 7.0.50~), file (>= 3.28), libncurses5-dev (>= 5.0-6), perl (>= 5.6.0), libwrap0-dev (>= 7.6-8.3), zlib1g-dev (>= 1:1.1.3-5), libreadline-dev, psmisc, po-debconf, chrpath, ghostscript, gawk, bison, lsb-release, cmake, gcc (>= 4.4), g++ (>= 4.4), libaio-dev[linux-any], libpam-dev, libssl-dev
26 Standards-Version: 3.9.4
27 Homepage: http://www.percona.com/software/percona-server/
28 Vcs-Bzr: lp:percona-server/5.6
29@@ -80,7 +80,7 @@
30 Architecture: any
31 Suggests: tinyca
32 Pre-Depends: percona-server-common-5.6 (>= ${source:Version}), adduser (>= 3.4.0), debconf
33-Depends: percona-server-client-5.6 (>= ${source:Version}), libdbi-perl, libdbd-mysql-perl, perl (>= 5.6), ${shlibs:Depends}, ${misc:Depends}, psmisc, passwd, lsb-base (>= 3.0-10), percona-server-common-5.6 (>= ${source:Version}), adduser (>= 3.40), debconf
34+Depends: percona-server-client-5.6 (>= ${source:Version}), libdbi-perl, libdbd-mysql-perl, perl (>= 5.6), ${shlibs:Depends}, ${misc:Depends}, psmisc, passwd, lsb-base (>= 3.0-10)
35 Conflicts: mysql-server, mysql-server-4.1, mysql-server-core-5.1, percona-xtradb-server-5.0, percona-server-server-5.1, percona-server-server-5.5
36 Provides: mysql-server
37 Replaces: mysql-server, mysql-server-5.0, mysql-server-core-5.1, percona-xtradb-server-5.0, percona-server-server-5.1, percona-server-server-5.5
38@@ -123,7 +123,7 @@
39
40 Package: percona-server-test-5.6
41 Architecture: any
42-Depends: percona-server-client-5.6 (>= ${source:Version}), percona-server-server-5.6 (>= ${source:Version}), ${misc:Depends}
43+Depends: percona-server-client-5.6 (>= ${source:Version}), percona-server-server-5.6 (>= ${source:Version}), ${misc:Depends}, ${shlibs:Depends}
44 Description: Percona Server database test suite
45 Percona Server is a fast, stable and true multi-user, multi-threaded SQL
46 database server. SQL (Structured Query Language) is the most popular database
47
48=== removed file 'build-ps/debian/libperconaserverclient18.1.postinst'
49--- build-ps/debian/libperconaserverclient18.1.postinst 2013-12-11 03:53:50 +0000
50+++ build-ps/debian/libperconaserverclient18.1.postinst 1970-01-01 00:00:00 +0000
51@@ -1,14 +0,0 @@
52-#!/bin/bash -e
53-
54-# dh_installdeb will replace this with shell code automatically
55-# generated by other debhelper scripts.
56-
57-#DEBHELPER#
58-
59-ldconfig
60-
61-exit 0
62-
63-# vim: ts=4
64-
65-
66
67=== modified file 'build-ps/debian/percona-server-client-5.6.lintian-overrides'
68--- build-ps/debian/percona-server-client-5.6.lintian-overrides 2013-12-11 03:37:16 +0000
69+++ build-ps/debian/percona-server-client-5.6.lintian-overrides 2014-02-05 05:14:36 +0000
70@@ -1,14 +1,7 @@
71-percona-server-client-5.6: package-has-a-duplicate-relation
72+package-has-a-duplicate-relation
73
74 # we are MySQL, so we're going to hit false-positives
75-embedded-library binary: usr/bin/mysql
76-embedded-library binary: usr/bin/mysql_client_test
77-embedded-library binary: usr/bin/mysqladmin
78-embedded-library binary: usr/bin/mysqlcheck
79-embedded-library binary: usr/bin/mysqldump
80-embedded-library binary: usr/bin/mysqlimport
81-embedded-library binary: usr/bin/mysqlshow
82-embedded-library binary: usr/bin/mysqlslap
83+embedded-library
84
85 # We should get man pages for these binaries.
86 binary-without-manpage usr/bin/mysqlanalyze
87
88=== added file 'build-ps/debian/percona-server-common-5.6.lintian-overrides'
89--- build-ps/debian/percona-server-common-5.6.lintian-overrides 1970-01-01 00:00:00 +0000
90+++ build-ps/debian/percona-server-common-5.6.lintian-overrides 2014-02-05 05:14:36 +0000
91@@ -0,0 +1,1 @@
92+empty-binary-package
93
94=== modified file 'build-ps/debian/percona-server-server-5.6.dirs'
95--- build-ps/debian/percona-server-server-5.6.dirs 2013-05-10 13:29:38 +0000
96+++ build-ps/debian/percona-server-server-5.6.dirs 2014-02-05 05:14:36 +0000
97@@ -1,1 +1,3 @@
98-var/run/mysqld
99+var/run
100+etc/mysql/conf.d
101+
102
103=== modified file 'build-ps/debian/percona-server-server-5.6.lintian-overrides'
104--- build-ps/debian/percona-server-server-5.6.lintian-overrides 2013-12-11 03:37:16 +0000
105+++ build-ps/debian/percona-server-server-5.6.lintian-overrides 2014-02-05 05:14:36 +0000
106@@ -4,9 +4,10 @@
107 percona-server-server-5.6: statically-linked-binary ./usr/sbin/mysqld
108
109 # we are mysqld, we are going to look like libmysqlclient
110-embedded-library binary: usr/bin/mysqlbinlog
111-embedded-library binary: usr/bin/mysqltest
112-embedded-library binary: usr/sbin/mysqld
113+embedded-library
114+
115+#to supress false positive
116+duplicate-updaterc.d-calls-in-postrm
117
118 extra-license-file usr/share/doc/percona-server-server-5.6/COPYING.gz
119 extra-license-file usr/share/doc/percona-server-server-5.6/COPYING.innodb-deadlock-count-patch
120
121=== modified file 'build-ps/debian/percona-server-server-5.6.postinst'
122--- build-ps/debian/percona-server-server-5.6.postinst 2013-12-22 23:31:06 +0000
123+++ build-ps/debian/percona-server-server-5.6.postinst 2014-02-05 05:14:36 +0000
124@@ -197,18 +197,18 @@
125 "USE mysql\n" \
126 "ALTER TABLE user CHANGE Password Password char(41) character set latin1 collate latin1_bin DEFAULT '' NOT NULL"`;
127 replace_query=`echo -e \
128- "USE mysql\n" \
129+ "USE mysql;\n" \
130 "REPLACE INTO user SET " \
131 " host='localhost', user='debian-sys-maint', password=password('$pass'), " \
132 " Select_priv='Y', Insert_priv='Y', Update_priv='Y', Delete_priv='Y', " \
133 " Create_priv='Y', Drop_priv='Y', Reload_priv='Y', Shutdown_priv='Y', " \
134 " Process_priv='Y', File_priv='Y', Grant_priv='Y', References_priv='Y', " \
135- " Index_priv='Y', Alter_priv='Y', Super_priv='Y', Show_db_priv='Y', "\
136- " Create_tmp_table_priv='Y', Lock_tables_priv='Y', Execute_priv='Y', "\
137- " Repl_slave_priv='Y', Repl_client_priv='Y', Create_view_priv='Y', "\
138- " Show_view_priv='Y', Create_routine_priv='Y', Alter_routine_priv='Y', "\
139- " Create_user_priv='Y', Event_priv='Y', Trigger_priv='Y', Create_tablespace_priv='Y' "`;
140- " ssl_cipher='', x509_issuer='', x509_subject=''; "`
141+ " Index_priv='Y', Alter_priv='Y', Super_priv='Y', Show_db_priv='Y', " \
142+ " Create_tmp_table_priv='Y', Lock_tables_priv='Y', Execute_priv='Y', " \
143+ " Repl_slave_priv='Y', Repl_client_priv='Y', Create_view_priv='Y', " \
144+ " Show_view_priv='Y', Create_routine_priv='Y', Alter_routine_priv='Y', " \
145+ " Create_user_priv='Y', Event_priv='Y', Trigger_priv='Y', Create_tablespace_priv='Y', " \
146+ " ssl_cipher='', x509_issuer='', x509_subject=''; " `
147 fix_privs=`echo -e \
148 "USE mysql;\n" \
149 "ALTER TABLE user ADD column Create_view_priv enum('N','Y') CHARACTER SET utf8 NOT NULL DEFAULT 'N'; " \
150@@ -231,15 +231,16 @@
151 ;;
152
153 *)
154- echo "postinst called with unknown argument '$1'" 1>&2
155+ echo "postinst called with unknown argument $1" 1>&2
156 exit 1
157 ;;
158 esac
159
160 # here we check to see if we can connect as root without a password
161 # this should catch upgrades from previous versions where the root
162-# password wasn't set. if there is a password, or if the connection
163+# password was not set. if there is a password, or if the connection
164 # fails for any other reason, nothing happens.
165+
166 if [ "$1" = "configure" ]; then
167 if test_mysql_access; then
168 db_input medium percona-server-server/root_password || true
169
170=== modified file 'build-ps/debian/percona-server-server-5.6.postrm'
171--- build-ps/debian/percona-server-server-5.6.postrm 2013-12-11 03:37:16 +0000
172+++ build-ps/debian/percona-server-server-5.6.postrm 2014-02-05 05:14:36 +0000
173@@ -19,9 +19,9 @@
174 stop_server() {
175 set +e
176 if [ -x /usr/sbin/invoke-rc.d ]; then
177- invoke-rc.d percona-server stop
178+ invoke-rc.d mysql stop
179 else
180- /etc/init.d/percona-server stop
181+ /etc/init.d/mysql stop
182 fi
183 errno=$?
184 set -e
185@@ -69,7 +69,7 @@
186
187 # (normally) Automatically added by dh_installinit
188 if [ "$1" = "purge" ] ; then
189- update-rc.d percona-server remove >/dev/null || exit 0
190+ update-rc.d mysql remove >/dev/null || exit 0
191 fi
192 # (normally) End automatically added section
193 fi
194
195=== added file 'build-ps/debian/percona-server-test-5.6.lintian-overrides'
196--- build-ps/debian/percona-server-test-5.6.lintian-overrides 1970-01-01 00:00:00 +0000
197+++ build-ps/debian/percona-server-test-5.6.lintian-overrides 2014-02-05 05:14:36 +0000
198@@ -0,0 +1,3 @@
199+arch-dependent-file-in-usr-share usr/share/mysql-test/lib/My/SafeProcess/my_safe_process
200+
201+
202
203=== modified file 'build-ps/debian/rules'
204--- build-ps/debian/rules 2014-01-28 10:42:55 +0000
205+++ build-ps/debian/rules 2014-02-05 05:14:36 +0000
206@@ -14,14 +14,9 @@
207 DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
208 DEBVERSION = $(shell dpkg-parsechangelog | awk '/^Version: / { print $$2 }' | sed 's/^.*-//' )
209
210-#ifneq (,$(filter $(ARCH), i386 kfreebsd-i386 hurd-i386))
211-# USE_THIS_GCC_VERSION:=-4.4
212-#endif
213-
214 export MYSQL_BUILD_CC=$(DEB_HOST_GNU_TYPE)-gcc$(USE_THIS_GCC_VERSION)
215 export MYSQL_BUILD_CXX=$(DEB_HOST_GNU_TYPE)-g++$(USE_THIS_GCC_VERSION)
216
217-
218 DEB_SOURCE_PACKAGE ?= $(strip $(shell egrep '^Source: ' debian/control | cut -f 2 -d ':'))
219 DEB_VERSION ?= $(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
220 DEB_NOEPOCH_VERSION ?= $(shell echo $(DEB_VERSION) | cut -d: -f2-)
221@@ -52,19 +47,6 @@
222
223 builddir = builddir
224
225-# This causes seg11 crashes if LDAP is used for groups in /etc/nsswitch.conf
226-# so it is disabled by default although, according to MySQL, it brings >10%
227-# performance gain if enabled. See #299382.
228-ifeq ($(STATIC_MYSQLD), 1)
229- USE_STATIC_MYSQLD=--with-mysqld-ldflags=-all-static
230-endif
231-
232-# See http://blogs.innodb.com/wp/2010/04/innodb-performance-aio-linux/
233-# Also #659565
234-ifneq (,$(findstring linux-gnu,$(DEB_HOST_GNU_TYPE)))
235- USE_LINUX_NATIVE_AIO:=-DLINUX_NATIVE_AIO=ON
236-endif
237-
238 configure: patch configure-stamp
239
240 configure-stamp:
241@@ -84,32 +66,22 @@
242 cmake -DCMAKE_INSTALL_PREFIX=/usr \
243 \
244 -DMYSQL_UNIX_ADDR=/var/run/mysqld/mysqld.sock \
245- -DMYSQL_USER=mysql \
246 -DCMAKE_BUILD_TYPE=RelWithDebInfo \
247 -DWITH_LIBWRAP=ON \
248- -DWITH_READLINE=OFF \
249- -DWITH_LIBEDIT=OFF \
250- $(USE_STATIC_MYSQLD) \
251- $(USE_LINUX_NATIVE_AIO) \
252 -DWITH_ZLIB=system \
253 -DWITH_SSL=system \
254- -DCOMPILATION_COMMENT="($(DISTRIBUTION))" \
255- -DMYSQL_SERVER_SUFFIX="-$(DEBVERSION)" \
256- -DSYSTEM_TYPE="debian-linux-gnu" \
257- -DINSTALL_LAYOUT=RPM \
258- -DINSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH) \
259- -DINSTALL_PLUGINDIR=lib/mysql/plugin \
260- -DWITH_EMBEDDED_SERVER=OFF \
261- -DWITH_ARCHIVE_STORAGE_ENGINE=ON \
262- -DWITH_BLACKHOLE_STORAGE_ENGINE=ON \
263- -DWITH_FEDERATED_STORAGE_ENGINE=ON \
264- -DWITH_PAM=ON \
265+ -DCOMPILATION_COMMENT="($(DISTRIBUTION))" \
266+ -DMYSQL_SERVER_SUFFIX="-$(DEBVERSION)" \
267+ -DSYSTEM_TYPE="debian-linux-gnu" \
268+ -DINSTALL_LAYOUT=RPM \
269+ -DINSTALL_LIBDIR=lib/$(DEB_HOST_MULTIARCH) \
270+ -DINSTALL_PLUGINDIR=lib/mysql/plugin \
271+ -DWITH_EMBEDDED_SERVER=OFF \
272+ -DWITH_ARCHIVE_STORAGE_ENGINE=ON \
273+ -DWITH_BLACKHOLE_STORAGE_ENGINE=ON \
274+ -DWITH_FEDERATED_STORAGE_ENGINE=ON \
275+ -DWITH_PAM=ON \
276 -DWITH_EXTRA_CHARSETS=all ..'
277-
278- # --sysconfdir=/etc/mysql -- Appends /etc/mysql after ~/ in the my.cnf search patch!
279- #
280- # --with-debug
281-
282 touch $@
283
284 build: build-arch build-indep
285@@ -124,7 +96,7 @@
286 --exclude=debian . \
287 --transform="s,^\./,percona-server-5.6/,"
288
289- cd $(builddir) && $(MAKE) $(MAKE_JFLAG)
290+ cd $(builddir) && $(MAKE) $(MAKE_JFLAG) VERBOSE=1
291
292 ifeq ($(findstring nocheck,$(DEB_BUILD_OPTIONS)),)
293 # Don't know why the following is necessary...
294@@ -230,7 +202,7 @@
295
296 # Work around MySQL bug 71113, x bit set on example configs
297 chmod -x $(TMP)/usr/share/mysql/mysql-log-rotate
298-
299+ chmod -x $(TMP)/usr/share/mysql-test/include/have_QC_Disabled.inc
300 dh_movefiles
301
302 # Build architecture-independent files here.
303@@ -278,6 +250,7 @@
304 dh_installlogcheck -a
305 dh_installchangelogs -a
306 dh_strip -a
307+ dh_lintian
308 dh_link -a # .so muss nach .so.1.2.3 installier werden!
309 dh_compress -a
310 dh_fixperms -a

Subscribers

People subscribed via source and target branches