Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix python in urlgrabber-ext-down #29

Merged
merged 1 commit into from
Dec 10, 2022

Conversation

thegecko
Copy link
Contributor

Replace python version in /usr/libexec/urlgrabber-ext-down to fix yum on centos7-devtoolset7

Fixes #28

@@ -7,6 +7,7 @@ RUN groupadd -g 1000 node && useradd -g 1000 -u 1000 -m node && \
curl -fsSL https://rpm.nodesource.com/setup_lts.x | bash - && \
yum install -y make nodejs python3 && \
sed -i 's/#!\/usr\/bin\/python/#!\/usr\/bin\/python2/' /usr/bin/yum && \
sed -i 's/#! \/usr\/bin\/python/#! \/usr\/bin\/python2/' /usr/libexec/urlgrabber-ext-down && \
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Note this script has a space after the #!

Copy link
Member

@vweevers vweevers left a comment

Choose a reason for hiding this comment

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

LGTM

@vweevers vweevers merged commit 61db648 into prebuild:master Dec 10, 2022
@vweevers
Copy link
Member

@thegecko Tests failed on master, could you have a look? https://github.com/prebuild/docker-images/actions/runs/3665704437/jobs/6196951730

@thegecko
Copy link
Contributor Author

thegecko commented Dec 10, 2022

Hmm, took a quick look.

It seems to fail before my change when installing Node. This could be a new failure due to dependency changes in node 18 (and it being the new LTS).

Did node 18 build in this container before?

@thegecko thegecko deleted the fix-centos-yum branch December 10, 2022 20:22
@vweevers
Copy link
Member

This could be a new failure due to dependency changes in node 18

Ah right. Node 18 is incompatible with CentOS 7, so until we upgrade (prebuild/prebuildify-cross#13) I will pin node to 16.

vweevers added a commit that referenced this pull request Dec 10, 2022
@vweevers
Copy link
Member

2.1.1

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.

Python 3.x upgrade has broken yum on centos7-devtoolset7
2 participants