[PATCH 1/4] tools: add fakeroot
Felix Fietkau
nbd at nbd.name
Sat Aug 8 02:18:02 EDT 2020
On 2020-08-07 23:12, Paul Spooren wrote:
> From: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
>
> SELinux support requires setting the appropriate SELinux security context
> to files and directories, which needs to happen at build time in order
> to support read-only root filesystem scenarios. In order to create these
> security contexts, we will have to run some SELinux-specific tools on
> the host machine, but that requires root access. This adds support for
> fakeroot, which the build process will use to run the SELinux security
> context creation and the image creation.
>
> Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
>
> Apply to current master, and adjust commit message
>
> Thomas' original work is available at
> http://lists.infradead.org/pipermail/openwrt-devel/2019-November/025976.html.
>
> Signed-off-by: W. Michael Petullo <mike at flyn.org>
> [add rules.mk FAKEROOT variable]
> Signed-off-by: Paul Spooren <mail at aparcar.org>
> ---
> --- /dev/null
> +++ b/tools/fakeroot/Makefile
> @@ -0,0 +1,20 @@
> +#
> +# This is free software, licensed under the GNU General Public License v2.
> +# See /LICENSE for more information.
> +#
> +include $(TOPDIR)/rules.mk
> +
> +PKG_NAME:=fakeroot
> +PKG_VERSION:=1.20.2
This version is rather ancient and also breaks on macOS.
I've updated it, fixed macOS support and pushed the result to my staging
tree at https://git.openwrt.org/?p=openwrt/staging/nbd.git;a=summary
Feel free to pick my version from there if you respin or merge the
series. When you do, please test it on a Linux machine again to make
sure I didn't break anything with my fixes :)
- Felix
More information about the openwrt-devel
mailing list