Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 557434 - dev-perl/Curses with >=sys-libs/ncurses-6.0 - Curses.c:199:8: error: unknown type name ‘FIELD’
Summary: dev-perl/Curses with >=sys-libs/ncurses-6.0 - Curses.c:199:8: error: unknown ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Perl team
URL:
Whiteboard:
Keywords: PATCH
: 557474 560250 (view as bug list)
Depends on:
Blocks: ncurses-6
  Show dependency tree
 
Reported: 2015-08-13 09:31 UTC by Bernard Cafarelli
Modified: 2015-09-12 09:35 UTC (History)
5 users (show)

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


Attachments
info (info,6.32 KB, text/plain)
2015-08-14 19:42 UTC, Toralf Förster
Details
dev-perl:Curses-1.320.0:20150814-184715.log (dev-perl:Curses-1.320.0:20150814-184715.log,26.43 KB, text/plain)
2015-08-14 19:42 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,372.63 KB, text/plain)
2015-08-14 19:42 UTC, Toralf Förster
Details
Detect ncurses major version and run the correct -config command. (Curses-1.320.0.ebuild.ncurses_major.patch,875 bytes, patch)
2015-08-15 21:39 UTC, Hank Leininger
Details | Diff
Curses-ncurses6.patch (Curses-ncurses6.patch,919 bytes, patch)
2015-08-21 05:54 UTC, Jeroen Roovers (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bernard Cafarelli gentoo-dev 2015-08-13 09:31:40 UTC
Ebuild calls $(my_curses_version)5-config, which fails with this new major version.

For my rebuild I just edited the ebuild to call [...]6-config, and compilation went fine, so this should probably updated to $major_ncurses-config
Comment 1 Toralf Förster gentoo-dev 2015-08-14 19:42:16 UTC
Created attachment 409024 [details]
info

confirmed here at:
Comment 2 Toralf Förster gentoo-dev 2015-08-14 19:42:19 UTC
Created attachment 409026 [details]
dev-perl:Curses-1.320.0:20150814-184715.log
Comment 3 Toralf Förster gentoo-dev 2015-08-14 19:42:21 UTC
Created attachment 409028 [details]
emerge-history.txt
Comment 4 Hank Leininger 2015-08-15 21:37:50 UTC
Just encountered the same.

Attached is a workaround that determines the major version of ncurses installed, and then calls ncurses${CURSES_MAJOR}-config instead of always ncurses5-config.

With this, I can emerge dev-perl/Curses and 'perl -MCurses -e 1' with sys-libs/ncurses-6.0 was installed.  It should be backwards compatible for sys-libs/ncurses-5.x, but I have not tested that.
Comment 5 Hank Leininger 2015-08-15 21:39:02 UTC
Created attachment 409116 [details, diff]
Detect ncurses major version and run the correct -config command.
Comment 6 Adrian Bassett 2015-08-17 08:03:05 UTC
(In reply to Hank Leininger from comment #5)
> Created attachment 409116 [details, diff] [details, diff]
> Detect ncurses major version and run the correct -config command.

Works for me here (amd64).
Comment 7 SpanKY gentoo-dev 2015-08-18 06:28:39 UTC
*** Bug 557474 has been marked as a duplicate of this bug. ***
Comment 8 SpanKY gentoo-dev 2015-08-18 06:30:15 UTC
Comment on attachment 409116 [details, diff]
Detect ncurses major version and run the correct -config command.

it should be using $(tc-getPKG_CONFIG) instead of executing the config scripts
Comment 9 Jeroen Roovers (RETIRED) gentoo-dev 2015-08-21 05:34:33 UTC
Making a guess for "c-config.h"...
Choosing hints file 'hints/c-linux.ncurses.h'
WARNING: Your Curses form.h file appears to be in the default
system search path, which will not work for us because of
the conflicting Perl form.h file.  This means your 'make' will
probably fail unless you fix this, as described in the INSTALL
file.

Should be quite trivial to fix this one.
Comment 10 Jeroen Roovers (RETIRED) gentoo-dev 2015-08-21 05:54:51 UTC
Created attachment 409712 [details, diff]
Curses-ncurses6.patch

Even more trivial.
Comment 11 Jeroen Roovers (RETIRED) gentoo-dev 2015-08-22 05:16:59 UTC
Fixed without revision bump.
Comment 12 Jeroen Roovers (RETIRED) gentoo-dev 2015-09-12 09:35:59 UTC
*** Bug 560250 has been marked as a duplicate of this bug. ***