Re: [PATCH v2] kernel-shark: Do not hardcode /usr prefix for polkit policies

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 11 Mar 2021 15:50:59 +0100
Michal Sojka <michal.sojka@xxxxxxx> wrote:

> When one wants to install kernel-shark to a non-standard location,
> e.g., by configuring it as follows:
> 
>     cmake -D_INSTALL_PREFIX=$HOME ..
> 
> then "make install" fails, with the following error:
> 
>     CMake Error at src/cmake_install.cmake:225 (file):
>       file INSTALL cannot copy file
>       "/home/user/src/trace-cmd/kernel-shark/org.freedesktop.kshark-record.policy"
>       to "/usr/share/polkit-1/actions/org.freedesktop.kshark-record.policy".
> 
> This commit fixes that by ensuring that even the
> org.freedesktop.kshark-record.policy file is installed to the
> user-specified prefix and not to /usr where the user has no write
> permission.

Thanks for the updated change log Michal!

Acked-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx>

-- Steve



[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux