mirror of
https://github.com/kiwix/kiwix-tools.git
synced 2025-09-26 05:41:18 -04:00
fix install name ID for components (required for i386)
This commit is contained in:
parent
7c9b705304
commit
0506c603df
@ -61,6 +61,10 @@ except ValueError:
|
|||||||
ext = ''
|
ext = ''
|
||||||
libname = u'lib%s%s.0.dylib' % (name[0].upper(), name[1:])
|
libname = u'lib%s%s.0.dylib' % (name[0].upper(), name[1:])
|
||||||
|
|
||||||
|
# change ID if component to match new name/path
|
||||||
|
if is_component:
|
||||||
|
os.system('install_name_tool -id %s %s' % (basename, component))
|
||||||
|
|
||||||
# run otool to get a list of deps.
|
# run otool to get a list of deps.
|
||||||
otool = subprocess.Popen(['otool', '-L', component], stdout=subprocess.PIPE)
|
otool = subprocess.Popen(['otool', '-L', component], stdout=subprocess.PIPE)
|
||||||
otool_out, otool_err = otool.communicate()
|
otool_out, otool_err = otool.communicate()
|
||||||
@ -78,10 +82,7 @@ for line in otool_out.split('\n'):
|
|||||||
|
|
||||||
_basename = os.path.basename(path).strip()
|
_basename = os.path.basename(path).strip()
|
||||||
|
|
||||||
# remove the libXX.0.dylib from the component (optionnal)
|
if _basename == basename:
|
||||||
# doesn't seem to work.
|
|
||||||
if _basename == libname:
|
|
||||||
# os.system('install_name_tool -delete_rpath %s %s' % (path, component))
|
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# is it a library link?
|
# is it a library link?
|
||||||
|
Loading…
x
Reference in New Issue
Block a user