Hi! I noticed that ruby 2.0 was masked and upgraded ncurses, but when I tried to rebuild libcaca (because asked), it fails with some undefined references. I'll attach the log and the emerge --info for more information. Thanks. PS: also tried with stable version of libcaca and the error is the same. Reproducible: Always
Created attachment 455406 [details] build.log
Created attachment 455408 [details] The emerge --info
As I have installed libcaca: [I] media-libs/libcaca Available versions: 0.99_beta18-r2 (~)0.99_beta19 {X cxx doc imlib java mono ncurses opengl python ruby slang static-libs test truetype ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32" ELIBC="FreeBSD" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby20"} Installed versions: 0.99_beta19(15:24:46 13/08/15)(X cxx ncurses opengl python truetype -doc -imlib -java -mono -ruby -slang -static-libs -test ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32" ELIBC="-FreeBSD" PYTHON_TARGETS="python2_7" RUBY_TARGETS="ruby20") Homepage: http://libcaca.zoy.org/ Description: A library that creates colored ASCII-art graphics
Even though I set ruby to ruby21 as per news today I have problems when doing emerge -uDN world. Lots of ruby pckgs are not emerged because they need ruby20. Gerard.
libcaca seems to compile fine gainst newer ruby versions too. Not sure why this was pinned to ruby 2.0
Building with USE="-ncurses" went fine. So I noticed the problem is recent versions of ncurses.
The solution is to add -ltinfow together with -lncursesw in the makefile
(In reply to Alessandro Barbieri from comment #7) > The solution is to add -ltinfow together with -lncursesw in the makefile Also having this problem, and Alessandro Barbieri's solution works. I created the file /etc/portage/env/libcaca-fix.conf containing this line: LDFLAGS="${LDFLAGS} -ltinfow" Then I added this to my /etc/portage/package.env: media-libs/libcaca libcaca-fix.conf Now media-libs/libcaca compiles properly.
(In reply to Red from comment #8) > (In reply to Alessandro Barbieri from comment #7) > > The solution is to add -ltinfow together with -lncursesw in the makefile > > Also having this problem, and Alessandro Barbieri's solution works. > > I created the file /etc/portage/env/libcaca-fix.conf containing this line: > > LDFLAGS="${LDFLAGS} -ltinfow" > > Then I added this to my /etc/portage/package.env: > > media-libs/libcaca libcaca-fix.conf > > Now media-libs/libcaca compiles properly. Did it and now it builds fine. Thanks! I tried to add a patch, but ebuild uses EAPI=5 and doesn't let to add user patches.
See bug 708306 for the same problem occurring with net-dns/dnstop
Is it going to be fixed up in the repository on main branch? Thank you
*** Bug 700496 has been marked as a duplicate of this bug. ***
I cannot reproduce the issue. I am tempted to close this bug.
(In reply to Red from comment #8) > (In reply to Alessandro Barbieri from comment #7) > > The solution is to add -ltinfow together with -lncursesw in the makefile > > Also having this problem, and Alessandro Barbieri's solution works. > > I created the file /etc/portage/env/libcaca-fix.conf containing this line: > > LDFLAGS="${LDFLAGS} -ltinfow" > > Then I added this to my /etc/portage/package.env: > > media-libs/libcaca libcaca-fix.conf > > Now media-libs/libcaca compiles properly. I just reproduced if with media-libs/libcaca-0.99_beta19-r1 This solution worked
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3fa25c71ca75f3f5353813553b61bd5c934dcad8 commit 3fa25c71ca75f3f5353813553b61bd5c934dcad8 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-03-01 17:33:10 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-03-01 17:33:38 +0000 media-libs/libcaca: modernise ebuild, fix ncurses linkage Closes: https://bugs.gentoo.org/601902 Signed-off-by: Sam James <sam@gentoo.org> .../files/libcaca-0.99_beta18-fix-tests.patch | 12 +- .../files/libcaca-0.99_beta18-latex_hacks.patch | 4 +- media-libs/libcaca/libcaca-0.99_beta19-r2.ebuild | 167 +++++++++++++++++++++ 3 files changed, 175 insertions(+), 8 deletions(-)
I have no idea how only some people can reproduce this, but hey. The fix I've committed should work now.