aboutsummaryrefslogtreecommitdiff
path: root/libbuild2/install
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2023-02-22 09:13:33 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2023-02-22 09:13:33 +0200
commite05ee01b6da2167aef99ee62e813a172c1d01e18 (patch)
tree36ca70f041dd210a9ef9f6ed8c768af201bc9e3b /libbuild2/install
parente9da884cc5e87b7a677871d9f46c7fe5377b1d26 (diff)
Set explicit 755 install mode for exe{} targets
This helps cases where an executable gets installed somewhere else where the default is not 755 (for example to libexec/, which on Debian has the 644 mode).
Diffstat (limited to 'libbuild2/install')
-rw-r--r--libbuild2/install/init.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/libbuild2/install/init.cxx b/libbuild2/install/init.cxx
index 1a6ee0f..d4b7f86 100644
--- a/libbuild2/install/init.cxx
+++ b/libbuild2/install/init.cxx
@@ -524,7 +524,12 @@ namespace build2
// Configure "installability" for built-in target types.
//
+ // Note that for exe{} we also set explicit 755 mode in case it gets
+ // installed somewhere else where the default is not 755 (for example to
+ // libexec/, which on Debian has the 644 mode).
+ //
install_path<exe> (bs, dir_path ("bin"));
+ install_mode<exe> (bs, "755");
install_path<doc> (bs, dir_path ("doc"));
install_path<legal> (bs, dir_path ("legal"));
install_path<man> (bs, dir_path ("man"));