From e42b3de3b1ccd41ef1907a791a7d3792d201c0be Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Sat, 22 Nov 2025 22:12:23 +0100 Subject: [PATCH] package/libmbus: bump version to 0.9.0 Release notes: https://github.com/rscada/libmbus/blob/0.9.0/release_notes.txt Downloading the source tarball is broken since at least Oct 30th, 2024 as reported by the buildroot autobuilders: https://autobuild.buildroot.net/?reason=libmbus-0.8.0&step=50&start=50 Switching to the github helper provides the correct source code but the tarball downloaded has a different hash. A quick search did not provide alternative download locations for the original tarball libmbus-0.8.0.tar.gz. To solve the broken build we do not only switch _SITE to github but also bump the package to 0.9.0 and add autoreconf which needs two directories being created in _POST_PATCH_HOOKS. One missing directory was already reported upstream: https://github.com/rscada/libmbus/issues/179 Updated license hash due to upstream commit: https://github.com/rscada/libmbus/commit/ab8919136d3cabb943b1cbdd4d6e2f7eea4b8f3f Fixes: https://autobuild.buildroot.net/results/91a/91a82dc73bf87cf1969cd6a2ddea1809ab9a1613/ Signed-off-by: Bernd Kuhls [Julien: change release notes url to use tag] Signed-off-by: Julien Olivain --- package/libmbus/libmbus.hash | 4 ++-- package/libmbus/libmbus.mk | 12 ++++++++++-- 2 files changed, 12 insertions(+), 4 deletions(-) diff --git a/package/libmbus/libmbus.hash b/package/libmbus/libmbus.hash index 493bab5820..212ae9ddef 100644 --- a/package/libmbus/libmbus.hash +++ b/package/libmbus/libmbus.hash @@ -1,3 +1,3 @@ # Locally calculated -sha256 9fca42592da0ba75df66c6f885a4dbfa916d23e65e3d1ce6e38d940d2a2719a4 libmbus-0.8.0.tar.gz -sha256 ea171a4ae443eca7186f564db2c3cc8b84c1ac343f227f92cd52ec6a948f4a74 COPYING +sha256 89fadb9074f5f719b2988cf30af1f8ced3e40f9f499b5b9047f8f33f876cce2d libmbus-0.9.0.tar.gz +sha256 034b36d855501ea9c5588f4753335d08757149a02faf1d61baa9a6d861be4e3a COPYING diff --git a/package/libmbus/libmbus.mk b/package/libmbus/libmbus.mk index 61f797b5b9..65287b083d 100644 --- a/package/libmbus/libmbus.mk +++ b/package/libmbus/libmbus.mk @@ -4,10 +4,18 @@ # ################################################################################ -LIBMBUS_VERSION = 0.8.0 -LIBMBUS_SITE = http://www.rscada.se/public-dist +LIBMBUS_VERSION = 0.9.0 +LIBMBUS_SITE = $(call github,rscada,libmbus,$(LIBMBUS_VERSION)) LIBMBUS_INSTALL_STAGING = YES LIBMBUS_LICENSE = BSD-3-Clause LIBMBUS_LICENSE_FILES = COPYING +# github tarball does not include configure +LIBMBUS_AUTORECONF = YES +# Autoreconf is missing some directories +define LIBMBUS_CREATE_DIRS + mkdir -p $(@D)/libltdl + mkdir -p $(@D)/m4 +endef +LIBMBUS_POST_PATCH_HOOKS += LIBMBUS_CREATE_DIRS $(eval $(autotools-package))