owfs: update to the latest version (v3.2p2) 6471/head
authorJosef Schlehofer <pepe.schlehofer@gmail.com>
Sat, 14 Jul 2018 11:26:11 +0000 (13:26 +0200)
committerJosef Schlehofer <josef.schlehofer@nic.cz>
Mon, 16 Jul 2018 11:06:13 +0000 (13:06 +0200)
Changes:
Makefile now downloads files from Github instead of SourceForge.
Changed URL, because they decided to leave SourceForge and use Github.
Added dependency libavahi-client, otherwise it doesn't build.
Dropped unnecessary patches, because both were upstreamed.
Signed-off-by: Josef Schlehofer <pepe.schlehofer@gmail.com>
utils/owfs/Makefile
utils/owfs/patches/100-fix-netlink-w1-status-message-detection.patch [deleted file]
utils/owfs/patches/101-fix-no-reset-routine-segfault.patch [deleted file]

index 37a61c6134b9bad4d2c6afea5d61cfa800c68cf5..4cd9bf238fa2b10570acc714ed7a4dfc6617c6c3 100644 (file)
@@ -8,12 +8,13 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=owfs
-PKG_VERSION:=2.9p5
+PKG_VERSION:=3.2p2
 PKG_RELEASE:=1
 
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
-PKG_SOURCE_URL:=@SF/$(PKG_NAME)
-PKG_HASH:=f7e11bae6cd29d58726e6d29b297834e5656d6069a407d798067ae25cb0812ea
+PKG_SOURCE_URL:=https://codeload.github.com/owfs/owfs/tar.gz/v$(PKG_VERSION)?
+PKG_HASH:=904ee3ab1d80e9d3461b310f0cc78b2175e24aa0075edc4f7f92371c667d0bb6
+
 PKG_MAINTAINER:=Jo-Philipp Wich <jo@mein.io>
 PKG_LICENSE:=GPL-2.0
 
@@ -36,7 +37,7 @@ include $(INCLUDE_DIR)/package.mk
 
 define Package/owfs/Default
   TITLE:=OWFS (1-Wire File System)
-  URL:=http://owfs.sourceforge.net/
+  URL:=https://github.com/owfs/owfs
   SECTION:=net
   CATEGORY:=Network
   SUBMENU:=Filesystem
@@ -85,7 +86,8 @@ define Package/libow
   DEPENDS:= \
     +libpthread \
     +LIBOW_MASTER_USB:libusb-compat \
-    +LIBOW_MASTER_W1:kmod-w1
+    +LIBOW_MASTER_W1:kmod-w1 \
+    +libavahi-client
   TITLE:=OWFS - common shared library
 endef
 
diff --git a/utils/owfs/patches/100-fix-netlink-w1-status-message-detection.patch b/utils/owfs/patches/100-fix-netlink-w1-status-message-detection.patch
deleted file mode 100644 (file)
index 251065f..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-AaAA
---- a/module/owlib/src/c/ow_w1_parse.c
-+++ b/module/owlib/src/c/ow_w1_parse.c
-@@ -237,7 +237,7 @@ enum Netlink_Read_Status W1_Process_Resp
-                       owfree(nlp.nlm) ;
-                       return nrs_nodev ;
-               }
--              if ( nrs_callback == NULL ) { // status message
-+              if ( nrs_callback == NULL ) { // bus reset
-                       owfree(nlp.nlm) ;
-                       return nrs_complete ;
-               }
-@@ -246,7 +246,7 @@ enum Netlink_Read_Status W1_Process_Resp
-               nrs_callback( &nlp, v, pn ) ;
-               LEVEL_DEBUG("Called nrs_callback");
-               owfree(nlp.nlm) ;
--              if ( nlp.cn->ack != 0 ) {
-+              if ( nlp.cn->seq != nlp.cn->ack ) {
-                       if ( nlp.w1m->type == W1_LIST_MASTERS ) {
-                               continue ; // look for more data
-                       }
-@@ -254,7 +254,7 @@ enum Netlink_Read_Status W1_Process_Resp
-                               continue ; // look for more data
-                       }
-               }
--              nrs_callback = NULL ; // now look for status message
-+              return nrs_complete ; // status message
-       }
-       return nrs_timeout ;
- }
diff --git a/utils/owfs/patches/101-fix-no-reset-routine-segfault.patch b/utils/owfs/patches/101-fix-no-reset-routine-segfault.patch
deleted file mode 100644 (file)
index 731c4a0..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
---- a/module/owlib/src/c/ow_reset.c
-+++ b/module/owlib/src/c/ow_reset.c
-@@ -21,6 +21,10 @@ RESET_TYPE BUS_reset(const struct parsed
-       struct connection_in * in = pn->selected_connection ;
-       STAT_ADD1_BUS(e_bus_resets, in);
-+      if ( in->iroutines.reset == NO_RESET_ROUTINE ) {
-+              return BUS_RESET_OK;
-+      }
-+
-       switch ( (in->iroutines.reset) (pn) ) {
-       case BUS_RESET_OK:
-               in->reconnect_state = reconnect_ok;     // Flag as good!