mailman2.1.x and python2.5 in a jail

Helmut Schneider jumper99 at
Fri Apr 25 19:16:53 UTC 2008


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:, Removing 
python2.4 from the system does not solve the problem.


export JAIL="/home/python25"
mkdir -p $JAIL/usr/local/lib $JAIL/usr/local/bin $JAIL/lib $JAIL/usr/lib 
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 

cp -p /lib/ $JAIL/lib/
cp -p /usr/lib/ $JAIL/usr/lib/
cp -p /lib/ $JAIL/lib/
cp -p /lib/ $JAIL/lib/
cp -p /lib/ $JAIL/lib/
cp -p /lib/ $JAIL/lib/

cp -p /lib/ $JAIL/lib/
cp -p /lib/ $JAIL/lib/
cp -p /lib/ $JAIL/lib/
cp -p /lib/ $JAIL/lib/

cp -p /libexec/ $JAIL/libexec/

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

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

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 

More information about the freebsd-ports mailing list