Your message dated Fri, 07 Nov 2008 09:47:05 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#418062: fixed in mailman 1:2.1.11-4
has caused the Debian Bug report #418062,
regarding Mailman init(8) script doesn’t check for site name
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 [EMAIL PROTECTED]
immediately.)
--
418062: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=418062
Debian Bug Tracking System
Contact [EMAIL PROTECTED] with problems
--- Begin Message ---
Package: mailman
Version: 2.1.9-7
Current behaviour:
The GNU Mailman package's init(8) script assumes that the site list is
called "maiman" and refused to start if there is not list with this
name.
Expected behaviour:
The GNU Mailman package's init(8) script should check for the
MAILMAN_SITE_LIST value defined in /etc/mailman/mm_cfg.py and check
for a list with this name.
Solution:
I have attached a patch which fixes this issue.
--- mailman-2.1.9/debian/mailman.init
+++ mailman-2.1.9/debian/mailman.init
@@ -22,6 +22,8 @@
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/lib/mailman/bin/mailmanctl
PIDFILE=/var/lib/mailman/data/master-qrunner.pid
+MAILMAN_LIBRARY_DIRECTORY=/usr/lib/mailman/Mailman
+MAILMAN_CONFIGURATION_FILE=/etc/mailman/mm_cfg.py
test -x $DAEMON || exit 0
@@ -37,10 +39,33 @@
. /lib/lsb/init-functions
+get_site_list_name () {
+ # Load the GNU Mailman configuration and determine the site list name.
+
+ temporary_file_path=$(tempfile)
+ if [ $? -ne 0 ]; then
+ echo "Could not create temporary file."
+ return 1
+ fi
+ echo "import sys" >> $temporary_file_path
+ echo "sys.path.append(\"$MAILMAN_LIBRARY_DIRECTORY\")" >> \
+ $temporary_file_path
+ cat $MAILMAN_CONFIGURATION_FILE >> $temporary_file_path
+ echo "print MAILMAN_SITE_LIST" >> $temporary_file_path
+ site_list_name=$(cat $temporary_file_path | \
+ sudo -u nobody python 2> /dev/null)
+ rm $temporary_file_path
+ if [ -z "$site_list_name" ]; then
+ echo mailman
+ fi
+ echo $site_list_name
+}
+
case "$1" in
start)
- if [ "$(/var/lib/mailman/bin/list_lists -b | grep ^mailman$ )" = "" ]; then
- log_warning_msg "Site list for mailman (usually named mailman) missing."
+ site_list_name=$(get_site_list_name)
+ if [ "$(/var/lib/mailman/bin/list_lists -b | grep ^$site_list_name\$ )" = "" ]; then
+ log_warning_msg "Site list for mailman (named $site_list_name) missing."
log_warning_msg "Please create it; until then, mailman will refuse to start."
exit 0;
fi
--- End Message ---
--- Begin Message ---
Source: mailman
Source-Version: 1:2.1.11-4
We believe that the bug you reported is fixed in the latest version of
mailman, which is due to be installed in the Debian FTP archive:
mailman_2.1.11-4.diff.gz
to pool/main/m/mailman/mailman_2.1.11-4.diff.gz
mailman_2.1.11-4.dsc
to pool/main/m/mailman/mailman_2.1.11-4.dsc
mailman_2.1.11-4_i386.deb
to pool/main/m/mailman/mailman_2.1.11-4_i386.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 [EMAIL PROTECTED],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Thijs Kinkhorst <[EMAIL PROTECTED]> (supplier of updated mailman 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 [EMAIL PROTECTED])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Fri, 07 Nov 2008 09:48:10 +0100
Source: mailman
Binary: mailman
Architecture: source i386
Version: 1:2.1.11-4
Distribution: unstable
Urgency: medium
Maintainer: Mailman for Debian <[EMAIL PROTECTED]>
Changed-By: Thijs Kinkhorst <[EMAIL PROTECTED]>
Description:
mailman - Powerful, web-based mailing list manager
Closes: 418062 504695 504700
Changes:
mailman (1:2.1.11-4) unstable; urgency=medium
.
[ Lionel Elie Mamane ]
* Add -loop to list of accepted suffixes for routers in
README.Exim4.Debian
.
[ Thijs Kinkhorst ]
* Add mischief to logrotate configuration (closes: #504700).
* Update Mailman group and aliases path in README.Exim4.Debian,
thanks Kris Popendorf (closes: #504695).
* Detect a nonstandard site list name, thanks Moritz Naumann
(closes: #418062).
Checksums-Sha1:
f24e1ee595fdfa6063ae9cbbc64ffda5bfd7a1d8 1624 mailman_2.1.11-4.dsc
db6ede5eb51e71f080b1f530c20f5581f606fb30 142339 mailman_2.1.11-4.diff.gz
873f415c81f675a01037983a1f755faa5be264d5 9543414 mailman_2.1.11-4_i386.deb
Checksums-Sha256:
48dc906bca6cd0f5b111c5e9fc345b31789c3b67dac36de4f850ea8b76fc4a83 1624
mailman_2.1.11-4.dsc
bfa48e650759302ce4888da8724010849045d481fb7e48ba1ba5b1977e924154 142339
mailman_2.1.11-4.diff.gz
6dbd0bad734a9fec8b9e9c31babd39ab73cb4c19cd4fea4c7d50d991ee08a0fb 9543414
mailman_2.1.11-4_i386.deb
Files:
ad2c3ab035767f7a9bb11e699bea2925 1624 mail optional mailman_2.1.11-4.dsc
43a86c133b312901e70efe9ed4eb755d 142339 mail optional mailman_2.1.11-4.diff.gz
fe90f502455d1e96504ffd526ebe6041 9543414 mail optional
mailman_2.1.11-4_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iQEcBAEBAgAGBQJJFAvMAAoJEGz0hbPcukPfNHkH/RF7IShyHHTjkK9bCGvOLHDb
NmybnDqNQnRPF+j3pvUitfcARJvntZ+YbQXsYXBL+11cvbhclddJ/7Detjz56ztT
7k4sIYGdYb5AwVudafBtV130CcZVwH1gsyCUfQFWQFdHHprWnbIbXyNEFcdRDuTI
F5dirRUFNp8TCbz/XVzvuXiAIPHVjAN1eEuMuGN5Btjqq34/r8Zuepkjn0FewGXC
8PGijy26w1NmBARnKQn57Y9zusQWPpygYb6TBErmvBxiQ0dZJHTNvisVOOwy50KC
XZk4mn8sPjy+cQN576GT46WGCwGU+VxYBs/je5wliKkyN/pKXDTGNrIajseuISo=
=kDRi
-----END PGP SIGNATURE-----
--- End Message ---