7
0
Files
nodejs-electron/system-gtest.patch

82 lines
2.6 KiB
Diff
Raw Normal View History

Accepting request 990766 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.9 * Updated Chromium to 102.0.5005.167 * Fixed a potential crash when changing window settings after initializing WCO with an invalid titleBarStyle * Fixed alwaysOnTop BrowserWindow option for X11. * Fixed an issue where printing with an invalid deviceName caused silent failures. * Fixed empty app_id when running under wayland. * Prevent brief display of "Ozone X11" in window title. - Remove some unused huge libraries from third_party in source tarball. - Remove process_doc_wrapper-do-not-assume-ABI.patch. The file being patched was not getting compiled for a while, and is now removed from the tarball. - Add system-gtest.patch - Add breakpad-system-curl.patch - Do not require SSE3 (chromium-102-compiler.patch). Both openSUSE and Fedora still support the original Opteron, and package maintainers should not unilaterally require more. - Use system node for the typescript compiler (again). We do not need to force node16 (Fedora compiles fine with node18 even), Factory pushes a devel node version as default for a reason, and it accidentally broke build on RISC-V which only has node17. - Restore full debuginfo on the C-only code parts. - Document all other deviations from recommended compilation options. - Remove obsolete chromium-96-CouponDB-include.patch - Correct licence in header (Electron bundles Chromium) OBS-URL: https://build.opensuse.org/request/show/990766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=23
2022-08-01 08:25:54 +00:00
We don't need this huge test-only dependency in the tarball. Only one header is needed in prod code, so unbundling is not a problem even on old targets.
--- a/testing/gtest/include/gtest/gtest_prod.h
+++ b/testing/gtest/include/gtest/gtest_prod.h
@@ -10,6 +10,6 @@
// and testing/gmock, instead of directly including files in
// third_party/googletest.
-#include "third_party/googletest/src/googletest/include/gtest/gtest_prod.h" // IWYU pragma: export
Accepting request 990766 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.9 * Updated Chromium to 102.0.5005.167 * Fixed a potential crash when changing window settings after initializing WCO with an invalid titleBarStyle * Fixed alwaysOnTop BrowserWindow option for X11. * Fixed an issue where printing with an invalid deviceName caused silent failures. * Fixed empty app_id when running under wayland. * Prevent brief display of "Ozone X11" in window title. - Remove some unused huge libraries from third_party in source tarball. - Remove process_doc_wrapper-do-not-assume-ABI.patch. The file being patched was not getting compiled for a while, and is now removed from the tarball. - Add system-gtest.patch - Add breakpad-system-curl.patch - Do not require SSE3 (chromium-102-compiler.patch). Both openSUSE and Fedora still support the original Opteron, and package maintainers should not unilaterally require more. - Use system node for the typescript compiler (again). We do not need to force node16 (Fedora compiles fine with node18 even), Factory pushes a devel node version as default for a reason, and it accidentally broke build on RISC-V which only has node17. - Restore full debuginfo on the C-only code parts. - Document all other deviations from recommended compilation options. - Remove obsolete chromium-96-CouponDB-include.patch - Correct licence in header (Electron bundles Chromium) OBS-URL: https://build.opensuse.org/request/show/990766 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=23
2022-08-01 08:25:54 +00:00
+#include <gtest/gtest_prod.h>
#endif // TESTING_GTEST_INCLUDE_GTEST_GTEST_PROD_H_
Accepting request 993568 from home:dziobian:gulgul-ultron:19 - New upstream release 19.0.11 * Fixed webContents.getUserAgent() incorrectly returning an empty string unless previously set. * Disabled GPU acceleration on VMware on Linux. - New upstream release 19.0.10 * Added support for --ozone-platform-hint flag. * Fixed inertial scroll is broken when the scrollable element has an overlay with pointer-events: none. - Do not use non-free closure compiler JAR during compilation. - Use system jpeg-xl and XNVCtrl also on Tumbleweed. - Use system libyuv on Tumbleweed. * libyuv.gn - Make nodejs-electron-devel require zlib-devel instead of shipping own headers. * no-zlib-headers.patch * add -lz to LDFLAGS in electron-16-system-node-headers.patch - Use system toolchain, incl. nasm, ply, flatc * flatbuffers.gn * system-nasm.patch * system-pydeps.patch - Thorough cleanup of various other third party libraries from source tarball. * do-not-build-libvulkan.so.patch * libsecret.gn * node-system-icu.patch * skia-system-vulkan-headers.patch * system-six.patch * system-usb_ids.patch * Adjust system-gtest.patch to also account for the second googletest copy in electron_node - Re-enable full debuginfo on x64 for everything except Blink and v8, which fails to build due to heavy template use. * adjust chromium-102-compiler.patch * nasm-generate-debuginfo.patch - Fix build of EXPERIMENTAL ix86 and arm7hf ports by using the LLVM linker (lld) on these platforms. * Note that ix86 requires SSE2 instructions (that means Pentium 4 / Pentium M / Atom or equivalent) OBS-URL: https://build.opensuse.org/request/show/993568 OBS-URL: https://build.opensuse.org/package/show/devel:languages:nodejs/nodejs-electron?expand=0&rev=26
2022-08-08 08:46:02 +00:00
--- a/third_party/electron_node/deps/googletest/BUILD.gn 2022-07-22 14:56:38.984761919 +0200
+++ b/third_party/electron_node/deps/googletest/BUILD.gn 2022-07-29 19:21:57.655767809 +0200
@@ -1,61 +1,11 @@
-config("gtest_config") {
- include_dirs = [ "include" ]
- defines = [ "UNIT_TEST" ]
-}
+import("//build/config/linux/pkg_config.gni")
-static_library("gtest") {
- include_dirs = [
- "include",
- "." # src
- ]
+pkg_config("gtest_config") {
+ packages = [ "gtest" ]
+}
+source_set("gtest") {
public_configs = [ ":gtest_config" ]
-
- cflags_cc = [
- "-Wno-c++98-compat-extra-semi",
- "-Wno-unused-const-variable",
- "-Wno-unreachable-code-return",
- ]
-
- defines = [
- "GTEST_HAS_POSIX_RE=0",
- "GTEST_LANG_CXX11=1",
- ]
-
- sources = [
- "include/gtest/gtest_pred_impl.h",
- "include/gtest/gtest_prod.h",
- "include/gtest/gtest-death-test.h",
- "include/gtest/gtest-matchers.h",
- "include/gtest/gtest-message.h",
- "include/gtest/gtest-param-test.h",
- "include/gtest/gtest-printers.h",
- "include/gtest/gtest-spi.h",
- "include/gtest/gtest-test-part.h",
- "include/gtest/gtest-typed-test.h",
- "include/gtest/gtest.h",
- "include/gtest/internal/gtest-death-test-internal.h",
- "include/gtest/internal/gtest-filepath.h",
- "include/gtest/internal/gtest-internal.h",
- "include/gtest/internal/gtest-param-util.h",
- "include/gtest/internal/gtest-port-arch.h",
- "include/gtest/internal/gtest-port.h",
- "include/gtest/internal/gtest-string.h",
- "include/gtest/internal/gtest-type-util.h",
- "include/gtest/internal/custom/gtest-port.h",
- "include/gtest/internal/custom/gtest-printers.h",
- "include/gtest/internal/custom/gtest.h",
- "src/gtest-all.cc",
- "src/gtest-death-test.cc",
- "src/gtest-filepath.cc",
- "src/gtest-internal-inl.h",
- "src/gtest-matchers.cc",
- "src/gtest-port.cc",
- "src/gtest-printers.cc",
- "src/gtest-test-part.cc",
- "src/gtest-typed-test.cc",
- "src/gtest.cc",
- ]
}
static_library("gtest_main") {