From 10b094c980fd5e5c911c1ce423fe0deccde219e8 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Mon, 18 Jun 2018 22:28:11 +0300 Subject: [PATCH] Make it work with current master. --- mesonbuild/minstall.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/mesonbuild/minstall.py b/mesonbuild/minstall.py index 227a40782..ad63a3491 100644 --- a/mesonbuild/minstall.py +++ b/mesonbuild/minstall.py @@ -384,14 +384,15 @@ class Installer: def install_targets(self, d): for t in d.targets: - fname = check_for_stampfile(t[0]) - outdir = get_destdir_path(d, t[1]) + fname = check_for_stampfile(t.fname) + outdir = get_destdir_path(d, t.outdir) outname = os.path.join(outdir, os.path.basename(fname)) - final_path = os.path.join(d.prefix, outname) - aliases = t[2] - should_strip = t[3] - install_rpath = t[4] - install_mode = t[5] + final_path = os.path.join(d.prefix, t.outdir, os.path.basename(fname)) + aliases = t.aliases + should_strip = t.strip + install_rpath = t.install_rpath + install_name_mappings = t.install_name_mappings + install_mode = t.install_mode d.dirmaker.makedirs(outdir, exist_ok=True) if not os.path.exists(fname): raise RuntimeError('File {!r} could not be found'.format(fname)) @@ -438,7 +439,7 @@ class Installer: if os.path.isfile(outname): try: depfixer.fix_rpath(outname, install_rpath, final_path, - verbose=False) + install_name_mappings, verbose=False) except SystemExit as e: if isinstance(e.code, int) and e.code == 0: pass