Skip to contentSkip to conversation

libusb-compat: upgrade 0.1.5 -> 0.1.7

PATCH New Andreas M?ller 1 participant 2 messages May 14, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 libusb-compat: upgrade 0.1.5 -> 0.1.7

They moved to github

---
 .../0001-usb.h-Include-sys-types.h.patch        | 14 ++++++--------
 ...b-compat_0.1.5.bb => libusb-compat_0.1.7.bb} | 17 ++++++++---------
 2 files changed, 14 insertions(+), 17 deletions(-)
 rename meta-oe/recipes-support/libusb/{libusb-compat_0.1.5.bb => libusb-compat_0.1.7.bb} (70%)
meta-oe/recipes-support/libusb/libusb-compat/0001-usb.h-Include-sys-types.h.patch +6 -8
index b88440dec..f4f759c85 100644
@@ -1,4 +1,4 @@
-From 340f911f9e3f4ff6b01682c5341c959060782af2 Mon Sep 17 00:00:00 2001
+From 840795dcb48214b74cfde75e7ce5e8a1a6c64a46 Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Thu, 2 Apr 2015 19:18:45 -0700
 Subject: [PATCH] usb.h: Include sys/types.h
@@ -8,23 +8,21 @@ We need the definitions for things like u_intX_t
 Upstream-Status: Pending
 
 Signed-off-by: Khem Raj <[email protected]>
+
 ---
  libusb/usb.h | 2 ++
  1 file changed, 2 insertions(+)
 
 diff --git a/libusb/usb.h b/libusb/usb.h
-index 84e730f..caffae2 100644
+index fa0e6c6..4e88eb8 100644
 --- a/libusb/usb.h
 +++ b/libusb/usb.h
-@@ -31,6 +31,8 @@
- 
- #include <dirent.h>
+@@ -45,6 +45,8 @@ typedef unsigned __int32  uint32_t;
+ #include <stdint.h>
+ #endif
  
 +#include <sys/types.h>
 +
  /*
   * USB spec information
   *
--- 
-2.1.4
-
meta-oe/recipes-support/libusb/libusb-compat_0.1.7.bb renamed from meta-oe/recipes-support/libusb/libusb-compat_0.1.5.bb +8 -9
similarity index 70%
rename from meta-oe/recipes-support/libusb/libusb-compat_0.1.5.bb
rename to meta-oe/recipes-support/libusb/libusb-compat_0.1.7.bb
index 1ddbe238f..21fa478b6 100644
@@ -18,15 +18,14 @@ BBCLASSEXTEND = "native nativesdk"
 
 PE = "1"
 
-SRC_URI = "${SOURCEFORGE_MIRROR}/libusb/libusb-compat-${PV}.tar.bz2 \
-           file://0001-usb.h-Include-sys-types.h.patch \
-          "
-
-SRC_URI[md5sum] = "2780b6a758a1e2c2943bdbf7faf740e4"
-SRC_URI[sha256sum] = "404ef4b6b324be79ac1bfb3d839eac860fbc929e6acb1ef88793a6ea328bc55a"
-
-UPSTREAM_CHECK_URI = "http://sourceforge.net/projects/libusb/files/libusb-compat-0.1/"
-UPSTREAM_CHECK_REGEX = "/libusb-compat-(?P<pver>(\d+[\.\-_]*)+)/$"
+SRC_URI = " \
+    git://github.com/libusb/libusb-compat-0.1.git;protocol=https \
+    file://0001-usb.h-Include-sys-types.h.patch \
+"
+SRCREV = "4a27760ec5954ec8605e052a3207afbe0979eeef"
+S = "${WORKDIR}/git"
+
+UPSTREAM_CHECK_URI = "https://github.com/libusb/libusb-compat-0.1/releases"
 
 BINCONFIG = "${bindir}/libusb-config"
 
Signature · 1 line
2.21.1
#1 lore raw

PATCH 2/2 hidapi: upgrade 0.7.99+ -> 0.9.0

---
 meta-oe/recipes-support/hidapi/hidapi_git.bb | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)
meta-oe/recipes-support/hidapi/hidapi_git.bb +7 -6
index a34797ff5..5afc4596e 100644
@@ -1,15 +1,16 @@
-SUMMARY = "Multi-platform library to interface with USB and Bluetooth HID-Class devices"
+SUMMARY = "A Simple library for communicating with USB and Bluetooth HID devices"
 AUTHOR = "Alan Ott"
 HOMEPAGE = "http://www.signal11.us/oss/hidapi/"
 SECTION = "libs"
+
 LICENSE = "BSD-3-Clause | GPLv3"
 LIC_FILES_CHKSUM = "file://LICENSE.txt;md5=7c3949a631240cb6c31c50f3eb696077"
+
 DEPENDS = "libusb udev"
-PV = "0.7.99+0.8.0-rc1+git${SRCPV}"
 
-SRCREV = "d17db57b9d4354752e0af42f5f33007a42ef2906"
-SRC_URI = "git://github.com/signal11/hidapi.git"
+inherit autotools pkgconfig
 
+SRC_URI = "git://github.com/libusb/hidapi.git;protocol=https"
+PV = "0.9.0"
+SRCREV = "7da5cc91fc0d2dbe4df4f08cd31f6ca1a262418f"
 S = "${WORKDIR}/git"
-
-inherit autotools pkgconfig
Signature · 1 line
2.21.1