forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-02-17 557c24d082b6ecb9bfe5407b77ae43fa7650a5dc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From 7a8c458b7acf4732af74317f8a535077eb451b1e Mon Sep 17 00:00:00 2001
From: Ming Liu <ming.liu@windriver.com>
Date: Thu, 17 Jul 2014 05:37:08 -0400
Subject: [PATCH] scl: fix wrong ownership during installation
 
The ownership of build user is preserved for some target files, fixed it by
adding --no-same-owner option to tar when extracting files.
 
Signed-off-by: Ming Liu <ming.liu@windriver.com>
 
Upstream-Status: Backport [9045908]
 
Signed-off-by: Yi Fan Yu <yifan.yu@windriver.com>
---
 scl/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 
diff --git a/scl/Makefile.am b/scl/Makefile.am
index 940a467..3c19e50 100644
--- a/scl/Makefile.am
+++ b/scl/Makefile.am
@@ -51,7 +51,7 @@ scl-install-data-local:
         fi; \
     done
     $(mkinstalldirs) $(DESTDIR)/$(scldir)
-    (cd $(srcdir)/scl; tar cf - $(SCL_SUBDIRS)) | (cd $(DESTDIR)/$(scldir) && tar xf -)
+    (cd $(srcdir)/scl; tar cf - $(SCL_SUBDIRS)) | (cd $(DESTDIR)/$(scldir) && tar xf - --no-same-owner)
     chmod -R u+rwX $(DESTDIR)/$(scldir)
 
 scl-uninstall-local: