Bug#773282: [debian-mysql] Bug#773282: Bug#773282: mariadb-server-10.0: init script returns failure on success

2014-12-20 Thread Otto Kekäläinen
I now had the time to reproduce this, and write and test a fix. This
is now committed in
http://anonscm.debian.org/cgit/pkg-mysql/mariadb-10.0.git/commit/?id=3afe791ed47b897de8fa9be998a4217fc2a36bad
but I am not sure if this alone justifies an upload of 10.0.15-3 into
unstable..

Please file some more bugs that I can fix and motivate a 10.0.15-3
upload with :)


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#773282: [debian-mysql] Bug#773282: mariadb-server-10.0: init script returns failure on success

2014-12-17 Thread Otto Kekäläinen
2014-12-16 14:04 GMT+02:00 Frédéric Brière fbri...@fbriere.net:
 The problem lies with line 122: /etc/mysql/debian-start no longer
 outputs anything (at least for me), so the expression evaluates to 1,
 hence the statement (because of ), hence the script (because this is
 the last statement).  Shell scripting is such a pain...

 Using if (which returns 0) or appending || true does the trick

Thank you for taking the time to report this.

I believe I broke the init script in the commit
http://anonscm.debian.org/cgit/pkg-mysql/mariadb-10.0.git/commit/?id=7afa3d0dc6fef794528bc7a06ad2244b8eb3b315
I still think it is a good thing not to output extra stuff during
start/stop, so instead of reverting the change I'll do one of the
things you suggested to fix it.


--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org



Bug#773282: mariadb-server-10.0: init script returns failure on success

2014-12-16 Thread Frédéric Brière
Package: mariadb-server-10.0
Version: 10.0.15-2
Severity: normal

Upgrading from 10.0.15-1 to -2:

  Setting up mariadb-server-10.0 (10.0.15-2) ...
  [ ok ] Stopping MariaDB database server: mysqld.
  [ ok ] Starting MariaDB database server: mysqld.
  invoke-rc.d: initscript mysql, action start failed.
  dpkg: error processing package mariadb-server-10.0 (--configure):
   subprocess installed post-installation script returned error exit status 1

Hmm.

  # service mysql restart; echo $?
  [ ok ] Stopping MariaDB database server: mysqld.
  [ ok ] Starting MariaDB database server: mysqld.
  1

The problem lies with line 122: /etc/mysql/debian-start no longer
outputs anything (at least for me), so the expression evaluates to 1,
hence the statement (because of ), hence the script (because this is
the last statement).  Shell scripting is such a pain...

Using if (which returns 0) or appending || true does the trick.


-- System Information:
Debian Release: 8.0
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (x86_64)
Foreign Architectures: amd64

Kernel: Linux 3.16.0-4-amd64 (SMP w/3 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages mariadb-server-10.0 depends on:
ii  adduser   3.113+nmu3
ii  debconf [debconf-2.0] 1.5.55
ii  libaio1   0.3.110-1
ii  libc6 2.19-13
ii  libdbi-perl   1.631-3+b1
ii  libpam0g  1.1.8-3.1
ii  libstdc++64.9.2-8
ii  lsb-base  4.1+Debian13+nmu1
ii  mariadb-client-10.0   10.0.15-2
ii  mariadb-common10.0.15-2
ii  mariadb-server-core-10.0  10.0.15-2
ii  passwd1:4.2-3
ii  perl  5.20.1-3
ii  psmisc22.21-2
ii  zlib1g1:1.2.8.dfsg-2+b1

Versions of packages mariadb-server-10.0 recommends:
ii  libhtml-template-perl  2.95-1

Versions of packages mariadb-server-10.0 suggests:
ii  bsd-mailx [mailx]  8.1.2-0.20140825cvs-1
pn  mariadb-test   none
pn  tinyca none

-- Configuration Files:
/etc/init.d/mysql changed [not included]

-- debconf information:
  mariadb-server-10.0/really_downgrade: false
  mysql-server-10.0/postrm_remove_databases: false
* mysql-server/password_mismatch:
  mysql-server/error_setting_password:
  mysql-server/no_upgrade_when_using_ndb:
  mysql-server-10.0/nis_warning:
* mariadb-server/oneway_migration: true


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org