Skip to contentSkip to conversation

package/cifs-utils: remove NO_WERROR hook

PATCH Applied Bernd Kuhls 2 participants 5 messages Jun 20 – Jul 17

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 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.

---
Gitlab pipelines passed:
https://gitlab.com/bkuhls/buildroot/-/commits/f73f3d6fa47e362d38c258e823b6bbaaa559e616

 package/cifs-utils/cifs-utils.mk | 6 ------
 1 file changed, 6 deletions(-)
package/cifs-utils/cifs-utils.mk +0 -6
index 9e1e822c4c..58ac594b20 100644
@@ -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
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#1 lore raw

PATCH 2/2 package/cifs-utils: bump version to 7.6

https://lists.samba.org/archive/samba-technical/2026-June/140908.html

Version 7.5 was not announced separately:
https://wiki.samba.org/index.php/LinuxCIFS_utils
"December, 2025: Release 7.5
- Various fixes for utilities"
https://git.samba.org/?p=cifs-utils.git;a=shortlog;h=refs/tags/cifs-utils-7.5

---
Gitlab pipelines passed:
https://gitlab.com/bkuhls/buildroot/-/commits/f73f3d6fa47e362d38c258e823b6bbaaa559e616

 package/cifs-utils/cifs-utils.hash | 2 +-
 package/cifs-utils/cifs-utils.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/cifs-utils/cifs-utils.hash +1 -1
index e6a5eefeaa..cfa2a84648 100644
@@ -1,5 +1,5 @@
 # Locally calculated after checking pgp signature
-sha256  53353d05c30b4fc9dac006a8f0c5054cdd8a1834c176313c91e4694025c4b891  cifs-utils-7.4.tar.bz2
+sha256  7db875ff2868e5fa4e445ada0bd23ea70b9161b96188c7e276321e061ed51dd6  cifs-utils-7.6.tar.bz2
 
 # Hash for license file:
 sha256  8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903  COPYING
package/cifs-utils/cifs-utils.mk +1 -1
index 58ac594b20..72f432326e 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-CIFS_UTILS_VERSION = 7.4
+CIFS_UTILS_VERSION = 7.6
 CIFS_UTILS_SOURCE = cifs-utils-$(CIFS_UTILS_VERSION).tar.bz2
 CIFS_UTILS_SITE = http://ftp.samba.org/pub/linux-cifs/cifs-utils
 CIFS_UTILS_LICENSE = GPL-3.0+
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
#2 lore raw

Re: [Buildroot] [PATCH 2/2] package/cifs-utils: bump version to 7.6

Hi Bernd,

Quoted 24 lines · Bernd Kuhls

https://lists.samba.org/archive/samba-technical/2026-June/140908.html

Version 7.5 was not announced separately:
https://wiki.samba.org/index.php/LinuxCIFS_utils
"December, 2025: Release 7.5
- Various fixes for utilities"
https://git.samba.org/?p=cifs-utils.git;a=shortlog;h=refs/tags/cifs-utils-7.5

---
Gitlab pipelines passed:
https://gitlab.com/bkuhls/buildroot/-/commits/f73f3d6fa47e362d38c258e823b6bbaaa559e616

 package/cifs-utils/cifs-utils.hash | 2 +-
 package/cifs-utils/cifs-utils.mk   | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
package/cifs-utils/cifs-utils.hash +0 -1
index e6a5eefeaa..cfa2a84648 100644
@@ -1,5 +1,5 @@
 # Locally calculated after checking pgp signature
-sha256  
Quoted 3 lines

53353d05c30b4fc9dac006a8f0c5054cdd8a1834c176313c91e4694025c4b891 cifs-utils-7.4.tar.bz2 +sha256
7db875ff2868e5fa4e445ada0bd23ea70b9161b96188c7e276321e061ed51dd6 cifs-utils-7.6.tar.bz2

This archive hash is now failing. I have the error:

ERROR: while checking hashes from package/cifs-utils/cifs-utils.hash
ERROR: cifs-utils-7.6.tar.bz2 has wrong sha256 hash:
ERROR: expected: 7db875ff2868e5fa4e445ada0bd23ea70b9161b96188c7e276321e061ed51dd6
ERROR: got : b8993bc4112af331a2f31c4e1a69bcd32b44c25a8c9fb82c0f38c1ed9a49f28d

Looking at: https://download.samba.org/pub/linux-cifs/cifs-utils/
it seems the archive has been regenerated and resigned on 2026-07-09.

Also, there was a new 7.7 released on that day:
https://lists.samba.org/archive/samba-technical/2026-July/140952.html
So you might consider using this new version.

Could you have a look to what happened and send an updated patch please?

Quoted 3 lines

# Hash for license file:
sha256
8ceb4b9ee5adedde47b31e975c1d90c73ad27b6b165a1dcd80c7c545eb65b903 COPYING

Best regards,

Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw
In reply to Bernd Kuhls
Quoted 10 lines · Bernd Kuhls

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.

Quoted 5 lines

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.

I applied this patch (only) to master, thanks.
See my comment on the patch #2.

Best regards,

Julien.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#4 lore raw
In reply to Bernd Kuhls

In reply of:

Quoted 10 lines

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.

Quoted 5 lines

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.

Applied to 2025.02.x & 2026.05.x. Thanks

Quoted 31 lines

---
Gitlab pipelines passed:
https://gitlab.com/bkuhls/buildroot/-/commits/f73f3d6fa47e362d38c258e823b6bbaaa559e616

 package/cifs-utils/cifs-utils.mk | 6 ------
 1 file changed, 6 deletions(-)
package/cifs-utils/cifs-utils.mk +0 -6
index 9e1e822c4c..58ac594b20 100644
@@ -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
Signature · 6 lines
2.47.3

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot