Opened 2 years ago
Last modified 2 years ago
#29053 closed enhancement
Add debian/fedora/arch package information to build/pkgs, generate Dockerfiles and installation help — at Version 28
Reported by: | mkoeppe | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | sage-9.1 |
Component: | build | Keywords: | |
Cc: | dimpase, embray, arojas, isuruf, gh-timokau | Merged in: | |
Authors: | Matthias Koeppe | Reviewers: | |
Report Upstream: | N/A | Work issues: | |
Branch: | u/mkoeppe/installation_manual__generate__apt_get_install__and__yum_install__lines_from_build_pkgs_at___bootstrap_time (Commits, GitHub, GitLab) | Commit: | 3c382c91651a18d05cc24cc00e6080ccf507306e |
Dependencies: | Stopgaps: |
Description (last modified by )
https://doc.sagemath.org/html/en/installation/source.html#linux-recommended-installation
gives apt-get install
and yum install
command lines to install system packages that will be recognized by build/pkgs/SPKG/spkg-configure.m4
.
Several packages are missing, see comments in https://trac.sagemath.org/attachment/ticket/27824/Dockerfile-ubuntu-minimal
This ticket puts this information on a per-package basis into build/pkgs/SPKG/debian.txt
, .../fedora.txt
, .../arch.txt
for the following purposes:
sage -info SPKG
prints out this information.- Provide a
tox.ini
that generates and runsDockerfile
s that test the installation on various systems. Example (running 3 builds in parallel):$ tox -p auto -e archlinux-latest,ubuntu-focal-minimal,debian-buster-maximal ⠸
Incidental change on this ticket:
- Mark
gfortran
as atype=standard
package. It is a prereq of standard packagenumpy
. Its status as atype=optional
package predates the clarifications brought by the development of thespkg-configure.m4
mechanism (#27330).
Possible follow-up and related tickets:
- Also the
apt-cyg
command lines at https://trac.sagemath.org/wiki/Cygwin64Port could be generated in the same way. - Aggregate and format it (during
./bootstrap
) to produce the command lines shown in the manual. This ticket already prepares it by moving these command lines into separate.txt
files. - #29041: at
./bootstrap
time, generatesrc/requirements.txt
,src/constraints.txt
,src/setup.cfg
[install_requires]
frombuild/pkgs
- #28745: Add
SAGE_ROOT/environment.yml
forconda env create -f
.
Resources:
Change History (28)
comment:1 Changed 2 years ago by
- Branch set to u/mkoeppe/installation_manual__generate__apt_get_install__and__yum_install__lines_from_build_pkgs_at___bootstrap_time
comment:2 Changed 2 years ago by
- Commit set to 3a5cfb7703396f606cea2403070db012e0c8e294
comment:3 Changed 2 years ago by
- Commit changed from 3a5cfb7703396f606cea2403070db012e0c8e294 to 79d912e78343da940734450643695d6b860d8683
Branch pushed to git repo; I updated commit sha1. New commits:
79d912e | build/pkgs/*/fedora.txt: New, from installation manual 9.0
|
comment:4 Changed 2 years ago by
- Commit changed from 79d912e78343da940734450643695d6b860d8683 to 8a739b101261939d7b2d5eae5086aa465b5b1c53
Branch pushed to git repo; I updated commit sha1. New commits:
8a739b1 | sage -info: Print info on equivalent system packages
|
comment:5 Changed 2 years ago by
- Commit changed from 8a739b101261939d7b2d5eae5086aa465b5b1c53 to 221c3449d65d48bec25c2d10f96c9654d3289db0
comment:6 Changed 2 years ago by
- Description modified (diff)
comment:7 follow-up: ↓ 8 Changed 2 years ago by
how do you generate these per package?
by the way, Arch has namewise a naming scheme close to Gentoo and Homebrew.
comment:8 in reply to: ↑ 7 Changed 2 years ago by
Replying to dimpase:
how do you generate these per package?
I created these files by manual copy-paste from the installation manual.
comment:9 Changed 2 years ago by
- Commit changed from 221c3449d65d48bec25c2d10f96c9654d3289db0 to ff4a5516324039e37a585763def9ebc3d68e503e
Branch pushed to git repo; I updated commit sha1. New commits:
46957b4 | tox.ini: New - test spkg-configure on ubuntu docker images
|
ce99fad | Merge tag '9.1.beta1' into t/29053/installation_manual__generate__apt_get_install__and__yum_install__lines_from_build_pkgs_at___bootstrap_time
|
0dd2c03 | build/bin/sage-spkg: Reformat the install command to 1 line
|
b5abc8b | build/bin/sage-spkg: fixup
|
97b09de | Make gfortran a standard package - it is a prereq of standard package numpy
|
ff4a551 | Fix typo
|
comment:10 Changed 2 years ago by
- Component changed from documentation to build
- Description modified (diff)
- Summary changed from Installation manual: Generate 'apt-get install' and 'yum install' lines from build/pkgs at ./bootstrap time to Add debian/fedora package information to build/pkgs, generate Dockerfiles and installation help
comment:11 Changed 2 years ago by
- Description modified (diff)
comment:12 Changed 2 years ago by
- Cc embray added
- Description modified (diff)
comment:13 Changed 2 years ago by
- Commit changed from ff4a5516324039e37a585763def9ebc3d68e503e to 0c2148ee60f045564f3d90739ae674e89a7c3d85
comment:14 Changed 2 years ago by
- Commit changed from 0c2148ee60f045564f3d90739ae674e89a7c3d85 to e38dd8ea72ec87473bb51ec818012725bf3d6110
Branch pushed to git repo; I updated commit sha1. New commits:
e38dd8e | src/doc/en/installation/source.rst: Use literalinclude
|
comment:15 Changed 2 years ago by
- Status changed from new to needs_review
comment:16 Changed 2 years ago by
comment:17 Changed 2 years ago by
- Description modified (diff)
- Summary changed from Add debian/fedora package information to build/pkgs, generate Dockerfiles and installation help to Add debian/fedora/arch package information to build/pkgs, generate Dockerfiles and installation help
comment:18 Changed 2 years ago by
- Commit changed from e38dd8ea72ec87473bb51ec818012725bf3d6110 to 53273a295852da1203cb2c9999c8481d3740c209
comment:19 Changed 2 years ago by
- Commit changed from 53273a295852da1203cb2c9999c8481d3740c209 to 15fa95deb818f6bb4a735433eb0e759d40ffdbaf
Branch pushed to git repo; I updated commit sha1. New commits:
15fa95d | build/bin/sage-spkg: Add arch to 'sage -info SPKG'
|
comment:20 Changed 2 years ago by
- Commit changed from 15fa95deb818f6bb4a735433eb0e759d40ffdbaf to 7a2d4114cf22bfc433a75fb002f1a87a1df32109
Branch pushed to git repo; I updated commit sha1. New commits:
7a2d411 | Add more arch, fedora packages; by default, do not configure with force
|
comment:21 Changed 2 years ago by
- Commit changed from 7a2d4114cf22bfc433a75fb002f1a87a1df32109 to 3c382c91651a18d05cc24cc00e6080ccf507306e
Branch pushed to git repo; I updated commit sha1. New commits:
3c382c9 | fixup
|
comment:22 Changed 2 years ago by
- Cc arojas added
gf2x 1.3.0 is also on Arch, so you can add it (package name gf2x
). It'll work after #29081 is merged.
comment:23 follow-up: ↓ 24 Changed 2 years ago by
You've changed build/pkgs/gfortran/type
to standard
- is this intentional?
comment:24 in reply to: ↑ 23 ; follow-up: ↓ 25 Changed 2 years ago by
Replying to dimpase:
You've changed
build/pkgs/gfortran/type
tostandard
- is this intentional?
Yes - it's an intended correction.
comment:25 in reply to: ↑ 24 ; follow-up: ↓ 26 Changed 2 years ago by
Replying to mkoeppe:
Replying to dimpase:
You've changed
build/pkgs/gfortran/type
tostandard
- is this intentional?Yes - it's an intended correction.
can this be documented - ideally both here and in the commit message?
I guess it was optional
just as it predated the spkg-configure.m4
machinery, and it was not fixed then, right?
comment:26 in reply to: ↑ 25 Changed 2 years ago by
Replying to dimpase:
Replying to mkoeppe:
Replying to dimpase:
You've changed
build/pkgs/gfortran/type
tostandard
- is this intentional?Yes - it's an intended correction.
can this be documented - ideally both here and in the commit message?
The commit message already says:
97b09de Make gfortran a standard package - it is a prereq of standard package numpy
I guess it was
optional
just as it predated thespkg-configure.m4
machinery, and it was not fixed then, right?
Yes, I agree with this theory.
comment:27 Changed 2 years ago by
- Description modified (diff)
I've added a comment on the ticket summary.
comment:28 Changed 2 years ago by
- Cc isuruf added
- Description modified (diff)
Branch pushed to git repo; I updated commit sha1. New commits:
build/pkgs/*/debian.txt: Add optional packages