-
Notifications
You must be signed in to change notification settings - Fork 97
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
[WiP] Draft for Gentoo configuration #611
Open
TheChymera
wants to merge
24
commits into
ReproNim:master
Choose a base branch
from
TheChymera:jen2
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
27ca573
Draft for Gentoo configuration
TheChymera 304d24e
Use HTTPS
TheChymera 32cd210
Adding test template to develop gentoo support
TheChymera 91df306
Added containerfile contents
TheChymera 3428ab9
Corrected command
TheChymera 7f72cf7
Trying to add package manager support
TheChymera 01fd95a
ignore Yarik's venvs/
yarikoptic a5df85f
We are not yet fully ready for gentoo in recipes
yarikoptic 39b79fc
Provide base skeleton for gentoo to pass test_cli tests
yarikoptic 6bca6f5
Add some demo options for instructions -- the problem is that it is f…
yarikoptic 9b0d75f
image versions not handled in this template, reusing parameters for hash
TheChymera c8cb922
Embedding Gentoo image resource identifiers into the logic
TheChymera 456c479
Making gentoo template/invocation work (more TODOs)
yarikoptic 30ab193
Added new hashes
TheChymera e7f1720
Updated hashes and dates after test, provide AFNI with version fix as…
TheChymera 758951b
updated hashes
TheChymera 8b5df1d
Rudimentary fix to blunt stab at a test + added TODOs
yarikoptic 722e555
Removed config tracking in ancillary files
TheChymera 5420c04
Updated hashes
TheChymera 54c98f6
better package for testing
TheChymera 5fd6303
Even smaller package for testing
TheChymera cc0d86e
flake8 fixes
TheChymera 6887052
Merge branch 'master' into jen2
Remi-Gau 6d76eb5
run precommit
Remi-Gau File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -146,3 +146,4 @@ cython_debug/ | |
|
||
# Pycharm | ||
.idea/ | ||
venvs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,10 +11,12 @@ | |
"type": "string", | ||
"enum": [ | ||
"apt", | ||
"portage", | ||
"yum" | ||
], | ||
"examples": [ | ||
"apt", | ||
"portage", | ||
"yum" | ||
] | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,65 @@ | ||||||||||||||||||||
--- | ||||||||||||||||||||
# Instructions to add NeuroDebian repositories. | ||||||||||||||||||||
|
||||||||||||||||||||
name: gentoo | ||||||||||||||||||||
url: https://www.gentoo.org/ | ||||||||||||||||||||
binaries: | ||||||||||||||||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
TODO: defaults somehow -- may be just straight in the code as |
||||||||||||||||||||
# ATM template jsonschema demands having urls and instructions. | ||||||||||||||||||||
# In the future we might use urls to point to git repositories | ||||||||||||||||||||
# which are currently under gentoo-portage/ config files. | ||||||||||||||||||||
urls: | ||||||||||||||||||||
something: not-used | ||||||||||||||||||||
arguments: | ||||||||||||||||||||
optional: | ||||||||||||||||||||
gentoo_hash: 282c4b518562e6c194761d9ce0882f30672219c5 | ||||||||||||||||||||
science_hash: e4579f5851734f245b02cc1e98f3b69d9df67e09 | ||||||||||||||||||||
# Below echo commands will be indented by _indent_run_instruction which | ||||||||||||||||||||
# would cause trailing spaces to be added to the files. But it should be ok | ||||||||||||||||||||
# for us, thus we are not bothering to workaround via inlining. | ||||||||||||||||||||
instructions: | | ||||||||||||||||||||
mkdir -p /etc/portage/; \ | ||||||||||||||||||||
echo -e "\ | ||||||||||||||||||||
\nCOMMON_FLAGS=\"-O2 -pipe -march=native\" \ | ||||||||||||||||||||
\nMAKEOPTS=\"--jobs 8 --load-average 9\" \ | ||||||||||||||||||||
\nCFLAGS=\"\${COMMON_FLAGS}\" \ | ||||||||||||||||||||
\nCXXFLAGS=\"\${COMMON_FLAGS}\" \ | ||||||||||||||||||||
\nFCFLAGS=\"\${COMMON_FLAGS}\" \ | ||||||||||||||||||||
\nFFLAGS=\"\${COMMON_FLAGS}\" \ | ||||||||||||||||||||
\nLC_MESSAGES=C \ | ||||||||||||||||||||
\nUSE=\"\${USE} science\" \ | ||||||||||||||||||||
\nACCEPT_LICENSE=\"*\" \ | ||||||||||||||||||||
" > "/etc/portage/make.conf"; \ | ||||||||||||||||||||
mkdir -p "/etc/portage/package.accept_keywords"; \ | ||||||||||||||||||||
echo -e "*/* ~amd64" > "/etc/portage/package.accept_keywords/gen" ; \ | ||||||||||||||||||||
mkdir -p "/etc/portage/package.mask"; \ | ||||||||||||||||||||
touch "/etc/portage/package.mask/bugs"; \ | ||||||||||||||||||||
mkdir -p "/etc/portage/repos.conf" ; \ | ||||||||||||||||||||
echo -e "[gentoo] \ | ||||||||||||||||||||
\nlocation = /var/db/repos/gentoo \ | ||||||||||||||||||||
\nsync-type = git \ | ||||||||||||||||||||
\nsync-uri = https://anongit.gentoo.org/git/repo/gentoo.git \ | ||||||||||||||||||||
\nsync-git-verify-commit-signature = yes" > "/etc/portage/repos.conf/gentoo"; \ | ||||||||||||||||||||
echo -e "[science] \ | ||||||||||||||||||||
\nlocation = /var/db/repos/science \ | ||||||||||||||||||||
\nsync-type = git \ | ||||||||||||||||||||
\nsync-uri = https://anongit.gentoo.org/git/proj/sci.git \ | ||||||||||||||||||||
\npriority = 7777" > "/etc/portage/repos.conf/science"; \ | ||||||||||||||||||||
emerge -v --noreplace dev-vcs/git \ | ||||||||||||||||||||
&& emerge -v1u portage \ | ||||||||||||||||||||
&& mkdir /outputs \ | ||||||||||||||||||||
&& rm /var/db/repos/gentoo -rf \ | ||||||||||||||||||||
&& git config --global init.defaultBranch master \ | ||||||||||||||||||||
&& \ | ||||||||||||||||||||
set -x && export GIT_TRACE=1 && \ | ||||||||||||||||||||
REPO_URL=$(grep "^sync-uri" /etc/portage/repos.conf/gentoo | sed -e "s/sync-uri *= *//g") && \ | ||||||||||||||||||||
git clone --depth 1 ${REPO_URL} /var/db/repos/gentoo && \ | ||||||||||||||||||||
cd /var/db/repos/gentoo && \ | ||||||||||||||||||||
git fetch --depth 1 origin {{ self.gentoo_hash }} && \ | ||||||||||||||||||||
git reset --hard {{ self.gentoo_hash }} && \ | ||||||||||||||||||||
rm .git -rf && \ | ||||||||||||||||||||
REPO_URL=$(grep "^sync-uri" /etc/portage/repos.conf/science | sed -e "s/sync-uri *= *//g") && \ | ||||||||||||||||||||
git clone --depth 1 ${REPO_URL} /var/db/repos/science && \ | ||||||||||||||||||||
cd /var/db/repos/science && \ | ||||||||||||||||||||
git fetch --depth 1 origin {{ self.science_hash }} && \ | ||||||||||||||||||||
git reset --hard {{ self.science_hash }} && \ | ||||||||||||||||||||
rm .git -rf |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
there is nothing gentoo below yet, misleading commit message etc. Please squash it with whatever actually gentoo specific changes you place into this PR