-
-
Notifications
You must be signed in to change notification settings - Fork 514
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
Upgrade zlib to 1.2.6 #12800
Comments
This comment has been minimized.
This comment has been minimized.
Author: Jeroen Demeyer |
comment:2
We might as well just get of the commented-out lines. We're using version control, after all. If they're done in a separate commit, just those lines can be |
comment:3
Alternately, fix the patch routine =) |
comment:4
Well, #12432 adds a patch again, so it doesn't really matter. |
comment:5
The spkg compiled fine with sage-4.8 on ARM. |
Attachment: zlib-1.2.6.reviewer-ll.patch.gz Reviewer patch. Apply to Jeroen's spkg. |
Reviewer: Michael Orlitzky, Julien Puydt, Leif Leonhardy |
comment:6
Doesn't make sense to comment out the |
Replying to @jdemeyer:
Well, none of the other changes seem to be relevant for Sage. (But regarding the size of the spkg, it IMHO isn't worth deleting some parts from the upstream tree.) |
Attachment: zlib-1.2.6.diff.gz Diff for the zlib spkg. For review only |
comment:8
Leif, I added almost all of your changes, the spkg is at the same location. I patched the
|
comment:9
Does that loop works even if the ../patches/ directory is empty? Or does it give a file not found error? Not that it matters as long as there is a patch, but that's the first thing that came to my mind reading this... |
comment:10
Replying to @SnarkBoojum:
If
will ensure that there are no error messages. |
comment:11
Replying to @jdemeyer:
Yes, but it then would make more sense to But to perform some loop-invariant code motion, it would be better to just use ls ../patches/*.patch &>/dev/null &&
echo "Applying patches to upstream source..." &&
for patch in ../patches/*.patch; do
... |
comment:12
P.S.: $ ls patches/
*.patch Then your |
comment:13
Replying to @nexttime:
Although in that case also |
comment:14
Replying to @nexttime:
I don't think there is anything wrong with my code. It's simple and actually catches more special cases than your proposals (such as |
comment:15
Replying to @jdemeyer:
Well, I think the only "special cases" we want to (or have to) handle here are:
(I won't insist on changing the If you wanted to go triple-safe, you'd have to use |
comment:16
Debian maintainers manage their patches to upstream using Debian has about fourty thousand packages, with eleven official ports and a few unofficial ones, so I guess they know what they're doing. |
comment:17
We could just apply the patches in a mercurial queue, since we ship a repo with every spkg. Anyway, this is pointless: I've built a fresh beta13 with this spkg, and it passes a ptestlong. I manually checked the error conditions. When you figure out what to do with the patch routine (delete it!), it's ready. |
comment:18
Replying to @orlitzky:
Yep. I'm ok with the spkg as is, so setting it to positive review. If anybody should disagree, feel free to revert that. |
Merged: sage-5.0.beta14 |
comment:20
I'm having problems with this on the OpenSolaris machine hawk: when trying to build sage-5.1.beta3, I see
Any suggestions? |
comment:21
I don't have the same problem on Compiling with |
comment:22
I had some old environment variables set. Unsetting them seems to help. |
In particular, it builds on the Skynet machine mark (SunOS 5.10-32) with GCC-4.7.0, unlike zlib-1.2.5.
spkg: http://boxen.math.washington.edu/home/jdemeyer/spkg/zlib-1.2.6.spkg
CC: @orlitzky
Component: packages: standard
Author: Jeroen Demeyer
Reviewer: Michael Orlitzky, Julien Puydt, Leif Leonhardy
Merged: sage-5.0.beta14
Issue created by migration from https://trac.sagemath.org/ticket/12800
The text was updated successfully, but these errors were encountered: