mirror of
https://github.com/bensuperpc/dockcross.git
synced 2025-06-10 21:19:26 +02:00
manylinux.crosstool: Fix use of sudo removing sudo provided by devtoolset
This commit removes sudo provided by devtoolset since it doesn't work with
our sudo wrapper calling gosu.
It fixes error like the following:
/opt/rh/devtoolset-9/root/usr/bin/sudo: line 41: /usr/bin/sudo: No such file or directory
Adapted from e513a26
(manylinux: Remove rh devtoolset sudo)
Co-authored-by: odidev <odidev@puresoftware.com>
This commit is contained in:
@ -57,7 +57,10 @@ RUN \
|
||||
/dockcross/install-crosstool-ng-toolchain.sh \
|
||||
-p "${XCC_PREFIX}" \
|
||||
-c /dockcross/crosstool-ng.config && \
|
||||
rm -rf /dockcross/crosstool /dockcross/install-crosstool-ng-toolchain.sh
|
||||
rm -rf /dockcross/crosstool /dockcross/install-crosstool-ng-toolchain.sh && \
|
||||
# Remove sudo provided by devtoolset since it doesn't work with
|
||||
# our sudo wrapper calling gosu.
|
||||
rm -f /opt/rh/devtoolset-9/root/usr/bin/sudo
|
||||
|
||||
# Restore our default workdir (from "dockcross/base").
|
||||
WORKDIR /work
|
||||
|
Reference in New Issue
Block a user