From e05ee01b6da2167aef99ee62e813a172c1d01e18 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 22 Feb 2023 09:13:33 +0200 Subject: 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). --- libbuild2/install/init.cxx | 5 +++++ 1 file changed, 5 insertions(+) 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 (bs, dir_path ("bin")); + install_mode (bs, "755"); install_path (bs, dir_path ("doc")); install_path (bs, dir_path ("legal")); install_path (bs, dir_path ("man")); -- cgit v1.1