Skip to content

#245 fixed different python versions#255

Open
layderv wants to merge 1 commit into
snare:masterfrom
layderv:master
Open

#245 fixed different python versions#255
layderv wants to merge 1 commit into
snare:masterfrom
layderv:master

Conversation

@layderv

@layderv layderv commented Apr 15, 2019

Copy link
Copy Markdown

See #245

@zcutlip

zcutlip commented Jan 28, 2021

Copy link
Copy Markdown
Collaborator

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

@basilgello basilgello left a comment

Copy link
Copy Markdown

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

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

install_packages
install_packages $PYVER

Copy link
Copy Markdown

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

Comment thread install.sh Outdated
fi

install_packages
install_packages $PYVER

Copy link
Copy Markdown

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
Comment thread install.sh
_PYVER=$1
if echo $_PYVER|grep "3\."; then
sudo apt-get -y install libreadline6-dev python3-dev python3-setuptools python3-yaml python3-pip
else

Copy link
Copy Markdown

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.

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

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Same

@basilgello basilgello left a comment

Copy link
Copy Markdown

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

layderv commented Jul 8, 2021

Copy link
Copy Markdown
Author

Fixed

@basilgello

Copy link
Copy Markdown

@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