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.
The installation path can also be set in the environment as $EPREFIX
There was a problem hiding this comment.
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.
It does not skip the questions, but saves time typing
There was a problem hiding this comment.
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.
|
|
||
| - Run the bootstrap script inside the container: | ||
| ``` | ||
| singularity exec ./centos8.simg ./bootstrap-prefix.sh |
There was a problem hiding this comment.
singularity exec should use consistent image name (prefix.simg or prefix.sif)
There was a problem hiding this comment.
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.
| dnf install -y gcc gcc-c++ diffutils | ||
|
|
||
| %environment | ||
| export LC_ALL=C | ||
| export PATH=/usr/games:$PATH |
There was a problem hiding this comment.
| 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.
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.
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 <51749148+peterstol@users.noreply.github.com>
No description provided.