From: UnixOS2 Archive To: "UnixOS2 Archive" Date: Sat, 15 Feb 2003 04:53:27 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 45 ************************************************** Friday 14 February 2003 Number 45 ************************************************** Subjects for today 1 Re: ln : Steve Wendt" 2 ln : John Poltorak 3 Python's libraries : John Poltorak 4 Re: Missing server software : Andrew MacIntyre 5 Re: OpenWatcom : Andrew MacIntyre 6 PTHREADS : John Poltorak 7 GNU MP library : John Poltorak 8 [Ux2bs] Mailman 2.1.1 update : Ted Sikora 9 Mailman 2.1.1 update : Ted Sikora 10 [Ux2bs] Re: Mailman 2.1.1 update : Ted Sikora 11 Re: Mailman 2.1.1 update : Ted Sikora 12 EXPAT : John Poltorak 13 Making UnixOS/2 PKGs : John Poltorak 14 [Mailman-os2] Mailman 2.1.1 update : Ted Sikora 15 Re: PTHREADS : John Poltorak 16 Re: Making UnixOS/2 PKGs : Dave Saville" 17 Re: PTHREADS : Robert Henschel 18 Re: PTHREADS : John Poltorak 19 Re: PTHREADS : Sebastian Wittmeier (ShadoW)" 20 Re: ln : Stefan Neis **= Email 1 ==========================** Date: Sat, 15 Feb 2003 01:54:05 -0800 (PST) From: "Steve Wendt" Subject: Re: ln On Sat, 15 Feb 2003 09:29:45 +0000, John Poltorak wrote: >The question is, what should LN be? A copy of cp.exe or ln.cmd:- ? > >cp %1 %2 It would certainly be better to be a copy of cp.exe than this, since you may have more than two arguments (for example, ln -is file1 file2). The (GNU) cp.exe I have here seems to understand -is, but gives an appropriate error: cp: symbolic links are not supported on this system Meanwhile, the ln.exe I have (from IBM's NFS? dated 4/4/94) won't work at all with -is, and returns "The Link request was successful." although it didn't do anything on the local drive. So, going by what I have here, something else is needed... ----------- "Good people do not need laws to tell them to act responsibly, while bad people will find a way around the laws." - Plato (427-347 B.C.) **= Email 2 ==========================** Date: Sat, 15 Feb 2003 09:29:45 +0000 From: John Poltorak Subject: ln It seems that it is essential to have an LN command to be able to get by, at least as far as building some apps is concerned. I couldn't build diffutils until I created an LN executable. The question is, what should LN be? A copy of cp.exe or ln.cmd:- ? LN.CMD ======= at echo off cp %1 %2 -- John **= Email 3 ==========================** Date: Sat, 15 Feb 2003 09:39:44 +0000 From: John Poltorak Subject: Python's libraries Python seems to use quite a few libraries including Berkeley DB, Readline, zlib, gnuufc, gdbm etc. Is there a list of versions of the libraries used? Some of them seem old, and I wondered if the would be any problems introduced by bringing them uptodate? Are there any instructions for building Perl with all the libraries linked dynamically? -- John **= Email 4 ==========================** Date: Sat, 15 Feb 2003 10:19:43 +1000 (est) From: Andrew MacIntyre Subject: Re: Missing server software On Fri, 14 Feb 2003, John Poltorak wrote: > As far as BIND goes, we no longer have a maintainer. Is anyone currently > looking at porting v9? I'm trying to find time to play with oak, which is a fairly full featured DNS server in pure Python. -- Andrew I MacIntyre "These thoughts are mine alone..." E-mail: andymac at bullseye.apana.org.au (pref) | Snail: PO Box 370 andymac at pcug.org.au (alt) | Belconnen ACT 2616 Web: http://www.andymac.org/ | Australia **= Email 5 ==========================** Date: Sat, 15 Feb 2003 10:27:57 +1000 (est) From: Andrew MacIntyre Subject: Re: OpenWatcom On Fri, 14 Feb 2003, John Poltorak wrote: > On Fri, Feb 14, 2003 at 10:15:07PM +1000, Andrew MacIntyre wrote: > > Does anyone know the size of the downloadable installer? - if this info > > was anywhere on the OpenWatcom site I managed to miss it. > > This one is 46MB:- > > ftp://ftp.openwatcom.org/watcom/open-watcom-os2-1.0.exe Thanks - about a 3 hour download via modem, which I can probably tolerate. > The source is also available which is 38MB, but I have no idea what you > are supposed to build it with. The above presumably ;-) -- Andrew I MacIntyre "These thoughts are mine alone..." E-mail: andymac at bullseye.apana.org.au (pref) | Snail: PO Box 370 andymac at pcug.org.au (alt) | Belconnen ACT 2616 Web: http://www.andymac.org/ | Australia **= Email 6 ==========================** Date: Sat, 15 Feb 2003 11:31:09 +0000 From: John Poltorak Subject: PTHREADS Where do I get the latest PTHREADS library for OS/2? Is anyone still maintaining it? -- John **= Email 7 ==========================** Date: Sat, 15 Feb 2003 11:49:28 +0000 From: John Poltorak Subject: GNU MP library Is anyone familiar with the GNU MP library? This is the GNU Multiple Precision Arithmetic Library and is used in Python, and possibly other apps... Anyone know? The latest release, according to:- http://www.swox.com is v4.2.1. Has anyone tried building it on OS/2? -- John **= Email 8 ==========================** Date: Sat, 15 Feb 2003 11:52:10 -0500 From: Ted Sikora Subject: [Ux2bs] Mailman 2.1.1 update This is a multi-part message in MIME format. --------------050007060206000504000803 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Needed the Python src to build. Gunzip is missing. John maybe when gzip is installed in UX2 you should add 'cp gzip.exe gunzip.exe'. Built just like 2.0.13 and exactly like the Linux versions. UX2 is maturing. I do have some additional libraries though to support Python devel. Just need to patch LockFile.py and Mailman.py to support emx_emul.py. We do have a new problem though. Qrunner is now controlled by a start/stop 'mailmanctl' daemon much like Apache's 'apachectl'. I attached the error msg. Quite a few changes. No 'wrapper' so we can do away with renaming it to zapper.exe. It's simply called mailman. The alias format has changed. Full internationalized support. The subscriber can chose his language.Oh yeah you need to add mailman to group/passwd. I used: passwd = mailman;*;28;28;Mailman;D:/Apps/mailman;D:/bin/sh grp = mailman;;28; The 'mailmanctl' daemon has a -u startup command but still gives problems so the mailman user is really required. To build: Create the /apps/mailman directory before starting Edit configure.in and remove lines 334-381 aclocal autoconf ./configure --prefix=/apps/mailman --with-python=/apps/python222/python.exe --with-cgi-gid=root --with-mail-gid=root --with-mailhost=yourdomain.com --with-urlhost=yourdomain.com make make DIRSETGID=: install Go back into the mailman source's /src directory and run emxbind on each script and then remove the.exe extension. Copy to /apps/mailman/cgi-bin and /apps/mailman/mail directories where applicable. Admin tools in /apps/mailamn/bin ./newlist has to be run first and a 'mailman' list created for the admin before running the mailmanctl daemon. That's it. I think this is a good candidate for UX2 once Python can be built. Zope is really simple so that's a given. -- Ted Sikora tsikora at ntplx.net --------------050007060206000504000803 Content-Type: text/plain; name="mmgrp.error" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="mmgrp.error" [NETCAST|/apps/mailman/bin]./mailmanctl start Traceback (most recent call last): File "./mailmanctl", line 538, in ? main() File "./mailmanctl", line 331, in main check_privs() File "./mailmanctl", line 286, in check_privs gid = grp.getgrnam(mm_cfg.MAILMAN_GROUP)[2] File "D:/Apps/Python222/Lib/plat-os2emx/grp.py", line 138, in getgrnam return n[name] KeyError: at MAILMAN_GROUP at --------------050007060206000504000803-- _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 9 ==========================** Date: Sat, 15 Feb 2003 11:52:10 -0500 From: Ted Sikora Subject: Mailman 2.1.1 update This is a multi-part message in MIME format. --------------050007060206000504000803 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Needed the Python src to build. Gunzip is missing. John maybe when gzip is installed in UX2 you should add 'cp gzip.exe gunzip.exe'. Built just like 2.0.13 and exactly like the Linux versions. UX2 is maturing. I do have some additional libraries though to support Python devel. Just need to patch LockFile.py and Mailman.py to support emx_emul.py. We do have a new problem though. Qrunner is now controlled by a start/stop 'mailmanctl' daemon much like Apache's 'apachectl'. I attached the error msg. Quite a few changes. No 'wrapper' so we can do away with renaming it to zapper.exe. It's simply called mailman. The alias format has changed. Full internationalized support. The subscriber can chose his language.Oh yeah you need to add mailman to group/passwd. I used: passwd = mailman;*;28;28;Mailman;D:/Apps/mailman;D:/bin/sh grp = mailman;;28; The 'mailmanctl' daemon has a -u startup command but still gives problems so the mailman user is really required. To build: Create the /apps/mailman directory before starting Edit configure.in and remove lines 334-381 aclocal autoconf ./configure --prefix=/apps/mailman --with-python=/apps/python222/python.exe --with-cgi-gid=root --with-mail-gid=root --with-mailhost=yourdomain.com --with-urlhost=yourdomain.com make make DIRSETGID=: install Go back into the mailman source's /src directory and run emxbind on each script and then remove the.exe extension. Copy to /apps/mailman/cgi-bin and /apps/mailman/mail directories where applicable. Admin tools in /apps/mailamn/bin ./newlist has to be run first and a 'mailman' list created for the admin before running the mailmanctl daemon. That's it. I think this is a good candidate for UX2 once Python can be built. Zope is really simple so that's a given. -- Ted Sikora tsikora at ntplx.net --------------050007060206000504000803 Content-Type: text/plain; name="mmgrp.error" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="mmgrp.error" [NETCAST|/apps/mailman/bin]./mailmanctl start Traceback (most recent call last): File "./mailmanctl", line 538, in ? main() File "./mailmanctl", line 331, in main check_privs() File "./mailmanctl", line 286, in check_privs gid = grp.getgrnam(mm_cfg.MAILMAN_GROUP)[2] File "D:/Apps/Python222/Lib/plat-os2emx/grp.py", line 138, in getgrnam return n[name] KeyError: at MAILMAN_GROUP at --------------050007060206000504000803-- **= Email 10 ==========================** Date: Sat, 15 Feb 2003 12:04:19 -0500 From: Ted Sikora Subject: [Ux2bs] Re: Mailman 2.1.1 update I believe archiving will work in this version for OS/2 using the mm_cfg.py ARCHIVE_TO_MBOX = 0 option. Andrew can you set the uid and gid in mm_cfg.py? If so what's the option lines? error:________________________________________ gid = grp.getgrnam(mm_cfg.MAILMAN_GROUP)[2] _______________________________________________ # Are archives on or off by default? DEFAULT_ARCHIVE = 1 # 0=Off, 1=On # Are archives public or private by default? DEFAULT_ARCHIVE_PRIVATE = 0 # 0=public, 1=private # ARCHIVE_TO_MBOX #-1 - do not do any archiving # 0 - do not archive to mbox, use builtin mailman html archiving only # 1 - archive to mbox to use an external archiving mechanism only # 2 - archive to both mbox and builtin mailman html archiving - # use this to make both external archiving mechanism work and # mailman's builtin html archiving. the flat mail file can be # useful for searching, external archivers, etc. # ARCHIVE_TO_MBOX = 2 -- Ted Sikora tsikora at ntplx.net _______________________________________________ UX2BS mailing list UX2BS at powerusersbbs.net http://powerusersbbs.net/mailman/listinfo/ux2bs **= Email 11 ==========================** Date: Sat, 15 Feb 2003 12:04:19 -0500 From: Ted Sikora Subject: Re: Mailman 2.1.1 update I believe archiving will work in this version for OS/2 using the mm_cfg.py ARCHIVE_TO_MBOX = 0 option. Andrew can you set the uid and gid in mm_cfg.py? If so what's the option lines? error:________________________________________ gid = grp.getgrnam(mm_cfg.MAILMAN_GROUP)[2] _______________________________________________ # Are archives on or off by default? DEFAULT_ARCHIVE = 1 # 0=Off, 1=On # Are archives public or private by default? DEFAULT_ARCHIVE_PRIVATE = 0 # 0=public, 1=private # ARCHIVE_TO_MBOX #-1 - do not do any archiving # 0 - do not archive to mbox, use builtin mailman html archiving only # 1 - archive to mbox to use an external archiving mechanism only # 2 - archive to both mbox and builtin mailman html archiving - # use this to make both external archiving mechanism work and # mailman's builtin html archiving. the flat mail file can be # useful for searching, external archivers, etc. # ARCHIVE_TO_MBOX = 2 -- Ted Sikora tsikora at ntplx.net **= Email 12 ==========================** Date: Sat, 15 Feb 2003 12:07:38 +0000 From: John Poltorak Subject: EXPAT EXPAT is another library used in Python, and doubtless other places. I just found out that it is now a SourceForge project... You can download the latest version (v1.95.6) from: http://prdownloads.sourceforge.net/expat/expat-1.95.6.tar.gz I have no idea how easily it builds on OS/2, but I'll give it a try. -- John **= Email 13 ==========================** Date: Sat, 15 Feb 2003 12:13:26 +0000 From: John Poltorak Subject: Making UnixOS/2 PKGs Is there any simple way of assembling files into a PKG for subsequent installation via PKGTOOL? I get the feeling that a number of Makefile provide a target for distributing apps as an archive but have never understood how it works. Does anyone know? Is there a simple way of parsing a Makefile to discover which files it installs when running 'make install'? -- John **= Email 14 ==========================** Date: Sat, 15 Feb 2003 12:20:04 -0500 From: Ted Sikora Subject: [Mailman-os2] Mailman 2.1.1 update This is a multi-part message in MIME format. --------------060101090202070106080800 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Needed the Python src to build. Gunzip is missing. John maybe when gzip is installed in UX2 you should add 'cp gzip.exe gunzip.exe'. Built just like 2.0.13 and exactly like the Linux versions. UX2 is maturing. I do have some additional libraries though to support Python devel. Just need to patch LockFile.py and Mailman.py to support emx_emul.py. We do have a new problem though. Qrunner is now controlled by a start/stop 'mailmanctl' daemon much like Apache's 'apachectl'. I attached the error msg. Quite a few changes. No 'wrapper' so we can do away with renaming it to zapper.exe. It's simply called mailman. The alias format has changed. Full internationalized support. The subscriber can chose his language.Oh yeah you need to add mailman to group/passwd. I used: passwd = mailman;*;28;28;Mailman;D:/Apps/mailman;D:/bin/sh grp = mailman;;28; The 'mailmanctl' daemon has a -u startup command but still gives problems so the mailman user is really required. To build: Create the /apps/mailman directory before starting Edit configure.in and remove lines 334-381 aclocal autoconf ./configure --prefix=/apps/mailman --with-python=/apps/python222/python.exe --with-cgi-gid=root --with-mail-gid=root --with-mailhost=yourdomain.com --with-urlhost=yourdomain.com make make DIRSETGID=: install Go back into the mailman source's /src directory and run emxbind on each script and then remove the.exe extension. Copy to /apps/mailman/cgi-bin and /apps/mailman/mail directories where applicable. Admin tools in /apps/mailamn/bin ./newlist has to be run first and a 'mailman' list created for the admin before running the mailmanctl daemon. That's it. I think this is a good candidate for UX2 once Python can be built. Zope is really simple so that's a given. -- Ted Sikora tsikora at ntplx.net --------------060101090202070106080800 Content-Type: text/plain; name="mmgrp.error" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="mmgrp.error" [NETCAST|/apps/mailman/bin]./mailmanctl start Traceback (most recent call last): File "./mailmanctl", line 538, in ? main() File "./mailmanctl", line 331, in main check_privs() File "./mailmanctl", line 286, in check_privs gid = grp.getgrnam(mm_cfg.MAILMAN_GROUP)[2] File "D:/Apps/Python222/Lib/plat-os2emx/grp.py", line 138, in getgrnam return n[name] KeyError: at MAILMAN_GROUP at --------------060101090202070106080800-- **= Email 15 ==========================** Date: Sat, 15 Feb 2003 12:25:10 +0000 From: John Poltorak Subject: Re: PTHREADS On Sat, Feb 15, 2003 at 01:02:01PM +0100, Robert Henschel wrote: > John Poltorak wrote: > > > > Where do I get the latest PTHREADS library for OS/2? > I think I saw one on the netlabs.org ftp server. (But I cannot check > since the server tells me "Too many users...") There are a couple of files, but the archives are corrupt. I'd particularly like to get a good version of this one:- ftp://ftp.netlabs.org/pub/pthreads/pthread-bjs-src.zip Anyone know who BJS is? I assume that is the author. > Robert -- John **= Email 16 ==========================** Date: Sat, 15 Feb 2003 12:56:53 +0000 (GMT) From: "Dave Saville" Subject: Re: Making UnixOS/2 PKGs On Sat, 15 Feb 2003 12:13:26 +0000, John Poltorak wrote: > >Is there any simple way of assembling files into a PKG for subsequent >installation via PKGTOOL? > >I get the feeling that a number of Makefile provide a target for >distributing apps as an archive but have never understood how it works. > >Does anyone know? > >Is there a simple way of parsing a Makefile to discover which files it >installs when running 'make install'? Dunno if the following helps but I got it from Sun when I thought I needed to make a solaris package - Luckily I didn't :-) =================================== Here is how to create a package and install it. ---------------------------------------------------------------------- ----------------------------- The example package, SMESanon, will include only one object, an executable script: setup_anon_ftp.sh (This is the script towards the bottom of the ftpd man page for setting up anonymous ftp access.) Example ------- # mkdir /tmp/testpkg # cp setup_anon_ftp.sh /tmp/testpkg # cd /tmp/testpkg # find . -print | pkgproto > prototype # echo "i pkginfo=./pkginfo" >> prototype # cat > pkginfo PKG="SMESanon" NAME="Anonymous ftp setup script" DESC="The Anonymous ftp setup script from the end of the man page for fptd" ARCH="sparc,x86" VERSION="1.00" CATEGORY="application" BASEDIR="/usr/local/bin" CLASSES="none" ^D # pkgmk -r `pwd` ## Building pkgmap from package prototype file. ## Processing pkginfo file. WARNING: parameter set to "skinm30164332" ## Attempting to volumize 2 entries in pkgmap. part 1 -- 20 blocks, 6 entries ## Packaging one part. /var/spool/pkg/SMESanon/pkgmap /var/spool/pkg/SMESanon/pkginfo /var/spool/pkg/SMESanon/reloc/prototype /var/spool/pkg/SMESanon/reloc/setup_anon_ftp.sh ## Validating control scripts. ## Packaging complete. # pkgadd The following packages are available: 1 SMESanon Anonymous ftp setup script (sparc,x86) 1.00 Select package(s) you wish to process (or 'all' to process all packages). (default: all) [?,??,q]: 1 Processing package instance from Anonymous ftp setup script (sparc,x86) 1.00 Using as the package base directory. ## Processing package information. ## Processing system information. ## Verifying disk space requirements. ## Checking for conflicts with packages already installed. ## Checking for setuid/setgid programs. Installing Anonymous ftp setup script as ## Installing part 1 of 1. /usr/local/bin/setup_anon_ftp.sh [ verifying class ] Installation of was successful. The following packages are available: 1 SMESanon Anonymous ftp setup script (sparc,x86) 1.00 Select package(s) you wish to process (or 'all' to process all packages). (default: all) [?,??,q]: q # Notes ----- The pkgmake command puts the created package in /var/spool/pkg by default, and pkgadd installs from there by default. Note the "^D" above is to indicate typing control and then the "d" key thus ending the cat's write to pkginfo. After the pkgproto command is executed you will have a file called prototype whose contents will look something like this: f none setup_anon_ftp.sh 0755 root other The directory /var/spool/pkg/SMESanon could be tar'd and transferred to another system to be installed there just like any package. Mike Roberts Dedicated Services Equities Sun Solaris Team Leader Office ++44 (0)0207 545 9811 , Mobile : ++44 (0)410 445572 , Pager : ++44 (0) 1523934203 =================================================== -- Regards Dave Saville **= Email 17 ==========================** Date: Sat, 15 Feb 2003 13:02:01 +0100 From: Robert Henschel Subject: Re: PTHREADS John Poltorak wrote: > > Where do I get the latest PTHREADS library for OS/2? I think I saw one on the netlabs.org ftp server. (But I cannot check since the server tells me "Too many users...") Robert **= Email 18 ==========================** Date: Sat, 15 Feb 2003 13:04:47 +0000 From: John Poltorak Subject: Re: PTHREADS On Sat, Feb 15, 2003 at 01:47:17PM +0100, Sebastian Wittmeier (ShadoW) wrote: > On Sat, 15 Feb 2003 12:25:10 +0000, John Poltorak wrote: > > >ftp://ftp.netlabs.org/pub/pthreads/pthread-bjs-src.zip > > > >Anyone know who BJS is? I assume that is the author. > > I think it's Brian Smith. > Just run unzip and it strips the 41772 additional bytes at the > beginning. Thanks. That worked OK. I thought I couldn't unzip beause File Commander couldn't see inside it... Is PTHREADS based on an Open Source version of the library? > Sebastian -- John **= Email 19 ==========================** Date: Sat, 15 Feb 2003 13:47:17 +0100 (CET) From: "Sebastian Wittmeier (ShadoW)" Subject: Re: PTHREADS On Sat, 15 Feb 2003 12:25:10 +0000, John Poltorak wrote: >ftp://ftp.netlabs.org/pub/pthreads/pthread-bjs-src.zip > >Anyone know who BJS is? I assume that is the author. I think it's Brian Smith. Just run unzip and it strips the 41772 additional bytes at the beginning. Sebastian **= Email 20 ==========================** Date: Sat, 15 Feb 2003 18:38:43 +0100 (CET) From: Stefan Neis Subject: Re: ln Hi, > It seems that it is essential to have an LN command to be able to get by, > at least as far as building some apps is concerned. I couldn't build > diffutils until I created an LN executable. > > The question is, what should LN be? A copy of cp.exe or ln.cmd:- ? I think it should be something which prints a clear notice on screen that it is doing a copy instead of a link (so I can delete all the unwanted copies afterwards ... ;-) ) Regards, Stefan -- Micro$oft is not an answer. It is a question. The answer is 'no'.