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
some files in sage-4.4.{0,1} have dos line ending instead of a unix line ending #8898
Comments
comment:1
Some files under |
comment:2
just checked sage/logic/booleval.py is actually in "mac format" in sage-4.4 |
This comment has been minimized.
This comment has been minimized.
comment:4
The attached patch converts the following files to use Unix line endings:
I used the Perl script at http://www.obviously.com/tech_tips/dos2unix.html to convert to Unix end lines. Fredrik Johansson is a main developer of mpmath. I have CC'd him so he is aware of this Unix line endings issue. |
Author: Minh Van Nguyen |
comment:5
sage/libs/mpmath/ext_impl.pxd at least as been changed since this patch has been posted. It may need rebasing for all 4 files. |
Attachment: trac_8898-unix-endlines.2.patch.gz update of the patch based on sage-4.6 |
comment:6
OK - so I updated the patch (but could not delete the old one, I don't have the This fairly trivial patch now needs a review. |
comment:7
I have tested the patch with python-2.6.6 and sage-on-gentoo - everything fine here. |
comment:8
Attachment: trac-8898_unix-endlines.patch.gz Here are some problems with attachment: trac_8898-unix-endlines.2.patch:
My rebased patch should take care of the above issues for Sage 4.6.1.alpha0. See the ticket description for which patch to apply. |
This comment has been minimized.
This comment has been minimized.
comment:9
Sorry I missed sage/logic/booleval.py somehow. In any case this one is no bother |
comment:10
4.6.1.alpha0 took me for a little ride. I am putting this back to positive review, hopefully no one messed up with those |
Script to do the changes (to be executed in SAGE_ROOT/devel/sage) |
comment:11
Attachment: 8898.sh.gz |
comment:12
Any complaints if I execute the script attachment: 8898.sh instead of applying the patch? The script also fixes some more files. |
This comment has been minimized.
This comment has been minimized.
comment:13
Replying to @jdemeyer:
No complaints here. As I initially said my main concern are the cython files. |
comment:14
I am building 4.6.1.alpha2 which includes the fix. cython parsed everything |
comment:15
François, I am interpreting your post as a positive review, okay? |
Reviewer: François Bissey |
Changed author from Minh Van Nguyen to Minh Van Nguyen, Jeroen Demeyer |
comment:16
Replying to @jdemeyer:
OK, the build finished successfully, so yes positive review. |
Merged: sage-4.6.1.alpha2 |
Changed merged from sage-4.6.1.alpha2 to none |
Various files in the sage spkg have dos line ending rather than unix ones.
I found about this while trying to build sage with python-2.6.5
which absolutely refused to parse these files as is.
Not sure how to submit a patch for line endings.
Execute from SAGE_ROOT/devel/sage:
CC: @fredrik-johansson
Component: misc
Author: Minh Van Nguyen, Jeroen Demeyer
Reviewer: François Bissey
Issue created by migration from https://trac.sagemath.org/ticket/8898
The text was updated successfully, but these errors were encountered: