Bug 1839751 - Apply upstream nsis patch to build with newer versions of SCons. r=firefox-build-system-reviewers,nalexander

Differential Revision: https://phabricator.services.mozilla.com/D181698
This commit is contained in:
Mike Hommey 2023-06-22 02:46:06 +00:00
Родитель c144be0f2e
Коммит 69c1519f7a
2 изменённых файлов: 24 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,23 @@
Patch from https://sourceforge.net/p/nsis/code/7291/
diff -ruN nsis-3.07-src/Contrib/ExDLL/SConscript nsis-3.08-src/Contrib/ExDLL/SConscript
--- nsis-3.07-src/Contrib/ExDLL/SConscript 2015-06-22 01:13:45.000000000 +0900
+++ nsis-3.08-src/Contrib/ExDLL/SConscript 2021-08-05 05:15:13.000000000 +0900
@@ -47,7 +47,7 @@
env.DistributeExamples(api_files, path='Plugin/nsis')
env.DistributeExamples(example, path='Plugin')
if env['PLATFORM'] != 'win32':
- if env.has_key('PREFIX_PLUGINAPI_INC'):
+ if 'PREFIX_PLUGINAPI_INC' in env:
env.Distribute(api_files, None, 'pluginapi_inc', '', 'nsis', 'pluginapi', 'pluginapi')
@@ -56,7 +56,7 @@
else:
example += lib_files
- if env.has_key('PREFIX_PLUGINAPI_LIB'):
+ if 'PREFIX_PLUGINAPI_LIB' in env:
env.Distribute(lib, None, 'pluginapi_lib', '', 'nsis', 'pluginapi', 'pluginapi')

Просмотреть файл

@ -34,6 +34,7 @@ make -f win32/Makefile.gcc PREFIX=i686-w64-mingw32-
cd ../nsis-3.07-src
patch -p1 < $GECKO_PATH/build/win32/nsis-no-insert-timestamp.patch
patch -p1 < $GECKO_PATH/build/win32/nsis-no-underscore.patch
patch -p1 < $GECKO_PATH/build/win32/nsis-scons.patch
# --exclude-libs is not supported by lld, but is not required anyways.
# /fixed is passed by the build system when building with MSVC but not
# when building with GCC/binutils. The build system doesn't really support