Summary: | [PATCH] devel/readline: Update to 8.2 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Cy Schubert <cy> | ||||||||||
Component: | Individual Port(s) | Assignee: | Po-Chuan Hsieh <sunpoet> | ||||||||||
Status: | Closed FIXED | ||||||||||||
Severity: | Affects Only Me | CC: | ehaupt, freebbsd-ports-bugs, freebsd, jcfyecrayz, michael.osipov, pizzamig | ||||||||||
Priority: | --- | Keywords: | patch | ||||||||||
Version: | Latest | Flags: | bugzilla:
maintainer-feedback?
(sunpoet) cy: merge-quarterly? antoine: exp-run+ |
||||||||||
Hardware: | Any | ||||||||||||
OS: | Any | ||||||||||||
Attachments: |
|
This also needs to be back ported to 2022Q4 since bash 5.2 is already in 2022Q4. (In reply to Michael Osipov from comment #1) Noted. I've put that into my commit log message in my readline branch. Added pkg-manager@ cc because of suggested exp-run. Created attachment 237169 [details]
my patch
Created attachment 237170 [details]
my patch
New failure log: http://package18.nyi.freebsd.org/data/123amd64-default-foo/2022-10-07_19h42m30s/logs/gdb-12.1_1.log All ports depending on gdb were skipped (In reply to Antoine Brodin from comment #6) Bah, I knew that pulling in bash 5.2 w/o further testing is a mistake :-( I have supplied patches some time ago to bash and readline to use ports only because otherwise LOCALBASE/etc/inputrc isn't used. So current bash with bundled readline isn't really usable. Emanuel, I consider this as a serious blocker as laid out the bundled readline is not patched like the one from the ports. Unless the gdb issue is addressed within days, shells/bash will be broken for quite some time. Can you revert to 5.1.x until this is fully resolved and the both bash and readline can be updated in main and quarterly? Michael, The PORTS_READLINE option in shells/bash being broken due to an outdated dependency is low hanging fruit. Options break, new ones appear. This is part of a normal ports lifecycle. Bash is very much usable with the bundled readline. I suggest you invest your effort into solving the dependency issue. (In reply to Emanuel Haupt from comment #9) While you consider readline a low hanging fruit, taking care of the GDB fallout isn't. At this time, it is beyond my capabilities :-( (In reply to Antoine Brodin from comment #6) Luca, can you have a look at this failure? FTR: https://git.savannah.gnu.org/cgit/readline.git/diff/CHANGES?id=f7a382fd09319b20ef4435b9b554183b605468c1 > +h. rl_completer_word_break_characters is now `const char *' like > + rl_basic_word_break_characters. Keyword: patch or patch-ready – in lieu of summary line prefix: [patch] * bulk change for the keyword * summary lines may be edited manually (not in bulk). Keyword descriptions and search interface: <https://bugs.freebsd.org/bugzilla/describekeywords.cgi> Created attachment 237445 [details]
Fix to build gdb with readline 8.2
This patch fix the build with readline 8.2 (and it should be compatible with 8.1).
I'm testing gdb with this patch with readline 8.1 and, if it works, I will commit it before readline 8.2 lands, if it's OK with you.
However, an exp-run could be retried, to identify potential other affected ports
(In reply to Luca Pizzamiglio from comment #14) Mille grazie! An exp-run would be advised since a lot of ports were skipped because of this. Comment on attachment 237445 [details]
Fix to build gdb with readline 8.2
This patch has been added to gdb in the main tree.
It can be ignored
Exp-run looks fine (In reply to Luca Pizzamiglio from comment #16) You likely mean this https://github.com/bminor/binutils-gdb/commit/1add37b567a7dee39d99f37b37802034c3fce9c4, no? devel/binutils is still at 2.37_4,1, so this should be upgraded, no? (In reply to Michael Osipov from comment #18) I don't understand your comment. I've added a patch in gdb to support both readline. My patch is identical to the commit already present in upstream. devel/binutils is a different port and it follows a different release process. The gdb dependency to binutils is vendored. (In reply to Luca Pizzamiglio from comment #19) Yes, you are right. I do not fully understand their development model. Here https://github.com/bminor/binutils-gdb/blob/gdb-12-branch/gdb/completer.c#L2014 it is not fixed. (In reply to Michael Osipov from comment #18) See PR/265917. Do we want to block on PR/265917? (In reply to Cy Schubert from comment #21) I don't think this is dependent on bug 265917 (no need for a binutils update). Luca fixed gdb for old or new readline, and the failures in the exp run (comment 6) are resolved after that fix (committed Oct 20). I think this update to readline-8.2 is ready to commit from a build perspective - any of the patches will do. I used attachment 237170 [details] - seems cleanest. Brief run testing seems fine. Then after this is updated, bash can remove PORTS_READLINE_BROKEN (see also bug 266897) - that was also build/run tested here. (In reply to John Hein from comment #22) > Then after this is updated, bash can remove PORTS_READLINE_BROKEN (see also bug 266897) - that was also build/run tested here. That was always the plan. I'm ready to make the change to bash as soon as devel/readline is updated. Any objections to apply this patch? A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=eedcedd71e71745c7dabf7493961a4bf3e0440ad commit eedcedd71e71745c7dabf7493961a4bf3e0440ad Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-11-19 08:11:18 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-11-19 08:11:18 +0000 devel/readline: Update to 8.2 Changes: https://tiswww.case.edu/php/chet/readline/CHANGES PR: 266771 Exp-run by: antoine devel/readline/Makefile | 8 ++++---- devel/readline/distinfo | 6 +++--- devel/readline/pkg-plist | 1 + 3 files changed, 8 insertions(+), 7 deletions(-) (In reply to Emanuel Haupt from comment #23) I've removed the BROKEN from shells/bash in ports 372693913a051e16e6c79f1e22d78e0036f1575e and ports 74b3fb646c38fb30d6fd1abac8fbefa2f11560af. Sorry for the typo. Committed. Thanks you all. Since 2022Q4 is broken as well, please cherry pick those commits. I need to maintain a custom branch for poudriere to stay on 5.1.x :-( |
Created attachment 237024 [details] Update devel/readline to 8.2 Update devel/readline to 8.2.