Bug 8851

Summary: Make sure fio can compile with libaio support if it the package is installed
Product: buildroot Reporter: Charles <ckhardin>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: buildroot
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

Description Charles 2016-04-15 01:56:37 UTC
if libaio is being used, then make fio depend on it so that it gets compiled with aio support.

diff --git a/package/fio/fio.mk b/package/fio/fio.mk
index 08fef5f..384be2e 100644
--- a/package/fio/fio.mk
+++ b/package/fio/fio.mk
@@ -9,6 +9,10 @@ FIO_SITE = git://git.kernel.dk/fio.git
 FIO_LICENSE = GPLv2 + special obligations
 FIO_LICENSE_FILES = COPYING
 
+ifeq ($(BR2_PACKAGE_LIBAIO),y)
+FIO_DEPENDENCIES += libaio
+endif
+
 define FIO_CONFIGURE_CMDS
        (cd $(@D); ./configure --cc="$(TARGET_CC)" --extra-cflags="$(TARGET_CFLAGS)")
 endef
Comment 1 Thomas Petazzoni 2016-04-15 07:32:51 UTC
Thanks, looks good. Could you submit this as a proper patch on our mailing list, so that we can merge it through the usual process? Thanks!
Comment 2 Thomas Petazzoni 2016-04-19 21:40:01 UTC
Fixed by https://git.buildroot.net/buildroot/commit/?id=71122f537d2ff93f206818c8d91e06f55fe2b5e2, thanks for your suggestion!