Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/libmbus: switch to git repo
@ 2025-07-25 18:46 Florian Larysch
  2025-07-28 20:52 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 7+ messages in thread
From: Florian Larysch @ 2025-07-25 18:46 UTC (permalink / raw)
  To: buildroot; +Cc: Florian Larysch

www.rscada.se has been offline for a long time, causing build failures.
However, there is an official[1] GitHub repo. This also seems to be
where new releases are happening rather than the old site.

Switch to git for fetching the source code. Unlike the tarball,
the repo only ships partial autotools files (Makefile.in is missing, for
example), so we need to do an autoreconf, which also requires a patch
for modern Automake versions.

[1] https://web.archive.org/web/20250122102111/http://www.rscada.se/libmbus/index.php

Fixes: https://autobuild.buildroot.org/results/11d/11d9e371033f7cdd3b24a9c1feb85b6aa921f96a
Signed-off-by: Florian Larysch <fl@n621.de>
---
 ...with-automake-1.11-and-should-work-w.patch | 28 +++++++++++++++++++
 package/libmbus/libmbus.hash                  |  2 +-
 package/libmbus/libmbus.mk                    |  3 +-
 3 files changed, 31 insertions(+), 2 deletions(-)
 create mode 100644 package/libmbus/0001-fix-build-error-with-automake-1.11-and-should-work-w.patch

diff --git a/package/libmbus/0001-fix-build-error-with-automake-1.11-and-should-work-w.patch b/package/libmbus/0001-fix-build-error-with-automake-1.11-and-should-work-w.patch
new file mode 100644
index 0000000000..fca78d1fe4
--- /dev/null
+++ b/package/libmbus/0001-fix-build-error-with-automake-1.11-and-should-work-w.patch
@@ -0,0 +1,28 @@
+From 991b26d2de1d91cddf994b724e3e4543d8cf6529 Mon Sep 17 00:00:00 2001
+From: Stefan Wahren <info@lategoodbye.de>
+Date: Thu, 4 Apr 2013 21:20:37 +0200
+Subject: [PATCH] fix build error with automake 1.11 and should work with automake 1.12 too
+
+Upstream: https://github.com/rscada/libmbus/commit/450ac7b9f4b1ddfe128b5334cf1855b0967153a3
+[Florian: Rebased to 0.8.0]
+Signed-off-by: Florian Larysch <fl@n621.de>
+---
+ configure.ac | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/configure.ac b/configure.ac
+index 461b616..d65df01 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -14,6 +14,8 @@ AM_INIT_AUTOMAKE([-Wall -Werror foreign])
+ AC_CONFIG_MACRO_DIR([m4])
+ 
+ AM_PROG_LIBTOOL
++# fix for automake 1.11 & 1.12
++m4_ifdef([AM_PROG_AR], [AM_PROG_AR])
+ 
+ LDFLAGS="$LDFLAGS -version-info 0:8:0"
+ 
+-- 
+2.50.1
+
diff --git a/package/libmbus/libmbus.hash b/package/libmbus/libmbus.hash
index 493bab5820..f83c8460e0 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  9ae68426ba6ffb2818943741e3afa79448d7328446853added418a101b5ea53e  libmbus-0.8.0.tar.gz
 sha256  ea171a4ae443eca7186f564db2c3cc8b84c1ac343f227f92cd52ec6a948f4a74  COPYING
diff --git a/package/libmbus/libmbus.mk b/package/libmbus/libmbus.mk
index 61f797b5b9..4a27700570 100644
--- a/package/libmbus/libmbus.mk
+++ b/package/libmbus/libmbus.mk
@@ -5,9 +5,10 @@
 ################################################################################
 
 LIBMBUS_VERSION = 0.8.0
-LIBMBUS_SITE = http://www.rscada.se/public-dist
+LIBMBUS_SITE = $(call github,rscada,libmbus,$(LIBMBUS_VERSION))
 LIBMBUS_INSTALL_STAGING = YES
 LIBMBUS_LICENSE = BSD-3-Clause
 LIBMBUS_LICENSE_FILES = COPYING
+LIBMBUS_AUTORECONF = YES
 
 $(eval $(autotools-package))
-- 
2.50.1

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-08-29 12:01 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-25 18:46 [Buildroot] [PATCH 1/1] package/libmbus: switch to git repo Florian Larysch
2025-07-28 20:52 ` Thomas Petazzoni via buildroot
2025-07-28 21:20   ` Florian Larysch
2025-08-10 18:00     ` Romain Naour via buildroot
2025-08-10 18:17       ` Florian Larysch
2025-08-24 14:41         ` Romain Naour via buildroot
2025-08-29 12:01           ` Florian Larysch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox