Andrew Geissler | 517393d | 2023-01-13 08:55:19 -0600 | [diff] [blame^] | 1 | From 6650d0e79eea330b53635574885208a138fef97e Mon Sep 17 00:00:00 2001 |
| 2 | From: Khem Raj <raj.khem@gmail.com> |
| 3 | Date: Wed, 21 Dec 2022 22:50:56 -0800 |
| 4 | Subject: [PATCH] makefile: Do not preserve ownership in cp command |
| 5 | |
| 6 | Fixes |
| 7 | ERROR: libtracefs-1.6.3-r0 do_package_qa: QA Issue: libtracefs: /usr/lib/libtracefs.so is owned by uid 1000, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated] |
| 8 | |
| 9 | Upstream-Status: Pending |
| 10 | |
| 11 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
| 12 | --- |
| 13 | Makefile | 2 +- |
| 14 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 15 | |
| 16 | diff --git a/Makefile b/Makefile |
| 17 | index 27d425c..3aea142 100644 |
| 18 | --- a/Makefile |
| 19 | +++ b/Makefile |
| 20 | @@ -273,7 +273,7 @@ endif # DESTDIR = "" |
| 21 | |
| 22 | install_libs: libs install_pkgconfig |
| 23 | $(Q)$(call do_install,$(LIBTRACEFS_SHARED),$(libdir_SQ)); \ |
| 24 | - cp -fpR $(LIB_INSTALL) $(DESTDIR)$(libdir_SQ) |
| 25 | + cp --no-preserve=ownership --recursive $(LIB_INSTALL) $(DESTDIR)$(libdir_SQ) |
| 26 | $(Q)$(call do_install,$(src)/include/tracefs.h,$(includedir_SQ),644) |
| 27 | $(Q)$(call install_ld_config) |
| 28 | |
| 29 | -- |
| 30 | 2.39.0 |
| 31 | |