Browse Source

package/ufs-utils: bump to version 7.14.11

Adding _GNU_SOURCE to CFLAGS was necessary to fix the following error
raised during the compilation of the new version:

ufs_emon.c: In function ‘do_emon’:
ufs_emon.c:455:51: error: ‘O_DIRECT’ undeclared (first use in this function); did you mean ‘O_DIRECTORY’?
  455 |         fill_data_fd = open("fill_file", O_RDWR | O_DIRECT | O_CREAT,
      |                                                   ^~~~~~~~
      |                                                   O_DIRECTORY
ufs_emon.c:455:51: note: each undeclared identifier is reported only once for each function it appears in

This _GNU_SOURCE define was added upstream in commit [1] in the Makefile
default CFLAGS, but since Buildroot redefines those it needs to be added
back.

Release notes:
https://github.com/SanDisk-Open-Source/ufs-utils/releases/tag/v7.14.11

[1] https://github.com/SanDisk-Open-Source/ufs-utils/commit/183e0deb28f13cfb3caf161fc6d0f3cd1edb05c2

Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
[Julien: add link to upstream commit to justify _GNU_SOURCE]
Signed-off-by: Julien Olivain <ju.o@free.fr>
Dario Binacchi 4 weeks ago
parent
commit
e3a52cc941
2 changed files with 3 additions and 3 deletions
  1. 1 1
      package/ufs-utils/ufs-utils.hash
  2. 2 2
      package/ufs-utils/ufs-utils.mk

+ 1 - 1
package/ufs-utils/ufs-utils.hash

@@ -1,3 +1,3 @@
 # Locally computed
-sha256  b46f1dbd3688d3b72009c54ae789dd60ea386546cd433325c05970208d36c8a3  ufs-utils-6.14.11.tar.gz
+sha256  07d80ddd2dcfbe5e844515648c494fab33790be5450d150b88e3612da9b1895b  ufs-utils-7.14.11.tar.gz
 sha256  231f7edcc7352d7734a96eef0b8030f77982678c516876fcb81e25b32d68564c  COPYING

+ 2 - 2
package/ufs-utils/ufs-utils.mk

@@ -4,13 +4,13 @@
 #
 ################################################################################
 
-UFS_UTILS_VERSION = 6.14.11
+UFS_UTILS_VERSION = 7.14.11
 UFS_UTILS_SITE = $(call github,SanDisk-Open-Source,ufs-utils,v$(UFS_UTILS_VERSION))
 UFS_UTILS_LICENSE = GPL-2.0
 UFS_UTILS_LICENSE_FILES = COPYING
 
 define UFS_UTILS_BUILD_CMDS
-	$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS)
+	$(MAKE) -C $(@D) $(TARGET_CONFIGURE_OPTS) CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
 endef
 
 define UFS_UTILS_INSTALL_TARGET_CMDS