bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Warning: "/usr/include/ncursesw" is unsafe for cross-compilation


From: Joakim Tjernlund
Subject: Re: Warning: "/usr/include/ncursesw" is unsafe for cross-compilation
Date: Sun, 14 Sep 2014 15:57:04 +0200

Thomas Dickey <address@hidden> wrote on 2014/09/13 23:52:52:
> 
> On Fri, Sep 12, 2014 at 09:52:10AM +0200, Joakim Tjernlund wrote:
> > In Gentoo[1] one can see this warning when cross building ncurses with 

> > unicode support:
> >   cc1: warning: include location "/usr/include/ncursesw" is unsafe for 

> > cross-compilation [-Wpoison-system-directories]
> > This is because ncurses adds -I\${includedir} to CPPFLAGS, simply 
removing 
> 
> Actually, the --includedir option is used to override the program's 
sense
> of where the essential system headers are - if they are not in the 
default
> location used by the compiler.

--includedir is where the include files should be INSTALLED, not where 
system headers are.

> 
> Setting the option to point to the default location - or as shown in the 
bug report,
> to a redundant location - is pointless.

not so, it is set to where Gentoo wants to have ncursesw headers to be 
installed.
Using that to search for include files is just plain wrong. The first time 
you build ncurses
there is no files there at all.

> 
> For cross-compiling, there are some valid issues with the sample scripts 
which I use
> for making packages.  However, there has been no feedback that I recall 
from any packager
> regarding those scripts, so I have not discussed those issues (they're 
simply to-do items
> on my list (>1500 items...).

Ouch, that is some list

> 
> > this makes it build
> > without this warning.
> 
> sometimes.

hmm, if there is some cross build fallout from removing includedir from 
CPPFLAGS that would have
to be fixed some other way.

> 
> > [1] https://bugs.gentoo.org/show_bug.cgi?id=522586
> > 
> >    Jocke
> > 
> > PS.
> >     Why are there no proper releases of ncurses? I can just find a lot 
of patches
> 
> I intend doing a regular release when I'm done with the MinGW port.
> (Packagers can pick up the patches, of course - even Gentoo).

Sure, but trying to understand what each change do is much harder when you 
only got
a patch containing many different changes.

> 
> >     Is the a public repo somewhere?
> 
> Someone keeps a git repository, as noted here:
> 
>    https://lists.gnu.org/archive/html/bug-ncurses/2010-07/msg00021.html

This collects you patch files into one coherent src tree, much better than 
loose patch files.
It is not a replacement for a repo where one can follow each logical 
change in a commit though.

 Jocke



reply via email to

[Prev in Thread] Current Thread [Next in Thread]