[Mailman-Users] mailman, postifx, and bsdos3

Tor Houghton th at nextel.no
Tue Mar 30 11:13:36 CEST 1999


I had this problem when installing 1.0b9 on OpenBSD 2.3. I found the fix
to be in /usr/local/lib/python1.5/posixfile.py :

redlance# diff -u posixfile.py.old posixfile.py
--- posixfile.py.old    Tue Mar 23 13:10:45 1999
+++ posixfile.py        Tue Mar 23 13:07:51 1999
@@ -177,7 +177,7 @@
        # Hack by davem at magnet.com to get locking to go on freebsd;
        # additions for AIX by Vladimir.Marangozov at imag.fr
         import sys, os
-        if sys.platform in ('netbsd1', 'freebsd2', 'freebsd3'):
+        if sys.platform in ('netbsd1', 'freebsd2', 'freebsd3', 'openbsd'):
            flock = struct.pack('lxxxxlxxxxlhh', \
                  l_start, l_len, os.getpid(), l_type, l_whence) 
         elif sys.platform in ['aix3', 'aix4']:
@@ -190,7 +190,7 @@
        flock = fcntl.fcntl(self._file_.fileno(), cmd, flock)
 
        if '?' in how:
-           if sys.platform in ('netbsd1', 'freebsd2', 'freebsd3'):
+           if sys.platform in ('netbsd1', 'freebsd2', 'freebsd3', 'openbsd'):
                l_start, l_len, l_pid, l_type, l_whence = \
                    struct.unpack('lxxxxlxxxxlhh', flock)
             elif sys.platform in ['aix3', 'aix4']:


Basically, all I did was hack "davem at magnet.com"'s hack. It works fine for
me now. Perhaps this is already fixed in the latest version of python?

Tor.

On Mon, 29 Mar 1999, George M. Ellenburg (Mailing List Account) wrote:

> Greetings!
> 
> At the request of some of my customers, I've recently installed mailman on
> BSD 3.1, with Postfix beta-19990317-pl02 as the transport.
> 
> Frankly, I'm a little confused with regards to the install instructions.
> Was wondering if anyone can provide some elightenment.
> 
> I'm getting the following error when trying to create a test list:
> sundial:~/bin $ whoami
> mailman
> sundial:~/bin $ ./newlist
> Enter the name of the list: test
> Enter the email of the person running the list: gme at caffeine.sundial.net
> Initial test password: testpassword
> Traceback (innermost last):
>   File "./newlist", line 141, in ?
>     raise SystemExit(main(sys.argv))
>   File "./newlist", line 91, in main
>     newlist.Create(list_name, owner_mail, pw)
>   File "/u1/mailman/Mailman/MailList.py", line 658, in Create
>     self.Lock()
>   File "/u1/mailman/Mailman/MailList.py", line 1213, in Lock
>     self._lock_file.lock('w|', 1)
>   File "/usr/local/lib/python1.5/posixfile.py", line 190, in lock
>     flock = fcntl.fcntl(self._file_.fileno(), cmd, flock)
> IOError: (22, 'Invalid argument')
> sundial:~/bin $
> 
> 
> -----
> George M. Ellenburg                                    Tel: +1 407 438 6710
> Systems Administrator,                                 Fax: +1 407 438 6714
> Sundial Internet Services,                             WWW: www.sundial.net
> a Division of Micro Mainframe Technology, Inc.
> 
> ------------------------------------------------------
> Mailman-Users maillist  -  Mailman-Users at python.org
> http://www.python.org/mailman/listinfo/mailman-users
> 





More information about the Mailman-Users mailing list