Author Topic: Re-organizaing OS/2-eCS Directories.  (Read 97990 times)

dbanet

  • Guest
Re: Re-organizaing OS/2-eCS Directories.
« Reply #60 on: August 04, 2014, 10:00:34 am »
You can also try explicitly specifing the locations of /usr and /var using kLIBC pathrewriters, cuz sh, for example, treats /@unixroot/usr as %UNIXROOT%\usr, but /usr as \usr. However, bash, it seems, is very broken, and doesn't understand /@unixroot/ at all...

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5352
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Re-organizaing OS/2-eCS Directories.
« Reply #61 on: August 05, 2014, 07:48:47 pm »
I moved the FHS directories, and it seems that I didn't break anything (that I can notice).

I changed this on the config.sys

Quote
LIBPATH=C:\Programs\FHS\usr\lib;
PATH=C:\Programs\FHS\usr\sbin;C:\Programs\FHS\usr\bin;
SET LOGFILES=C:\Programs\FHS\var\log
RUN=C:\PROGRAMS\RSJCD\CDWFSD.EXE -p "C:/Programs/FHS/var/temp" -c20000 -b2048 -t2 -i3 -s0
SET TMP=C:\Programs\FHS\var\temp
SET TEMP=C:\Programs\FHS\var\temp
SET TMPDIR=C:\Programs\FHS\var\temp
SET UNIXROOT=C:\Programs\FHS;

After that I updated "yum-console.cmd" script and the shadow/shorcut of the "Yum Bootstrap Console".

I test it by checking of the Qt apps keeps working, checking the paths I updated and installing with YUM Qt4 Designer.  Everything is working fine so far.

This is my C:\ root drive now.

Martin Iturbide
OS2World NewsMaster
... just share the dream.

Andy Willis

  • Sr. Member
  • ****
  • Posts: 307
  • Karma: +8/-0
    • View Profile
Re: Re-organizaing OS/2-eCS Directories.
« Reply #62 on: August 05, 2014, 07:57:02 pm »
I moved the FHS directories, and it seems that I didn't break anything (that I can notice).

I changed this on the config.sys

Quote
LIBPATH=C:\Programs\FHS\usr\lib;
PATH=C:\Programs\FHS\usr\sbin;C:\Programs\FHS\usr\bin;
SET LOGFILES=C:\Programs\FHS\var\log
RUN=C:\PROGRAMS\RSJCD\CDWFSD.EXE -p "C:/Programs/FHS/var/temp" -c20000 -b2048 -t2 -i3 -s0
SET TMP=C:\Programs\FHS\var\temp
SET TEMP=C:\Programs\FHS\var\temp
SET TMPDIR=C:\Programs\FHS\var\temp
SET UNIXROOT=C:\Programs\FHS;

After that I updated "yum-console.cmd" script and the shadow/shorcut of the "Yum Bootstrap Console".

I test it by checking of the Qt apps keeps working, checking the paths I updated and installing with YUM Qt4 Designer.  Everything is working fine so far.

This is my C:\ root drive now.
In theory this will probably work... the yum folks specifically state it is not a supported method (not having the unixroot set to the root of a drive) but I have not been able to think of a reason it would not work as I have considered doing something similar so that I can change the unixroot in a script to do testing.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5441
  • Karma: +129/-1
    • View Profile
Re: Re-organizaing OS/2-eCS Directories.
« Reply #63 on: August 06, 2014, 03:59:11 am »
Boris complaining about Bash led me to look at some of the old ports of Bash 2.05 (Jun Sawataishi and Jeff Robinson) and there is code in the patches that expects UNIXROOT to equal a root or at least the second character to be :  These ports are over a decade old.
I also really think that there could be problems with using \ as a path separator as nix programs will consider it an escape character and especially scripts will die in weird ways. At least TMPDIR should use slashes along with UNIXROOT.

Dave Yeo

  • Hero Member
  • *****
  • Posts: 5441
  • Karma: +129/-1
    • View Profile
Re: Re-organizaing OS/2-eCS Directories.
« Reply #64 on: August 06, 2014, 04:10:02 am »
Jun Sawataishi web site, http://homepage1.nifty.com/jsawa/os2/index-e.htm including RPMs to break things :) I notice that his implementation used RPMDRV so as not to screw up ports that use UNIXOOT, one of my main complaints about the new YUM/RPM.

dbanet

  • Guest
Re: Re-organizaing OS/2-eCS Directories.
« Reply #65 on: August 06, 2014, 09:39:34 am »
Jun Sawataishi web site, http://homepage1.nifty.com/jsawa/os2/index-e.htm including RPMs to break things :) I notice that his implementation used RPMDRV so as not to screw up ports that use UNIXOOT, one of my main complaints about the new YUM/RPM.

Sweet! Another unix-like env with its special settings and incompatible software builds. No, thanks.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5352
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Re-organizaing OS/2-eCS Directories.
« Reply #66 on: August 06, 2014, 02:26:56 pm »
Hi.

I'm ending this experiment soon, and I had generated this basic Wiki page - http://www.os2world.com/wiki/index.php/Experiment:_Moving_the_OS/2_Directory_Structure

If it is possible I will like to hear suggestions about the two failures I had.

1) LANGUAGE. Moving this folders seems to be a problem. When "UNICODE.SYS" loads in the boot procedure it gives some errors that can not found the files that I moved.
It seems I reach a deadlock here, if someone knows more about UNICODE.SYS and can suggest something it will be appreciated.

2) MMOS2: I have this problems:
a.- CWMM seems to keep pointing to the original C:\MMOS2. This DLLs keeps pointing to the original location on the next reboot: - C:\MMOS2\MEDIAFLD\BIN\mediafld.dll - C:\MMOS2\MMCLASS\cwmm.dll - C:\MMOS2\MMCLASS\BIN\mmres_en.dll I still haven't found which INIs or where does it points to this DLLs.

b.- There used to be some audio problem with UniAud driver that made the sound to loop. It was fixed on eCS, but after moving MMOS2 the problem showed up again.

c.- On "System Setup" -> Sound, the sound schemes keeps pointing to the wrong location. There seems that I forgot to move the location from OS2SYS.INI, or I need to re-register the sound schemes to the new location.

Any comment on this subject is appreciated.

Regards
« Last Edit: August 06, 2014, 02:44:44 pm by Martin Iturbide »
Martin Iturbide
OS2World NewsMaster
... just share the dream.


Alex Taylor

  • Sr. Member
  • ****
  • Posts: 404
  • Karma: +6/-0
    • View Profile
Re: Re-organizaing OS/2-eCS Directories.
« Reply #68 on: August 07, 2014, 04:09:38 am »
1) LANGUAGE. Moving this folders seems to be a problem. When "UNICODE.SYS" loads in the boot procedure it gives some errors that can not found the files that I moved.
It seems I reach a deadlock here, if someone knows more about UNICODE.SYS and can suggest something it will be appreciated.

UNICODE.SYS has the path \LANGUAGE\ path hard-coded into it (you can easily confirm this by scanning through the driver with a hex editor). Technically, it isn't the boot drive but the current working drive (at the moment UNICODE.SYS is loaded) that it looks at, but unless you're doing something unorthodox like booting from Veit's MEMDISK environment, it comes to the same thing.

So yes, I think there's nothing you can do about that.

Quote
b.- There used to be some audio problem with UniAud driver that made the sound to loop. It was fixed on eCS, but after moving MMOS2 the problem showed up again.

I believe this is what MMFIX.EXE did (loaded from CONFIG.SYS). I think David A. may have written that... you could ask him maybe.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5352
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Re-organizaing OS/2-eCS Directories.
« Reply #69 on: August 16, 2014, 11:56:24 pm »
Wow,  something strange happend today to the VM I reorganized the directories.

I just left MMOS2 and LANGUAGE on the original location and moved everything else.

Since yesterday on boot, I noticed that some directories was opening automatically on the desktop after boot. I don't remember when, but it seems that the VM remembered the folders I got opened once I did some hard-reset to the VM.

So, I checked the config.sys and removed "folders" from autostart. On the next boot it broke. When it loads the desktop, it loads the background, the virtual destop areas box and it spots there. The mouse keeps working, but the two buttons at the same time do not brings the "Window List". And if I send a Ctrl+Alt+Del to the VM, it will reboot showing normal reboot message.

I'm not sure if this is complete because of the directory re-organizing or because something else. I will bring back my Vm to a previous state and test more the "Folders" on the config.sys Autostart.

Martin Iturbide
OS2World NewsMaster
... just share the dream.

Greggory Shaw

  • Sr. Member
  • ****
  • Posts: 442
  • Karma: +0/-0
    • View Profile
Re: Re-organizaing OS/2-eCS Directories.
« Reply #70 on: August 17, 2014, 12:45:33 am »
Wow,  something strange happend today to the VM I reorganized the directories.

...

So, I checked the config.sys and removed "folders" from autostart. On the next boot it broke.


WPS is considered a folder, so folders must be present in 'AutoStart'. It doesn't have anything to do with your re-organizing of directories. I learned the hard way on that a long time ago.


Greggory
« Last Edit: August 17, 2014, 12:50:10 am by Greggory Shaw »

dbanet

  • Guest
Re: Re-organizaing OS/2-eCS Directories.
« Reply #71 on: August 17, 2014, 01:00:59 am »
Martin, don't remove FOLDERS from AUTOSTART, but better add the following to CONFIG.SYS:
Code: [Select]
SET RESTARTOBJECTS=STARTUPFOLDERSONLY,REBOOTONLY
This will stop WPS from reopening folders you had opened before the shut down or reboot.

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5352
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Re-organizaing OS/2-eCS Directories.
« Reply #72 on: August 17, 2014, 03:54:27 am »
It seems I also learned the hard way. I put back FOLDERS and the desktop started working. Now the folders that show up on startup are gone, which is good. But another thing shows up.

I didn't moved the MMOS2 folder on this VM, but now the problem of the "Startup Audio" looping at the end for ever started to show up. I really don't know how to use MMFIX, but it seems it broke.
Martin Iturbide
OS2World NewsMaster
... just share the dream.

Greggory Shaw

  • Sr. Member
  • ****
  • Posts: 442
  • Karma: +0/-0
    • View Profile
Re: Re-organizaing OS/2-eCS Directories.
« Reply #73 on: August 17, 2014, 06:25:12 am »

...

I didn't moved the MMOS2 folder on this VM, but now the problem of the "Startup Audio" looping at the end for ever started to show up. I really don't know how to use MMFIX, but it seems it broke.

Try moving MMFIX around and higher in CONFIG.SYS.

Here's a thread on this issue, it took some time for the right placement for me but worked !

http://comments.gmane.org/gmane.org.netlabs.uniaud.general/2321


Greggory
« Last Edit: August 17, 2014, 06:29:48 am by Greggory Shaw »

Martin Iturbide

  • OS2World NewsMaster
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 5352
  • Karma: +44/-1
  • Your Friend Wil Declares...
    • View Profile
    • Martin's Personal Blog
Re: Re-organizaing OS/2-eCS Directories.
« Reply #74 on: August 17, 2014, 02:57:58 pm »
Hi Greg

I moved the MMFIX to the top of the config.sys RUN statements and it didn't fix the issue.

Plus, I think I confused something later and the folders keep showing when the desktop loading. Does anybody knows where the setting to auto-open folders on boot are stored?

Regards.
Martin Iturbide
OS2World NewsMaster
... just share the dream.