[PATCH 1/4] tools: add fakeroot
mail at aparcar.org
Sun Aug 9 19:08:52 EDT 2020
On 07.08.20 20:18, Felix Fietkau wrote:
> 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
>> 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
> 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
Your latest version compiles fine on Linux and MacOS. The initial patch
here is thereby obsolete.
More information about the openwrt-devel