summaryrefslogtreecommitdiff
blob: 1fe2e1ac4cc1c4f74a1953128eca2596e466717f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
https://bz-attachments.freebsd.org/attachment.cgi?id=204611
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=238128

Stripping RPATH on Prefix is really bad, because it means the default
RPATH entries disappear, and any installed binaries don't work (get
kernel traps).

Extracted the minstall patch from the FreeBSD full patch.

--- a/mesonbuild/minstall.py
+++ b/mesonbuild/minstall.py
@@ -488,8 +488,11 @@
                         printed_symlink_error = True
             if os.path.isfile(outname):
                 try:
-                    depfixer.fix_rpath(outname, install_rpath, final_path,
-                                       install_name_mappings, verbose=False)
+                    if install_rpath:
+                        depfixer.fix_rpath(outname, install_rpath, final_path,
+                                           install_name_mappings, verbose=False)
+                    else:
+                        print("RPATH changes at install time disabled")
                 except SystemExit as e:
                     if isinstance(e.code, int) and e.code == 0:
                         pass