Closed Bug 947652 Opened 12 years ago Closed 12 years ago

Make OS_TARGET=WIN95 the default on Windows

Categories

(NSS :: Build, defect)

All
Windows 7
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED
3.15.4

People

(Reporter: briansmith, Assigned: briansmith)

Details

Attachments

(5 files, 2 obsolete files)

Whenever I tell somebody how to build NSS, I have to give them two sets of instructions: "make nss_build_all", or "OS_TARGET=WIN95 make nss_build_all" on Windows. Also, we've seen people getting confused about OS_TARGET=WINNT vs OS_TARGET=WIN95 and also, AFAICT, we consider OS_TARGET=WINNT deprecated or close to deprecated. This patch makes OS_TARGET=WIN95 when OS_ARCH=WINNT when OS_TARGET isn't explicitly defined.
Attachment #8344241 - Flags: review?(wtc)
Can we just make NSS's build system smart enough to figure out which system it's on in the absence of OS_TARGET? (Or is that basically what this does?)
(In reply to David Keeler (:keeler) from comment #1) > Can we just make NSS's build system smart enough to figure out which system > it's on in the absence of OS_TARGET? (Or is that basically what this does?) This is what the patch does. Windows is an exception because the default, WINNT, is not the one most people want.
Is this a subset or dupe of Bug 814982?
Comment on attachment 8344241 [details] [diff] [review] default-OS_TARGET_WIN95-on-Windows.patch Review of attachment 8344241 [details] [diff] [review]: ----------------------------------------------------------------- r=wtc. ::: coreconf/arch.mk @@ +150,5 @@ > # > > # > # The following hack allows one to build on a WIN95 machine (as if > # s/he were cross-compiling on a WINNT host for a WIN95 target). We should also remove this block of code. We don't build on Win9x machines any more. I can write a patch.
Attachment #8344241 - Flags: review?(wtc) → review+
Attachment #8346966 - Flags: review?(brian)
Comment on attachment 8344241 [details] [diff] [review] default-OS_TARGET_WIN95-on-Windows.patch Review of attachment 8344241 [details] [diff] [review]: ----------------------------------------------------------------- ::: coreconf/arch.mk @@ +230,5 @@ > endif > endif > endif > # > +# If uname -s returns "MINGW32_NT-*", we assume that we are using A few lines above, there is a comment that says # If uname -s returns "MINGW32_NT-5.1", we assume that we are using It should be fixed in the same way.
Attachment #8346966 - Flags: review?(brian) → review+
Comment on attachment 8344241 [details] [diff] [review] default-OS_TARGET_WIN95-on-Windows.patch Review of attachment 8344241 [details] [diff] [review]: ----------------------------------------------------------------- ::: coreconf/arch.mk @@ +230,5 @@ > endif > endif > endif > # > +# If uname -s returns "MINGW32_NT-*", we assume that we are using I guess you meant this: # If uname -s returns "CYGWIN_NT-*", we assume that we are using # the uname.exe in the Cygwin tools. I made the change.
Comment on attachment 8344241 [details] [diff] [review] default-OS_TARGET_WIN95-on-Windows.patch Review of attachment 8344241 [details] [diff] [review]: ----------------------------------------------------------------- ::: coreconf/arch.mk @@ +230,5 @@ > endif > endif > endif > # > +# If uname -s returns "MINGW32_NT-*", we assume that we are using Yes, you are right. Sorry about the copy-and-paste error.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Comment on attachment 8347100 [details] [diff] [review] Part 2: Remove support for building on Win9x machines This patch doesn't need to be backed out. I checked it in again: https://hg.mozilla.org/projects/nss/rev/89704a8628e9
Attachment #8347100 - Flags: checked-in+
Comment on attachment 8347099 [details] [diff] [review] Part 1: Make OS_TARGET=WIN95 the default on Windows (In reply to Wan-Teh Chang from comment #16) > Comment on attachment 8347100 [details] [diff] [review] > Part 2: Remove support for building on Win9x machines > > This patch doesn't need to be backed out. I checked it in again: > https://hg.mozilla.org/projects/nss/rev/89704a8628e9 Neither patch needed to be backed out. Since you checked in the second one again, I just checked in the first one, so that the two patches for this bug are not split between two different releases: http://hg.mozilla.org/projects/nss/rev/5f4ba3533468
Attachment #8347099 - Flags: checked-in+
Status: REOPENED → RESOLVED
Closed: 12 years ago12 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: