gnu: gobject-introspection: Update to 1.72.0.
* gnu/packages/glib.scm (gobject-introspection): Update to 1.72.0. * gnu/packages/patches/gobject-introspection-absolute-shlib-path.patch: Adjust to changes in upstream source.
This commit is contained in:
		
							parent
							
								
									307dec8e2d
								
							
						
					
					
						commit
						60c4b012ff
					
				
					 1 changed files with 25 additions and 25 deletions
				
			
		| 
						 | 
					@ -7,10 +7,10 @@ for 'gobject-introspection' 1.40.0 in Nix.
 | 
				
			||||||
It has since been updated to work with newer versions of
 | 
					It has since been updated to work with newer versions of
 | 
				
			||||||
gobject-introspection.
 | 
					gobject-introspection.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
diff --git a/giscanner/scannermain.py b/giscanner/scannermain.py
 | 
					Index: gobject-introspection-1.72.0/giscanner/scannermain.py
 | 
				
			||||||
index 1d39ab84..e12ed24e 100644
 | 
					===================================================================
 | 
				
			||||||
--- a/giscanner/scannermain.py
 | 
					--- gobject-introspection-1.72.0.orig/giscanner/scannermain.py
 | 
				
			||||||
+++ b/giscanner/scannermain.py
 | 
					+++ gobject-introspection-1.72.0/giscanner/scannermain.py
 | 
				
			||||||
@@ -95,6 +95,39 @@ def get_windows_option_group(parser):
 | 
					@@ -95,6 +95,39 @@ def get_windows_option_group(parser):
 | 
				
			||||||
     return group
 | 
					     return group
 | 
				
			||||||
 
 | 
					 
 | 
				
			||||||
| 
						 | 
					@ -51,21 +51,21 @@ index 1d39ab84..e12ed24e 100644
 | 
				
			||||||
 def _get_option_parser():
 | 
					 def _get_option_parser():
 | 
				
			||||||
     parser = optparse.OptionParser('%prog [options] sources',
 | 
					     parser = optparse.OptionParser('%prog [options] sources',
 | 
				
			||||||
                                    version='%prog ' + giscanner.__version__)
 | 
					                                    version='%prog ' + giscanner.__version__)
 | 
				
			||||||
@@ -220,6 +253,10 @@ match the namespace prefix.""")
 | 
					@@ -217,6 +250,10 @@ match the namespace prefix.""")
 | 
				
			||||||
     parser.add_option("", "--compiler",
 | 
					     parser.add_option("", "--filelist",
 | 
				
			||||||
                       action="store", dest="compiler", default=None,
 | 
					                       action="store", dest="filelist", default=[],
 | 
				
			||||||
                       help="the C compiler to use internally")
 | 
					                       help="file containing headers and sources to be scanned")
 | 
				
			||||||
+    parser.add_option("", "--fallback-library-path",
 | 
					+    parser.add_option("", "--fallback-library-path",
 | 
				
			||||||
+                      action="store", dest="fallback_libpath",
 | 
					+                      action="store", dest="fallback_libpath",
 | 
				
			||||||
+                      default=_get_default_fallback_libpath(),
 | 
					+                      default=_get_default_fallback_libpath(),
 | 
				
			||||||
+                      help="Path to prepend to unknown shared libraries")
 | 
					+                      help="Path to prepend to unknown shared libraries")
 | 
				
			||||||
 
 | 
					     parser.add_option("", "--compiler",
 | 
				
			||||||
     group = get_preprocessor_option_group(parser)
 | 
					                       action="store", dest="compiler", default=None,
 | 
				
			||||||
     parser.add_option_group(group)
 | 
					                       help="the C compiler to use internally")
 | 
				
			||||||
diff --git a/giscanner/shlibs.py b/giscanner/shlibs.py
 | 
					Index: gobject-introspection-1.72.0/giscanner/shlibs.py
 | 
				
			||||||
index 9f8ab5df..8aa37c99 100644
 | 
					===================================================================
 | 
				
			||||||
--- a/giscanner/shlibs.py
 | 
					--- gobject-introspection-1.72.0.orig/giscanner/shlibs.py
 | 
				
			||||||
+++ b/giscanner/shlibs.py
 | 
					+++ gobject-introspection-1.72.0/giscanner/shlibs.py
 | 
				
			||||||
@@ -57,6 +57,14 @@ def _ldd_library_pattern(library_name):
 | 
					@@ -57,6 +57,14 @@ def _ldd_library_pattern(library_name):
 | 
				
			||||||
     $""" % re.escape(library_name), re.VERBOSE)
 | 
					     $""" % re.escape(library_name), re.VERBOSE)
 | 
				
			||||||
 
 | 
					 
 | 
				
			||||||
| 
						 | 
					@ -81,7 +81,7 @@ index 9f8ab5df..8aa37c99 100644
 | 
				
			||||||
 # This is a what we do for non-la files. We assume that we are on an
 | 
					 # This is a what we do for non-la files. We assume that we are on an
 | 
				
			||||||
 # ELF-like system where ldd exists and the soname extracted with ldd is
 | 
					 # ELF-like system where ldd exists and the soname extracted with ldd is
 | 
				
			||||||
 # a filename that can be opened with dlopen().
 | 
					 # a filename that can be opened with dlopen().
 | 
				
			||||||
@@ -108,7 +116,8 @@ def _resolve_non_libtool(options, binary, libraries):
 | 
					@@ -108,7 +116,8 @@ def _resolve_non_libtool(options, binary
 | 
				
			||||||
             output = output.decode("utf-8", "replace")
 | 
					             output = output.decode("utf-8", "replace")
 | 
				
			||||||
 
 | 
					 
 | 
				
			||||||
         shlibs = resolve_from_ldd_output(libraries, output)
 | 
					         shlibs = resolve_from_ldd_output(libraries, output)
 | 
				
			||||||
| 
						 | 
					@ -116,7 +116,7 @@ index 9f8ab5df..8aa37c99 100644
 | 
				
			||||||
     if len(patterns) == 0:
 | 
					     if len(patterns) == 0:
 | 
				
			||||||
         return []
 | 
					         return []
 | 
				
			||||||
 
 | 
					 
 | 
				
			||||||
@@ -141,8 +149,12 @@ def resolve_from_ldd_output(libraries, output):
 | 
					@@ -141,8 +149,12 @@ def resolve_from_ldd_output(libraries, o
 | 
				
			||||||
         if line.endswith(':'):
 | 
					         if line.endswith(':'):
 | 
				
			||||||
             continue
 | 
					             continue
 | 
				
			||||||
         for word in line.split():
 | 
					         for word in line.split():
 | 
				
			||||||
| 
						 | 
					@ -131,10 +131,10 @@ index 9f8ab5df..8aa37c99 100644
 | 
				
			||||||
                 if m:
 | 
					                 if m:
 | 
				
			||||||
                     del patterns[library]
 | 
					                     del patterns[library]
 | 
				
			||||||
                     shlibs.append(m.group())
 | 
					                     shlibs.append(m.group())
 | 
				
			||||||
diff --git a/giscanner/utils.py b/giscanner/utils.py
 | 
					Index: gobject-introspection-1.72.0/giscanner/utils.py
 | 
				
			||||||
index 31c7ea48..630002a8 100644
 | 
					===================================================================
 | 
				
			||||||
--- a/giscanner/utils.py
 | 
					--- gobject-introspection-1.72.0.orig/giscanner/utils.py
 | 
				
			||||||
+++ b/giscanner/utils.py
 | 
					+++ gobject-introspection-1.72.0/giscanner/utils.py
 | 
				
			||||||
@@ -114,16 +114,11 @@ def extract_libtool_shlib(la_file):
 | 
					@@ -114,16 +114,11 @@ def extract_libtool_shlib(la_file):
 | 
				
			||||||
     if dlname is None:
 | 
					     if dlname is None:
 | 
				
			||||||
         return None
 | 
					         return None
 | 
				
			||||||
| 
						 | 
					@ -157,10 +157,10 @@ index 31c7ea48..630002a8 100644
 | 
				
			||||||
 
 | 
					 
 | 
				
			||||||
 
 | 
					 
 | 
				
			||||||
 # Returns arguments for invoking libtool, if applicable, otherwise None
 | 
					 # Returns arguments for invoking libtool, if applicable, otherwise None
 | 
				
			||||||
diff --git a/tests/scanner/test_shlibs.py b/tests/scanner/test_shlibs.py
 | 
					Index: gobject-introspection-1.72.0/tests/scanner/test_shlibs.py
 | 
				
			||||||
index a8337c60..7f123103 100644
 | 
					===================================================================
 | 
				
			||||||
--- a/tests/scanner/test_shlibs.py
 | 
					--- gobject-introspection-1.72.0.orig/tests/scanner/test_shlibs.py
 | 
				
			||||||
+++ b/tests/scanner/test_shlibs.py
 | 
					+++ gobject-introspection-1.72.0/tests/scanner/test_shlibs.py
 | 
				
			||||||
@@ -40,7 +40,8 @@ class TestLddParser(unittest.TestCase):
 | 
					@@ -40,7 +40,8 @@ class TestLddParser(unittest.TestCase):
 | 
				
			||||||
 
 | 
					 
 | 
				
			||||||
         self.assertEqual(
 | 
					         self.assertEqual(
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Reference in a new issue