-
Notifications
You must be signed in to change notification settings - Fork 25
First version of a Prefix installation #4
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
Conversation
|
|
||
| - Answer the simple questions, e.g. about the installation path, and wait | ||
| for a couple of hours for the script to complete. | ||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The installation path can also be set in the environment as $EPREFIX
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haven't tried this myself (does that also skip the other questions about wishing the script luck?), but added a note about it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It does not skip the questions, but saves time typing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And it avoids accidentally installing to a different location... :)
+1 for defining $EPREFIX up front
I also had to do this, because some /etc/profile.d scripts in the system I'm playing on define $LD_LIBRARY_PATH & co:
export SHELL="/bin/bash --norc --noprofileThe Prefix bootstrap script gives up when it sees things like $LD_LIBRARY_PATH and $CPATH defined in a freshly created shell.
peterstol
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me
README.md
Outdated
|
|
||
| - Run the bootstrap script inside the container: | ||
| ``` | ||
| singularity exec ./centos8.simg ./bootstrap-prefix.sh |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
singularity exec should use consistent image name (prefix.simg or prefix.sif)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made the names consistent with the other command. Still using .simg here since I was running it with an older 2.x version on Ubuntu, but could use .sif (Singularity 3.x) as well.
singularity-prefix.def
Outdated
| dnf install -y gcc gcc-c++ diffutils | ||
|
|
||
| %environment | ||
| export LC_ALL=C | ||
| export PATH=/usr/games:$PATH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| dnf install -y gcc gcc-c++ diffutils | |
| %environment | |
| export LC_ALL=C | |
| export PATH=/usr/games:$PATH | |
| dnf install -y gcc gcc-c++ diffutils wget | |
| # Add Gentoo Prefix Bootstrap | |
| wget https://gitweb.gentoo.org/repo/proj/prefix.git/plain/scripts/bootstrap-prefix.sh -P /usr/local/bin | |
| chmod +x /usr/local/bin/bootstrap-prefix.sh | |
| %environment | |
| export LC_ALL=C | |
| export PATH=/usr/games:/usr/local/bin:$PATH |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For now this will probably work, but I think it's better to include our own version/copy of the bootstrap script. That's a version that we tested (and possibly we want to modify it a bit). Always taking the latest version from the Gentoo git might give unexpected errors/results.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Jup, agreed. And we've seen that the bootstrap script isn't terribly stable...
… downloading `portage-latest.tar.bz2`)
use https for distfiles.prefix.bitzolder.nl
… into install_prefix
|
Merged my instructions into the new README, and improved some things (e.g. the def file). |
…t $SHELL may contain something like '/bin/bash --noprofile --norc'
fix determining shell in bootstrap_startscript
Make bootstrap script executable Co-authored-by: Peter Stol <[email protected]>
peterstol
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
First version tested
No description provided.