Trac is being migrated to new services! Issues can be found in our new
YouTrack instance and WIKI pages can be found on our
website.
- Timestamp:
-
Oct 8, 2010, 12:35:02 AM (13 years ago)
- Author:
-
bviktor
- Comment:
-
update to nss 3.12.8, no need for patching anymore
Legend:
- Unmodified
- Added
- Removed
- Modified
-
v32
|
v33
|
|
5 | 5 | NSS stands for [http://www.mozilla.org/projects/security/pki/nss/ Network Security Services]. NSS is required to use SSL in Pidgin. NSS depends on NSPR and a [https://wiki.mozilla.org/NSS_Shared_DB shared database] (SQLite since [http://www.mozilla.org/projects/security/pki/nss/nss-3.12/nss-3.12-release-notes.html NSS 3.12]), but you don't have to worry about these, there's and NSS with NSPR package which is compact thus it contains all sources required to build NSS. |
6 | 6 | |
7 | | '''Note''': at the moment you can't build NSS completely using GCC. It fails at the final stage when linking additional tools. However, you can build all the important libraries successfully. It will hopefully be improved in the future. You can, however, build NSS completely with the Windows Driver Kit, but you'll need the [http://code.google.com/p/xchat-wdk/source/browse/#hg/ext/nss-wdk NSS-WDK patch]. |
| 7 | '''Note''': at the moment you can't build NSS completely using GCC. It fails at the final stage when linking additional tools. However, you can build all the important libraries successfully. It will hopefully be improved in the future. You can, however, build NSS completely with the Windows Driver Kit, but you'll need the [http://code.google.com/p/xchat-wdk/source/browse/#hg/ext/nss-wdk NSS-WDK patch] (binaries [http://code.google.com/p/xchat-wdk/wiki/InfoNSS here]). |
8 | 8 | |
9 | 9 | == Prerequisites == |
10 | 10 | |
11 | | 1. '''Get NSS:''' Download [ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_12_7_RTM/src/nss-3.12.7-with-nspr-4.8.6.tar.gz NSS 3.12.7 with NSPR 4.8.6]. Extract it to `c:\devel\pidgin-devel\win32-dev`. |
| 11 | 1. '''Get NSS:''' Download [ftp://ftp.mozilla.org/pub/mozilla.org/security/nss/releases/NSS_3_12_8_RTM/src/nss-3.12.8-with-nspr-4.8.6.tar.gz NSS 3.12.8 with NSPR 4.8.6]. Extract it to `c:\devel\pidgin-devel\win32-dev`. |
12 | 12 | 1. '''Get MozillaBuild:''' Download [ftp://ftp.mozilla.org/pub/mozilla.org/mozilla/libraries/win32/MozillaBuildSetup-1.5.exe MozillaBuild 1.5] and install it to `c:\devel\mozilla-build`. |
13 | 13 | 1. '''Get MinGW''': This assumes that you have MinGW working as described in the [wiki:BuildingWinPidgin#Themanualway Pidgin Building Instructions]. |
… |
… |
|
68 | 68 | More info about the build variables can be found on the [https://developer.mozilla.org/en/NSS_reference/Building_and_installing_NSS/Build_instructions Build instructions] page of the Mozilla Developer Central. |
69 | 69 | |
70 | | == Patch NSS == |
71 | | |
72 | | There's an error which prevents NSS from building with GCC. Apply the following patch to `c:\devel\pidgin-devel\win32-dev\nss-3.12.7\mozilla\security\nss\lib\freebl\config.mk`: |
73 | | |
74 | | {{{ |
75 | | #!diff |
76 | | --- config.mk.orig 2010-06-24 19:46:12 +0200 |
77 | | +++ config.mk 2010-08-16 19:32:37 +0200 |
78 | | @@ -102,6 +102,7 @@ |
79 | | endif |
80 | | |
81 | | ifdef NS_USE_GCC |
82 | | +DEFINES += -D_WIN32_IE=0x0501 |
83 | | EXTRA_SHARED_LIBS += \ |
84 | | -L$(DIST)/lib \ |
85 | | -L$(NSSUTIL_LIB_DIR) \ |
86 | | }}} |
87 | | |
88 | | This error is already [https://bugzilla.mozilla.org/show_bug.cgi?id=505731 reported] and will hopefully be fixed in upstream soon. |
89 | | |
90 | 70 | == Build NSS == |
91 | 71 | |
… |
… |
|
112 | 92 | export PATH |
113 | 93 | |
114 | | pushd $NSS_SRC_DIR/nss-3.12.7/mozilla/security/nss |
| 94 | pushd $NSS_SRC_DIR/nss-3.12.8/mozilla/security/nss |
115 | 95 | make nss_build_all |
116 | 96 | popd |
… |
… |
|
126 | 106 | The build will likely not complete successfully due to hardcoded library paths and other problems in the build system (it will bail out building `.../cmd/bltest`). If it gets that far, it has already built the various libraries successfully. |
127 | 107 | |
128 | | The resulting binaries will be placed in `c:\devel\pidgin-devel\win32-dev\nss-3.12.7\mozilla\dist`. The contents of `private` and `public` are the same across all configurations so they can be distributed separately. |
| 108 | The resulting binaries will be placed in `c:\devel\pidgin-devel\win32-dev\nss-3.12.8\mozilla\dist`. The contents of `private` and `public` are the same across all configurations so they can be distributed separately. |
All information, including names and email addresses, entered onto this website or sent to mailing lists affiliated with this website will be public. Do not post confidential information, especially passwords!