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.

Changes between Version 32 and Version 33 of BuildingWinNSS


Ignore:
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
  • BuildingWinNSS

    v32 v33  
    55NSS 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.
    66
    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]).
    88
    99== Prerequisites ==
    1010
    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`.
    1212 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`.
    1313 1. '''Get MinGW''':  This assumes that you have MinGW working as described in the [wiki:BuildingWinPidgin#Themanualway Pidgin Building Instructions].
     
    6868More 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.
    6969
    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 
    9070== Build NSS ==
    9171
     
    11292export PATH
    11393
    114 pushd $NSS_SRC_DIR/nss-3.12.7/mozilla/security/nss
     94pushd $NSS_SRC_DIR/nss-3.12.8/mozilla/security/nss
    11595make nss_build_all
    11696popd
     
    126106The 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.
    127107
    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.
     108The 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!