ufs-utils: upgrade 6.14.11 -> 7.14.11
PATCH 1/1 ufs-utils: upgrade 6.14.11 -> 7.14.11
Extending _GNU_SOURCE to the CFGLAS of all platforms, not just mipsarchn64, 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_DIRECTORYufs_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 Yocto 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
---
.../ufs-utils/{ufs-utils_6.14.11.bb => ufs-utils_7.14.11.bb} | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
rename meta-filesystems/recipes-utils/ufs-utils/{ufs-utils_6.14.11.bb => ufs-utils_7.14.11.bb} (80%)meta-filesystems/recipes-utils/ufs-utils/ufs-utils_7.14.11.bb renamed from meta-filesystems/recipes-utils/ufs-utils/ufs-utils_6.14.11.bb +3 -2
@@ -4,7 +4,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552" BRANCH ?= "dev" -SRCREV = "5539a8ad8e1a9b7ea8b62213ed72eb939c5381b7" +SRCREV = "92c8e4d732c34f8d0754d0e076879ca7008bace4" SRC_URI = "git://github.com/westerndigitalcorporation/ufs-utils.git;protocol=https;branch=${BRANCH} \ "
@@ -14,7 +14,8 @@ UPSTREAM_CHECK_COMMITS = "1" EXTRA_OEMAKE = "CROSS_COMPILE=${TARGET_PREFIX} CC="${CC}" CFLAGS="${CFLAGS}"" -CFLAGS:append:mipsarchn64 = " -D__SANE_USERSPACE_TYPES__ -D_GNU_SOURCE" +CFLAGS:append = " -D_GNU_SOURCE" +CFLAGS:append:mipsarchn64 = " -D__SANE_USERSPACE_TYPES__" do_configure() { sed -i -e "s|-static$||g" ${S}/Makefile
Signature · 1 line
2.43.0