Skip to content

Commit cd27965

Browse files
author
Release Manager
committed
gh-36774: `build/pkgs/nauty`: Update to 2.8.8; use VERSION in all `upstream_url`s. <!-- ^^^^^ Please provide a concise, informative and self-explanatory title. Don't put issue numbers in there, do this in the PR body below. For example, instead of "Fixes #1234" use "Introduce new method to calculate 1+1" --> <!-- Describe your changes here in detail --> https://pallini.di.uniroma1.it/changes24-28.txt Also, motivated by a mistake I made while preparing this PR (#36774 (comment)), and previously in #35380 (see #36781), and countless other times, I am changing all `upstream_url`s to use `VERSION` instead of the hardcoded version number. This makes it less error-prone to use `sage -package update SPKG NEW_VERSION` and `sage -package update-latest`. These commands now also display the URL from which they are downloading the tarball, and they warn if the `upstream_url` field does not contain the `VERSION` variable. (Exceptions: `ipykernel`, which is fixed in #36129, and `libbraiding`, which is fixed in #36781) Because some of the `upstream_url` need the version in a different format, a mechanism to refer to the components of a version is added: The strings `VERSION_MAJOR`, `VERSION_MINOR`, `VERSION_MICRO` can be used. For added readability, instead of the naked strings, also the notation `${VERSION_MAJOR}` etc. can be used. For example, `nauty`, which previously had to use a hardcoded version number, now uses the upstream URL pattern `upstream_url=https://pallini.di.uniroma1.it/nauty${VERSION_MAJOR}_${VER SION_MINOR}_${VERSION_MICRO}.tar.gz` The syntax `${VERSION_MAJOR}`, borrowed from Bourne shell, matches what sage-bootstrap already uses in https://github.com/sagemath/sage/blob/develop/.upstream.d/10-SAGE_SERVER <!-- Why is this change required? What problem does it solve? --> <!-- If this PR resolves an open issue, please link to it here. For example "Fixes #12345". --> <!-- If your change requires a documentation PR, please link it appropriately. --> ### 📝 Checklist <!-- Put an `x` in all the boxes that apply. --> <!-- If your change requires a documentation PR, please link it appropriately --> <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> <!-- Feel free to remove irrelevant items. --> - [x] The title is concise, informative, and self-explanatory. - [x] The description explains in detail what this PR is about. - [ ] I have linked a relevant issue or discussion. - [ ] I have created tests covering the changes. - [ ] I have updated the documentation accordingly. ### ⌛ Dependencies <!-- List all open PRs that this PR logically depends on - #12345: short description why this is a dependency - #34567: ... --> - Depends on #36771 (merged here) <!-- If you're unsure about any of these, don't hesitate to ask. We're here to help! --> URL: #36774 Reported by: Matthias Köppe Reviewer(s): David Coudert
2 parents 1838bdf + b830776 commit cd27965

File tree

19 files changed

+113
-174
lines changed

19 files changed

+113
-174
lines changed

build/bin/sage-spkg

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ fi
341341
PKG_BASE_VER=`echo $PKG_VER | sed 's/\.p[0-9][0-9]*$//'`
342342
if [ -f "$PKG_SCRIPTS/checksums.ini" ]; then
343343
# Normal/wheel package
344-
PKG_NAME_UPSTREAM=`lookup_param tarball "$PKG_SCRIPTS/checksums.ini" | sed "s/VERSION/$PKG_BASE_VER/"`
344+
PKG_NAME_UPSTREAM=`lookup_param tarball "$PKG_SCRIPTS/checksums.ini"`
345345
fi
346346

347347
# Set the $SAGE_DESTDIR variable to be passed to the spkg-install
@@ -396,11 +396,11 @@ ensure_pkg_src() { ###############################################
396396
if [ ! -f "$PKG_SRC" ]; then
397397
if [ -n "$PKG_NAME_UPSTREAM" ]; then
398398
# Normal or wheel package
399-
if ! sage-download-file $SAGE_DOWNLOAD_FILE_OPTIONS "$PKG_NAME_UPSTREAM"; then
400-
error_msg "Error downloading $PKG_NAME_UPSTREAM"
399+
PKG_SRC=$(sage-package download $SAGE_DOWNLOAD_FILE_OPTIONS $PKG_BASE)
400+
if [ $? != 0 ]; then
401+
error_msg "Error downloading tarball of $PKG_BASE"
401402
exit 1
402403
fi
403-
PKG_SRC="$SAGE_DISTFILES/$PKG_NAME_UPSTREAM"
404404
# Do a final check that PKG_SRC is a file with an absolute path
405405
cd /
406406
if [ ! -f "$PKG_SRC" ]; then

build/pkgs/4ti2/checksums.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
tarball=4ti2-VERSION.tar.gz
1+
tarball=4ti2-${VERSION}.tar.gz
22
sha1=3d41f30ea3ef94c293eae30c087494269fc1a6b9
33
md5=1215872325ddfc561865ecb22b2bccb2
44
cksum=2439180289
5-
upstream_url=https://github.com/4ti2/4ti2/releases/download/Release_1_6_10/4ti2-1.6.10.tar.gz
5+
upstream_url=https://github.com/4ti2/4ti2/releases/download/Release_${VERSION_MAJOR}_${VERSION_MINOR}_${VERSION_MICRO}/4ti2-${VERSION}.tar.gz

build/pkgs/cunningham_tables/checksums.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ tarball=cunningham_tables-VERSION.tar.gz
22
sha1=8bea1a113d85bb9c37d8f213dd19525d9d026f22
33
md5=e71b32f12e9a46c1c86e275e8441a06b
44
cksum=1990403877
5-
upstream_url=http://users.ox.ac.uk/~coml0531/sage/cunningham_tables-1.0.tar.gz
5+
upstream_url=http://users.ox.ac.uk/~coml0531/sage/cunningham_tables-VERSION.tar.gz

build/pkgs/gf2x/checksums.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ tarball=gf2x-VERSION.tar.gz
22
sha1=1b9c7e14031afc5488b9aa27f5501f78c90f00b4
33
md5=842f087ce423c279dced26b85b0fd1d0
44
cksum=3368093312
5-
upstream_url=https://gitlab.inria.fr/gf2x/gf2x/uploads/c46b1047ba841c20d1225ae73ad6e4cd/gf2x-1.3.0.tar.gz
5+
upstream_url=https://gitlab.inria.fr/gf2x/gf2x/uploads/c46b1047ba841c20d1225ae73ad6e4cd/gf2x-VERSION.tar.gz

build/pkgs/graphs/checksums.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ tarball=graphs-VERSION.tar.bz2
22
sha1=c3b9fcbc92482efd6b7f6f3a33df5a78e1256aa1
33
md5=4357919410e8ac2611c9fe643976c8ff
44
cksum=2340933149
5-
upstream_url=http://users.ox.ac.uk/~coml0531/sage/graphs-20210214.tar.bz2
5+
upstream_url=http://users.ox.ac.uk/~coml0531/sage/graphs-VERSION.tar.bz2

build/pkgs/kenzo/checksums.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
tarball=kenzo-1.1.10.tar.gz
2-
upstream_url=https://github.com/miguelmarco/kenzo/releases/download/1.1.10/kenzo-1.1.10.tar.gz
1+
tarball=kenzo-VERSION.tar.gz
2+
upstream_url=https://github.com/miguelmarco/kenzo/releases/download/VERSION/kenzo-VERSION.tar.gz
33
sha1=76115aae9972090d5d51fee18592fc7a79461474
44
md5=3a3d5350fb17304f03e614713e585ed4
55
cksum=2981306888

build/pkgs/nauty/checksums.ini

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
tarball=nautyVERSION.tar.gz
2-
sha1=10c39117c55c69c18c6a107110e7c08f3d873652
3-
md5=7a82f4209f5d552da3078c67e5af872e
4-
cksum=2164796643
5-
upstream_url=https://pallini.di.uniroma1.it/nauty2_8_6.tar.gz
1+
tarball=nauty${VERSION}.tar.gz
2+
sha1=672e9fc9dfd07201af37ee65807a9b493331ed92
3+
md5=16c6edc1a8747c9281041b7c7092135f
4+
cksum=2663136901
5+
upstream_url=https://pallini.di.uniroma1.it/nauty${VERSION_MAJOR}_${VERSION_MINOR}_${VERSION_MICRO}.tar.gz

build/pkgs/nauty/package-version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.8.6.p1
1+
2.8.8

build/pkgs/nauty/patches/nauty-2.8.6-gentreeg-gentourng.patch

Lines changed: 0 additions & 144 deletions
This file was deleted.

build/pkgs/planarity/checksums.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ tarball=planarity-VERSION.tar.gz
22
sha1=8407bccf33c07bf0dae22d79b5e6ac7d89c62ea3
33
md5=200116e6a67544c8e94f9de7c3ba1b1a
44
cksum=4207261512
5-
upstream_url=http://users.ox.ac.uk/~coml0531/sage/planarity-3.0.1.0.tar.gz
5+
upstream_url=http://users.ox.ac.uk/~coml0531/sage/planarity-VERSION.tar.gz

0 commit comments

Comments
 (0)