Commit c902d5a4 authored by Kristien Nielsen's avatar Kristien Nielsen Committed by Otto Kekäläinen

Apply debian/patches/61_replace_dash_with_bash_mbug675185.dpatch

We have carried along this patch as a patch inside our sources
since 2012 (commit cfd4fcb0).

The validity of this has thus been vetted in production for years
and the review done now did not find otherwise.

A race in dash causes mysqld_safe to occasionally loop infinitely.
Fix by using bash instead.

https://bugs.launchpad.net/ubuntu/+source/mysql-dfsg-5.0/+bug/675185

As this is the last patch, we can also clean away usage of dpatch.
parent 64094e12
......@@ -8,7 +8,6 @@ Build-Depends: bison,
debhelper (>= 9),
dh-apparmor,
dh-systemd,
dpatch,
gdb,
libaio-dev [linux-any],
libboost-dev,
......
61_replace_dash_with_bash_mbug675185.dpatch
#! /bin/sh /usr/share/dpatch/dpatch-run
## 61_replace_dash_with_bash_mbug675185.dpatch by <knielsen@knielsen-hq.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: 61_replace_dash_with_bash_mbug675185
## DP: A race in dash causes mysqld_safe to occasionally loop infinitely.
## DP: Fix by using bash instead.
## DP: https://bugs.launchpad.net/ubuntu/+source/mysql-dfsg-5.0/+bug/675185
@DPATCH@
=== modified file 'scripts/mysqld_safe.sh'
--- old/scripts/mysqld_safe.sh 2010-04-09 11:47:18 +0000
+++ new/scripts/mysqld_safe.sh 2010-11-21 09:40:50 +0000
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
# Copyright Abandoned 1996 TCX DataKonsult AB & Monty Program KB & Detron HB
# This file is public domain and comes with NO WARRANTY of any kind
#
......@@ -182,6 +182,6 @@ get-orig-source:
# white list file only starting from Debian Stretch and Ubuntu Xenial.
# To find more, grep build logs for 'but is not installed to anywhere'.
%:
dh $@ --parallel --with dpatch --with systemd --list-missing
dh $@ --parallel --with systemd --list-missing
# vim: ts=8
#!/bin/sh
#!/bin/bash
# Copyright Abandoned 1996 TCX DataKonsult AB & Monty Program KB & Detron HB
# This file is public domain and comes with NO WARRANTY of any kind
#
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment