Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 234050 - ncurses fails to emerge in prefix portage
Summary: ncurses fails to emerge in prefix portage
Status: RESOLVED FIXED
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo non-Linux Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-06 06:24 UTC by Rabbe Fogelholm
Modified: 2008-08-07 07:57 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Rabbe Fogelholm 2008-08-06 06:24:01 UTC
This morning "ncurses" failed to emerge during the second `emerge -e system' step. From the console log:

/local/scratch/portage/sys-libs/ncurses-5.6-r2/work/ncurses-5.6/ncurses/tinfo/lib_termcap.c: In function 'tgetent':
/local/scratch/portage/sys-libs/ncurses-5.6-r2/work/ncurses-5.6/ncurses/tinfo/lib_termcap.c:96: warning: cast discards qualifiers from pointer target type
/local/scratch/portage/sys-libs/ncurses-5.6-r2/work/ncurses-5.6/ncurses/tinfo/lib_termcap.c: At top level:
/local/scratch/portage/sys-libs/ncurses-5.6-r2/work/ncurses-5.6/ncurses/tinfo/lib_termcap.c:191: error: conflicting types for 'tgetflag'
../include/term.h:781: error: previous declaration of 'tgetflag' was here
/local/scratch/portage/sys-libs/ncurses-5.6-r2/work/ncurses-5.6/ncurses/tinfo/lib_termcap.c:219: error: conflicting types for 'tgetnum'
../include/term.h:782: error: previous declaration of 'tgetnum' was here
/local/scratch/portage/sys-libs/ncurses-5.6-r2/work/ncurses-5.6/ncurses/tinfo/lib_termcap.c:248: error: conflicting types for 'tgetstr'
../include/term.h:778: error: previous declaration of 'tgetstr' was here
make[1]: *** [../obj_s/lib_termcap.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make[1]: Leaving directory `/local/scratch/portage/sys-libs/ncurses-5.6-r2/work/narrowc/ncurses'
make: *** [all] Error 2
 * ERROR: sys-libs/ncurses-5.6-r2 failed:

Just speculating, the same emerge succeded yesterday. Today another version of portage is in charge (yesterday: 2.2.00.11322, today: 2.2.00.11334). Can this have effected things?
Comment 1 Fabian Groffen gentoo-dev 2008-08-06 07:44:46 UTC
Absolutely not.

Was the host OS updated?
Comment 2 Rabbe Fogelholm 2008-08-06 07:52:06 UTC
(In reply to comment #1)
>
> Was the host OS updated?
> 
No, no changes since yesterday.
Comment 3 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2008-08-06 15:41:01 UTC
(In reply to comment #0)

> Just speculating, the same emerge succeded yesterday. Today another version of
> portage is in charge (yesterday: 2.2.00.11322, today: 2.2.00.11334). Can this
> have effected things?

froog from irc reports the same on macos (iirc). bootstrapped portage works, upgraded portage does not.

10:34 <@darksiide> froog: bug 234050 ?
10:34 <+snackb0t>  Bug [ 234050 ] Reporter [ rabbe@bahnhof.se ] Desc [ ncurses 
                  fails to emerge in prefix portage ] Status [ NEW ] 
                  https://bugs.gentoo.org/234050
10:35 < froog> darksiide: indeed, that's the one
10:36 <@darksiide> =/
10:36 <@darksiide> hmm, what changed with ncurses
10:36 < froog> when I use the bootstrap portage it works, after I install a new 
               portage, I get that error
10:37 <@darksiide> and if you downgrade portage?
10:37 <@darksiide> yea,abs nothing has changed with ncurses
10:37 < froog> I'm currently doing a 'emerge -e system' using the bootstrap 
               portage
10:38 < froog> it works with that version
10:39 < froog> actually, I get another error as well
10:39 < froog> if I update portage
10:39 <@darksiide> oh?
10:40 < froog> and then do an 'emerge -e portage' I get a strange error about 
               id 'portage' not being known, something like that. Can't 
               remember the exact message

Is the latter bit related?
Comment 4 Fabian Groffen gentoo-dev 2008-08-06 15:43:01 UTC
the latter is what fabrice reported on gentoo-alt ML
Comment 5 Fabian Groffen gentoo-dev 2008-08-06 17:35:15 UTC
I removed the latest portage version, sicne froog reported that ncurses compiles again with the one before last.
@rabbe: please test/report if your nightly build indeed passes again with this change
Comment 6 Fabian Groffen gentoo-dev 2008-08-06 17:43:32 UTC
I just recalled that the latest portage included EAPI 2_pre2, which messes around with src_* functions.  That could be a problem.  I'm trying to reproduce the problem here now.
Comment 7 Fabian Groffen gentoo-dev 2008-08-06 17:51:05 UTC
I can reproduce.

It looks like the first configure being run is not correct, as it doesn't include any of the special configure arguments that the ebuild constructs.  Comparing to an older portage the first configure call has the correct flags.  Looks like EAPI 2_pre2 could be the cause of this.
Comment 8 Rabbe Fogelholm 2008-08-07 07:40:13 UTC
Sucessful bootstrapping now, with portage-2.2.00.11322 and ncurses-5.6-r2.
Comment 9 Fabian Groffen gentoo-dev 2008-08-07 07:57:39 UTC
thanks, problem found, portage bug, prefix only.