Package: dbconfig-common
Version: 2.0.11
Severity: important
Tags: patch

Dear Maintainer,

When using bash as shell (dpkg-reconfigure dash -> answer no), the 
dbconfig-common package cannot create databases for packages like roundcube
The problem only seems to occur when bash is in posix mode and is a version of 
5+ (debian 10). debian 9 and lower do not seem to be affected.

The installer fails with message like this:
creating database roundcube: failed.
error encountered creating database:
mysql said: ERROR 1049 (42000): Unknown database 'roundcube'

The problem seems to be that bash changed posix handling of environment 
variables passed to function calls.

Patch is included here: 
https://salsa.debian.org/debian/dbconfig-common/merge_requests/2
The comments to the mentioned merge request include a sample script to 
reproduce the behaviour.


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

Kernel: Linux 4.19.0-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages dbconfig-common depends on:
ii  debconf [debconf-2.0]  1.5.71
ii  ucf                    3.0038+nmu1

dbconfig-common recommends no packages.

Versions of packages dbconfig-common suggests:
ii  dbconfig-no-thanks  2.0.11

-- debconf information excluded

Reply via email to