# 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
# 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 ] && \
# 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
# 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 ] && \
# 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
# 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
# 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
# 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
# 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
# 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
# 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
# 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