From 8f2f6cbca0552cc5fcb5775d2ceb994940dd55c8 Mon Sep 17 00:00:00 2001 From: Thomas Perale Date: Mon, 14 Jul 2025 10:17:49 +0200 Subject: [PATCH] package/libesmtp: bump to version v1.1.0-14-g335ee8d to fix build with gcc-14 When building libesmtp on the autobuilder with gcc-14, the following error occurs: /workdir/instance-0/output-1/per-package/libesmtp/host/bin/arc-linux-gcc -Ilibesmtp.so.6.2.0.p -I. -I.. -I/workdir/instance-0/output-1/per-package/libesmtp/host/arc-buildroot-linux-gnu/sysroot/usr/include -fdiagnostics-color=always -Wall -Winvalid-pch -std=c11 -O3 -D_POSIX_C_SOURCE=200809L -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -Os -g0 -D_FORTIFY_SOURCE=2 -fPIC -pthread -MD -MQ libesmtp.so.6.2.0.p/smtp-api.c.o -MF libesmtp.so.6.2.0.p/smtp-api.c.o.d -o libesmtp.so.6.2.0.p/smtp-api.c.o -c ../smtp-api.c ../smtp-api.c: In function 'smtp_version': ../smtp-api.c:1183:7: error: implicit declaration of function 'strlcpy'; did you mean 'strncpy'? [-Wimplicit-function-declaration] 1183 | if (strlcpy (buf, v, len) > len) | ^~~~~~~ | strncpy This error has been fixed upstream in commit [1], but no new release has been made since. This patch update the package version to fetch the latest upstream commit v1.1.0-14-g335ee8d. For the changes, see: - https://github.com/libesmtp/libESMTP/compare/v1.1.0...335ee8d2fa5cb7d30db7b818ec05563ad139ee2f [1] https://github.com/libesmtp/libESMTP/commit/972eb547493357681b1b7012ef20618e6831cfde Fixes: https://autobuild.buildroot.org/results/ced/ceda012506edccda1727904eb3327017b07e27d8 Signed-off-by: Thomas Perale [Julien: - mention gcc-14 as the root cause of the build failure - use "git describe --tags --abbrev=40" format in _VERSION ] Signed-off-by: Julien Olivain (cherry picked from commit 84077c777658d834ba8bb67582707f24d73cb914) Signed-off-by: Thomas Perale --- package/libesmtp/libesmtp.hash | 2 +- package/libesmtp/libesmtp.mk | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package/libesmtp/libesmtp.hash b/package/libesmtp/libesmtp.hash index 596ed4eaca..e13616d8f8 100644 --- a/package/libesmtp/libesmtp.hash +++ b/package/libesmtp/libesmtp.hash @@ -1,4 +1,4 @@ # Locally calculated -sha256 32bc3614ca12d21c7d933f32d43410e8744b6f91fdca7732da9877a385e4e6c3 libesmtp-1.1.0.tar.gz +sha256 144aece0077db6a2bd655d3d9558c714c9defd30a2d52c6e85ed54457d712daf libesmtp-v1.1.0-14-g335ee8d2fa5cb7d30db7b818ec05563ad139ee2f.tar.gz sha256 204d8eff92f95aac4df6c8122bc1505f468f3a901e5a4cc08940e0ede1938994 COPYING.GPL sha256 20c17d8b8c48a600800dfd14f95d5cb9ff47066a9641ddeab48dc54aec96e331 LICENSE diff --git a/package/libesmtp/libesmtp.mk b/package/libesmtp/libesmtp.mk index 6456e83e10..5e0b65ce91 100644 --- a/package/libesmtp/libesmtp.mk +++ b/package/libesmtp/libesmtp.mk @@ -4,12 +4,12 @@ # ################################################################################ -LIBESMTP_VERSION = 1.1.0 -LIBESMTP_SITE = $(call github,libesmtp,libESMTP,v$(LIBESMTP_VERSION)) +LIBESMTP_VERSION = v1.1.0-14-g335ee8d2fa5cb7d30db7b818ec05563ad139ee2f +LIBESMTP_SITE = $(call github,libesmtp,libESMTP,$(LIBESMTP_VERSION)) LIBESMTP_INSTALL_STAGING = YES LIBESMTP_LICENSE = GPL-2.0+ (examples), LGPL-2.1+ (library) LIBESMTP_LICENSE_FILES = COPYING.GPL LICENSE -LIBESMTP_CPE_ID_VALID = YES +LIBESMTP_CPE_ID_VERSION = 1.1.0 ifeq ($(BR2_PACKAGE_OPENSSL),y) LIBESMTP_CONF_OPTS += -Dtls=enabled