mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-24 08:07:30 +09:00
Issue #1342 - Remove support for system NSPR/NSS
This commit is contained in:
parent
a7a26d5d62
commit
0070369171
11 changed files with 24 additions and 95 deletions
|
|
@ -42,15 +42,6 @@ if test "$MOZ_BUILD_APP" != js || test -n "$JS_STANDALONE"; then
|
||||||
_IS_OUTER_CONFIGURE=1
|
_IS_OUTER_CONFIGURE=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
MOZ_ARG_WITH_BOOL(system-nspr,
|
|
||||||
[ --with-system-nspr Use an NSPR that is already built and installed.
|
|
||||||
Use the 'nspr-config' script in the current path,
|
|
||||||
or look for the script in the directories given with
|
|
||||||
--with-nspr-exec-prefix or --with-nspr-prefix.
|
|
||||||
(Those flags are only checked if you specify
|
|
||||||
--with-system-nspr.)],
|
|
||||||
_USE_SYSTEM_NSPR=1 )
|
|
||||||
|
|
||||||
JS_POSIX_NSPR=unset
|
JS_POSIX_NSPR=unset
|
||||||
ifdef([CONFIGURING_JS],[
|
ifdef([CONFIGURING_JS],[
|
||||||
if test -n "$JS_STANDALONE"; then
|
if test -n "$JS_STANDALONE"; then
|
||||||
|
|
@ -71,7 +62,6 @@ ifdef([CONFIGURING_JS],[
|
||||||
])
|
])
|
||||||
|
|
||||||
dnl Pass at most one of
|
dnl Pass at most one of
|
||||||
dnl --with-system-nspr
|
|
||||||
dnl --with-nspr-cflags/libs
|
dnl --with-nspr-cflags/libs
|
||||||
dnl --enable-nspr-build
|
dnl --enable-nspr-build
|
||||||
dnl --enable-posix-nspr-emulation
|
dnl --enable-posix-nspr-emulation
|
||||||
|
|
@ -79,10 +69,6 @@ dnl --enable-posix-nspr-emulation
|
||||||
AC_MSG_CHECKING([NSPR selection])
|
AC_MSG_CHECKING([NSPR selection])
|
||||||
nspr_opts=
|
nspr_opts=
|
||||||
which_nspr=default
|
which_nspr=default
|
||||||
if test -n "$_USE_SYSTEM_NSPR"; then
|
|
||||||
nspr_opts="x$nspr_opts"
|
|
||||||
which_nspr="system"
|
|
||||||
fi
|
|
||||||
if test -n "$NSPR_CFLAGS" -o -n "$NSPR_LIBS"; then
|
if test -n "$NSPR_CFLAGS" -o -n "$NSPR_LIBS"; then
|
||||||
nspr_opts="x$nspr_opts"
|
nspr_opts="x$nspr_opts"
|
||||||
which_nspr="command-line"
|
which_nspr="command-line"
|
||||||
|
|
@ -136,11 +122,7 @@ fi
|
||||||
# anything itself.
|
# anything itself.
|
||||||
if test -n "$_IS_OUTER_CONFIGURE"; then
|
if test -n "$_IS_OUTER_CONFIGURE"; then
|
||||||
|
|
||||||
if test -n "$_USE_SYSTEM_NSPR"; then
|
if test -n "$NSPR_CFLAGS" -o -n "$NSPR_LIBS"; then
|
||||||
AM_PATH_NSPR($NSPR_MINVER, [MOZ_SYSTEM_NSPR=1], [AC_MSG_ERROR([you do not have NSPR installed or your version is older than $NSPR_MINVER.])])
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test -n "$MOZ_SYSTEM_NSPR" -o -n "$NSPR_CFLAGS" -o -n "$NSPR_LIBS"; then
|
|
||||||
_SAVE_CFLAGS=$CFLAGS
|
_SAVE_CFLAGS=$CFLAGS
|
||||||
CFLAGS="$CFLAGS $NSPR_CFLAGS"
|
CFLAGS="$CFLAGS $NSPR_CFLAGS"
|
||||||
AC_TRY_COMPILE([#include "prtypes.h"],
|
AC_TRY_COMPILE([#include "prtypes.h"],
|
||||||
|
|
@ -178,19 +160,7 @@ AC_SUBST(NSPR_INCLUDE_DIR)
|
||||||
AC_SUBST(NSPR_LIB_DIR)
|
AC_SUBST(NSPR_LIB_DIR)
|
||||||
|
|
||||||
PKGCONF_REQUIRES_PRIVATE="Requires.private: nspr"
|
PKGCONF_REQUIRES_PRIVATE="Requires.private: nspr"
|
||||||
if test -n "$MOZ_SYSTEM_NSPR"; then
|
if test -n "$JS_POSIX_NSPR"; then
|
||||||
_SAVE_CFLAGS=$CFLAGS
|
|
||||||
CFLAGS="$CFLAGS $NSPR_CFLAGS"
|
|
||||||
AC_TRY_COMPILE([#include "prlog.h"],
|
|
||||||
[#ifndef PR_STATIC_ASSERT
|
|
||||||
#error PR_STATIC_ASSERT not defined
|
|
||||||
#endif],
|
|
||||||
,
|
|
||||||
AC_MSG_ERROR([system NSPR does not support PR_STATIC_ASSERT]))
|
|
||||||
CFLAGS=$_SAVE_CFLAGS
|
|
||||||
# piggy back on $MOZ_SYSTEM_NSPR to set a variable for the nspr check for js.pc
|
|
||||||
PKGCONF_REQUIRES_PRIVATE="Requires.private: nspr >= $NSPR_MINVER"
|
|
||||||
elif test -n "$JS_POSIX_NSPR"; then
|
|
||||||
PKGCONF_REQUIRES_PRIVATE=
|
PKGCONF_REQUIRES_PRIVATE=
|
||||||
fi
|
fi
|
||||||
AC_SUBST([PKGCONF_REQUIRES_PRIVATE])
|
AC_SUBST([PKGCONF_REQUIRES_PRIVATE])
|
||||||
|
|
|
||||||
|
|
@ -33,8 +33,6 @@ if ('MOZ_OFFICIAL_BRANDING' in listConfig) or (strBrandingDirectory.endswith("br
|
||||||
# Applies to Pale Moon and Basilisk
|
# Applies to Pale Moon and Basilisk
|
||||||
if ('MC_BASILISK' in listConfig) or ('MC_PALEMOON' in listConfig):
|
if ('MC_BASILISK' in listConfig) or ('MC_PALEMOON' in listConfig):
|
||||||
listViolations += [
|
listViolations += [
|
||||||
'MOZ_SYSTEM_NSS',
|
|
||||||
'MOZ_SYSTEM_NSPR',
|
|
||||||
'MOZ_SYSTEM_JPEG',
|
'MOZ_SYSTEM_JPEG',
|
||||||
'MOZ_SYSTEM_ZLIB',
|
'MOZ_SYSTEM_ZLIB',
|
||||||
'MOZ_SYSTEM_BZ2',
|
'MOZ_SYSTEM_BZ2',
|
||||||
|
|
|
||||||
3
config/external/nss/Makefile.in
vendored
3
config/external/nss/Makefile.in
vendored
|
|
@ -3,8 +3,6 @@
|
||||||
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
ifndef MOZ_SYSTEM_NSS
|
|
||||||
|
|
||||||
CC_WRAPPER =
|
CC_WRAPPER =
|
||||||
CXX_WRAPPER =
|
CXX_WRAPPER =
|
||||||
|
|
||||||
|
|
@ -475,4 +473,3 @@ endif # MOZ_FOLD_LIBS
|
||||||
# security/nss/lib/ckfw/builtins. See bug #836220.
|
# security/nss/lib/ckfw/builtins. See bug #836220.
|
||||||
libs-nss/lib$(if $(MOZ_FOLD_LIBS),/ckfw): $(call mkdir_deps,$(DEPTH)/security/nss/lib/ckfw/builtins)
|
libs-nss/lib$(if $(MOZ_FOLD_LIBS),/ckfw): $(call mkdir_deps,$(DEPTH)/security/nss/lib/ckfw/builtins)
|
||||||
|
|
||||||
endif
|
|
||||||
|
|
|
||||||
19
config/external/nss/crmf/moz.build
vendored
19
config/external/nss/crmf/moz.build
vendored
|
|
@ -6,14 +6,11 @@
|
||||||
|
|
||||||
Library('crmf')
|
Library('crmf')
|
||||||
|
|
||||||
if CONFIG['MOZ_SYSTEM_NSS']:
|
USE_LIBS += [
|
||||||
OS_LIBS += [l for l in CONFIG['NSS_LIBS'] if l.startswith('-L')]
|
# The dependency on nss is not real, but is required to force the
|
||||||
else:
|
# parent directory being built before this one. This has no
|
||||||
USE_LIBS += [
|
# practical effect on linkage, since the only thing linking crmf
|
||||||
# The dependency on nss is not real, but is required to force the
|
# will need nss anyways.
|
||||||
# parent directory being built before this one. This has no
|
'nss',
|
||||||
# practical effect on linkage, since the only thing linking crmf
|
'static:/security/nss/lib/crmf/crmf',
|
||||||
# will need nss anyways.
|
]
|
||||||
'nss',
|
|
||||||
'static:/security/nss/lib/crmf/crmf',
|
|
||||||
]
|
|
||||||
|
|
|
||||||
5
config/external/nss/moz.build
vendored
5
config/external/nss/moz.build
vendored
|
|
@ -6,10 +6,7 @@
|
||||||
|
|
||||||
DIRS += ['crmf']
|
DIRS += ['crmf']
|
||||||
|
|
||||||
if CONFIG['MOZ_SYSTEM_NSS']:
|
if CONFIG['MOZ_FOLD_LIBS']:
|
||||||
Library('nss')
|
|
||||||
OS_LIBS += CONFIG['NSS_LIBS']
|
|
||||||
elif CONFIG['MOZ_FOLD_LIBS']:
|
|
||||||
GeckoSharedLibrary('nss', linkage=None)
|
GeckoSharedLibrary('nss', linkage=None)
|
||||||
# TODO: The library name can be changed when bug 845217 is fixed.
|
# TODO: The library name can be changed when bug 845217 is fixed.
|
||||||
SHARED_LIBRARY_NAME = 'nss3'
|
SHARED_LIBRARY_NAME = 'nss3'
|
||||||
|
|
|
||||||
|
|
@ -172,7 +172,7 @@ ifeq ($(MOZ_REPLACE_MALLOC_LINKAGE),dummy library)
|
||||||
mozglue/build/target memory/replace/logalloc/replay/target: memory/replace/dummy/target
|
mozglue/build/target memory/replace/logalloc/replay/target: memory/replace/dummy/target
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
ifeq (,$(MOZ_SYSTEM_NSPR)$(MOZ_SYSTEM_NSS)$(MOZ_FOLD_LIBS))
|
ifeq (,$(MOZ_FOLD_LIBS))
|
||||||
config/external/nss/target: config/external/nspr/pr/target config/external/nspr/ds/target config/external/nspr/libc/target
|
config/external/nss/target: config/external/nspr/pr/target config/external/nspr/ds/target config/external/nspr/libc/target
|
||||||
endif
|
endif
|
||||||
# Most things are built during compile (target/host), but some things happen during export
|
# Most things are built during compile (target/host), but some things happen during export
|
||||||
|
|
|
||||||
|
|
@ -2167,7 +2167,6 @@ HOST_CXXFLAGS=`echo \
|
||||||
$HOST_CXXFLAGS`
|
$HOST_CXXFLAGS`
|
||||||
|
|
||||||
AC_SUBST(_DEPEND_CFLAGS)
|
AC_SUBST(_DEPEND_CFLAGS)
|
||||||
AC_SUBST(MOZ_SYSTEM_NSPR)
|
|
||||||
|
|
||||||
OS_CFLAGS="$CFLAGS"
|
OS_CFLAGS="$CFLAGS"
|
||||||
OS_CXXFLAGS="$CXXFLAGS"
|
OS_CXXFLAGS="$CXXFLAGS"
|
||||||
|
|
|
||||||
|
|
@ -2014,22 +2014,9 @@ esac
|
||||||
|
|
||||||
MOZ_CONFIG_NSPR()
|
MOZ_CONFIG_NSPR()
|
||||||
|
|
||||||
dnl ========================================================
|
# TODO: We need to find a better place to define this include
|
||||||
dnl = If NSS was not detected in the system,
|
NSS_CFLAGS="-I${DIST}/include/nss"
|
||||||
dnl = use the one in the source tree (mozilla/security/nss)
|
AC_SUBST(NSS_CFLAGS)
|
||||||
dnl ========================================================
|
|
||||||
|
|
||||||
MOZ_ARG_WITH_BOOL(system-nss,
|
|
||||||
[ --with-system-nss Use system installed NSS],
|
|
||||||
_USE_SYSTEM_NSS=1 )
|
|
||||||
|
|
||||||
if test -n "$_USE_SYSTEM_NSS"; then
|
|
||||||
AM_PATH_NSS(3.41, [MOZ_SYSTEM_NSS=1], [AC_MSG_ERROR([you don't have NSS installed or your version is too old])])
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test -z "$MOZ_SYSTEM_NSS"; then
|
|
||||||
NSS_CFLAGS="-I${DIST}/include/nss"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if test -z "$SKIP_LIBRARY_CHECKS"; then
|
if test -z "$SKIP_LIBRARY_CHECKS"; then
|
||||||
dnl system JPEG support
|
dnl system JPEG support
|
||||||
|
|
@ -5489,10 +5476,6 @@ AC_SUBST_LIST(MOZ_BZ2_LIBS)
|
||||||
AC_SUBST_LIST(MOZ_PNG_CFLAGS)
|
AC_SUBST_LIST(MOZ_PNG_CFLAGS)
|
||||||
AC_SUBST_LIST(MOZ_PNG_LIBS)
|
AC_SUBST_LIST(MOZ_PNG_LIBS)
|
||||||
|
|
||||||
AC_SUBST(MOZ_SYSTEM_NSPR)
|
|
||||||
|
|
||||||
AC_SUBST(MOZ_SYSTEM_NSS)
|
|
||||||
|
|
||||||
HOST_CMFLAGS=-fobjc-exceptions
|
HOST_CMFLAGS=-fobjc-exceptions
|
||||||
HOST_CMMFLAGS=-fobjc-exceptions
|
HOST_CMMFLAGS=-fobjc-exceptions
|
||||||
OS_COMPILE_CMFLAGS=-fobjc-exceptions
|
OS_COMPILE_CMFLAGS=-fobjc-exceptions
|
||||||
|
|
@ -5672,8 +5655,6 @@ MC_BASILISK=$MC_BASILISK
|
||||||
MC_PALEMOON=$MC_PALEMOON
|
MC_PALEMOON=$MC_PALEMOON
|
||||||
MOZ_EME=$MOZ_EME
|
MOZ_EME=$MOZ_EME
|
||||||
MOZ_WEBRTC=$MOZ_WEBRTC
|
MOZ_WEBRTC=$MOZ_WEBRTC
|
||||||
MOZ_SYSTEM_NSS=$MOZ_SYSTEM_NSS
|
|
||||||
MOZ_SYSTEM_NSPR=$MOZ_SYSTEM_NSPR
|
|
||||||
MOZ_SYSTEM_JPEG=$MOZ_SYSTEM_JPEG
|
MOZ_SYSTEM_JPEG=$MOZ_SYSTEM_JPEG
|
||||||
MOZ_SYSTEM_ZLIB=$MOZ_SYSTEM_ZLIB
|
MOZ_SYSTEM_ZLIB=$MOZ_SYSTEM_ZLIB
|
||||||
MOZ_SYSTEM_BZ2=$MOZ_SYSTEM_BZ2
|
MOZ_SYSTEM_BZ2=$MOZ_SYSTEM_BZ2
|
||||||
|
|
|
||||||
|
|
@ -187,13 +187,6 @@ MOZ_SAFE_BROWSING:
|
||||||
false,
|
false,
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
MOZ_SYSTEM_NSS:
|
|
||||||
#ifdef MOZ_SYSTEM_NSS
|
|
||||||
true,
|
|
||||||
#else
|
|
||||||
false,
|
|
||||||
#endif
|
|
||||||
|
|
||||||
MOZ_PLACES:
|
MOZ_PLACES:
|
||||||
#ifdef MOZ_PLACES
|
#ifdef MOZ_PLACES
|
||||||
true,
|
true,
|
||||||
|
|
|
||||||
|
|
@ -148,7 +148,6 @@ for var in ('ANDROID_PACKAGE_NAME',
|
||||||
DEFINES[var] = CONFIG[var]
|
DEFINES[var] = CONFIG[var]
|
||||||
|
|
||||||
for var in ('MOZ_TOOLKIT_SEARCH',
|
for var in ('MOZ_TOOLKIT_SEARCH',
|
||||||
'MOZ_SYSTEM_NSS',
|
|
||||||
'MOZ_UPDATER',
|
'MOZ_UPDATER',
|
||||||
'MOZ_SWITCHBOARD'):
|
'MOZ_SWITCHBOARD'):
|
||||||
if CONFIG[var]:
|
if CONFIG[var]:
|
||||||
|
|
|
||||||
|
|
@ -63,17 +63,15 @@ JSSHELL_BINS = \
|
||||||
$(DLL_PREFIX)mozglue$(DLL_SUFFIX) \
|
$(DLL_PREFIX)mozglue$(DLL_SUFFIX) \
|
||||||
$(NULL)
|
$(NULL)
|
||||||
|
|
||||||
ifndef MOZ_SYSTEM_NSPR
|
ifdef MOZ_FOLD_LIBS
|
||||||
ifdef MOZ_FOLD_LIBS
|
JSSHELL_BINS += $(DLL_PREFIX)nss3$(DLL_SUFFIX)
|
||||||
JSSHELL_BINS += $(DLL_PREFIX)nss3$(DLL_SUFFIX)
|
else
|
||||||
else
|
JSSHELL_BINS += \
|
||||||
JSSHELL_BINS += \
|
$(DLL_PREFIX)nspr4$(DLL_SUFFIX) \
|
||||||
$(DLL_PREFIX)nspr4$(DLL_SUFFIX) \
|
$(DLL_PREFIX)plds4$(DLL_SUFFIX) \
|
||||||
$(DLL_PREFIX)plds4$(DLL_SUFFIX) \
|
$(DLL_PREFIX)plc4$(DLL_SUFFIX) \
|
||||||
$(DLL_PREFIX)plc4$(DLL_SUFFIX) \
|
$(NULL)
|
||||||
$(NULL)
|
endif # MOZ_FOLD_LIBS
|
||||||
endif # MOZ_FOLD_LIBS
|
|
||||||
endif # MOZ_SYSTEM_NSPR
|
|
||||||
|
|
||||||
ifdef MSVC_C_RUNTIME_DLL
|
ifdef MSVC_C_RUNTIME_DLL
|
||||||
JSSHELL_BINS += $(MSVC_C_RUNTIME_DLL)
|
JSSHELL_BINS += $(MSVC_C_RUNTIME_DLL)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue