Date: Mon, 10 Oct 2005 00:05:22 EST-10EDT,10,-1,0,7200,3,-1,0,7200,3600 Subject: [UnixOS2_Archive] No. 626 ************************************************** Sunday 09 October 2005 Number 626 ************************************************** Subjects for today 1 Re: Help with scummvm configure script : IanM" 2 Re: Help with scummvm configure script : Dave Yeo" 3 Re: XFree86 list : Dave Yeo" 4 Re: Help with scummvm configure script : Andreas Buening 5 Re: UX2BS restructured (long and maybe only interesting to John) : Dave Yeo" 6 Re: Help with scummvm configure script : John Poltorak 1 Re: UX2BS restructured (long and maybe only interesting to John) : John Poltorak 7 How to CHMOD only read-only files? : John Poltorak **= Email 1 ==========================** Date: Sun, 09 Oct 2005 00:42:34 +1000 (EST) From: "IanM" Subject: Re: Help with scummvm configure script Hi Paul Must say I for one appreciate everything your doing, but be careful that you dont burn yourself out ok ! > hopefully there's someone here with some decent knowledge of configure > scripts :) I just blunder into it with global search and replaces using gibbchg.exe, and search and replace utility could do the same thing. > (now fixed) but also because the \ are interpreted as escape characters. > Any ideas on some simple code to fix this? Do you mean \, or / ? or are you talking about the actual code. Have you tried changing \ to \\ ? One fix for a similiar problem was to change "$path_dir/$sdlconfig" to "$path_dir"/"$sdlconfig" > Personally I think the scummvm people would be better just running > 'sdl-config --version' and checking the string returned rather than > checking each path entry separately but they like their code To live in the perfect world :-) > PS a working binary of scummvm is at http://smedley.info/os2ports.html Thanks :-) Cheers IanM http://www.os2site.com/ Cleaning your house while your kids are still growing is like clearing the drive before it has stopped snowing. **= Email 2 ==========================** Date: Sat, 08 Oct 2005 07:49:09 -0800 From: "Dave Yeo" Subject: Re: Help with scummvm configure script On Sat, 08 Oct 2005 20:00:25 +0930, Paul Smedley wrote: >Hi All, >hopefully there's someone here with some decent knowledge of configure >scripts :) > >Scummvm (www.scummvm.org) has the following in it's configure script for >detection of the sdl graphics library: > > for path_dir in $_sdlpath; do > for sdlconfig in $sdlconfigs; do > if test -x "$path_dir/$sdlconfig" ; then > _sdlconfig="$path_dir/$sdlconfig" > echo $_sdlconfig > break > fi > done > done > >This fails - partly because the path separator was defaulting to : not ; >(now fixed) but also because the \ are interpreted as escape characters. > Any ideas on some simple code to fix this? > >Personally I think the scummvm people would be better just running >'sdl-config --version' and checking the string returned rather than >checking each path entry separately but they like their code Well you could have \\ instead of \ or better use / as a pth seperator. I have this in my config.site PATH=`cmd.exe /c "echo %PATH%" | sed -e 's at \\\\ at / at g'` PATH_SEPARATOR=';' Dave **= Email 3 ==========================** Date: Sat, 08 Oct 2005 08:27:35 -0800 From: "Dave Yeo" Subject: Re: XFree86 list On Sat, 8 Oct 2005 10:28:04 +0100, John Poltorak wrote: >Is the XFree86 list still going? I've just had three emails returned... > Hi John, I just sent a test message to the XFree86 list and it showed up there. Are you using the right address xfreeos2 at mail-ext1.ais.fraunhofer.de Dave **= Email 4 ==========================** Date: Sat, 08 Oct 2005 21:55:39 +0200 From: Andreas Buening Subject: Re: Help with scummvm configure script Paul Smedley wrote: > Scummvm (www.scummvm.org) has the following in it's configure script for > detection of the sdl graphics library: > > for path_dir in $_sdlpath; do > for sdlconfig in $sdlconfigs; do > if test -x "$path_dir/$sdlconfig" ; then > _sdlconfig="$path_dir/$sdlconfig" > echo $_sdlconfig > break > fi > done > done > > This fails - partly because the path separator was defaulting to : not ; > (now fixed) but also because the \ are interpreted as escape characters. > Any ideas on some simple code to fix this? Could you give us some more details, please? What is configure checking for, what are the values of these variables, what doesn't work and what would you expect to happen? **= Email 5 ==========================** Date: Sat, 08 Oct 2005 19:49:17 -0800 From: "Dave Yeo" Subject: Re: UX2BS restructured (long and maybe only interesting to John) Hi John, On Wed, 5 Oct 2005 18:11:34 +0100, John Poltorak wrote: >If anyone is interested in UX2BS, I have restructured the layout of it so >that it is easier to follow. It now consists of just two top level >directories - one for the UX2BS scripts and one for apps. Each app has its >own subdirectory which contains all the specific tailorng that is required >to make it fit into the basic UX2BS framework. > >If you want to give it a try you can grab the ux2bs bootstrap using > >wget ftp://unixos2: at 213.152.37.92/pub/unixos2/build_system/lib/ux2_bootstrap.cmd > >Be warned that it is no longer compatible with the previous directory >structure and you need tostart from scratch if you want to use it. > >It is still based on emx (gcc 2.8.1) but with any luck I'll get it to use >gcc 3.3.5 in the not too distant future. Shouldn't this be updated to use gcc ver 3.0.3 for X compatibility? Also even when adding 3.3.5, 3.0.3 should be kept around as Innotek_libc is not compatible with XFree86. > >If anyone tries it, I'll be interesed in any feedback. Well finally tried it, here is the report Got a few SYS1248s eg SYS1248: A subdirectory or file g:\tmp already exists. This can be fixed by using if not exist x:\tmp mkdir \tmp In emx_inst got various cautions like Archive: g:/unixos2/archives/baseline/emx/bsdsrc.zip ================================================================== emx 0.9d: Source for BSD libraries ================================================================== inflating: emx/include/gmon.h caution: filename not matched: emx/bin/* caution: filename not matched: emx/lib/* and emx_inst finished with 6 archives were successfully processed. 5 archives had fatal errors. Other errors include retrieving zip23.tar.gz g:/unixos2/workdir tar: Cannot open archive g:/unixos2/archives/source/zip23.tar.gz: No such file or directory The archive zip23.tar.gz does not appear to have extracted correctly so the build of zip is unable to continue. Press any key to EXIT Perl Installation prefix to use? (~name ok) [/usr] This prevents Perl working on other drives Failed 4 test scripts out of 795, 99.50% okay. Perl_harness Failed 6/867 test scripts, 99.31% okay. 388/79047 subtests failed, 99.51% okay. Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- .../lib/Shell.t 1 256 7 1 14.29% 3 lib/os2_base.t 1 256 19 1 5.26% 8 lib/os2_process.t 255 65280 232 383 165.09% 2 10 19 34 41 44-232 lib/os2_process_kid.t 232 190 81.90% 41 44-232 op/magic.t 53 1 1.89% 6 op/stat.t 78 1 1.28% 44 68 tests and 625 subtests skipped. Grep died here Making install in vms SYS1057: The file or path name entered is invalid in a DOS session. make: *** [install-recursive] Error 1 Need to rename a make.com file I think diff had problems eg gcc -o cmp -Zomf -O2 -s -Zmt -D__ST_MT_ERRNO__ -Zcrtdll -Zlinker /exepack:2 -Zlinker /pm:vio cmp.o cmpbuf.o error.o getopt.o getopt1.o xmalloc.o version.o gcc: cmp.o: No such file or directory gcc: cmpbuf.o: No such file or directory .... Problems with a.out vs Zomf And Less (actually scrsize) gcc -Zomf -I. -O2 -Wall -D__ST_MT_ERRNO__ -s -Zmtd -lX11 scrsize.c scrsize.c:44: X11/Xlib.h: No such file or directory scrsize.c:45: X11/Xutil.h: No such file or directory make: *** [scrsize.exe] Error 1 Total run took just over 6 hrs Dave **= Email 6 ==========================** Date: Sun, 9 Oct 2005 11:12:53 +0100 From: John Poltorak Subject: Re: Help with scummvm configure script On Sat, Oct 08, 2005 at 08:00:25PM +0930, Paul Smedley wrote: > Hi All, > hopefully there's someone here with some decent knowledge of configure > scripts :) > > Scummvm (www.scummvm.org) has the following in it's configure script for > detection of the sdl graphics library: > > for path_dir in $_sdlpath; do > for sdlconfig in $sdlconfigs; do > if test -x "$path_dir/$sdlconfig" ; then > _sdlconfig="$path_dir/$sdlconfig" > echo $_sdlconfig > break > fi > done > done > > This fails - partly because the path separator was defaulting to : not ; > (now fixed) but also because the \ are interpreted as escape characters. > Any ideas on some simple code to fix this? Have you tried running Autoconf first to create an OS/2 compatible version of configure? > Cheers, > > Paul. > -- John **= Email 7 ==========================** Date: Sun, 9 Oct 2005 12:33:15 +0100 From: John Poltorak Subject: How to CHMOD only read-only files? How would I set about removing the read-only attribute from files? I don't want to process any files in a subdirectory tree which could well be quite extensive unless they are read-only. -- John **= Email 1 ==========================** Date: Sun, 9 Oct 2005 11:55:02 +0100 From: John Poltorak Subject: Re: UX2BS restructured (long and maybe only interesting to John) On Sat, Oct 08, 2005 at 07:49:17PM -0800, Dave Yeo wrote: > Hi John, > > On Wed, 5 Oct 2005 18:11:34 +0100, John Poltorak wrote: > > >If anyone is interested in UX2BS, I have restructured the layout of it so > >that it is easier to follow. It now consists of just two top level > >directories - one for the UX2BS scripts and one for apps. Each app has its > >own subdirectory which contains all the specific tailorng that is required > >to make it fit into the basic UX2BS framework. > > > >If you want to give it a try you can grab the ux2bs bootstrap using > > > >wget ftp://unixos2: at 213.152.37.92/pub/unixos2/build_system/lib/ux2_bootstrap.cmd > > > >Be warned that it is no longer compatible with the previous directory > >structure and you need tostart from scratch if you want to use it. > > > >It is still based on emx (gcc 2.8.1) but with any luck I'll get it to use > >gcc 3.3.5 in the not too distant future. > > Shouldn't this be updated to use gcc ver 3.0.3 for X compatibility? Also even when adding 3.3.5, 3.0.3 should be kept around as Innotek_libc is not compatible with XFree86. Is XFree86 likely to be buildable with gcc v3.3.5 anytime soon? I may add v3.0.3 once I'm happy that I have a solid framework for building the basic toolset. > > > >If anyone tries it, I'll be interesed in any feedback. > > Well finally tried it, here is the report > Got a few SYS1248s eg > SYS1248: A subdirectory or file g:\tmp already exists. > This can be fixed by using > if not exist x:\tmp mkdir \tmp There is an assumption that UX2BS is being installed on a clear drive so that this error would not normally happen. > In emx_inst got various cautions like > Archive: g:/unixos2/archives/baseline/emx/bsdsrc.zip > ================================================================== > emx 0.9d: Source for BSD libraries > ================================================================== > inflating: emx/include/gmon.h > caution: filename not matched: emx/bin/* > caution: filename not matched: emx/lib/* > > and emx_inst finished with > > 6 archives were successfully processed. > 5 archives had fatal errors. These msgs occur because of the way I decided to extract EMX. They are simply warning msgs in this case rather thn genuine errors. > Other errors include > > retrieving zip23.tar.gz > g:/unixos2/workdir > tar: Cannot open archive g:/unixos2/archives/source/zip23.tar.gz: No such file or directory > The archive zip23.tar.gz does not appear to have extracted correctly > so the build of zip is unable to continue. > Press any key to EXIT The problem here is that Zip v2.3 has been updated to v2.3.1, and the original no longer exists. This didn't show up here because I was using $REPOSITORY which already had a copy. Build.table needs updating. > Perl > Installation prefix to use? (~name ok) [/usr] This prevents Perl working on other drives > > Failed 4 test scripts out of 795, 99.50% okay. > Perl_harness > Failed 6/867 test scripts, 99.31% okay. 388/79047 subtests failed, 99.51% okay. > Failed Test Stat Wstat Total Fail Failed List of Failed > ------------------------------------------------------------------------------- > ../lib/Shell.t 1 256 7 1 14.29% 3 > lib/os2_base.t 1 256 19 1 5.26% 8 > lib/os2_process.t 255 65280 232 383 165.09% 2 10 19 34 41 44-232 > lib/os2_process_kid.t 232 190 81.90% 41 44-232 > op/magic.t 53 1 1.89% 6 > op/stat.t 78 1 1.28% 44 > 68 tests and 625 subtests skipped. That's not too bad. The failed tests look familiar although I've never got to the bottom of them. > > Grep died here > Making install in vms > SYS1057: The file or path name entered is invalid in a DOS session. > make: *** [install-recursive] Error 1 > > Need to rename a make.com file I think I'm aware of a problem with make.com which I thought I'd fixed, but maybe not... However [e,f]grep does appear to get installed. > diff had problems eg > gcc -o cmp -Zomf -O2 -s -Zmt -D__ST_MT_ERRNO__ -Zcrtdll -Zlinker /exepack:2 -Zlinker /pm:vio cmp.o cmpbuf.o error.o getopt.o getopt1.o xmalloc.o version.o > gcc: cmp.o: No such file or directory > gcc: cmpbuf.o: No such file or directory > ... > > Problems with a.out vs Zomf I got a problem the second time I ran it. In the diff.log there is problem renaming a file, so maybe a patch did not get applied. I'll investigate further... > And Less (actually scrsize) > gcc -Zomf -I. -O2 -Wall -D__ST_MT_ERRNO__ -s -Zmtd -lX11 scrsize.c > scrsize.c:44: X11/Xlib.h: No such file or directory > scrsize.c:45: X11/Xutil.h: No such file or directory > make: *** [scrsize.exe] Error 1 Not sure what uses scrsize but maybe the problem is due to the include path being incomplete. > Total run took just over 6 hrs Thanks for the feedback. > Dave > > > -- John