[gcr/main] meson: Remove post_install symlink of the libraries



commit 15e5bfecf19e87a638d66294e1387c4e873b1175
Author: Corentin Noël <tintou noel tf>
Date:   Thu Mar 24 22:49:56 2022 +0100

    meson: Remove post_install symlink of the libraries

 meson.build           |  3 ---
 meson_post_install.py | 23 -----------------------
 2 files changed, 26 deletions(-)
---
diff --git a/meson.build b/meson.build
index 11c451b3..a930816f 100644
--- a/meson.build
+++ b/meson.build
@@ -119,7 +119,4 @@ endif
 # Post-install scripts
 meson.add_install_script('meson_post_install.py',
   get_option('datadir'),
-  get_option('libdir'),
-  gcr_major_version.to_string(),
-  gcr_soversion,
 )
diff --git a/meson_post_install.py b/meson_post_install.py
index 01668148..9e5cbdf4 100755
--- a/meson_post_install.py
+++ b/meson_post_install.py
@@ -9,9 +9,6 @@ install_prefix = os.environ['MESON_INSTALL_DESTDIR_PREFIX']
 
 # Args
 datadir = sys.argv[1]
-libdir = sys.argv[2]
-gcr_major_version = sys.argv[3]
-gcr_soversion = sys.argv[4]
 
 icondir = os.path.join(install_prefix, datadir, 'icons', 'hicolor')
 schemadir = os.path.join(install_prefix, datadir, 'glib-2.0', 'schemas')
@@ -29,23 +26,3 @@ subprocess.call(['glib-compile-schemas', schemadir])
 
 print('Updating MIME database...')
 subprocess.call(['update-mime-database', mimedatabasedir])
-
-# FIXME: after a major version bump, just drop this
-print('Creating symlink for libgcr-{}.so'.format(gcr_major_version))
-
-def _get_path_for_lib(basename):
-    return os.path.join(install_prefix, libdir, basename)
-
-libgcr_ui_basename = 'libgcr-ui-{}.so'.format(gcr_major_version)
-libgcr_basename = 'libgcr-{}.so'.format(gcr_major_version)
-
-subprocess.call(['ln', '-f', '-s', libgcr_ui_basename, _get_path_for_lib(libgcr_basename)])
-
-for v in gcr_soversion.split('.'):
-    libgcr_ui_basename += '.{}'.format(v)
-    libgcr_basename += '.{}'.format(v)
-
-    if not os.path.exists(_get_path_for_lib(libgcr_ui_basename)):
-        continue
-
-    subprocess.call(['ln', '-f', '-s', libgcr_ui_basename, _get_path_for_lib(libgcr_basename)])


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]