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