Skip to content

Conversation

@layderv
Copy link

@layderv layderv commented Apr 15, 2019

See #245

@zcutlip
Copy link
Collaborator

zcutlip commented Jan 28, 2021

We refactored install.sh a while back. Is this still an issue? If so, can you rebase your patch against master?

Copy link

@basilgello basilgello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also need to replace sudo invocations with $SUDO

install.sh Outdated
GDB_PYTHON="${GDB_PYTHON/%$GDB_PYVER/}${GDB_PYVER}"

install_packages
install_packages $PYVER

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will throw a missing python-dev package on Debian bullseye and newer.

Keeping only next line L#143 is enough

install.sh Outdated
fi

install_packages
install_packages $PYVER

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

@layderv layderv force-pushed the master branch 2 times, most recently from 7af2acd to 15046c8 Compare June 25, 2021 20:39
_PYVER=$1
if echo $_PYVER|grep "3\."; then
sudo apt-get -y install libreadline6-dev python3-dev python3-setuptools python3-yaml python3-pip
else

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sudo -> ${SUDO}

Since in containers there is no sudo typically installed.

_PYVER=$1
if echo $_PYVER|grep "3\."; then
sudo $CMD $PARAMS install readline-devel python3-devel python3-setuptools python3-yaml python3-pip
else

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same

Copy link

@basilgello basilgello left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please replace unconditional sudo invocations with ${SUDO}, too. For example, running Voltron in a rootless container is totally fine but there is no sudo nor anybother setuid executable installed.

@layderv
Copy link
Author

layderv commented Jul 8, 2021

Fixed

@basilgello
Copy link

@zcutlip ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants