From fc690631caa3f061adc22c1f7dc4def226a80194 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Benn=C3=A9e?= Date: Fri, 14 Mar 2025 10:41:09 +0000 Subject: [PATCH] package/fio: explicitly control libnfs dependency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The upstream uses pkg-config to detect and enable libnfs usage if it is found [1]. This can get confused by the host configuration so at the least we should disable detection if we are not planning to build with it. Note: the fio configure script accept both --enable-libnfs and --disable-libnfs since upstream commit [2], first included in fio v3.31. In Buildroot, this is supported since [3]. [1] https://github.com/axboe/fio/blob/fio-3.38/configure#L2360 [2] https://github.com/axboe/fio/commit/98ab12629c6a98fb53e28a4a70f53ce594cca858 [3] https://gitlab.com/buildroot.org/buildroot/-/commit/256395d8e5e7258df830dc19b47dc9ef19e48535 Signed-off-by: Alex Bennée [Julien: add extra info in commit log] Signed-off-by: Julien Olivain --- package/fio/fio.mk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/package/fio/fio.mk b/package/fio/fio.mk index 10fafb8a0e..57a54dc34a 100644 --- a/package/fio/fio.mk +++ b/package/fio/fio.mk @@ -16,7 +16,10 @@ FIO_DEPENDENCIES += libaio endif ifeq ($(BR2_PACKAGE_LIBNFS),y) -FIO_DEPENDENCIES += libnfs +FIO_OPTS += --enable-libnfs +FIO_DEPENDENCIES += host-pkgconf libnfs +else +FIO_OPTS += --disable-libnfs endif ifeq ($(BR2_PACKAGE_LIBISCSI),y)