Closed Bug 27457 Opened 26 years ago Closed 25 years ago

Change Mozilla build system to pick up NSPR 4.0

Categories

(SeaMonkey :: Build Config, defect, P3)

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: wtc, Assigned: cls)

References

Details

Attachments

(5 files)

We want to have Mozilla pick up NSPR 4.0. The library name change from libnspr3 to libnspr4 requires modifying the Unix and Windows makefiles. On the Mac, NSPR library's name hasn't changed for a long time, so no change to the Mac build system is required this time. Another change is the NSPR cvs tag to pull.
Target Milestone: M14
I have a brute-force patch for Windows, I'm cleaning it up to use macros better so this won't be such a pain next time.
You can define NSPR_VERSION=4 in mozilla/config/config.mak and use $(NSPR_VERSION) in NSPR library names.
For Unix, r=cls. I'm assuming the nspr autoconf build has been updated with the new version number as well? :-)
Status: NEW → ASSIGNED
cls: good catch. Do I just need to change NSPR_VERSION in mozilla/nsprpub/configure.in and mozilla/nsprpub/configure?
Strange...I've been building nspr's NSPR_RELEASE_4_0_BRANCH using autoconf, starting from the mozilla directory. It's been working fine.
Yes and NSPR_MODNAME as well if it has changed.
By default, Mozilla uses the classic build system under nsprpub rather than autoconf. If we can verify that the nspr autoconf build works for more platforms than just Linux & Solaris, we will change that.
cls, is it possible to change webshell/embed/gtk/lib/Makefile.in so that it gets the value of NSPR_VERSION set by mozilla/configure?
Blocks: 23811
I just checked in attachment 5269 [details] [diff] [review]. 1. Pull new NSPR tag NSPRPUB_4_0_BETA_20000215: mozilla/client.mk, rev 1.78 mozilla/client.mak, rev 3.63 mozilla/build/mac/NGLayoutBuildList.pm, rev 1.439 2. Bump NSPR_VERSION to 4: mozilla/configure, rev 1.456 mozilla/configure.in, rev 1.574 mozilla/config/config.mak, rev 3.87
You should pull a tag of NSPR which includes revision 3.2.58.1 of pr/src/md/mac/prcpucfg.h. Otherwise, you're going to have binary compatibility problems on Mac.
compatibility problems with what?
The current tag (NSPRPUB_4_0_BETA_20000215) does not contain the new version of pr/src/md/mac/prcpucfg.h. However, when NSPR 4.0 is released, mozilla will be changed to pull the formal 4.0 release tag, which will contain the new revision of pr/src/md/mac/prcpucfg.h.
Compatibility problems with future versions of NSPR 4.x which include that change.
My checkin (attachment 5269 [details] [diff] [review]) will need to be backed out because it causes mozilla's bloaty test to hang on exit.
My checkin (attachment 5269 [details] [diff] [review]) has been backed out because it causes mozilla's bloaty test to hang on exit. I believe I found the problem: the 'depend' target in mozilla/Makefile does not do a make depend in the nsprpub directory, so the nspr files did not get recompiled after they were updated. This can be verified by the Tinderbox log file.
I had a similar dependency problem on windows--I had to do a clobber in order to pick up the new definiton of PR_AF_INET6.
Right. I didn't add the "depend: clean" hack to NSPR's Windows makefile until this morning. The "depend: clean" hack causes make depend to do a make clean in the tree, forcing a complete rebuild. This hack is in NSPR's Unix makefile. Unfortunately, mozilla's make depend does not recurse into the nsprpub directory on Linux.
Depends on: 27955
Second try. Approved by jar@netscape.com. Have mozilla pull NSPRPUB_RELEASE_4_0_20000218 (NSPR 4.0 release candidate) and change NSPR_VERSION to 4. /cvsroot/mozilla/client.mak, revision 3.65 /cvsroot/mozilla/client.mk, revision 1.81 /cvsroot/mozilla/configure, revision 1.461 /cvsroot/mozilla/configure.in, revision 1.579 /cvsroot/mozilla/build/mac/NGLayoutBuildList.pm, revision 1.444 /cvsroot/mozilla/config/config.mak, revision 3.89
All tinderbox builds have cycled once without problems since my checkin. Marked the bug fixed.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: