Closed Bug 60911 Opened 24 years ago Closed 24 years ago

PSM must build on MAC for Mozilla users

Categories

(Core :: Security: PSM, defect, P3)

1.0 Branch
PowerPC
Mac System 8.0
defect

Tracking

()

VERIFIED FIXED

People

(Reporter: ddrinan0264, Assigned: javi)

Details

Attachments

(5 files)

PSM must build as part of the regular mozilla build for MAC.
Keywords: pp
se, it's not really pp, since there are identical bugs for Windows and Linux :).
Keywords: pp
I note that you only touch the new scripts (in build_scripts), not the old ones. At present, we're still using both, so you should probably change both. Also, what's with the comment about failing to load the shared lib via alias? Is that a separate bug that needs fixing?
The patch in this bug builds PSM from source gathered from mozilla. I haven't been able to verify in my debug build because for some reason, the components loader on the Mac doesn't seem to be able to load PSMGlueDebug.shlg When I built the optimized version of PSM, and replaced the PSM that came with Netscape6 RTM, it all worked. The PKCS#11 module containing the root certificates loaded, and I was able to do SSL and open up the security advisor. Any Mac guys out there willing to test this patch on their machines? (I'll continue to look at why PSMGlueDebug.shlb doesn't load anymore, but since I think that's independent of this patch, it'd be nice if someone else tested this patch out.) I've got the old scripts patched as well. I'll attach that diff shortly.
The alias thing is weird. NSS calls PR_LoadLibrary with a path to load a PKCS#11 module that has all of the root certificates in it. In debug builds, when the shared library was sym-linked, the PR_LoadLibrary call failed. When I copied the shared library over, everything just worked. Since getting a bug fixed in NSS would cause us to wait for a new release which we don't know about, I opted for always copying since this really only affected debug/developer trees and the shared library was extremely small and seemed like a straight forward workaround.
OK, my inability to create this patch, leads me to believe that I should just go home and finish resting this cold away. The latest attachment is correct. sfraser or beard, if you're brave try it and let me know what happens. (Both scripts have worked for me in the past, but given that I can't seem to think straight on all of these decongestants, I'll fully verify that at a later time.)
looks reasonable, but i didn't try it.
I was thinking of posting this to macdev newsgroup and having people try it there first before checking in. Would that be a bad idea?
This works well. Can we turn off all the PSM dumps though, for debug builds? It makes things really slow. sr=sfraser on the script changes.
sfraser, do I also need a= to check in?
You need an r= also. Do we need to fix up the commercial scripts to stop building stuff there?
Doh, forgot about the commercial scripts. Once this lands, all security related parts of the commercial script can be stripped out.
It was recently brought to my attention that we cannot turn PSM on by default in Mozilla builds due to export laws. So I've attached a new patch that disables PSM by default, but the user can set an option to turn on building PSM.
sr=sfraser
I still need a r= for this to get checked in. beard, pinkerton? Can one of you review this.
r=beard
Fix checked in. Mozilla users can now build PSM entirely from mozilla source if they include the following line in their preference file for mozilla builds: options psm 1
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Verified fixed.
Status: RESOLVED → VERIFIED
Product: PSM → Core
Version: psm1.4 → 1.0 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: