Closed Bug 158454 Opened 24 years ago Closed 23 years ago

GRE: MacOS 9.x Installer

Categories

(Core Graveyard :: Installer: GRE, defect)

PowerPC
Mac System 9.x
defect
Not set
normal

Tracking

(Not tracked)

VERIFIED WONTFIX
mozilla1.2alpha

People

(Reporter: slogan, Assigned: slogan)

References

Details

This bug tracks the MacOS 9.x portion of the MRE Installer
Status: NEW → ASSIGNED
Keywords: nsbeta1+
Target Milestone: --- → mozilla1.2alpha
Blocks: 158455
QA Contact: bugzilla → ktrina
ccing myself and Jud
QA Contact: ktrina → gbush
QA Contact: gbush → jimmylee
It is my understanding that there is currently no plan to have the MRE on Mac OS 9. I need it and may be available to help make it happen depending on the amount of work involved. Per smfr, one obstacle is lack of shared memory routines on Mac OS 9 (http://lxr.mozilla.org/seamonkey/source/nsprpub/pr/src/memory/prshm.c). However, all memory is shared on that platform, so it should be easy to set up stub routines. Are there other obstacles?
QA Contact: jimmylee → carosendahl
The above information on shared memory was incorrect. Shared memory is not used in the MRE or in Mozilla at present. Per email from Chak Nanga, two obstacles are that (1) packaging work has not been done for any platform but Windows and (2) there is a need for some sort of registry or search path to say where the files live. (1) MRE packaging is done at http://lxr.mozilla.org/seamonkey/source/embedding/config/Makefile.in#93 but I do not understand what it's supposed to do; the code is cryptic and uncommented. It's short enough that it doesn't seem it should be an obstacle, but I'll need a description of what it's supposed to do before I can proceed with it. (2) Shared libraries (aka DLLs) can only live at certain places in Mac OS 9. The right place for something that may be shared by multiple applications is the Extensions folder. This is not compatible with having multiple versions installed, as described for Windows, and instead we should use a fixed location as on Solaris. (http://www.mozilla.org/projects/embedding/MRE.html) This location would be a folder in Extensions. This means that applications may simply link with the libraries without doing any extra work to find them. See IM: PowerPC Software, pp. 3-5 to 3-7. There are other alternatives, such as putting a directory alias in the Extensions folder, requiring applications to create a library directory for themselves, and reverse engineering the undocumented library search path API. However, these seem problematic. Another problem mentioned by bryner on IRC #mozilla that he had heard was that (3) shared profile access required file synchronization primtives of some type. The Mac has had both file and range locking since HFS came out, so this should not present a problem, but I don't know where in the Mozilla code to look for more information on this.
Here's another file of interest: http://lxr.mozilla.org/seamonkey/source/xpinstall/wizard/windows/builder/build_mre.pl That is a platform-specific installer building script for Windows. (4) Something like this would have to be created for Mac OS 9.
Re comment #4, that windows perl script is just a clone of the build script for the browser. JJ is the mac installer expert around here. He can probably point to you to something that would be a good pattern for creating the Windows MRE installer build script.
Thanks, Curt. JJ? I am still awaiting feedback on my proposal on file location (comment 3, point 2) and I am still waiting for pointers on what is being considered for shared profile access. On shared profiles, I am concerned that a solution is being implemented without being reviewed, and that the design is not taking the needs of Mac OS 9 into account. Mac OS has had a robust IPC mechanism since System 7, so I doubt there would be a problem working out how to use it for this problem, but without more information I am unable to assist in that solution process.
John, can you give Lummox an idea of what's needed to support shared profile access?
Note on comment 4: This MRE build script is nearly a clone of http://lxr.mozilla.org/seamonkey/source/xpinstall/wizard/windows/builder/build.pl , which appear to be the ordinary Windows build script. It should not be a separate file but a different set of variable and option settings in the same file, since copy-and-paste coding like this invariably creates maintenance nightmares down the road. In any case, the extreme similarity of the Windows installer files suggests that the changes needed to the Mac installer are probably also small.
Lummox (et al). You are correct in saying that shared profiles are not being worked on for Mac9. The NSPR shared memory and semaphore implementation is written to the UNIX (and Win32) calls. We are actually only looking at shared profiles on MacOSX in the mach-o builds currently. As you can fit my Mac knowledge into a small hat, I'm not sure what it would take to hook up a solution to the Mac OSX CFM build and the Mac OS9 build. With the architecture we are putting together the only real hurdles are a workable implementation of the NSPR shared memory and semaphore routines, since we are desingning it to use those APIs. If you want to help out in that area and help with a mac solution for shared profiles, in particular knowledge about semaphores and shared memory on MacOS9 that would be great. http://bugzilla.mozilla.org/show_bug.cgi?id=135137 would be a great place for you to further request Mac OS9 support for prof sharing.
Thanks, John. I'm already CCed on bug 135137 as well as a number of other related bugs. None of them says what solution is being planned, just that its implementation will have something to do with shared memory and semaphores. I need a description of the proposed profile sharing architecture.
Component: Installer → Installer: GRE
I don't believe we are even supporting MacOS 9.x for nsbeta1, are we?
Keywords: nsbeta1+ → nsbeta1-
Cc:ing Conrad and Pink since we're talking about the Mac
Lummox, Your proposal in comment 3 seems fine to me. 2 things: 1. Shared lib search paths only apply to libs in "Essential Files." The others, in "Components", are loaded by XPCOM, not directly by CFM. Reason I make this obvious point is that the contents of "Components" could be located really anywhere. And, multiple versions could exist. 2. The current profile sharing idea is to use IPC - which of course can be done on OS9. As far as proposals for the implementation of this on OS9, it's up to you and other OS9 contributors :-)
Summary: MRE: MacOS 9.x Installer → GRE: MacOS 9.x Installer
can this bug be marked WONTFIX now that Mozilla support for MacOS 9x is effectively dead?
No support going forward for OS 9. Marking wontfix.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → WONTFIX
Verified
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
You need to log in before you can comment on or make changes to this bug.