Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 699968 - =app-misc/abook-0.6.1-r1 stabilization request
Summary: =app-misc/abook-0.6.1-r1 stabilization request
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Stabilization (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at if you want to take care of it
Depends on: 679322
  Show dependency tree
Reported: 2019-11-13 00:14 UTC by Robert Gill
Modified: 2020-02-05 11:00 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---

Updated tinfo patch (abook-0.6.1-tinfo.patch,532 bytes, patch)
2019-11-23 21:52 UTC, Robert Gill
no flags Details | Diff
Changed tinfo patch for abook. (abook-0.6.1-tinfo.patch,532 bytes, patch)
2020-02-05 10:59 UTC, Georg Hopp
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Gill 2019-11-13 00:14:59 UTC
I recently rebuilt my system with gcc-9.2.0 and found that the stable ebuild of abook no longer builds against recent versions of ncurses.

app-misc/abook-0.6.1-r1 has been available for a while, builds successfully, and seems stable enough on amd64. Please stabilize.

Thank you.
Comment 1 Markus Osterhoff 2019-11-23 12:24:32 UTC
(In reply to Robert Gill from comment #0)
> app-misc/abook-0.6.1-r1 has been available for a while, builds successfully,
> and seems stable enough on amd64. Please stabilize.
slightly different here:
gcc-9.2.0-r2 with sys-libs/ncurses-6.1_p20181020 (USE cxx split-usr tinfo unicode).
abook-0.6.1 fails to build, -r1 does build. But it also segfaults upon startup.

gdb shows this:

Starting program: /usr/bin/abook 

Program received signal SIGSEGV, Segmentation fault.
0x00007ffff777b999 in termattrs_sp () from /lib64/
(gdb) bt
#0  0x00007ffff777b999 in termattrs_sp () from /lib64/
#1  0x00007ffff7778d0f in _nc_setupscreen_sp () from /lib64/
#2  0x00007ffff777449e in newterm_sp () from /lib64/
#3  0x00007ffff7774928 in newterm () from /lib64/
#4  0x00007ffff77708a3 in initscr () from /lib64/
#5  0x0000555555567375 in ui_init_curses ()
#6  0x00005555555673de in init_ui ()
#7  0x000055555555933c in main ()

ldd shows this:
stampy ~ $ ldd /usr/bin/abook (0x00007fffbcb8c000) => /usr/lib64/ (0x00007f0c11e53000) => /lib64/ (0x00007f0c11c19000) => /lib64/ (0x00007f0c119e0000) => /lib64/ (0x00007f0c11792000) => /lib64/ (0x00007f0c113c5000) => /lib64/ (0x00007f0c1118b000)
	/lib64/ (0x00007f0c12279000)

it starts with
export LD_PRELOAD="/lib64/"
(note the leading w for tinfow here, while it is tinfo in the ldd output).

From abook's git repo, I got the same, but could fix it with the following:

diff --git a/ b/
index bcb0a58..624f31a 100644
--- a/
+++ b/
@@ -85,7 +85,7 @@ AC_ARG_WITH(curses, [  --with-curses=DIR       Where ncurses is installed ],
 AC_CHECK_LIB(ncursesw, initscr,
-       [LIBS="$LIBS -lncursesw"
+       [LIBS="$LIBS -ltinfow -lncursesw"
        if test x$abook_cv_curses = x/usr -a -d /usr/include/ncursesw; then
                CPPFLAGS="$CPPFLAGS -I/usr/include/ncursesw"
Comment 2 Robert Gill 2019-11-23 21:51:12 UTC
Yeah, I guess I didn't really test it. Although I updated the current patch in such a way that seems to fix it. I'm attaching it.
Comment 3 Robert Gill 2019-11-23 21:52:17 UTC
Created attachment 597326 [details, diff]
Updated tinfo patch
Comment 4 Dion Moult 2020-01-01 03:13:25 UTC
I can confirm that I experience the same as Markus Osterhoff except with GCC 8.3.

Markus' patch, in particular this:

-       [LIBS="$LIBS -lncursesw"
+       [LIBS="$LIBS -ltinfow -lncursesw"

... fixes the segfault upon startup for -r1 for me.

It would be great to get this applied to the tree :)
Comment 5 Georg Hopp 2020-02-05 10:59:29 UTC
Created attachment 611768 [details, diff]
Changed tinfo patch for abook.

Modified version of the current tinfo patch which make abook work again for me.
Comment 6 Georg Hopp 2020-02-05 11:00:40 UTC
I had the same issue and after I read this:

I had a look in the tinfo patch and changed it to ensure to link against tinfow in the ncursesw part.
That fixed the issue for me.

Sorry, I have not the time to test more accuratly.