Permalink
Browse files

FL-525 - Openvswitch kernel-3.2 debian patch

  • Loading branch information...
1 parent 91129ef commit 8c2e4b2801c24dfd1f1e34dcd0e03e7c993bc25f Dan Molik committed May 17, 2013
View
19 net-misc/openvswitch/files/openvswitch_linux32.patch
@@ -0,0 +1,19 @@
+---
+ datapath/linux/compat/include/linux/etherdevice.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/datapath/linux/compat/include/linux/etherdevice.h b/datapath/linux/
+index 7f04c96..3a1400a 100644
+--- a/datapath/linux/compat/include/linux/etherdevice.h
++++ b/datapath/linux/compat/include/linux/etherdevice.h
+@@ -9,7 +9,7 @@ static inline void eth_hw_addr_random(struct net_device *dev)
+ {
+ random_ether_addr(dev->dev_addr);
+ }
+-#elif LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0)
++#elif LINUX_VERSION_CODE < KERNEL_VERSION(3,2,0)
+ static inline void eth_hw_addr_random(struct net_device *dev)
+ {
+ dev_hw_addr_random(dev, dev->dev_addr);
+--
+1.7.10.4
View
1 net-misc/openvswitch/openvswitch-1.9.0.ebuild
@@ -46,6 +46,7 @@ pkg_setup() {
src_prepare() {
# Never build kernelmodules, doing this manually
+ epatch "${FILESDIR}"/"${PN}"_linux32.patch
sed -i \
-e '/^SUBDIRS/d' \
datapath/Makefile.in || die "sed failed"

0 comments on commit 8c2e4b2

Please sign in to comment.