Fix quoting and other issues in gcc-toolset-env script
Resolves: RHEL-94760
This commit is contained in:
parent
1a67fd6f9b
commit
574ad5d274
@ -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).
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user