-
-
Notifications
You must be signed in to change notification settings - Fork 481
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
fix some case issues in sage-fix-pkg-checksums #18344
Comments
Branch: u/jhpalmieri/case |
comment:2
Since we want to support OS X, we cannot allow different files whose names are the same except for case differences. So I hope this change is safe. New commits:
|
Commit: |
comment:3
While your patch apparently fixes the issue with uppercase letters in upstream tarballs (haven't tested it yet though), I don't like the concept of the script, which is pretty upside-down: Instead of iterating over I'd rather have
with useful information about missing upstream tarballs, checksum mismatches etc., but that's presumably beyond this ticket. (And we have a wild mixture of |
Reviewer: Leif Leonhardy |
comment:5
P.S.: How am I supposed to call that script btw.? It relies on
SAGE_ROOT=. src/bin/sage-fix-pkg-checksums
|
comment:6
... we could at least add if [ -z "$SAGE_ROOT" ]; then
if [ -d upstream ]; then # probably add further sanity checks
SAGE_ROOT=`pwd`
else
echo >&2 "Error: SAGE_ROOT not set."
exit 1
fi
fi Otherwise the script does nothing and exits without an error, even when we're in the Sage root directory but |
comment:7
Replying to @nexttime:
The developer's guide says to do
Anyway, feel free to open another ticket with general cleanup of the script. |
Changed branch from u/jhpalmieri/case to |
comment:9
What's the point of this
|
Changed commit from |
comment:10
Replying to @jdemeyer:
It's a note. (On partially case-insensitive filesystems, using uppercase letters in tarball names might be unintentional, I think. It's not an error though, since we can deal with such. But we IMHO shouldn't randomly change case upon upgrades.) |
comment:11
One point behind the note is to somehow warn people that because of OS X, we can't have packages whose names depend on case. So at least this way they see that "Pillow.tar.gz" is associated with the directory "pillow". Maybe if someone tries to create a package "GAP", in addition to the "gap" package, rather than have things perhaps mysteriously break during building, a message like this will pop up earlier letting them know something is going on. |
comment:12
I don't really like notes which don't seem to have any meaning... Is it a warning? Is there a problem? Should I avoid that? Do you agree to remove that note in a follow-up ticket? |
comment:13
Replying to @jhpalmieri:
Let me explain this one more time: |
comment:14
Replying to @jdemeyer:
Do I need to explain that, presumably, someone developing a new package for Sage will try to build Sage with that package? That was the context for my comment: I want to provide some feedback when they are still developing the package (and therefore running |
comment:15
In any case, I don't care too much about the note, so if you want to remove it, go ahead. |
comment:16
Replying to @jhpalmieri:
OK, got it. But the current note is completely meaningless: I still don't understand what it really is trying to tell me... Follow-up at #18402 |
The Sage developer's guide insists that the directories in
build/pkgs
should be all lowercase. At the same time, we have started allowing tarballs inupstream
which have mixed case (e.g., Pillow and Sphinx). The scriptsage-fix-pkg-checksums
should allow for this, converting the tarball name to lowercase before looking for the corresponding directory.Component: build
Author: John Palmieri
Branch:
02ba704
Reviewer: Leif Leonhardy
Issue created by migration from https://trac.sagemath.org/ticket/18344
The text was updated successfully, but these errors were encountered: