[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#935411: marked as done (buster-pu: package dbconfig-common/2.0.11+deb10u1)



Your message dated Sat, 07 Sep 2019 14:34:49 +0100
with message-id <[🔎] f49e2985d8466065c49c03185c24465a32228fb5.camel@adam-barratt.org.uk>
and subject line Closing bugs for fixes including in 10.1 point release
has caused the Debian Bug report #935411,
regarding buster-pu: package dbconfig-common/2.0.11+deb10u1
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
935411: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=935411
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: release.debian.org
User: release.debian.org@packages.debian.org
Usertags: pu
Tags: buster
Severity: normal

Hi all,

After the buster release, it was discovered that bash changed its POSIX
behavior for `local` variables (bug #935115). This was first reported
against dbconfig-common (bug #934027), because the change in bash causes
other packages, that use dbconfig-common to setup their database, to
fail during installation if the system administrator is using bash for
/bin/sh. I hope that the bug in bash gets fixed, but a work-around in
dbconfig-common is available and uploaded to unstable and pu.

I improved the autopkgtest to run its tests with /bin/sh as was my
intention. It would have caught this issue before bash migrated to buster.

Please consider accepting dbconfig-common 2.0.11+deb10u1.

Paul
diff -Nru dbconfig-common-2.0.11/debian/changelog dbconfig-common-2.0.11+deb10u1/debian/changelog
--- dbconfig-common-2.0.11/debian/changelog	2018-12-13 10:32:33.000000000 +0100
+++ dbconfig-common-2.0.11+deb10u1/debian/changelog	2019-08-18 21:23:05.000000000 +0200
@@ -1,3 +1,14 @@
+dbconfig-common (2.0.11+deb10u1) buster; urgency=medium
+
+  [ Marius Burkard ]
+  * Fix regression with /bin/sh pointing to bash due to changes in its
+    POSIX behaviour (Closes: #934027)
+
+  [ Paul Gevers ]
+  * tests: use sh instead of hardcoded *sh to catch issues like the above
+
+ -- Paul Gevers <elbrus@debian.org>  Sun, 18 Aug 2019 21:23:05 +0200
+
 dbconfig-common (2.0.11) unstable; urgency=medium
 
   [ Sunil Mohan Adapa ]
diff -Nru dbconfig-common-2.0.11/internal/mysql dbconfig-common-2.0.11+deb10u1/internal/mysql
--- dbconfig-common-2.0.11/internal/mysql	2018-12-13 10:32:33.000000000 +0100
+++ dbconfig-common-2.0.11+deb10u1/internal/mysql	2019-08-18 21:23:05.000000000 +0200
@@ -195,7 +195,8 @@
         if [ "${dbc_mysql_createdb_encoding:-}" ]; then
             extrasql=" CHARACTER SET '$dbc_mysql_createdb_encoding'";
         fi
-        _dbc_nodb="yes" dbc_mysql_exec_command "CREATE DATABASE \`$dbc_dbname\`${extrasql:-}"
+        _dbc_nodb="yes"
+        dbc_mysql_exec_command "CREATE DATABASE \`$dbc_dbname\`${extrasql:-}"
         ret=$?
         _dbc_nodb=""
         if [ "$ret" = "0" ]; then
@@ -314,7 +315,8 @@
 FLUSH PRIVILEGES;
 EOF
         l_dbname=$dbc_dbname
-        _dbc_nodb="yes" dbc_mysql_exec_file "$l_sqlfile"
+        _dbc_nodb="yes"
+        dbc_mysql_exec_file "$l_sqlfile"
         l_ret=$?
         _dbc_nodb=""
 
diff -Nru dbconfig-common-2.0.11/test/runtests.sh dbconfig-common-2.0.11+deb10u1/test/runtests.sh
--- dbconfig-common-2.0.11/test/runtests.sh	2018-12-13 10:32:33.000000000 +0100
+++ dbconfig-common-2.0.11+deb10u1/test/runtests.sh	2019-08-18 21:23:05.000000000 +0200
@@ -14,13 +14,13 @@
     printf "# # #\n# # # Test: $t\n# # #\n"
     printf "# #\n# # Shell: bash\n# #\n"
     rm /bin/sh && ln -s bash /bin/sh
-    bash $t
+    sh $t
     printf "\n# #\n# # Shell: dash\n# #\n"
     rm /bin/sh && ln -s dash /bin/sh
-    dash $t
+    sh $t
     printf "# #\n# # Shell: lksh\n# #\n"
     rm /bin/sh && ln -s lksh /bin/sh
-    lksh $t
+    sh $t
 #    printf "# #\n# # Shell: posh\n# #\n"
 #    rm /bin/sh && ln -s posh /bin/sh
 #    posh $t

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
Version: 10.1

Hi,

The fixes referenced by each of these bugs were included in today's
buster point release.

Regards,

Adam

--- End Message ---

Reply to: