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)
Tracking
()
VERIFIED
FIXED
People
(Reporter: ddrinan0264, Assigned: javi)
Details
Attachments
(5 files)
1.67 KB,
patch
|
Details | Diff | Splinter Review | |
6.09 KB,
patch
|
Details | Diff | Splinter Review | |
4.95 KB,
patch
|
Details | Diff | Splinter Review | |
4.97 KB,
patch
|
Details | Diff | Splinter Review | |
6.93 KB,
patch
|
Details | Diff | Splinter Review |
PSM must build as part of the regular mozilla build for MAC.
Comment 1•24 years ago
|
||
se, it's not really pp, since there are identical bugs for Windows and Linux :).
Keywords: pp
Assignee | ||
Comment 2•24 years ago
|
||
Comment 3•24 years ago
|
||
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?
Assignee | ||
Comment 4•24 years ago
|
||
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.
Assignee | ||
Comment 5•24 years ago
|
||
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.
Assignee | ||
Comment 6•24 years ago
|
||
Assignee | ||
Comment 7•24 years ago
|
||
Assignee | ||
Comment 8•24 years ago
|
||
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.)
Assignee | ||
Comment 9•24 years ago
|
||
Comment 10•24 years ago
|
||
looks reasonable, but i didn't try it.
Assignee | ||
Comment 11•24 years ago
|
||
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?
Comment 12•24 years ago
|
||
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.
Assignee | ||
Comment 13•24 years ago
|
||
sfraser, do I also need a= to check in?
Comment 14•24 years ago
|
||
You need an r= also.
Do we need to fix up the commercial scripts to stop building stuff there?
Assignee | ||
Comment 15•24 years ago
|
||
Doh, forgot about the commercial scripts. Once this lands, all security related
parts of the commercial script can be stripped out.
Assignee | ||
Comment 16•24 years ago
|
||
Assignee | ||
Comment 17•24 years ago
|
||
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.
Comment 18•24 years ago
|
||
sr=sfraser
Assignee | ||
Comment 19•24 years ago
|
||
I still need a r= for this to get checked in.
beard, pinkerton? Can one of you review this.
Comment 20•24 years ago
|
||
r=beard
Assignee | ||
Comment 21•24 years ago
|
||
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
You need to log in
before you can comment on or make changes to this bug.
Description
•