Move chmod of /emul dir for *-force-options package to qemu-accel 94/263494/3 accepted/tizen/6.5/base/20211028.055623 accepted/tizen/base/20210913.002602 submit/tizen_6.5_base/20211028.134101 submit/tizen_base/20210910.123310 tizen_6.5.m2_release
authorAndrey Kazmin <a.kazmin@partner.samsung.com>
Thu, 2 Sep 2021 13:27:47 +0000 (16:27 +0300)
committerDongkyun Son <dongkyun.s@samsung.com>
Fri, 10 Sep 2021 11:59:58 +0000 (11:59 +0000)
Change-Id: I39fc4e9df23da7d47f2da0e434d57e26c9668e15
Signed-off-by: Andrey Kazmin <a.kazmin@partner.samsung.com>
packaging/gcc-contrib.spec

index 269749a..d0c37d0 100644 (file)
@@ -98,8 +98,6 @@ Scripts for ASan instrumentation
 # Change mode to allow all users to run gcc-force/unforce-options
 chmod a+w /usr/bin
 chmod a+w %{libsubdir}
-[ -d /emul/ ] && chmod a+w /emul/usr/bin/ && chmod a+w /emul/home/abuild/rpmbuild/BUILD/gcc-*/obj/gcc/ \
-              && find -L /emul/usr/*/gcc -name 'collect2' | xargs dirname | xargs chmod a+w
 /usr/bin/gcc-force-options %asan_force_options -fno-common
 # Add ASan-related macros
 cat >> /usr/lib/rpm/tizen_macros << EOF
@@ -125,8 +123,6 @@ cat %{_rpmconfigdir}/macros.asan >> %{_rpmconfigdir}/tizen_macros
 # Restore read-only mode
 chmod a-w /usr/bin
 chmod a-w %{libsubdir}
-[ -d /emul/ ] && chmod a-w /emul/usr/bin/ && chmod a-w /emul/home/abuild/rpmbuild/BUILD/gcc-*/obj/gcc/ \
-              && find -L /emul/usr/*/gcc -name 'collect2' | xargs dirname | xargs chmod a-w
 /usr/bin/gcc-unforce-options
 # Restore limit configurations set for ASan
 [ -e /etc/security/limits.conf ] && \
@@ -156,8 +152,6 @@ Scripts for HWASan instrumentation
 # Change mode to allow all users to run gcc-force/unforce-options
 chmod a+w /usr/bin
 chmod a+w %{libsubdir}
-[ -d /emul/ ] && chmod a+w /emul/usr/bin/ && chmod a+w /emul/home/abuild/rpmbuild/BUILD/gcc-*/obj/gcc/ \
-              && find -L /emul/usr/*/gcc -name 'collect2' | xargs dirname | xargs chmod a+w
 /usr/bin/gcc-force-options %hwasan_force_options -fno-common
 # Add ASan-related macros
 cat >> /usr/lib/rpm/tizen_macros << EOF
@@ -180,8 +174,6 @@ EOF
 # Restore read-only mode
 chmod a-w /usr/bin
 chmod a-w %{libsubdir}
-[ -d /emul/ ] && chmod a-w /emul/usr/bin/ && chmod a-w /emul/home/abuild/rpmbuild/BUILD/gcc-*/obj/gcc/ \
-              && find -L /emul/usr/*/gcc -name 'collect2' | xargs dirname | xargs chmod a-w
 /usr/bin/gcc-unforce-options
 # Restore limit configurations set for HWASan
 [ -e /etc/security/limits.conf ] && \
@@ -200,8 +192,6 @@ Scripts for UBSan instrumentation
 # Change mode to allow all users to run gcc-force/unforce-options
 chmod a+w /usr/bin
 chmod a+w %{libsubdir}
-[ -d /emul/ ] && chmod a+w /emul/usr/bin/ && chmod a+w /emul/home/abuild/rpmbuild/BUILD/gcc-*/obj/gcc/ \
-              && find -L /emul/usr/*/gcc -name 'collect2' | xargs dirname | xargs chmod a+w
 /usr/bin/gcc-force-options %ubsan_force_options
 # Add UBSan-related macros
 cat >> /usr/lib/rpm/tizen_macros << EOF
@@ -216,8 +206,6 @@ EOF
 # Restore read-only mode
 chmod a-w /usr/bin
 chmod a-w %{libsubdir}
-[ -d /emul/ ] && chmod a-w /emul/usr/bin/ && chmod a-w /emul/home/abuild/rpmbuild/BUILD/gcc-*/obj/gcc/ \
-              && find -L /emul/usr/*/gcc -name 'collect2' | xargs dirname | xargs chmod a-w
 /usr/bin/gcc-unforce-options
 # Remove additional macros from config
 sed -e '\|^\# /etc/rpm/macros.ubsan$|,\|^\# /etc/rpm/macros.ubsan ends here|d' -i /usr/lib/rpm/tizen_macros
@@ -247,8 +235,6 @@ Scripts for LSan instrumentation
 # Change mode to allow all users to run gcc-force/unforce-options
 chmod a+w /usr/bin
 chmod a+w %{libsubdir}
-[ -d /emul/ ] && chmod a+w /emul/usr/bin/ && chmod a+w /emul/home/abuild/rpmbuild/BUILD/gcc-*/obj/gcc/ \
-              && find -L /emul/usr/*/gcc -name 'collect2' | xargs dirname | xargs chmod a+w
 /usr/bin/gcc-force-options %lsan_force_options
 # Add LSan-related macros
 cat >> /usr/lib/rpm/tizen_macros << EOF
@@ -263,11 +249,7 @@ EOF
 # Restore read-only mode
 chmod a-w /usr/bin
 chmod a-w %{libsubdir}
-[ -d /emul/ ] && chmod a-w /emul/usr/bin/ && chmod a-w /emul/home/abuild/rpmbuild/BUILD/gcc-*/obj/gcc/ \
-              && find -L /emul/usr/*/gcc -name 'collect2' | xargs dirname | xargs chmod a-w
 /usr/bin/gcc-unforce-options
-[ -d /emul/ ] && chmod a-w /emul/usr/bin/
-
 
 %package -n gcov-force-options
 Summary:    Scripts to enable automatic package coverage instrumentation
@@ -281,8 +263,6 @@ Scripts for gcov instrumentation
 # Change mode to allow all users to run gcc-force/unforce-options
 chmod a+w /usr/bin
 chmod a+w %{libsubdir}
-[ -d /emul/ ] && chmod a+w /emul/usr/bin/ && chmod a+w /emul/home/abuild/rpmbuild/BUILD/gcc-*/obj/gcc/ \
-              && find -L /emul/usr/*/gcc -name 'collect2' | xargs dirname | xargs chmod a+w
 /usr/bin/gcc-force-options %gcov_force_options
 # Add gcov-related macros
 cat >> /usr/lib/rpm/tizen_macros << EOF
@@ -297,8 +277,6 @@ EOF
 # Restore read-only mode
 chmod a-w /usr/bin
 chmod a-w %{libsubdir}
-[ -d /emul/ ] && chmod a-w /emul/usr/bin/ && chmod a-w /emul/home/abuild/rpmbuild/BUILD/gcc-*/obj/gcc/ \
-              && find -L /emul/usr/*/gcc -name 'collect2' | xargs dirname | xargs chmod a-w
 /usr/bin/gcc-unforce-options
 
 %package -n gcov-build-env
@@ -326,8 +304,6 @@ Scripts for TSan instrumentation
 # Change mode to allow all users to run gcc-force/unforce-options
 chmod a+w /usr/bin
 chmod a+w %{libsubdir}
-[ -d /emul/ ] && chmod a+w /emul/usr/bin/ && chmod a+w /emul/home/abuild/rpmbuild/BUILD/gcc-*/obj/gcc/ \
-              && find -L /emul/usr/*/gcc -name 'collect2' | xargs dirname | xargs chmod a+w
 /usr/bin/gcc-force-options %tsan_force_options
 # Add TSan-related macros
 cat >> /usr/lib/rpm/tizen_macros << EOF
@@ -342,10 +318,7 @@ EOF
 # Restore read-only mode
 chmod a-w /usr/bin
 chmod a-w %{libsubdir}
-[ -d /emul/ ] && chmod a-w /emul/usr/bin/ && chmod a-w /emul/home/abuild/rpmbuild/BUILD/gcc-*/obj/gcc/ \
-              && find -L /emul/usr/*/gcc -name 'collect2' | xargs dirname | xargs chmod a-w
 /usr/bin/gcc-unforce-options
-[ -d /emul/ ] && chmod a-w /emul/usr/bin/
 
 %package -n tsan-runtime-env
 Summary:    TSan runtime environment