From d590c2c9398bce36efe042233054a2c6b75fcad0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Szymanski?= Date: Thu, 30 Nov 2023 09:33:40 +0100 Subject: [PATCH] package/libusb-compat: fix hash MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Upstream re-released the v0.1.8 tarballs with autotools related stuff. [1] That makes the hash test to fail: ERROR: while checking hashes from package/libusb-compat//libusb-compat.hash ERROR: libusb-compat-0.1.8.tar.bz2 has wrong sha256 hash: ERROR: expected: 698c76484f3dec1e0175067cbd1556c3021e94e7f2313ae3ea6a66d900e00827 ERROR: got : b692dcf674c070c8c0bee3c8230ce4ee5903f926d77dc8b968a4dd1b70f9b05c ERROR: Incomplete download, or man-in-the-middle (MITM) attack Update the hash and drop LIBUSB_COMPAT_AUTORECONF. [1] https://github.com/libusb/libusb-compat-0.1/issues/28#issuecomment-1759400548 [Peter: use .tar.gz to not conflict with s.b.o] Signed-off-by: Sébastien Szymanski Signed-off-by: Peter Korsgaard --- package/libusb-compat/libusb-compat.hash | 2 +- package/libusb-compat/libusb-compat.mk | 4 ---- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/package/libusb-compat/libusb-compat.hash b/package/libusb-compat/libusb-compat.hash index a198e76058..b22fa5434d 100644 --- a/package/libusb-compat/libusb-compat.hash +++ b/package/libusb-compat/libusb-compat.hash @@ -1,3 +1,3 @@ # Locally computed: -sha256 698c76484f3dec1e0175067cbd1556c3021e94e7f2313ae3ea6a66d900e00827 libusb-compat-0.1.8.tar.bz2 +sha256 d199c173fd3cd9d27c7f4bb6608befc7eb761984e6664da7d9d4386ff66fe6fc libusb-compat-0.1.8.tar.gz sha256 5df07007198989c622f5d41de8d703e7bef3d0e79d62e24332ee739a452af62a COPYING diff --git a/package/libusb-compat/libusb-compat.mk b/package/libusb-compat/libusb-compat.mk index d49b753670..b54dbded27 100644 --- a/package/libusb-compat/libusb-compat.mk +++ b/package/libusb-compat/libusb-compat.mk @@ -6,7 +6,6 @@ LIBUSB_COMPAT_VERSION_MAJOR = 0.1 LIBUSB_COMPAT_VERSION = $(LIBUSB_COMPAT_VERSION_MAJOR).8 -LIBUSB_COMPAT_SOURCE = libusb-compat-$(LIBUSB_COMPAT_VERSION).tar.bz2 LIBUSB_COMPAT_SITE = https://github.com/libusb/libusb-compat-0.1/releases/download/v$(LIBUSB_COMPAT_VERSION) LIBUSB_COMPAT_DEPENDENCIES = host-pkgconf libusb HOST_LIBUSB_COMPAT_DEPENDENCIES = host-pkgconf host-libusb @@ -14,9 +13,6 @@ LIBUSB_COMPAT_INSTALL_STAGING = YES LIBUSB_COMPAT_CONFIG_SCRIPTS = libusb-config LIBUSB_COMPAT_LICENSE = LGPL-2.1+ LIBUSB_COMPAT_LICENSE_FILES = COPYING -# 0.1.8 tarball was released without configure script by upstream -# discussed here: https://github.com/libusb/libusb-compat-0.1/issues/28 -LIBUSB_COMPAT_AUTORECONF = YES ifeq ($(BR2_STATIC_LIBS),) LIBUSB_COMPAT_CONF_ENV += \