From owner-freebsd-ports@FreeBSD.ORG Fri Apr 25 19:16:53 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6459A1065670 for ; Fri, 25 Apr 2008 19:16:53 +0000 (UTC) (envelope-from freebsd-ports@m.gmane.org) Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by mx1.freebsd.org (Postfix) with ESMTP id E23628FC0C for ; Fri, 25 Apr 2008 19:16:52 +0000 (UTC) (envelope-from freebsd-ports@m.gmane.org) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JpTPa-0003fq-2y for freebsd-ports@freebsd.org; Fri, 25 Apr 2008 19:16:46 +0000 Received: from p4fe5d3df.dip.t-dialin.net ([79.229.211.223]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Apr 2008 19:16:46 +0000 Received: from jumper99 by p4fe5d3df.dip.t-dialin.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 25 Apr 2008 19:16:46 +0000 X-Injected-Via-Gmane: http://gmane.org/ To: freebsd-ports@freebsd.org From: "Helmut Schneider" Date: Fri, 25 Apr 2008 21:16:30 +0200 Lines: 68 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset="iso-8859-1"; reply-type=original Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: p4fe5d3df.dip.t-dialin.net X-MSMail-Priority: Normal X-Newsreader: vi with a tiny GUI... X-MimeOLE: Huh, what?! Sender: news Subject: mailman2.1.x and python2.5 in a jail X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 25 Apr 2008 19:16:53 -0000 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/mailman-users@python.org/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: [root@BSDHelmut ~]# chroot -u root /home/python25/ /usr/local/mailman/bin/mailmanctl Traceback (most recent call last): File "/usr/local/mailman/bin/mailmanctl", line 107, in from Mailman import Utils File "/usr/local/mailman/Mailman/Utils.py", line 32, in import sha File "/usr/local/lib/python2.5/sha.py", line 6, in from hashlib import sha1 as sha File "/usr/local/lib/python2.5/hashlib.py", line 133, in 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 [root@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