From 53ed17c75265ab1c2ac6638a6dd57d8e93d788f2 Mon Sep 17 00:00:00 2001 From: Pierre Labastie Date: Thu, 4 Jan 2024 19:22:44 +0100 Subject: [PATCH] export the udev_helpers variable Since it is needed for both building and installing, exporting it allows to have it defined even if building as a regular user (so that sudo is run for installing) or using a package manager (which usually runs in a new shell and forgets unexported variables) --- chapter08/udev.xml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chapter08/udev.xml b/chapter08/udev.xml index 967b3dd84..b4ecbe656 100644 --- a/chapter08/udev.xml +++ b/chapter08/udev.xml @@ -126,9 +126,10 @@ meson setup \ Get the list of the shipped udev helpers and save it into an - environment variable: + environment variable (exporting it is not strictly necessary, but it makes + building as a regular user or using a package manager easier): - udev_helpers=$(grep "'name' :" ../src/udev/meson.build | \ + export udev_helpers=$(grep "'name' :" ../src/udev/meson.build | \ awk '{print $3}' | tr -d ",'" | grep -v 'udevadm') Only build the components needed for udev: