Date: Sun, 9 Jan 2005 00:04:17 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 496 ************************************************** Saturday 08 January 2005 Number 496 ************************************************** Subjects for today 1 WINDOWCOMPAT : John Poltorak 2 Webmin & FHS : John Poltorak 3 Re: Webmin & FHS : Lyn St George" 4 test for A or B in shell script : John Poltorak 5 Re: test for A or B in shell script : Knut St. Osmundsen" 6 OS/2/emx patches in Lyx : lamikr 7 Re: WINDOWCOMPAT : Dave Saville" 8 Re: Specific features of OS/2 Perl port : Henry Sobotka 9 Re: WINDOWCOMPAT : Henry Sobotka 10 Re: OS/2/emx patches in Lyx : Christian Hennecke" 11 Webmin and CPAN : John Poltorak 12 Re: OS/2/emx patches in Lyx : lamikr **= Email 1 ==========================** Date: Fri, 7 Jan 2005 13:40:05 +0000 From: John Poltorak Subject: WINDOWCOMPAT Is there a way of specifying WINDOWCOMPAT via the environment so that you don't get warning msgs from LINK386 when application type is not mentioned? -- John **= Email 2 ==========================** Date: Fri, 7 Jan 2005 14:00:23 +0000 From: John Poltorak Subject: Webmin & FHS Installing Webmin involves the use of three directories, one for the program, one for the config files and one for the logs. I'm none too sure how FHS compliant the default installation is - it uses /etc/webmin for config files and /var/webmin for logs. The directory from which webmin is installed is the default application directory. What would be more suitable? How about these:- ? /usr/local/webmin - program directory /usr/local/etc/webmin - config diretory /var/log/webmin - log directory -- John **= Email 3 ==========================** Date: Fri, 07 Jan 2005 16:18:55 +0000 (GMT) From: "Lyn St George" Subject: Re: Webmin & FHS On Fri, 7 Jan 2005 14:00:23 +0000, John Poltorak wrote: > >Installing Webmin involves the use of three directories, one for the >program, one for the config files and one for the logs. I'm none too sure >how FHS compliant the default installation is - it uses /etc/webmin for >config files and /var/webmin for logs. The directory from which webmin is >installed is the default application directory. > >What would be more suitable? How about these:- ? > >/usr/local/webmin - program directory I always have it in /usr/webmin. On Linux I just symlink from /usr/webmin-xxx, and on OS/2 copy from /usr/webmin-xxx to /usr/webmin (though it is also in \dev\webmin\webmin-xxx but that's not meant to be standard). I would be reluctant to change from /usr/webmin. >/usr/local/etc/webmin - config diretory This defaults to /etc/webmin - I see no problem with the default. >/var/log/webmin - log directory This should be OK also (though I've always accepted the default of /var/webmin). > > >-- >John > > > - Lyn **= Email 4 ==========================** Date: Fri, 7 Jan 2005 17:09:27 +0000 From: John Poltorak Subject: test for A or B in shell script In shell script, how would you test for condition A or B? I want to check for the existance of either fileA or fileB, but this doesn't work:- if test -f fileA || fileB ; then echo we have it else echo not found fi How should this be written? -- John **= Email 5 ==========================** Date: Fri, 07 Jan 2005 18:38:46 +0100 From: "Knut St. Osmundsen" Subject: Re: test for A or B in shell script John Poltorak wrote: > In shell script, how would you test for condition A or B? > > > I want to check for the existance of either fileA or fileB, but this > doesn't work:- > > if test -f fileA || fileB ; then if test -f fileA || test -f fileB ; then > echo we have it > else > echo not found > fi > > > How should this be written? > > **= Email 6 ==========================** Date: Fri, 07 Jan 2005 23:47:43 +0200 From: lamikr Subject: OS/2/emx patches in Lyx It seems that Lyx developers are considering to remove some OS/2 related patches because the last known version ported to OS/2 is quite old and they do not know whether these patches are still needed. Here is the thread I just noticed. http://www.mail-archive.com/lyx-devel at lists.lyx.org/msg73433.html There is now byteway a native Windows port of Lyx that is using GPL version from QT libraries. (Which are also available for Windows) If QT libs could be ported to OS/2 it could be quite possible to get native OS/2 version also from the Lyx based on the Windows related lyx code. (The one we have now is Lyx 1.1 that runs undex XFree86/os2) Mika **= Email 7 ==========================** Date: Fri, 07 Jan 2005 21:57:56 +0000 (GMT) From: "Dave Saville" Subject: Re: WINDOWCOMPAT On Fri, 7 Jan 2005 13:40:05 +0000, John Poltorak wrote: > >Is there a way of specifying WINDOWCOMPAT via the environment so that you >don't get warning msgs from LINK386 when application type is not >mentioned? Should one not be setting this in a .def file? -- Regards Dave Saville **= Email 8 ==========================** Date: Fri, 07 Jan 2005 17:04:22 -0500 From: Henry Sobotka Subject: Re: Specific features of OS/2 Perl port John Poltorak wrote: > Some interesting reading for anyone using Perl on OS/2:- > > http://perl.active-venture.com/pod/perlos2-os2port.html > > I've no idea whether this refers to any specific version of Perl and how > much of it still applies. There is no indication of the source of this > article or when it was written AFAICT. That's just a chunk of the README.os2 from the mainstream Perl dist that was converted to HTML and dressed up. h~ **= Email 9 ==========================** Date: Fri, 07 Jan 2005 17:22:23 -0500 From: Henry Sobotka Subject: Re: WINDOWCOMPAT John Poltorak wrote: > Is there a way of specifying WINDOWCOMPAT via the environment so that you > don't get warning msgs from LINK386 when application type is not > mentioned? Add -Zlinker /PM:VIO to LDFLAGS or whatever the exe linkage variable is. h~ **= Email 10 ==========================** Date: Sat, 08 Jan 2005 02:34:49 +0100 (CET) From: "Christian Hennecke" Subject: Re: OS/2/emx patches in Lyx On Fri, 07 Jan 2005 23:47:43 +0200, lamikr wrote: >It seems that Lyx developers are considering to remove some OS/2 related >patches >because the last known version ported to OS/2 is quite old and they do >not know >whether these patches are still needed. Here is the thread I just noticed. > > http://www.mail-archive.com/lyx-devel at lists.lyx.org/msg73433.html Bad news! I've been using the OS/2 port of Lyx for quite a while and I'd really like to see an updated version. >There is now byteway a native Windows port of Lyx that is using GPL >version from QT libraries. >(Which are also available for Windows) > >If QT libs could be ported to OS/2 it could be quite possible to get >native OS/2 version also from the Lyx >based on the Windows related lyx code. (The one we have now is Lyx 1.1 >that runs undex XFree86/os2) Porting Qt to native OS/2 widgets is probably more than can be handled. But anyway, I'd welcome any updated port of Lyx to OS/2, be it for PM or XFree86/OS2. Christian Hennecke **= Email 11 ==========================** Date: Sat, 8 Jan 2005 11:33:36 +0000 From: John Poltorak Subject: Webmin and CPAN I have Webmin installed along with the CPAN module but can't work out what to do with it - an example would be useful... When I try to install something from a URL, I get:- Failed to install module : Failed to create temp directory /tmp/.webmin Help! -- John **= Email 12 ==========================** Date: Sat, 08 Jan 2005 13:59:56 +0200 From: lamikr Subject: Re: OS/2/emx patches in Lyx Christian Hennecke wrote: >On Fri, 07 Jan 2005 23:47:43 +0200, lamikr wrote: > > > >>It seems that Lyx developers are considering to remove some OS/2 related >>patches >>because the last known version ported to OS/2 is quite old and they do >>not know >>whether these patches are still needed. Here is the thread I just noticed. >> >> http://www.mail-archive.com/lyx-devel at lists.lyx.org/msg73433.html >> >> > >Bad news! I've been using the OS/2 port of Lyx for quite a while and >I'd really like to see an updated version. > > Yes, I also have liked that the 1.1 version which has been available for the OS/2 has worked very well. >Porting Qt to native OS/2 widgets is probably more than can be handled. >But anyway, I'd welcome any updated port of Lyx to OS/2, be it for PM >or XFree86/OS2. > > I have not myself investigated how much Windows related code there exist in the GPL:ed QT widget library for Windows but what I remember from the OS/2 pm programming the usage of many UI components in Windows and OS/2 pm are still quite similar. (Same order and amount of parameters, etc, just small annoying changes in the function names) So maybe it could be possible to use somekind of windows widget compatibility layer as a help when trying to get widget library build? (I think IBM did that kind of library many years ago, I am wondering whether it is freely available) After 1.1 release Lyx team has invested a lot of energy for getting the lyx core to be widget independent. It is now possible to select whether to build QT, XFroms or GTK based version. (I think GTK version is not 100 % ready but getting better all the time.) Mika