Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Yann E. MORIN <yann.morin.1998@free.fr>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] package/sane-backends: remove unsafe headers path
Date: Mon, 19 Jan 2015 23:40:35 +0100	[thread overview]
Message-ID: <20150119224035.GJ4217@free.fr> (raw)
In-Reply-To: <1420905112-31654-1-git-send-email-romain.naour@openwide.fr>

Romain, All,

On 2015-01-10 16:51 +0100, Romain Naour spake thusly:
> Fixes:
> http://autobuild.buildroot.net/results/deb/deb3d45416633b9217d3cc09664273687c809464/
> 
> Signed-off-by: Romain Naour <romain.naour@openwide.fr>

Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

Regards,
Yann E. MORIN.

> ---
> v2: remove entirely "INCLUDES=" line (Thomas Petazzoni)
> ---
>  .../0003-remove-unsafe-headers-path.patch          | 28 ++++++++++++++++++++++
>  package/sane-backends/sane-backends.mk             |  2 ++
>  2 files changed, 30 insertions(+)
>  create mode 100644 package/sane-backends/0003-remove-unsafe-headers-path.patch
> 
> diff --git a/package/sane-backends/0003-remove-unsafe-headers-path.patch b/package/sane-backends/0003-remove-unsafe-headers-path.patch
> new file mode 100644
> index 0000000..29b8d04
> --- /dev/null
> +++ b/package/sane-backends/0003-remove-unsafe-headers-path.patch
> @@ -0,0 +1,28 @@
> +From 3c03e4b81c9de73e57a56029f7f8cda8bec24e91 Mon Sep 17 00:00:00 2001
> +From: Romain Naour <romain.naour@openwide.fr>
> +Date: Sat, 10 Jan 2015 15:48:21 +0100
> +Subject: [PATCH] configure.in: remove unsafe headers path
> +
> +Forcing /usr/local/include headers path in CFLAGS is unsafe for
> +cross-compilation.
> +
> +Signed-off-by: Romain Naour <romain.naour@openwide.fr>
> +---
> + configure.in | 1 -
> + 1 file changed, 1 deletion(-)
> +
> +diff --git a/configure.in b/configure.in
> +index a8fc950..93a4b77 100644
> +--- a/configure.in
> ++++ b/configure.in
> +@@ -82,7 +82,6 @@ AM_CONDITIONAL(CROSS_COMPILING, test x$cross_compiling = xyes)
> + dnl ***********************************************************************
> + dnl set compiler/linker flags
> + dnl ***********************************************************************
> +-INCLUDES="${INCLUDES} -I/usr/local/include"
> + AC_SUBST(INCLUDES)
> + SANE_SET_CFLAGS([$is_release])
> + SANE_SET_LDFLAGS
> +-- 
> +1.9.3
> +
> diff --git a/package/sane-backends/sane-backends.mk b/package/sane-backends/sane-backends.mk
> index f8c59e8..bde8e6a 100644
> --- a/package/sane-backends/sane-backends.mk
> +++ b/package/sane-backends/sane-backends.mk
> @@ -10,6 +10,8 @@ SANE_BACKENDS_CONFIG_SCRIPTS = sane-config
>  SANE_BACKENDS_LICENSE = GPLv2+
>  SANE_BACKENDS_LICENSE_FILES = COPYING
>  SANE_BACKENDS_INSTALL_STAGING = YES
> +# 0003-remove-unsafe-headers-path.patch patch configure.in
> +SANE_BACKENDS_AUTORECONF = YES
>  
>  ifeq ($(BR2_PACKAGE_LIBUSB),y)
>  SANE_BACKENDS_DEPENDENCIES += libusb
> -- 
> 1.9.3
> 
> _______________________________________________
> 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.  |
'------------------------------^-------^------------------^--------------------'

  reply	other threads:[~2015-01-19 22:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-10 15:51 [Buildroot] [PATCH v2] package/sane-backends: remove unsafe headers path Romain Naour
2015-01-19 22:40 ` Yann E. MORIN [this message]
2015-02-01 22:17 ` Thomas Petazzoni

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150119224035.GJ4217@free.fr \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox