The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / sane-backends / 0002-remove-unsafe-headers-path.patch
diff --git a/cirros-testvm/src-cirros/buildroot-2015.05/package/sane-backends/0002-remove-unsafe-headers-path.patch b/cirros-testvm/src-cirros/buildroot-2015.05/package/sane-backends/0002-remove-unsafe-headers-path.patch
new file mode 100644 (file)
index 0000000..6217b0a
--- /dev/null
@@ -0,0 +1,24 @@
+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>
+[Gustavo: update to just patch configure and avoid an autoreconf]
+---
+
+diff -Nura sane-backends-1.0.24.orig/configure sane-backends-1.0.24/configure
+--- sane-backends-1.0.24.orig/configure        2015-05-01 09:51:19.479785064 -0300
++++ sane-backends-1.0.24/configure     2015-05-01 09:51:48.411767378 -0300
+@@ -5192,8 +5192,6 @@
+ fi
+-INCLUDES="${INCLUDES} -I/usr/local/include"
+-
+ if test "${ac_cv_c_compiler_gnu}" = "yes"; then
+   NORMAL_CFLAGS="\