On Thu, Dec 01, 2022 at 08:57:40PM -0800, Ian Rogers wrote: Hi Ian, > Compute the headers to be installed from their source headers and make > each have its own build target to install it. Using dependencies > avoids headers being reinstalled and getting a new timestamp which > then causes files that depend on the header to be rebuilt. [...] This fix causes the below error in linux-next: install: cannot create regular file '/usr/lib64/pkgconfig/libperf.pc': Permission denied make: *** [Makefile:210: install_pkgconfig] Error 1 I am posting a follow-up fix. To me the end result does not look nice, as do_install and do_install_mkdir are inconsistent, but the above error goes away. Thanks!