Move chromium to it's own place OBS-URL: https://build.opensuse.org/request/show/79098 OBS-URL: https://build.opensuse.org/package/show/network:chromium/chromium?expand=0&rev=1
		
			
				
	
	
		
			58 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
			
		
		
	
	
			58 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			Diff
		
	
	
	
	
	
diff -up chromium-127.0.6533.72/build/rust/rust_bindgen.gni.me chromium-127.0.6533.72/build/rust/rust_bindgen.gni
 | 
						|
--- chromium-127.0.6533.72/build/rust/rust_bindgen.gni.me	2024-07-25 16:11:18.754551595 +0200
 | 
						|
+++ chromium-127.0.6533.72/build/rust/rust_bindgen.gni	2024-07-25 16:11:33.997837660 +0200
 | 
						|
@@ -22,7 +22,7 @@ _libclang_path = rust_bindgen_root
 | 
						|
 if (host_os == "win") {
 | 
						|
   _libclang_path += "/bin"
 | 
						|
 } else {
 | 
						|
-  _libclang_path += "/lib"
 | 
						|
+  _libclang_path += "/lib64"
 | 
						|
 }
 | 
						|
 
 | 
						|
 # Template to build Rust/C bindings with bindgen.
 | 
						|
@@ -105,6 +105,14 @@
 | 
						|
       # it's declared.
 | 
						|
       deps = [ ":${_rust_bindgen_generator_name}_static_fns" ]
 | 
						|
     }
 | 
						|
+
 | 
						|
+    # Default configs include "-fvisibility=hidden", and for some reason this
 | 
						|
+    # causes bindgen not to emit function bindings. Override it.
 | 
						|
+    args = []
 | 
						|
+    if (!is_win) {
 | 
						|
+      args += [ "-fvisibility=default" ]
 | 
						|
+    }
 | 
						|
+
 | 
						|
     if (defined(cpp) && cpp) {
 | 
						|
       # This cfg is used to control the bindings public export.
 | 
						|
       rustflags = [
 | 
						|
--- chromium-132.0.6811.2/build/rust/rust_bindgen_generator.gni	2024/11/07 11:34:54	1.1
 | 
						|
+++ chromium-132.0.6811.2/build/rust/rust_bindgen_generator.gni	2024/11/07 11:35:41
 | 
						|
@@ -22,7 +22,7 @@
 | 
						|
 if (host_os == "win") {
 | 
						|
   _libclang_path += "/bin"
 | 
						|
 } else {
 | 
						|
-  _libclang_path += "/lib"
 | 
						|
+  _libclang_path += "/lib64"
 | 
						|
 }
 | 
						|
 
 | 
						|
 # Template to build Rust/C bindings with bindgen.
 | 
						|
@@ -266,6 +266,8 @@
 | 
						|
     # causes bindgen not to emit function bindings. Override it.
 | 
						|
     if (!is_win) {
 | 
						|
       args += [ "-fvisibility=default" ]
 | 
						|
+      args += [ "-I/usr/include/c++/v1" ]
 | 
						|
+      args += [ "-I/usr/lib64/clang/" + clang_version + "/include" ]
 | 
						|
     }
 | 
						|
 
 | 
						|
     if (is_win) {
 | 
						|
--- chromium-132.0.6811.2/build/config/gcc/BUILD.gn	2024/11/07 14:13:22	1.1
 | 
						|
+++ chromium-132.0.6811.2/build/config/gcc/BUILD.gn	2024/11/07 14:13:45
 | 
						|
@@ -32,7 +32,6 @@
 | 
						|
 # See http://gcc.gnu.org/wiki/Visibility
 | 
						|
 config("symbol_visibility_hidden") {
 | 
						|
   cflags = [ "-fvisibility=hidden" ]
 | 
						|
-  rustflags = [ "-Zdefault-visibility=hidden" ]
 | 
						|
 
 | 
						|
   # Visibility attribute is not supported on AIX.
 | 
						|
   if (current_os != "aix") {
 |