Ncurses builds with --with-leaks or --without-leaks depending on the whether the debug use-flag has been set, but these options are not recognized by the configure script, it should be --disable-leaks instead. When you change "$(use_with !debug leaks)" to "$(if use debug ; then echo --disable-leaks ; fi)" on line 101 of ncurses-5.7-r3.ebuild then this problem is solved. You can NOT just use "$(use_enable !debug leaks)" because --enable-leaks has the same effect as --disable-leaks . PS: If you fix this, can you place my name or e-mail address in the changelog, I'm looking for a job at the moment and i would like some proof that i'm active in the open source world, thanks ;) Reproducible: Always Steps to Reproduce:
then we should fix ncurses so that we can use use_enable. i think this should do it: http://sources.gentoo.org/sys-libs/ncurses/ncurses-5.7-r3.ebuild?r1=1.9&r2=1.10 btw, simpler workaround would be $(use debug && echo --disable-leaks)
Thomas: simple fix for you: sed -i '/with_no_leaks=yes/s:=.*:=$enableval:' aclocal.m4 this way --enable-leaks and --disable-leaks both work instead of --enable-leaks having the same meaning as --disable-leaks
thanks (added to to-do list)