Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 636958

Summary: sys-apps/duc-1.4.1-r1 USE=ncurses with sys-libs/ncurses[tinfo] - configure: checking for tputs in -lncursesw... no
Product: Gentoo Linux Reporter: piotr5
Component: Current packagesAssignee: Adam Feldman <np-hardass>
Status: RESOLVED FIXED    
Severity: normal CC: esigra, jer
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 457530    
Attachments: applied with "patch -p1" in source-directory "${S}" results in successful compiling

Description piotr5 2017-11-09 13:16:24 UTC
Created attachment 503266 [details, diff]
applied with "patch -p1" in source-directory "${S}" results in successful compiling

the failure happens in configuration phase:
"The ncurses library was not found, which is needed for ui support."
probably a bug in the creation of the configure file. I made a patch and put it into /etc/portage/patches/sys-apps/duc/ and to get it applied I had to change my /etc/portage/bashrc from what was suggested in the handbook to a more elaborate:
#!/bin/sh
if [ "${EBUILD_PHASE}" == "prepare" ]; then
 cd "${S}"
 if  [[ -z "`type -t epatch_user`" ]]; then
   if  [[ -z "`type -t eapply_user`" ]]; then
     echo applying /etc/portage/patches/${CATEGORY}/${PN}/*.patch
     for i in `ls /etc/portage/patches/${CATEGORY}/${PN}/*.patch 2>/dev/null` ;do 
       patch -p1 <"${i}" ||die "patch failed"
     done
   else
     eapply_user
   fi
 else
   epatch_user
 fi
 cd -
fi
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2018-02-25 16:03:55 UTC
Fixed in 9999 and 1.4.3.