mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-28 15:53:00 +00:00
package-zip-archives: fix using wrong pattern for detecting SONAME
See example below - `Shared library` is used to declarate dependency, `Library soname` is used to declare `SONAME`. ``` 0x0000000000000001 (NEEDED) Shared library: [libifcopenshell.plugin.so] 0x0000000000000001 (NEEDED) Shared library: [libstdc++.so.6] 0x0000000000000001 (NEEDED) Shared library: [libm.so.6] 0x0000000000000001 (NEEDED) Shared library: [libgcc_s.so.1] 0x0000000000000001 (NEEDED) Shared library: [libc.so.6] 0x0000000000000001 (NEEDED) Shared library: [ld-linux-x86-64.so.2] 0x000000000000000e (SONAME) Library soname: [libifcopenshell.parse.so] ```
This commit is contained in:
@@ -72,8 +72,7 @@ def ensure_soname_links(dest: Path) -> None:
|
||||
readelf_output = run("readelf", "-d", str(shared_object))
|
||||
except subprocess.CalledProcessError:
|
||||
continue
|
||||
# TODO: actual pattern is "Library soname" instead of "Shared library"?
|
||||
match = re.search(r"\(SONAME\).*Shared library: \[(.*)\]", readelf_output)
|
||||
match = re.search(r"\(SONAME\).*Library soname: \[(.*)\]", readelf_output)
|
||||
if not match:
|
||||
continue
|
||||
soname = match.group(1)
|
||||
|
||||
Reference in New Issue
Block a user