mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-25 11:30:37 -09:00
package/fwts: bump to version 26.07.00
See release announce [1].
This commit also removes the package patch, which was accepted upstream
in [2]. The comment before "FWTS_AUTORECONF = YES" is changed to
"No configure in tarball", because the patch 0001 is removed, but the
autoreconf is still needed.
[1] https://lists.ubuntu.com/archives/fwts-devel/2026-July/014207.html
[2] 3bf8a5f393
Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
@@ -1,98 +0,0 @@
|
||||
From 35689cd692c4181d4f1faf21bc5f83d59ec70511 Mon Sep 17 00:00:00 2001
|
||||
From: Julien Olivain <ju.o@free.fr>
|
||||
Date: Sat, 16 May 2026 11:03:22 +0200
|
||||
Subject: [PATCH] build: allow disabling -Werror
|
||||
|
||||
BugLink: https://bugs.launchpad.net/fwts/+bug/2152793
|
||||
|
||||
Enforcing "-Werror" in CFLAGS can be helpful from the package
|
||||
development point of view. It can also become problematic for
|
||||
distribution maintainers. When updating compilers, those newer
|
||||
compilers may have different warnings included in "-Wall" or
|
||||
"-Wextra", or their code analysis just improved.
|
||||
|
||||
It is unlikely the fwts developers will update their toolchains
|
||||
at the same pace as other projects. There is a recent example
|
||||
with the release of gcc 16 breaking with fwts V26.03.00. Gcc 16
|
||||
is included in mainstream distributions like Fedora 44 and Arch Linux.
|
||||
|
||||
In order to have smoother toolchain transitions, this commit
|
||||
introduces a new autoconf option "--disable-werror" which will remove
|
||||
the "-Werror" from the CFLAGS. In that case, the rest of the CFLAGS
|
||||
are preserved, which means the warning messages will still be reported,
|
||||
but the build will not fail.
|
||||
|
||||
This commit also preserves the original project behavior, to have
|
||||
"-Werror" enabled by default with a simple "./configure" invocation.
|
||||
|
||||
The motivation of this commit is to upstream a package patch that
|
||||
Buildroot carried over for a decade. See:
|
||||
https://gitlab.com/buildroot.org/buildroot/-/commit/a9a7a05f39a5cf720822a87c9ac6fa9cf27eaa0e
|
||||
|
||||
Upstream: Proposed: https://lists.ubuntu.com/archives/fwts-devel/2026-May/014180.html
|
||||
Signed-off-by: Julien Olivain <ju.o@free.fr>
|
||||
---
|
||||
configure.ac | 5 +++++
|
||||
src/Makefile.am | 2 +-
|
||||
src/lib/src/Makefile.am | 2 +-
|
||||
src/utilities/Makefile.am | 2 +-
|
||||
4 files changed, 8 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/configure.ac b/configure.ac
|
||||
index fbf487c5..62e43d75 100644
|
||||
--- a/configure.ac
|
||||
+++ b/configure.ac
|
||||
@@ -9,6 +9,11 @@
|
||||
LT_INIT
|
||||
AC_C_INLINE
|
||||
AM_PROG_CC_C_O
|
||||
+ AC_ARG_ENABLE([werror],
|
||||
+ AS_HELP_STRING([--disable-werror], [disable use of -Werror]),
|
||||
+ [enable_werror=$enableval], [enable_werror=yes])
|
||||
+ AS_IF([test x$enable_werror = xyes], [WERROR="-Werror"])
|
||||
+ AC_SUBST([WERROR])
|
||||
AC_CHECK_FUNCS([localtime_r])
|
||||
AC_CHECK_FUNCS([dup2])
|
||||
AC_CHECK_FUNCS([getcwd])
|
||||
diff --git a/src/Makefile.am b/src/Makefile.am
|
||||
index a98a75a1..0e7ba401 100644
|
||||
--- a/src/Makefile.am
|
||||
+++ b/src/Makefile.am
|
||||
@@ -12,7 +12,7 @@ AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/acpica/source/compiler \
|
||||
-I$(top_srcdir)/smccc_test \
|
||||
-pthread \
|
||||
- -Wall -Werror -Wextra \
|
||||
+ -Wall $(WERROR) -Wextra \
|
||||
-Wno-address-of-packed-member \
|
||||
-Wfloat-equal -Wmissing-declarations \
|
||||
-Wno-long-long -Wredundant-decls -Wshadow \
|
||||
diff --git a/src/lib/src/Makefile.am b/src/lib/src/Makefile.am
|
||||
index 6534f38f..20b01d1e 100644
|
||||
--- a/src/lib/src/Makefile.am
|
||||
+++ b/src/lib/src/Makefile.am
|
||||
@@ -23,7 +23,7 @@ AM_CPPFLAGS = \
|
||||
-I$(top_srcdir)/src/acpica/source/compiler \
|
||||
-I$(top_srcdir)/smccc_test \
|
||||
-DDATAROOTDIR=\"$(datarootdir)\" \
|
||||
- -Wall -Werror -Wextra \
|
||||
+ -Wall $(WERROR) -Wextra \
|
||||
-Wno-address-of-packed-member
|
||||
|
||||
pkglib_LTLIBRARIES = libfwts.la
|
||||
diff --git a/src/utilities/Makefile.am b/src/utilities/Makefile.am
|
||||
index 92c135d1..76a5cdcc 100644
|
||||
--- a/src/utilities/Makefile.am
|
||||
+++ b/src/utilities/Makefile.am
|
||||
@@ -16,7 +16,7 @@
|
||||
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
#
|
||||
|
||||
-AM_CPPFLAGS = -Wall -Werror -Wextra -DDATAROOTDIR=\"$(datarootdir)\" \
|
||||
+AM_CPPFLAGS = -Wall $(WERROR) -Wextra -DDATAROOTDIR=\"$(datarootdir)\" \
|
||||
-I$(srcdir)/../lib/include
|
||||
|
||||
bin_PROGRAMS = kernelscan
|
||||
--
|
||||
2.54.0
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
# Hash from: https://github.com/fwts/fwts/releases/tag/V26.03.00
|
||||
sha256 368fc4dbfde7f5c551de5d352d2f70f1a4d3aa20d7a7df0d4b162535e6e9cef9 fwts-V26.03.00.tar.gz
|
||||
# Hash from: https://github.com/fwts/fwts/releases/tag/V26.07.00
|
||||
sha256 ccee3375fe905a30311ea45f8baefc10af2517669f724f09f8df788bb8b4cbec fwts-V26.07.00.tar.gz
|
||||
|
||||
# Hash for license file
|
||||
sha256 1ec8cffc8cf213afc5d854027d746c80e638a13b1688f2a352221490c681c54f debian/copyright
|
||||
|
||||
@@ -4,12 +4,12 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
FWTS_VERSION = 26.03.00
|
||||
FWTS_VERSION = 26.07.00
|
||||
FWTS_SOURCE = fwts-V$(FWTS_VERSION).tar.gz
|
||||
FWTS_SITE = https://github.com/fwts/fwts/releases/download/V$(FWTS_VERSION)
|
||||
FWTS_LICENSE = GPL-2.0, LGPL-2.1, Custom
|
||||
FWTS_LICENSE_FILES = debian/copyright
|
||||
# 0001-build-allow-disabling-Werror.patch
|
||||
# No configure in tarball
|
||||
FWTS_AUTORECONF = YES
|
||||
FWTS_CONF_OPTS = --disable-werror
|
||||
FWTS_DEPENDENCIES = host-bison host-flex host-pkgconf libglib2 libbsd \
|
||||
|
||||
Reference in New Issue
Block a user