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
Standard package zlib cannot be installed on some platforms, breaking Docker build #30403
Comments
Changed keywords from none to gitlab |
comment:3
The patch has a mixture of LF and CRLF lineendings, to patch the file
|
comment:5
Surely thats a problem with how the docker image is built? |
comment:6
I think it means that you cannot build from a fresh git clone if you do not have zlib installed. |
comment:7
vbraun: What's the meaning of "blocker"? Us not being able to ship for one of the platforms sounds like a blocker to me. |
comment:8
I think it's a blocker because a standard package is broken on a supported platform |
comment:10
why is that a problem to fix this? I'll post a branch with uniform endings |
comment:11
it's actually "fun". The patch touches 2 files, one is OK, the other is with Windows (CRLF) line endings, and git version 2.20.1 on Linux produces a diff with mixed line endings!!!
a bug in git? or maybe there is an option to use here... |
comment:12
I think something like |
comment:13
the problem is that applying a patch is a problem, nothing to do with git.
|
Commit: |
Branch: public/packages/zlibpatchfix |
Author: Dima Pasechnik |
New commits:
|
comment:15
This didn't work as needed, as |
Branch pushed to git repo; I updated commit sha1. New commits:
|
comment:17
hmm, no, while locally the endings are OK, pulling from the repo mixes them up :-( |
comment:18
I will try to declare that diff file as binary in .gitattributes |
Branch pushed to git repo; I updated commit sha1. New commits:
|
Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:
|
comment:21
OK, try this please (only tested on Linux) |
comment:22
When applying patches with |
comment:23
if this is so them I suppose we can just add this option to the patch call in |
comment:24
Replying to @vbraun:
no, it does not work - on Debian 10 with its patch I get I suppose we might not want to apply all our patches with But we can also modify |
comment:25
Did you convert the patch to LF endings only? because right now its mixed, and
|
comment:26
Replying to @vbraun:
certainly, I tried it on the converted to the LF-endings patch It's seriosly platform-dependent. As you might know, e.g. on macOS the original patch just works. |
comment:27
Perhaps you are confused by |
comment:28
I guess someone should push this to gitlab or something to trigger the Docker build? |
comment:30
Since our runner has been down for ten days nothing gets built on GitLab anymore currently: https://zulip.sagemath.org/#narrow/stream/117-docker/topic/GitLab.20runners.20are.20gone Otherwise, it would have been that one already https://gitlab.com/sagemath/dev/trac/-/jobs/728299492 |
Reviewer: Matthias Koeppe |
comment:31
Tested at https://github.com/mkoeppe/sage/actions/runs/250810929 that this change does not break any of our platforms |
Changed branch from public/packages/zlibpatchfix to |
Since 9.2.beta4 the docker build is failing:
See https://gitlab.com/sagemath/sage/-/pipelines for details. To see full logs, click on a build step; on the next page, browse the build artifacts on the right to see full output.
CC: @embray @tobiasdiez @dimpase @slel
Component: docker
Keywords: gitlab
Author: Dima Pasechnik
Branch/Commit:
77ab81f
Reviewer: Matthias Koeppe
Issue created by migration from https://trac.sagemath.org/ticket/30403
The text was updated successfully, but these errors were encountered: