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
Ignore case in package directory #16415
Comments
This comment has been minimized.
This comment has been minimized.
Author: Volker Braun |
Commit: |
New commits:
|
comment:4
Is this supposed to be a temporary (=ad-hoc) solution? In the long run, the actual folder name should probably be part of Sage's "package metadata". |
comment:5
If there is a single top-level directory then we don't need to store the name (and manually maintain) it elsewhere. There should be some checking, of course. And if you don't have a single top-level directory then I'd consider that to be an upstream bug. |
comment:6
Replying to @vbraun:
Yep, but that's NYI.
Well, we "manually" maintain the "checksums" for each specific upstream tarball anyway (in a central repo, tied to specific Sage versions, which is IMHO a bad thing to do anyway).
Sure.
:-) |
comment:7
P.S.: FWIW, requiring |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:9
Also removed the hiding-of-errors, I want to know which packages don't work... |
comment:10
Probably immediately go with (Haven't checked right now, but I guess |
comment:11
Besides not portable, its IMHO not readable. The whole contraption should be rewritten in Python with some proper doctesting. |
comment:12
Replying to @vbraun:
Well, the
In Lisp, please. Anyway, I'd really explicitly check whether echo "Finished extraction"
cd "$PKG_NAME"
if [ $? -ne 0 ]; then
echo >&2 "Error: after extracting, the directory $PKG_NAME does not exist"
exit 1
fi right below for legacy spkgs. Just out of curiosity: Which bash version(s) did the original change work with? I tried older (3.2.) as well as newer (4.3.11) bashs; with none of them it worked. |
comment:13
$ bash --version Replying to @nexttime:
Sage is a Python project. And Python is actually pretty good for sysadmin-type scripts. Unlike lisp. And unlike Bash it can be tested in a sane way. |
comment:14
Replying to @vbraun:
FWIW,
either. (So it's probably a bug in your bash that it works for you. ;-) ) |
comment:15
I'd still add a check (with an appropriate error message) that |
comment:16
We don't need a double check, either building the package will break if the rename fails or the rename is not necessary (and, really, wtf do we rename the tarball directory to start with, afaik nobody else does that). In particular, there is no need to check that the renamed directory is still a directory. |
comment:17
Looks okay to me. |
Reviewer: John Palmieri, Leif Leonhardy |
Changed branch from u/vbraun/ignore_case_in_package_directory to |
The python tarball contains a upper-case
Python-x.y.z
directory. Our build system does not handle that case. Worse, it works differently on OSX and real OS'es because of filesystem case sensitivity.Component: build
Author: Volker Braun
Branch/Commit:
9b31585
Reviewer: John Palmieri, Leif Leonhardy
Issue created by migration from https://trac.sagemath.org/ticket/16415
The text was updated successfully, but these errors were encountered: