Bug#392604: marked as done (mldonkey-server: mldonkey_server requires that HOME is set but claims the contrary)
Your message dated Tue, 24 Oct 2006 14:47:31 -0700
with message-id <E1GcU7P-0003CJ-JR@spohr.debian.org>
and subject line Bug#392604: fixed in mldonkey 2.8.1-2
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: mldonkey-server
Version: 2.8.1-1
Severity: normal
Tags: patch
mldonkey_server cannot run if the HOME variable is unset, whether the
--chdir option is used or not:
# mldonkey_server
Set niceness of the process: 0
Set uid/gid of the process (0, 0)
Set umask of the process: 18
Chdir to home dir: /root
Writing PID (5432) to pidfile: /root/.mldonkey/mldonkey.pid
Launching MLnet process
2006/10/12 09:01:35 [cO] Starting MLDonkey 2.8.1 ...
2006/10/12 09:01:35 [cO] Language EN, locale UTF-8, ulimit for open
files 1024
2006/10/12 09:01:35 [cO] MLDonkey is working in .
2006/10/12 09:01:35 Loading language resource
/root/.mldonkey/mlnet_strings.en_US.UTF-8
2006/10/12 09:01:35 [cO] loaded language resource file
2006/10/12 09:01:35 [DNS] Resolving [maillekeul] ...
2006/10/12 09:01:35 [DNS] Resolving [www.mldonkey.net] ...
2006/10/12 09:01:35 [cO] Logging in ./mlnet.log
2006/10/12 09:01:35 [dMain] Core started
Terminate process
Stopping processes PID ( 5433 0 0 )
Waiting termination of process 5433
Process 5433 terminated
Process stopped PID ( 5433 0 0 )
MLDonkey server end
Removing pidfile: /root/.mldonkey/mldonkey.pid
# unset HOME
# mldonkey_server
Could not guess $HOME environnement variable: provide a --chdir or
$HOME
# mldonkey_server --chdir /root/.mldonkey
Set niceness of the process: 0
Set uid/gid of the process (0, 0)
Set umask of the process: 18
Could not guess $HOME environnement variable: provide a --chdir or
$HOME
# HOME=/nonexistent mldonkey_server --chdir /root/.mldonkey
Set niceness of the process: 0
Set uid/gid of the process (0, 0)
Set umask of the process: 18
Chdir to home dir: /nonexistent
Writing PID (5438) to pidfile: /root/.mldonkey/mldonkey.pid
Launching MLnet process
2006/10/12 09:04:06 [cO] Starting MLDonkey 2.8.1 ...
2006/10/12 09:04:06 [cO] Language EN, locale UTF-8, ulimit for open
files 1024
2006/10/12 09:04:06 [cO] MLDonkey is working in .
2006/10/12 09:04:06 Loading language resource
/root/.mldonkey/mlnet_strings.en_US.UTF-8
2006/10/12 09:04:06 [cO] loaded language resource file
2006/10/12 09:04:06 [DNS] Resolving [maillekeul] ...
2006/10/12 09:04:06 [DNS] Resolving [www.mldonkey.net] ...
2006/10/12 09:04:06 [cO] Logging in ./mlnet.log
2006/10/12 09:04:06 [dMain] Core started
mldonkey_server claims that a --chdir option can replace a HOME
variable, but it cannot run if HOME is unset.
I do not understand the necessity of the following 2 lines in the
definition of the go_home function (around the line 280):
debug st ("Chdir to home dir: " ^ (user_home st));
Unix.putenv "HOME" (user_home st);
Why display "Chdir to home" when we chdir to chdir? It could be
necessary to set HOME if mlnet required a defined HOME variable; is it
the case? Or is it very unconventional to not have a HOME variable? I
tested the program without those lines and it works fine, so here is the
patch:
--- debian/utils/mldonkey_server.ml.orig 2006-10-12
08:53:17.000000000 +0200
+++ debian/utils/mldonkey_server.ml 2006-10-12 09:32:35.000000000
+0200
@@ -273,8 +273,7 @@
ignore (print_log st str)
let go_home st =
- debug st ("Chdir to home dir: " ^ (user_home st));
- Unix.putenv "HOME" (user_home st);
+ debug st ("Chdir to chdir dir: " ^ (get_chdir st));
Unix.putenv "MLDONKEY_STRINGS" (Filename.concat (get_chdir st)
"mlnet_strings");
Sys.chdir (get_chdir st)
--- End Message ---
--- Begin Message ---
Source: mldonkey
Source-Version: 2.8.1-2
We believe that the bug you reported is fixed in the latest version of
mldonkey, which is due to be installed in the Debian FTP archive:
mldonkey-gui_2.8.1-2_i386.deb
to pool/main/m/mldonkey/mldonkey-gui_2.8.1-2_i386.deb
mldonkey-server_2.8.1-2_i386.deb
to pool/main/m/mldonkey/mldonkey-server_2.8.1-2_i386.deb
mldonkey_2.8.1-2.diff.gz
to pool/main/m/mldonkey/mldonkey_2.8.1-2.diff.gz
mldonkey_2.8.1-2.dsc
to pool/main/m/mldonkey/mldonkey_2.8.1-2.dsc
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 392604@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Samuel Mimram <smimram@debian.org> (supplier of updated mldonkey 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 ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.7
Date: Tue, 24 Oct 2006 21:29:32 +0000
Source: mldonkey
Binary: mldonkey-gui mldonkey-server
Architecture: source i386
Version: 2.8.1-2
Distribution: unstable
Urgency: low
Maintainer: Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org>
Changed-By: Samuel Mimram <smimram@debian.org>
Description:
mldonkey-gui - Graphical frontend for mldonkey based on GTK
mldonkey-server - Door to the 'donkey' network
Closes: 389455 391729 392604 392605 392617 395068
Changes:
mldonkey (2.8.1-2) unstable; urgency=low
.
* Added newdns.dpatch to fix the DNS resolution problem with
www.mldonkey.net, closes: #395068.
* Creating mldonkey group as system group, closes: #389455.
* Flushing after password prompt in mldonkey_command, closes: #391729.
* Patched mldonkey_server to be able to run mldonkey even when HOME is not
set (thanks Géraud Meyer), closes: #392604.
* Cleanly handle erroneous --chuid / --chgid / --umask arguments in
mldonkey_server (thanks Géraud Meyer), closes: #392605.
* Fixed a typo in mldonkey_server (thanks Géraud Meyer), closes: #392617.
* Change address of Sylvain Le Gall to gildor@debian.org.
Files:
f1bca5d29b9ff350dcacbac5906c9b71 1054 net optional mldonkey_2.8.1-2.dsc
e8b9b200b62697d30d8cdc8369f0a7a9 114336 net optional mldonkey_2.8.1-2.diff.gz
9b65c47559c682612013fc2c919f9fda 2888226 net optional mldonkey-server_2.8.1-2_i386.deb
2db8fe10957b3508cb94c3e83540139e 3264428 net optional mldonkey-gui_2.8.1-2_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)
iD8DBQFFPoffIae1O4AJae8RAi6eAJ9yxhJ6TMDM7P2PMjkPs85W0Dct4gCdHpVv
luACFseY+vHIgVB+89Ul92Y=
=e0oI
-----END PGP SIGNATURE-----
--- End Message ---
Reply to: