Skip to content
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 readline to version 6.3 #16480

Closed
sagetrac-emassop mannequin opened this issue Jun 15, 2014 · 28 comments
Closed

Upgrade readline to version 6.3 #16480

sagetrac-emassop mannequin opened this issue Jun 15, 2014 · 28 comments

Comments

@sagetrac-emassop
Copy link
Mannequin

sagetrac-emassop mannequin commented Jun 15, 2014

This is needed to build on Arch. (Of course the build breaks again when Arch gets the next readline version and corresponding bash.)

The tarball is at http://www.ixsop.nl/sage/readline-6.3.008.tar.gz.

Depends on #16260

CC: @vbraun @sagetrac-stephen

Component: packages: standard

Author: Erik Massop

Branch/Commit: b49ec14

Reviewer: Volker Braun

Issue created by migration from https://trac.sagemath.org/ticket/16480

@sagetrac-emassop sagetrac-emassop mannequin added this to the sage-6.3 milestone Jun 15, 2014
@sagetrac-emassop
Copy link
Mannequin Author

sagetrac-emassop mannequin commented Jun 16, 2014

Branch: u/emassop/readline_6_3

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 19, 2014

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

e0d9941Upgrade readline to version 6.3

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Jun 19, 2014

Commit: e0d9941

@sagetrac-vbraun-spam sagetrac-vbraun-spam mannequin modified the milestones: sage-6.3, sage-6.4 Aug 10, 2014
@a-andre
Copy link

a-andre commented Aug 12, 2014

comment:4

Python in Sage has been updated to 2.7.8.

Is this patch ready for review?

@sagetrac-emassop
Copy link
Mannequin Author

sagetrac-emassop mannequin commented Aug 12, 2014

comment:5

Wow, it has been two months since I built Sage (and ran into errors).

Yes, I think this is ready for review now.

@sagetrac-emassop
Copy link
Mannequin Author

sagetrac-emassop mannequin commented Aug 12, 2014

Author: Erik Massop

@a-andre
Copy link

a-andre commented Aug 13, 2014

comment:6

It works on archlinux. But somebody else has to test it on other supported platforms.

@sagetrac-emassop
Copy link
Mannequin Author

sagetrac-emassop mannequin commented Aug 18, 2014

comment:7

Builds and passes sage -t --long --all for me on Debian Squeeze-LTS x86_64. Can't review since I'm author on this ticket.

The most significant change is for OS/X, so it should definitely be tested there.

The file shobj-conf.patch does more than described in SPKG.txt. Those extra things should probably be removed from shobj-conf.patch or added in SPKG.txt. I do not, however, think that this is part of "upgrade to readline 6.3". Also I can't do this, as I don't have access to BSD or non-ELF systems.

@jhpalmieri
Copy link
Member

comment:8

This builds and seems to work well on OS X 10.9. Any suggestions for how to test it thoroughly?

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 19, 2014

Changed commit from e0d9941 to 1f85012

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 19, 2014

Branch pushed to git repo; I updated commit sha1. New commits:

1f85012Simplify patches after more thorough investigation

@sagetrac-emassop
Copy link
Mannequin Author

sagetrac-emassop mannequin commented Aug 19, 2014

comment:10

I dug into the revision history to see what various chunks of shobj-conf.patch were for.

The FreeBSD related chunks seem to be remnants from FreeBSD's transition from a.out to ELF. Upstream has code for that now, so I discarded those chunks.

For OS/X, I traced the changes back to a patch on macports. There the patch has been updated and I have included the new version now. I think this is the sane thing to do for OS/X. Anyway, that patch has been included in macports for 4 months now, and there are no open bugs at https://trac.macports.org/query?status=assigned&status=new&status=reopened&component=ports&summary=~readline&order=priority so that should be fine.

@sagetrac-emassop
Copy link
Mannequin Author

sagetrac-emassop mannequin commented Aug 19, 2014

comment:11

I'm CC-ing Stephen because of the FreeBSD-related things. With readline 6.3 I think it should be possible to drop patch-build_pkgs_readline_fbsd-patch-src_support_shlib-install and patch-build_pkgs_readline_patches_shobj-conf.patch from the port at http://svnweb.freebsd.org/ports/head/math/sage/ .

@sagetrac-emassop
Copy link
Mannequin Author

sagetrac-emassop mannequin commented Aug 20, 2014

comment:12

Okay, now I can crash Sage by typing some random text and then tapping the up-arrow a number of times. This is a known Readline 6.3 bug, reported here, and fixed [ftp://ftp.cwru.edu/pub/bash/readline-6.3-patches/readline63-002 here]. I would like to get Readline at a higher patch-level, at least version 6.3.002.

Automatically generated tarballs are available from http://git.savannah.gnu.org/cgit/readline.git/log/. However I am unsure if the checksums are always the same. Moreover the top-level directory in those tarballs have a name that Sage doesn't like for renaming to src.

Should I upload a tarball with a renamed top-level directory somewhere? Or should I add (some of) the patches from ftp://ftp.cwru.edu/pub/bash/readline-6.3-patches/ in git and apply them from spkg_install?

@vbraun
Copy link
Member

vbraun commented Aug 20, 2014

comment:13

Its preferable to host the tarball somewhere under your control.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 20, 2014

Changed commit from 1f85012 to 79c17b3

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 20, 2014

Branch pushed to git repo; I updated commit sha1. New commits:

79c17b3Use tarball for Readline version 6.3.008

@sagetrac-emassop
Copy link
Mannequin Author

sagetrac-emassop mannequin commented Aug 20, 2014

comment:15

Generated tarball for Readline 6.3.008, using

$ git clone git://git.sv.gnu.org/readline.git
$ git archive --format=tar.gz --prefix=readline-6.3.008/ -o readline-6.3.008.tar.gz HEAD

if you want to reproduce it. (HEAD should of course be at Readline-6.3 patch 8.) It's available at http://www.ixsop.nl/sage/readline-6.3.008.tar.gz.

@sagetrac-emassop

This comment has been minimized.

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 20, 2014

Branch pushed to git repo; I updated commit sha1. This was a forced push. New commits:

b49ec14Update to Readline version 6.3.008

@sagetrac-git
Copy link
Mannequin

sagetrac-git mannequin commented Aug 20, 2014

Changed commit from 79c17b3 to b49ec14

@sagetrac-luran
Copy link
Mannequin

sagetrac-luran mannequin commented Sep 28, 2014

comment:17

Are we waiting for a review on the FreeBSD related changes? I only have a machine running Arch, and so I can't help that.

@vbraun
Copy link
Member

vbraun commented Sep 28, 2014

comment:18

Does it work with our Python? If yes somebody please update the description.

@sagetrac-emassop
Copy link
Mannequin Author

sagetrac-emassop mannequin commented Sep 28, 2014

comment:19

Yes, it works with current Sage's Python. That comment in the description refers to #16260 which has been done a while now.

@sagetrac-emassop

This comment has been minimized.

@vbraun

This comment has been minimized.

@vbraun
Copy link
Member

vbraun commented Sep 28, 2014

Reviewer: Volker Braun

@vbraun
Copy link
Member

vbraun commented Sep 29, 2014

Changed branch from u/emassop/readline_6_3 to b49ec14

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants