From c8f60dff7af44157b460b1873e98de567ebd0d7c Mon Sep 17 00:00:00 2001 From: Bernd Kuhls Date: Sat, 20 Jun 2026 17:02:02 +0200 Subject: [PATCH] package/cifs-utils: remove NO_WERROR hook Buildroot commit 18bd541dd02b153427fb4f010a6426c8e91bef1b added the hook to remove -Werror after upstream added it to CFLAGS in version 5.4: https://git.samba.org/?p=cifs-utils.git;a=commitdiff;h=dc0dd017a856185422d2f3691062737a9e93ecae Upstream however removed -Werror again in version 5.6 https://git.samba.org/?p=cifs-utils.git;a=commitdiff;h=74edf24d9780900f3ce15d2403c6e331b031d454 This version was bumped in buildroot with commit 839546dd3aaff56f26536ea7373978e32563c473 but the NO_WERROR hook was not removed until now. The tarball of version 7.6 does not include Makefile.in anymore which broke the build of the package. As this hook is not needed anymore it is removed. Signed-off-by: Bernd Kuhls Signed-off-by: Julien Olivain (cherry picked from commit 6fe70fb484c35620877384bafdd1cd3865e1e583) Signed-off-by: Thomas Perale --- package/cifs-utils/cifs-utils.mk | 6 ------ 1 file changed, 6 deletions(-) diff --git a/package/cifs-utils/cifs-utils.mk b/package/cifs-utils/cifs-utils.mk index 9e1e822c4c..58ac594b20 100644 --- a/package/cifs-utils/cifs-utils.mk +++ b/package/cifs-utils/cifs-utils.mk @@ -25,12 +25,6 @@ ifeq ($(BR2_PACKAGE_KEYUTILS),y) CIFS_UTILS_DEPENDENCIES += keyutils endif -define CIFS_UTILS_NO_WERROR - $(SED) 's/-Werror//' $(@D)/Makefile.in -endef - -CIFS_UTILS_POST_PATCH_HOOKS += CIFS_UTILS_NO_WERROR - ifeq ($(BR2_PACKAGE_CIFS_UTILS_SMBTOOLS),) define CIFS_UTILS_REMOVE_SMBTOOLS rm -f $(TARGET_DIR)/usr/bin/smbinfo