diff options
author | Pierre Labastie <pierre.labastie@neuf.fr> | 2024-01-04 19:22:44 +0100 |
---|---|---|
committer | Pierre Labastie <pierre.labastie@neuf.fr> | 2024-01-04 19:22:44 +0100 |
commit | 53ed17c75265ab1c2ac6638a6dd57d8e93d788f2 (patch) | |
tree | f2d2d5c359fd637fb80236981e3d45fd08e9263c | |
parent | acde0a383a3346a7c5a365b1fd59189509535887 (diff) |
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)
-rw-r--r-- | chapter08/udev.xml | 5 |
1 files 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 \ </variablelist> <para>Get the list of the shipped udev helpers and save it into an - environment variable:</para> + environment variable (exporting it is not strictly necessary, but it makes + building as a regular user or using a package manager easier):</para> - <screen><userinput remap="make">udev_helpers=$(grep "'name' :" ../src/udev/meson.build | \ + <screen><userinput remap="make">export udev_helpers=$(grep "'name' :" ../src/udev/meson.build | \ awk '{print $3}' | tr -d ",'" | grep -v 'udevadm')</userinput></screen> <para>Only build the components needed for udev:</para> |