[cross-gcc] Make sure the sys-root perms aren't picked up from the build environment

David Howells dhowells at fedoraproject.org
Wed Jan 14 14:54:51 UTC 2015


commit 357204a27c29b6cb6f1b1a8649261fd4ce3c83e1
Author: David Howells <dhowells at redhat.com>
Date:   Wed Jan 14 11:44:03 2015 +0000

    Make sure the sys-root perms aren't picked up from the build environment

 cross-gcc.spec |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/cross-gcc.spec b/cross-gcc.spec
index ad231c5..00d8d66 100644
--- a/cross-gcc.spec
+++ b/cross-gcc.spec
@@ -753,7 +753,6 @@ function install_lang () {
     esac
 
     (
-	echo '%%defattr(-,root,root,-)'
 	echo '%{_bindir}/'$arch'*-cpp'
 	echo '%{_bindir}/'$arch'*-gcc'
 	echo '%{_bindir}/'$arch'*-gcov'
@@ -768,13 +767,12 @@ function install_lang () {
 		echo '%{_libexecdir}/gcc/'$target_cpu'*/*/cc1'
 		echo '%{_libexecdir}/gcc/'$target_cpu'*/*/collect2'
 		echo '%{_libexecdir}/gcc/'$target_cpu'*/*/[abd-z]*'
-		echo %{_prefix}/$arch/sys-root
+		echo '%%attr(0755,root,root)' %{_prefix}/$arch/sys-root
 	esac
 
     ) >files.$arch
 
     (
-	echo '%%defattr(-,root,root,-)'
 	echo '%{_bindir}/'$arch'*-c++'
 	echo '%{_bindir}/'$arch'*-g++'
 	echo '%{_mandir}/man1/'$arch'*-g++*'


More information about the scm-commits mailing list