File do-not-build-libvulkan.so.patch of Package nodejs-electron

Do not try to build a private copy of a DLL which is already available on every modern linux system.

--- a/chrome/BUILD.gn
+++ b/chrome/BUILD.gn
@@ -1789,8 +1790,9 @@
 
       deps = [ "//third_party/angle:libGLESv2" ]
     }
-    if (!is_chromeos) {
+    source_set("angle_libvulkan_symbols") {}
+    if (false) {
       extract_symbols("angle_libvulkan_symbols") {
         binary = "$root_out_dir/libvulkan.so.1"
 
         if (current_cpu == "x86") {
--- a/third_party/vulkan-deps/vulkan-loader/src/BUILD.gn
+++ b/third_party/vulkan-deps/vulkan-loader/src/BUILD.gn
@@ -99,7 +99,18 @@
     library_type = "static_library"
   }
 
-  target(library_type, "libvulkan") {
+if (!angle_shared_libvulkan) {
+ import("//build/config/linux/pkg_config.gni")
+ pkg_config("system_libvulkan") {
+  packages = [ "vulkan" ]
+ }
+}
+source_set("libvulkan") {
+ if (!angle_shared_libvulkan) {
+  public_configs = [ ":system_libvulkan" ]
+ }
+}
+  target(library_type, "xlibvulkan") {
     sources = [
       "loader/adapters.h",
       "loader/allocation.c",

openSUSE Build Service is sponsored by