Bug 243945 - sysutils/smenu: allow using base ncurses
Summary: sysutils/smenu: allow using base ncurses
Status: Open
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Danilo G. Baio
Keywords: needs-patch
Depends on:
Reported: 2020-02-06 20:36 UTC by Steve Wills
Modified: 2020-02-12 21:51 UTC (History)
1 user (show)

See Also:
dbaio: maintainer-feedback+

proposed patch (376 bytes, patch)
2020-02-06 20:36 UTC, Steve Wills
swills: maintainer-approval? (dbaio)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Wills freebsd_committer 2020-02-06 20:36:28 UTC
Created attachment 211431 [details]
proposed patch
Comment 1 Danilo G. Baio freebsd_committer 2020-02-07 02:16:42 UTC
Hi Steve.

On CURRENT it's now working fine with ncurses from base.
On FreeBSD 12.1 is still buggy.

How to reproduce:

$ fetch -o /tmp/smenu_list1.txt https://gist.githubusercontent.com/dbaio/8f54ac489557ee165995cd24c10f5a9a/raw/b0e772173a8e6759fe6d1b76c488dce685b6f9f3/gistfile1.txt

$ fetch -o /tmp/smenu_list2.txt https://gist.githubusercontent.com/dbaio/0f1168d090e117dd2aa84b916f50a89d/raw/d3f09180c5b31b4ff9088bd46fced1a39ecdc6fd/gistfile1.txt

$ cat /tmp/smenu_list1.txt| smenu -n10 -c
$ cat /tmp/smenu_list2.txt| smenu -n10 -c

### ncurses from base
$ ldd /usr/local/bin/smenu
  libncurses.so.8 => /lib/libncurses.so.8 (0x80025f000)
  libc.so.7 => /lib/libc.so.7 (0x8002b6000)

### ncurses from ports
$ ldd /usr/local/bin/smenu
  libtinfo.so.6 => /usr/local/lib/libtinfo.so.6 (0x800265000)
  libc.so.7 => /lib/libc.so.7 (0x8002a4000)
Comment 2 Steve Wills freebsd_committer 2020-02-07 13:11:06 UTC
(In reply to Danilo G. Baio from comment #1)
I didn't see an issue, but I was only 12.0. What's the issue I should be seeing?
Comment 3 Danilo G. Baio freebsd_committer 2020-02-09 19:48:38 UTC
(In reply to Steve Wills from comment #2)


Comment 4 Steve Wills freebsd_committer 2020-02-12 21:51:31 UTC
(In reply to Danilo G. Baio from comment #3)
Thanks, that helps a lot. I'm still not able to reproduce though:


Am I missing something going wrong there?

Perhaps this is a terminal emulator issue?