Skip to content

Commit

Permalink
Don't chmod non-crossbuild go binaries during crossbuild
Browse files Browse the repository at this point in the history
  • Loading branch information
direc85 committed Oct 15, 2024
1 parent 42a9b83 commit 6aaade1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cross-aarch64-gcc.spec
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ AutoReq: true
%endif
%global gcc_target_platform %{_target_platform}

%if !%{crossbuild}
%if %{build_go}
# Avoid stripping these libraries and binaries.
%global __os_install_post \
Expand All @@ -257,6 +258,7 @@ chmod 755 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_versio
chmod 755 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_version}/vet \
%{nil}
%endif
%endif

%description
The gcc package contains the GNU Compiler Collection version 4.9.
Expand Down
2 changes: 2 additions & 0 deletions cross-armv7hl-gcc.spec
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ AutoReq: true
%endif
%global gcc_target_platform %{_target_platform}

%if !%{crossbuild}
%if %{build_go}
# Avoid stripping these libraries and binaries.
%global __os_install_post \
Expand All @@ -257,6 +258,7 @@ chmod 755 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_versio
chmod 755 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_version}/vet \
%{nil}
%endif
%endif

%description
The gcc package contains the GNU Compiler Collection version 4.9.
Expand Down
2 changes: 2 additions & 0 deletions cross-i486-gcc.spec
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ AutoReq: true
%endif
%global gcc_target_platform %{_target_platform}

%if !%{crossbuild}
%if %{build_go}
# Avoid stripping these libraries and binaries.
%global __os_install_post \
Expand All @@ -257,6 +258,7 @@ chmod 755 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_versio
chmod 755 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_version}/vet \
%{nil}
%endif
%endif

%description
The gcc package contains the GNU Compiler Collection version 4.9.
Expand Down
2 changes: 2 additions & 0 deletions cross-x86_64-gcc.spec
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ AutoReq: true
%endif
%global gcc_target_platform %{_target_platform}

%if !%{crossbuild}
%if %{build_go}
# Avoid stripping these libraries and binaries.
%global __os_install_post \
Expand All @@ -257,6 +258,7 @@ chmod 755 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_versio
chmod 755 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_version}/vet \
%{nil}
%endif
%endif

%description
The gcc package contains the GNU Compiler Collection version 4.9.
Expand Down
2 changes: 2 additions & 0 deletions gcc.spec
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,7 @@ AutoReq: true
%endif
%global gcc_target_platform %{_target_platform}

%if !%{crossbuild}
%if %{build_go}
# Avoid stripping these libraries and binaries.
%global __os_install_post \
Expand All @@ -256,6 +257,7 @@ chmod 755 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_versio
chmod 755 %{buildroot}%{_prefix}/libexec/gcc/%{gcc_target_platform}/%{gcc_version}/vet \
%{nil}
%endif
%endif

%description
The gcc package contains the GNU Compiler Collection version 4.9.
Expand Down

0 comments on commit 6aaade1

Please sign in to comment.