Your message dated Mon, 07 Mar 2011 02:13:14 +0000
with message-id <e1pwpwg-0005jf...@franck.debian.org>
and subject line Bug#611820: fixed in dbconfig-common 1.8.46+squeeze.0
has caused the Debian Bug report #611820,
regarding dbconfig-common doesn't work properly when the version of the
database script for upgrade is greather than 1.10, 1.10.1, 1.10.2, 1.10.3,
1.11, 1.12
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 ow...@bugs.debian.org
immediately.)
--
611820: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=611820
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: dbconfig-common
Version: 1.8.38ubuntu1
Severity: major
When I upgrade my package version from 1.5.5 --> 1.12, with mysql's script
for upgrade named : 1.6, 1.7, 1.7.1, 1.7.2, 1.7.3, 1.7.4, 1.7.5, 1.7.6, 1.8,
1.9, 1.10,
1.10.1, 1.10.2, 1.10.3, 1.10.4 1.11 and 1.12
To have a transcript, you can use the /usr/share/doc/dbconfig-
common/examples/db-test-mysql-2.1
1. Rename the package:
/usr/share/doc/dbconfig-common/examples/db-test-mysql-2.1 to
/usr/share/doc/dbconfig-common/examples/db-test-mysql-1.5.5
don't forget to update your changelog
2. install the first package (dpkg -i your_package_name_1.5.5_all.deb).
3. Create a new package db-test-mysql-1.12 with mysql upgrade's files from:
mysql-upgrade_1.6, mysql-upgrade_1.7, mysql-upgrade_1.7.1,
mysql-upgrade_1.7.2,
mysql-upgrade_1.7.3, ... mysql-upgrade_1.10.1, mysql-upgrade_1.10.2,
mysql-upgrade_1.10.3, mysql-upgrade_1.11, mysql-upgrade_1.12 with a script
to upgrade the version
of the database: update mytable set version='1.10.1' for example for
mysql-upgrade_1.10.1;
4. Generate your package
5. Upgrade your package (dpkg -i your_package_name_1.12_all.deb)
The result is:
applying upgrade sql for 1.5.5 -> 1.6.
applying upgrade sql for 1.5.5 -> 1.7.
applying upgrade sql for 1.5.5 -> 1.7.1.
applying upgrade sql for 1.5.5 -> 1.7.2.
applying upgrade sql for 1.5.5 -> 1.7.3.
applying upgrade sql for 1.5.5 -> 1.7.4.
applying upgrade sql for 1.5.5 -> 1.7.5.
applying upgrade sql for 1.5.5 -> 1.7.6.
applying upgrade sql for 1.5.5 -> 1.8.
applying upgrade sql for 1.5.5 -> 1.9.
applying upgrade sql for 1.5.5 -> 1.10.
Some scripts (1.10.1, 1.10.2, 1.10.3, 1.10.4 1.11 and 1.12) are not applied.
I suggest that the function dbc_find_upgrades() that sort files and return
the list of the files sorted, in /usr/share/dbconfig-common/dpkg/postinst,
be corrected.
Specially replace this script:
from line 248 to 258:
# if we haven't already placed it
if [ ! "$placed" ]; then
# if the this version is less than the next sorted one
if dpkg --compare-versions $f lt $s; then
# insert it here
tlist="$tlist $f $s"
placed="yes"
else
# it's not less, so append the sorted one and continue
tlist="$tlist $s"
fi
fi
with:
# if we haven't already placed it
if [ ! "$placed" ]; then
# if the this version is less than the next sorted one
if dpkg --compare-versions $f lt $s; then
# insert it here
tlist="$tlist $f"
placed="yes"
fi
fi
tlist="$tlist $s"
I am using Ubuntu GNU/Linux 8.04 LTS, kernel 2.6.24-23-server and libc6
Version: 2.7-10ubuntu5
--
*Ghislain Mokolomboka*
*Dvidea
Paris Innovation Massena - Hall B - 7ème étage
15, rue Jean-Baptiste Berlier
75013 Paris
www.dvidea.com
Tel: +33 1 55 43 79 04
Fax: +33 1 55 43 75 01*
--- End Message ---
--- Begin Message ---
Source: dbconfig-common
Source-Version: 1.8.46+squeeze.0
We believe that the bug you reported is fixed in the latest version of
dbconfig-common, which is due to be installed in the Debian FTP archive:
dbconfig-common_1.8.46+squeeze.0.dsc
to main/d/dbconfig-common/dbconfig-common_1.8.46+squeeze.0.dsc
dbconfig-common_1.8.46+squeeze.0.tar.gz
to main/d/dbconfig-common/dbconfig-common_1.8.46+squeeze.0.tar.gz
dbconfig-common_1.8.46+squeeze.0_all.deb
to main/d/dbconfig-common/dbconfig-common_1.8.46+squeeze.0_all.deb
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to 611...@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Sean Finney <sean...@debian.org> (supplier of updated dbconfig-common package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmas...@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Sun, 06 Mar 2011 16:45:54 +0100
Source: dbconfig-common
Binary: dbconfig-common
Architecture: source all
Version: 1.8.46+squeeze.0
Distribution: stable
Urgency: low
Maintainer: Sean Finney <sean...@debian.org>
Changed-By: Sean Finney <sean...@debian.org>
Description:
dbconfig-common - common framework for packaging database applications
Closes: 611820
Changes:
dbconfig-common (1.8.46+squeeze.0) stable; urgency=low
.
* Fix version sorting logic bug on upgrade files in postinst.
Thanks to Ghislain Mokolomboka <mghisl...@dvidea.com> (Closes: #611820)
Checksums-Sha1:
2813eeda41e7c63049319d2f27473cb5c22094ec 1039
dbconfig-common_1.8.46+squeeze.0.dsc
12e41668c96cb45501299ec2a3478bc498206862 363297
dbconfig-common_1.8.46+squeeze.0.tar.gz
c90de8e06d3bbceff6bd7853c5ec0ef46759e1c7 477232
dbconfig-common_1.8.46+squeeze.0_all.deb
Checksums-Sha256:
1dac7e94750bcb5563b5f4921e08ef9a5730aa18a875c92b4b3dbd7397a9622e 1039
dbconfig-common_1.8.46+squeeze.0.dsc
5763eac4f10610ba2f655580010102e9e9ae9a51d4ac23cb15ec7a70978789a7 363297
dbconfig-common_1.8.46+squeeze.0.tar.gz
fc35d0021fcd5ea4d4566f32d893c46223c9ec3cafc686e32bbfb97ee6354f5e 477232
dbconfig-common_1.8.46+squeeze.0_all.deb
Files:
86d2117ba04f1e34c957dcd431e41f51 1039 admin optional
dbconfig-common_1.8.46+squeeze.0.dsc
7e7136541936ecd3f982bcc034be15eb 363297 admin optional
dbconfig-common_1.8.46+squeeze.0.tar.gz
e36465462bae9ca5294a89a976b1740f 477232 admin optional
dbconfig-common_1.8.46+squeeze.0_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
iEYEARECAAYFAk10CWsACgkQynjLPm522B2EHACfSf+6stWDUpDwaWE3hIpWRf7c
+aIAn0k+eGSG9QcxqgfX/fno199+3mi0
=ezxW
-----END PGP SIGNATURE-----
--- End Message ---