Skip to contentSkip to conversation

vlan: don't try to include files from ${HOME}/linux/include

PATCH New Dmitry Eremin-Solenikov 1 participant 1 message Jan 15, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vlan: don't try to include files from ${HOME}/linux/include

vlan sources explicitly adds ~/linux/include to compiler include path. If that directory does exist, this leads to various issues. Drop this explicit exclude path.

---
 .../vlan/vlan-1.9/no-HOME-includes.patch           | 22 ++++++++++++++++++++++
 .../recipes-connectivity/vlan/vlan_1.9.bb          |  3 ++-
 2 files changed, 24 insertions(+), 1 deletion(-)
 create mode 100644 meta-networking/recipes-connectivity/vlan/vlan-1.9/no-HOME-includes.patch
meta-networking/recipes-connectivity/vlan/vlan-1.9/no-HOME-includes.patch new file +22 -0
new file mode 100644
index 0000000..b7ab7d9
@@ -0,0 +1,22 @@
+From: Dmitry Eremin-Solenikov <[email protected]>
+Subject: vlan: do not include ${HOME}/linux/include dir
+
+~/linux/include dir may exist and so will be added to include path
+in front of sanitized kernel headers in OE chroot. Drop this include
+option.
+
+Upstream-Status: not-applicable
+
+Index: vlan/MakeInclude
+===================================================================
+--- vlan.orig/MakeInclude
++++ vlan/MakeInclude
+@@ -16,7 +16,7 @@ ifeq "${PLATFORM}" ""
+ endif
+ 
+ ## You may need to change this linux/include part.
+-CCFLAGS = -g -D_GNU_SOURCE -Wall -I${HOME}/linux/include
++CCFLAGS = -g -D_GNU_SOURCE -Wall
+ LDLIBS = # -lm #-lnsl # -lsocket
+ 
+ ARM_TC_BIN = ${HOME}/Intrinsyc/bin
meta-networking/recipes-connectivity/vlan/vlan_1.9.bb +2 -1
index 2c4f157..d980a47 100644
@@ -2,7 +2,8 @@ SUMMARY = "VLAN provides vconfig utility"
 LICENSE = "GPLv2"
 LIC_FILES_CHKSUM = "file://vconfig.c;md5=293ef69c4e88434d37a5ee577a5288cb"
 
-SRC_URI = "http://${BPN}.sourcearchive.com/downloads/${PV}-3ubuntu9/${BPN}_${PV}.orig.tar.gz"
+SRC_URI = "http://${BPN}.sourcearchive.com/downloads/${PV}-3ubuntu9/${BPN}_${PV}.orig.tar.gz \
+           file://no-HOME-includes.patch"
 
 SRC_URI[md5sum] = "5f0c6060b33956fb16e11a15467dd394"
 SRC_URI[sha256sum] = "3b8f0a1bf0d3642764e5f646e1f3bbc8b1eeec474a77392d9aeb4868842b4cca"
Signature · 1 line
2.1.4