فهرست منبع

package/fio: explicitly control libnfs dependency

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 <alex.bennee@linaro.org>
[Julien: add extra info in commit log]
Signed-off-by: Julien Olivain <ju.o@free.fr>
(cherry picked from commit fc690631caa3f061adc22c1f7dc4def226a80194)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Alex Bennée 4 ماه پیش
والد
کامیت
4085ca3069
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      package/fio/fio.mk

+ 4 - 1
package/fio/fio.mk

@@ -16,7 +16,10 @@ FIO_DEPENDENCIES += libaio
 endif
 endif
 
 
 ifeq ($(BR2_PACKAGE_LIBNFS),y)
 ifeq ($(BR2_PACKAGE_LIBNFS),y)
-FIO_DEPENDENCIES += libnfs
+FIO_OPTS += --enable-libnfs
+FIO_DEPENDENCIES += host-pkgconf libnfs
+else
+FIO_OPTS += --disable-libnfs
 endif
 endif
 
 
 ifeq ($(BR2_PACKAGE_LIBISCSI),y)
 ifeq ($(BR2_PACKAGE_LIBISCSI),y)