Fix quoting and other issues in gcc-toolset-env script

Resolves: RHEL-94760
This commit is contained in:
Siddhesh Poyarekar 2025-06-04 15:12:18 -04:00 committed by Siddhesh Poyarekar
parent 1a67fd6f9b
commit 574ad5d274
2 changed files with 9 additions and 7 deletions

View File

@ -33,7 +33,7 @@ BuildRequires: scl-utils-build
Summary: Package that installs %scl
Name: %scl_name
Version: %{gts_ver}.0
Release: 4%{?dist}
Release: 5%{?dist}
License: GPLv2+
Group: Applications/File
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@ -259,6 +259,9 @@ fi
%endif
%changelog
* Wed Jun 4 2025 Siddhesh Poyarekar <siddhesh@redhat.com> - 15.0-5
- Fix quoting and other issues in gcc-toolset-env script (RHEL-94760)
* Thu May 15 2025 Siddhesh Poyarekar <siddhesh@redhat.com> - 15.0-4
- New script to replace scl-enable (RHEL-88743).

View File

@ -1,11 +1,10 @@
#!/usr/bin/sh
# Environment wrapper for GCC Toolset %{gts_ver}
source %{_root_prefix}/lib/gcc-toolset/%{gts_ver}-env.source
. %{_root_prefix}/lib/gcc-toolset/%{gts_ver}-env.source
if [ -z $1 ]; then
cmd="/bin/sh"
if [ -z "$1" ]; then
exec /usr/bin/sh
else
cmd=$*
exec "$@"
fi
exec $cmd