Hi,

I'm trying to setup mailman and python2.5 in a jail for a long time. With python2.4 it works like a charm but not with python2.5. Maybe someone here has a clue what's wrong. I asked 6 months ago at the mailman mailing list but without success: http://www.mail-archive.com/[EMAIL PROTECTED]/msg46480.html, Removing python2.4 from the system does not solve the problem.

#!/bin/sh

export JAIL="/home/python25"
mkdir -p $JAIL/usr/local/lib $JAIL/usr/local/bin $JAIL/lib $JAIL/usr/lib $JAIL/libexec
cp -rp /usr/local/mailman $JAIL/usr/local/
cp -rp /usr/local/lib/python2.4 $JAIL/usr/local/lib/
cp -rp /usr/local/lib/python2.5 $JAIL/usr/local/lib/
cp -p /usr/local/bin/python2.4 $JAIL/usr/local/bin/
cp -p /usr/local/bin/python2.5 $JAIL/usr/local/bin/

With the help of 'ldd /usr/local/bin/python2.4' and 'ldd /usr/local/bin/python2.5':

cp -p /lib/libutil.so.7 $JAIL/lib/
cp -p /usr/lib/libstdc++.so.6 $JAIL/usr/lib/
cp -p /lib/libm.so.5 $JAIL/lib/
cp -p /lib/libgcc_s.so.1 $JAIL/lib/
cp -p /lib/libthr.so.3 $JAIL/lib/
cp -p /lib/libc.so.7 $JAIL/lib/

cp -p /lib/libutil.so.7 $JAIL/lib/
cp -p /lib/libm.so.5 $JAIL/lib/
cp -p /lib/libthr.so.3 $JAIL/lib/
cp -p /lib/libc.so.7 $JAIL/lib/

cp -p /libexec/ld-elf.so.1 $JAIL/libexec/

If I start e.g. mailmanclt from jail I get this:

[EMAIL PROTECTED] ~]# chroot -u root /home/python25/ /usr/local/mailman/bin/mailmanctl
Traceback (most recent call last):
 File "/usr/local/mailman/bin/mailmanctl", line 107, in <module>
   from Mailman import Utils
 File "/usr/local/mailman/Mailman/Utils.py", line 32, in <module>
   import sha
 File "/usr/local/lib/python2.5/sha.py", line 6, in <module>
   from hashlib import sha1 as sha
 File "/usr/local/lib/python2.5/hashlib.py", line 133, in <module>
   md5 = __get_builtin_constructor('md5')
File "/usr/local/lib/python2.5/hashlib.py", line 60, in __get_builtin_constructor
   import _md5
ImportError: No module named _md5
[EMAIL PROTECTED] ~]#

When I edit '/home/python25/usr/local/mailman/bin/mailmanctl' and change the first line '#! /usr/local/bin/python2.5' to '#! /usr/local/bin/python2.4' everything works fine.

I appreciate any ideas.

Thanks, Helmut

--
No Swen today, my love has gone away
My mailbox stands for lorn, a symbol of the dawn

_______________________________________________
freebsd-ports@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-ports
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to