net/click: update to today's git, add a fix patch.
authorAlexandros C. Couloumbis <alex@ozo.com>
Wed, 20 Oct 2010 16:20:17 +0000 (16:20 +0000)
committerAlexandros C. Couloumbis <alex@ozo.com>
Wed, 20 Oct 2010 16:20:17 +0000 (16:20 +0000)
SVN-Revision: 23550

net/click/Makefile
net/click/patches/110-multithread_fix.patch [new file with mode: 0644]

index 95d2256efa091193c51eda8075f7a62d3aa81b67..ef48d799ded67330b8087f9af2e21fa12bc9d72d 100644 (file)
@@ -8,16 +8,16 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=click
-PKG_VERSION:=20101002
+PKG_VERSION:=20101020
 PKG_RELEASE:=1
-PKG_REV:=04f9a6ea146793881caa6b1721872a92d8c2ddcf
+PKG_REV:=8f521a2dcd58ea8205b3b6070be605a21fb9154b
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
 PKG_SOURCE_URL:=git://read.cs.ucla.edu/git/click
 PKG_SOURCE_PROTO:=git
 PKG_SOURCE_VERSION:=$(PKG_REV)
 PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
-PKG_MD5SUM:=e2f144265b5b61804b0634bf567bee5b
+PKG_MD5SUM:=c3cba1c923d0a034cc518720b5ba7b40
 
 include $(INCLUDE_DIR)/package.mk
 
@@ -39,18 +39,11 @@ TARGET_CXXFLAGS += "-static -O2 -MD"
 define Build/Configure
        (cd $(PKG_BUILD_DIR); \
                rm -rf config.{cache,status} ; \
-               "./configure \
-                       --prefix=/usr \
-                       --enable-userlevel \
-                       --enable-wifi \
-                       --enable-fixincludes \
-                       --disable-linuxmodule" ; \
-               rm -rf config.{cache,status} ; \
                ./configure \
                        --prefix=/usr \
                        --target=$(GNU_TARGET_NAME) \
-                       --host=$(GNU_TARGET_NAME) \
-                       --build=$(GNU_HOST_NAME) \
+                       --host=$(GNU_HOST_NAME) \
+                       --build=$(GNU_BUILD_NAME) \
                        --enable-tools=mixed \
                        --enable-userlevel \
                        --enable-wifi \
diff --git a/net/click/patches/110-multithread_fix.patch b/net/click/patches/110-multithread_fix.patch
new file mode 100644 (file)
index 0000000..b875758
--- /dev/null
@@ -0,0 +1,12 @@
+--- a/lib/master.cc
++++ b/lib/master.cc
+@@ -409,7 +409,9 @@ Master::process_pending(RouterThread *th
+     while (Task *t = Task::pending_to_task(my_pending)) {
+       my_pending = t->_pending_nextptr;
+       t->_pending_nextptr = 0;
++# if HAVE_MULTITHREAD
+       click_master_mb();
++# endif
+       t->process_pending(thread);
+     }
+ }