chiark / gitweb /
meson: support both separate and merged sbin-bin directories
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 1 Mar 2018 09:28:29 +0000 (10:28 +0100)
committerSven Eden <yamakuzure@gmx.net>
Wed, 30 May 2018 05:59:10 +0000 (07:59 +0200)
commit06aedd5e7157c2d282a5aa2469f5bfd657a459e3
tree8b81a7761a00bfc2c5dafb00574e77abcd1ce874
parentb3043a2df18f24209a98047edc2d7638a5c89de6
meson: support both separate and merged sbin-bin directories

Follow-up for ba7f4ae6178309dc937e10cf7dce0eca9dafb8de.

By default, we detect if the real root has a separate /usr/sbin directory, but
this can be overrides with -Dsplit-bin=true|false. The check assumes that
/usr/sbin is split if it is not a symlink, so it'll return a false negative
with some more complicated setups. But that's OK, in those cases this should be
configured explicitly.

This will copy the structure of the directories in the root file system to
$DESTDIR. If a directory is a directory in $DESTDIR but a symlink in the root
file system, this script will fail. This means that it's not possible to reuse
a $DESTDIR from between ba7f4ae61 and this patch.
meson.build
meson_options.txt