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
Check SPKGs more vigorously for common problems #9622
Comments
comment:1
Possibilities, some of which could simply give warnings or reminders:
I'm sure there are others! |
comment:2
Yep, but two comments:
I was thinking of a good spkg template ( |
comment:3
I've created a (vaguely) related ticket: Update and extend "SPKG Tracking" Wiki page, #9626. ( Comments there welcome. |
comment:4
We could also formalize/code some aspects of Some upstream managers also tend to copy files without preserving mtime, so we could more or less automatically check for files like The application of patches to the upstream source tree (i.e. currently copying of patched files) could also be "normalized", allowing to perform some spkg sanity checks automatically, too, and to simplify |
comment:5
Replying to @nexttime:
Good question. I usually use
Just a quick thought: We could also run the spkg checks, or a subset of them, during installation. |
comment:6
Replying to @qed777:
Good idea
Yes.
Yes
William will not have that. He is very against the use of set -e.
What's important in one package is not in another. That might be difficult to do.
If the package is called foobar-x.y.z, then SPKG.txt should have the string foobar.x.y.z somewhere in it. Many times commits get made, with no entry in SPKG.txt Dave |
comment:7
One other thing, make sure all the required sections from SPKG.txt exist. i.e. none are missing. Even if there are no special build instructions, the section should exist and simply say "none". One could also check that entries in SPKG.txt have something in each section. But this could get a lot of work. |
Reviewer: Jeroen Demeyer |
comment:8
Close because we no longer use spkgs. |
When we build new or updated Sage packages (spkgs),
SAGE_LOCAL/bin/sage-pkg
runs a few checks for common problems. For example,$ sage -pkg foo/ Creating Sage package foo/ Warning: no version number detected Created package foo.spkg. NAME: foo VERSION: SIZE: 17.8M HG REPO: Good SPKG.txt: Good Please test this package using [...]
But we could add several new, more detailed tests for
spkg-install
, etc. Or put them in asage-spkg-{check,checker,lint}
script.Component: packages: standard
Reviewer: Jeroen Demeyer
Issue created by migration from https://trac.sagemath.org/ticket/9622
The text was updated successfully, but these errors were encountered: