-
-
Notifications
You must be signed in to change notification settings - Fork 528
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
tox.ini, build/bin/write-dockerfile.sh: Add gentoo linux, add more gentoo packages #29105
Comments
comment:1
Creating a dockerfile for setting up sage prerequisites on a Gentoo "prefix" was previously discussed in #28905. An attempt (incomplete) is at https://github.com/sagemath/sage-prod/files/10659346/Dockerfile-sage_gentoo.gz and would need help from Gentoo experts. |
This comment has been minimized.
This comment has been minimized.
comment:2
|
comment:3
Thanks, yes, turns out this was not specific to the gentoo prefix installer. I had to add some more packages. Let me see how far I get with this. |
Attachment: gentoo-log-2.txt |
comment:4
Attachment: Dockerfile-sage_gentoo.gz OK... this is where I got now. The As you can see in the log, now it's complaining about a module missing in the Python that it just built:
and then dies with:
|
comment:5
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Dependencies: #29273 |
comment:9
This tickets needs help from someone who actually uses Gentoo. I found the instructions for installing stuff inadequate. |
comment:10
I use Gentoo, but neither prefix, not docker. |
comment:11
I need to make time for this. I cannot give you a time frame. |
comment:12
Replying to @dimpase:
After installing a docker client, it only takes
This gives you root prompt. I would need instructions on what to do next to install relevant gentoo packages here. |
comment:13
If I understand well you have a minimal gentoo image running now. What do you want to install? Do you have a list somewhere? |
comment:14
Replying to @kiwifb:
The equivalent of the lists in build/pkgs/debian-bootstrap.txt and build/pkgs/debian.txt (minimal requirements for bootstrapping and building) -- which would be added in #29273 as well since gentoo packages are being added there. |
comment:15
Replying to @mkoeppe:
I can try either this or Gentoo in lxc container, if such a thing exists somewhere. |
comment:16
Docker please because that's what my tox.ini infrastructure uses. |
comment:17
I have created ticket #29283 for the goal of lxc containers for testing, in case someone wants to work on that. |
comment:21
Starting points for people who want to help with this: |
comment:22
When I run |
comment:23
Does your handcrafted Dockerfile work with |
comment:82
I don't want my name to be published |
comment:83
In github, your are "Andrew" from Belgorod, Russia. What's your exact problem with our rule that contributors should give their full real name ? |
Changed author from François Bissey to Andrey Belgorodski |
Changed branch from u/gh-sheerluck/gentoo to |
comment:86
What’s New in
with |
Changed commit from |
comment:87
Great! I am assuming no change to tox.ini is required? |
comment:88
no changes |
comment:89
Last error from https://github.com/mkoeppe/sage/actions, namely this one:
is solved with (checked on |
comment:90
|
comment:91
I've created
But
Sage is not ready for gcc10 yet... but if anyone wants to play with |
comment:92
Thanks. A related latest annoyance is that on macOS Homebrew provides gcc package, which is gcc-10, and this breaks things (even though only gfortran is used, not gcc). |
comment:93
What’s New in
no changes to tox.ini is required |
comment:94
Good news, everyone!
no changes to tox.ini is required, unless we want to be prepared for #29023 when most of installed packages would be used, in that case we can have both "gentoo" and "gentoo-py37" in tox.ini |
comment:95
Great! You may want to test with #27754, which aims for Python 3.8 compatibility |
comment:96
For the record sage-on-gentoo enables building with python 3.8 since 9.2.beta7. Building of the documentation with it may currently be failing though (but I managed a build between beta6 and beta7 somehow). |
comment:97
Sage is ready for gcc-10, so... What’s New in
no changes to tox.ini are required |
comment:98
What’s New in
|
comment:99
Please mask |
comment:100
masked, downgraded, squashed, tested, pushed |
comment:101
Although overlay So as if two images weren't enough, I used some ugly hacks to create third image -- If someone finds it usefull to play with python-3.9, tox.ini may be changed this way:
|
comment:102
I have created #30785 for this |
comment:103
I was under impression that something is not right with my images until I saw #31395 |
comment:104
Replying to @sheerluck:
I'm going to post a branch that removes the memlimit and then turn off my computer for a month while people yell at me. |
comment:105
Replying to @orlitzky:
see, #31395 got in :-) |
comment:106
|
comment:107
At https://github.com/orlitzky/sage/runs/3851208039?check_suite_focus=true#step:7:11493 I see Pytest is not installed, skip checking tests that rely on it. Well, that is not true, |
comment:108
you need pytest in sage's venv. e.g.
will do the trick |
As a followup to #29053 and #29273, we
build/bin/write-dockerfile.sh
to generate a Dockerfile using https://hub.docker.com/r/sheerluck/sage-on-gentoo-stage4build/pkgs/gentoo*.txt
bin/sage-print-system-package-command
to handle gentooTo test:
tox -e docker-gentoo-standard
This is a part of:
Resources:
Depends on #29273
CC: @orlitzky @kiwifb @dimpase @sheerluck
Component: porting
Author: Andrey Belgorodski
Branch:
9959ee9
Reviewer: Matthias Koeppe
Issue created by migration from https://trac.sagemath.org/ticket/29105
The text was updated successfully, but these errors were encountered: