%post -n ubsan-force-options
# Change mode to allow all users to run gcc-force/unforce-options
chmod a+w /usr/bin
+[ -d /emul/ ] && chmod a+w /emul/usr/bin/
/usr/bin/gcc-force-options -fsanitize=undefined,bounds-strict,float-divide-by-zero,float-cast-overflow
%preun -n ubsan-force-options
# Restore read-only mode
chmod a-w /usr/bin
+[ -d /emul/ ] && chmod a-w /emul/usr/bin/
/usr/bin/gcc-unforce-options
%package -n lsan-force-options
%post -n lsan-force-options
# Change mode to allow all users to run gcc-force/unforce-options
chmod a+w /usr/bin
+[ -d /emul/ ] && chmod a+w /emul/usr/bin/
/usr/bin/gcc-force-options -fsanitize=leak
%preun -n lsan-force-options
# Restore read-only mode
chmod a-w /usr/bin
+[ -d /emul/ ] && chmod a-w /emul/usr/bin/
/usr/bin/gcc-unforce-options
%package -n asan-build-env
%post -n ubsan-force-options
# Change mode to allow all users to run gcc-force/unforce-options
chmod a+w /usr/bin
+[ -d /emul/ ] && chmod a+w /emul/usr/bin/
/usr/bin/gcc-force-options -fsanitize=undefined,bounds-strict,float-divide-by-zero,float-cast-overflow
%preun -n ubsan-force-options
# Restore read-only mode
chmod a-w /usr/bin
+[ -d /emul/ ] && chmod a-w /emul/usr/bin/
/usr/bin/gcc-unforce-options
%package -n lsan-force-options
%post -n lsan-force-options
# Change mode to allow all users to run gcc-force/unforce-options
chmod a+w /usr/bin
+[ -d /emul/ ] && chmod a+w /emul/usr/bin/
/usr/bin/gcc-force-options -fsanitize=leak
%preun -n lsan-force-options
# Restore read-only mode
chmod a-w /usr/bin
+[ -d /emul/ ] && chmod a-w /emul/usr/bin/
/usr/bin/gcc-unforce-options
%package -n asan-build-env
%post -n ubsan-force-options
# Change mode to allow all users to run gcc-force/unforce-options
chmod a+w /usr/bin
+[ -d /emul/ ] && chmod a+w /emul/usr/bin/
/usr/bin/gcc-force-options -fsanitize=undefined,bounds-strict,float-divide-by-zero,float-cast-overflow
%preun -n ubsan-force-options
# Restore read-only mode
chmod a-w /usr/bin
+[ -d /emul/ ] && chmod a-w /emul/usr/bin/
/usr/bin/gcc-unforce-options
%package -n lsan-force-options
%post -n lsan-force-options
# Change mode to allow all users to run gcc-force/unforce-options
chmod a+w /usr/bin
+[ -d /emul/ ] && chmod a+w /emul/usr/bin/
/usr/bin/gcc-force-options -fsanitize=leak
%preun -n lsan-force-options
# Restore read-only mode
chmod a-w /usr/bin
+[ -d /emul/ ] && chmod a-w /emul/usr/bin/
/usr/bin/gcc-unforce-options
%package -n asan-build-env