From: Yann E. MORIN Date: Tue, 16 Dec 2014 18:43:19 +0100 Subject: [Buildroot] [PATCH v2 2/3] iprutils: Don't include host headers In-Reply-To: <878uianhlj.fsf@dell.be.48ers.dk> References: <1418427034-13080-1-git-send-email-romain.naour@openwide.fr> <1418427034-13080-2-git-send-email-romain.naour@openwide.fr> <878uianhlj.fsf@dell.be.48ers.dk> Message-ID: <20141216174319.GB4192@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Peter, Romain, All, On 2014-12-14 20:42 +0100, Peter Korsgaard spake thusly: > >>>>> "Romain" == Romain Naour writes: > > > Use ncurses5-config to find ncurses headers. > > Fixes: > > ERROR: unsafe header/library path used in cross-compilation: '/usr/include/ncurses' > > > Signed-off-by: Romain Naour > > --- > > v2: use ncurses5-config to find ncurses headers > > instead of overwriting INCLUDEDIR > > > ...n-t-include-host-headers-when-cross-compi.patch | 26 ++++++++++++++++++++++ > > 1 file changed, 26 insertions(+) > > create mode 100644 package/iprutils/0004-Don-t-include-host-headers-when-cross-compi.patch > > > diff --git a/package/iprutils/0004-Don-t-include-host-headers-when-cross-compi.patch b/package/iprutils/0004-Don-t-include-host-headers-when-cross-compi.patch > > new file mode 100644 > > index 0000000..bca5ec0 > > --- /dev/null > > +++ b/package/iprutils/0004-Don-t-include-host-headers-when-cross-compi.patch > > @@ -0,0 +1,26 @@ > > +From 0c42685f45b9f01944a64e36cc6aee8192b622c2 Mon Sep 17 00:00:00 2001 > > +From: Romain Naour > > +Date: Sat, 13 Dec 2014 00:14:19 +0100 > > +Subject: [PATCH 1/1] iprutils: Don't include host headers when cross-compiling > > + > > +Signed-off-by: Romain Naour > > +--- > > + Makefile | 2 +- > > + 1 file changed, 1 insertion(+), 1 deletion(-) > > + > > +diff --git a/Makefile b/Makefile > > +index 18cea94..a4e702a 100644 > > +--- a/Makefile > > ++++ b/Makefile > > +@@ -4,7 +4,7 @@ > > + # materials are made available under the terms of the > > + # Common Public License v1.0 which accompanies this distribution. > > + > > +-INCLUDEDIR = -I. -I/usr/include/ncurses > > ++INCLUDEDIR = -I. `ncurses5-config --cflags` > > Thanks, but this doesn't work in the context of Buildroot. We want to > use $(STAGING_DIR)/usr/bin/ncurses5-config, but that isn't in the PATH > (and shouldn't be as it may contain binaries for the target). > > I know Thomas wanted you to do this as an upstreamable patch, but it > would require either introducing a way of overriding what ncurses-config > script to run or the output of the command. What about: INCLUDEDIR = -I. `${NCURSES_CONFIG:-ncurses5-config} --cflags` Regards, Yann E. MORIN. > In the mean time I've checked in something like your v1, E.G. simply > override INCLUDEDIR on the make cmdline. > > -- > Bye, Peter Korsgaard > _______________________________________________ > buildroot mailing list > buildroot at busybox.net > http://lists.busybox.net/mailman/listinfo/buildroot -- .-----------------.--------------------.------------------.--------------------. | Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: | | +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ | | +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no | | http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. | '------------------------------^-------^------------------^--------------------'