Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 630864 - sys-apps/pick-1.8.0 fails to configure : unable to find setupterm function
Summary: sys-apps/pick-1.8.0 fails to configure : unable to find setupterm function
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Tim Harder
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-09-13 08:16 UTC by Helmut Jarausch
Modified: 2019-05-12 10:48 UTC (History)
1 user (show)

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


Attachments
config.log (pick-1.8.0-config.log,17.31 KB, text/x-log)
2017-09-13 08:16 UTC, Helmut Jarausch
Details
patch to search for libtinfo (pick-1.8.0-configure.patch,654 bytes, patch)
2017-09-13 16:44 UTC, Helmut Jarausch
Details | Diff
build.log (build.log,2.34 KB, text/x-log)
2019-05-11 23:34 UTC, Dennis Schridde
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2017-09-13 08:16:29 UTC
Created attachment 494310 [details]
config.log

See the summary.
config.log is attached
Comment 1 Tim Harder gentoo-dev 2017-09-13 08:35:50 UTC
Let me guess, you have USE=tinfo enabled for ncurses. If so, I figured that would break things. :)

I was going to patch it soon to use pkg-config, but patches welcome here (or probably upstream) if you want it done faster.
Comment 2 Helmut Jarausch 2017-09-13 11:18:20 UTC
(In reply to Tim Harder from comment #1)
> Let me guess, you have USE=tinfo enabled for ncurses. If so, I figured that
> would break things. :)
> 
> I was going to patch it soon to use pkg-config, but patches welcome here (or
> probably upstream) if you want it done faster.

Yes, I do have the tinfo use-flag for ncurses.
I remember that one package (at least) forced me to do so.

Unfortunately, I've never understood the 'configure business. - therefore I cannot help,
Comment 3 Helmut Jarausch 2017-09-13 16:43:57 UTC
(In reply to Helmut Jarausch from comment #2)
> (In reply to Tim Harder from comment #1)
> > Let me guess, you have USE=tinfo enabled for ncurses. If so, I figured that
> > would break things. :)
> > 
> > I was going to patch it soon to use pkg-config, but patches welcome here (or
> > probably upstream) if you want it done faster.
> 
> Yes, I do have the tinfo use-flag for ncurses.
> I remember that one package (at least) forced me to do so.
> 
> Unfortunately, I've never understood the 'configure business. - therefore I
> cannot help,

I have removed the search for ncurses and replaced it with tinfo.
See the attached patch
Comment 4 Helmut Jarausch 2017-09-13 16:44:35 UTC
Created attachment 494382 [details, diff]
patch to search for libtinfo
Comment 5 Tim Harder gentoo-dev 2017-09-14 03:13:30 UTC
(In reply to Helmut Jarausch from comment #3)
> I have removed the search for ncurses and replaced it with tinfo.
> See the attached patch

Yeah, it's not that easy since that breaks it for configurations like mine which don't have tinfo split out. :)
Comment 6 Larry the Git Cow gentoo-dev 2017-09-14 03:59:01 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bae9e3bd15978477f4f14ac01a4fc64786ec3a57

commit bae9e3bd15978477f4f14ac01a4fc64786ec3a57
Author:     Tim Harder <radhermit@gentoo.org>
AuthorDate: 2017-09-14 03:56:08 +0000
Commit:     Tim Harder <radhermit@gentoo.org>
CommitDate: 2017-09-14 03:56:08 +0000

    sys-apps/pick: fix building against ncurses with split out libtinfo
    
    Closes: https://bugs.gentoo.org/630864

 sys-apps/pick/files/pick-1.8.0-tinfo.patch | 24 ++++++++++++++++++++++++
 sys-apps/pick/pick-1.8.0.ebuild            | 10 +++++++---
 2 files changed, 31 insertions(+), 3 deletions(-)
Comment 7 Larry the Git Cow gentoo-dev 2017-09-14 04:04:57 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/sync/gentoo.git/commit/?id=bae9e3bd15978477f4f14ac01a4fc64786ec3a57

commit bae9e3bd15978477f4f14ac01a4fc64786ec3a57
Author:     Tim Harder <radhermit@gentoo.org>
AuthorDate: 2017-09-14 03:56:08 +0000
Commit:     Tim Harder <radhermit@gentoo.org>
CommitDate: 2017-09-14 03:56:08 +0000

    sys-apps/pick: fix building against ncurses with split out libtinfo
    
    Closes: https://bugs.gentoo.org/630864

 sys-apps/pick/files/pick-1.8.0-tinfo.patch | 24 ++++++++++++++++++++++++
 sys-apps/pick/pick-1.8.0.ebuild            | 10 +++++++---
 2 files changed, 31 insertions(+), 3 deletions(-)
Comment 8 Dennis Schridde 2019-05-11 23:34:54 UTC
Created attachment 576088 [details]
build.log

This seems to have resurfaced with sys-apps/pick-3.0.1::gentoo:

+ LDFLAGS=-lcurses              
+ check_curses             
+ compile
+ cc -Werror -o /dev/null -x c - -lcurses                                                 
/tmp/portage/sys-apps/pick-3.0.1/temp/ccqk2YBi.o:function main: error: undefined reference to 'setupterm'
collect2: error: ld returned 1 exit status                                                
+ LDFLAGS=-lncursesw                                                                                                                                                                  
+ check_curses                                                          
+ compile                                               
+ cc -Werror -o /dev/null -x c - -lncursesw
/tmp/portage/sys-apps/pick-3.0.1/temp/ccJLTGvk.o:function main: error: undefined reference to 'setupterm'
collect2: error: ld returned 1 exit status
+ fatal 'curses library not found'                                          
+ '[' 1 -gt 0 ']'                                     
+ echo 'fatal: curses library not found'
fatal: curses library not found
Comment 9 Helmut Jarausch 2019-05-12 10:48:51 UTC
(In reply to Dennis Schridde from comment #8)
> Created attachment 576088 [details]
> build.log
> 
> This seems to have resurfaced with sys-apps/pick-3.0.1::gentoo:
> 
> + LDFLAGS=-lcurses              
> + check_curses             
> + compile
> + cc -Werror -o /dev/null -x c - -lcurses                                   
> 
> /tmp/portage/sys-apps/pick-3.0.1/temp/ccqk2YBi.o:function main: error:
> undefined reference to 'setupterm'
> collect2: error: ld returned 1 exit status                                  
> 
> + LDFLAGS=-lncursesw                                                        
> 
> + check_curses                                                          
> + compile                                               
> + cc -Werror -o /dev/null -x c - -lncursesw
> /tmp/portage/sys-apps/pick-3.0.1/temp/ccJLTGvk.o:function main: error:
> undefined reference to 'setupterm'
> collect2: error: ld returned 1 exit status
> + fatal 'curses library not found'                                          
> + '[' 1 -gt 0 ']'                                     
> + echo 'fatal: curses library not found'
> fatal: curses library not found

See https://bugs.gentoo.org/685712