xfs
[Top] [All Lists]

[PATCH 1/3] xfsprogs: misc uClibc patches: remove aio.h check from confi

To: xfs@xxxxxxxxxxx
Subject: [PATCH 1/3] xfsprogs: misc uClibc patches: remove aio.h check from configure
From: Joshua Kinard <kumba@xxxxxxxxxx>
Date: Mon, 18 Jan 2016 05:28:52 -0500
Delivered-to: xfs@xxxxxxxxxxx
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1453112959; bh=/If7xFD84yw9Y4xMJpKh3P7/Aw0qseGPtSjgUNrbrt0=; h=Received:Received:From:Subject:To:Message-ID:Date:MIME-Version: Content-Type; b=BmsCMxkIoAEoBMGkeho5yGKfUCLPLud4RHpIHIDHft5Lr/iBcrfX1JgzKZ3eOGf/t Vk/7jNi0Dlbx1ZM/g4AcppfI9+KC27cVckhrHlZlMqF7V0wxiltMAXAkCCHIHhud13 vYqZ6r5l53qUuzwsiSy2C1V4zasFrfo2dyU2zDVMd2rEq0g43Og+n2qNckTVmvuQyu F6bdQEoXob5Yw7WJGzkdLAz1zW6+dd3ZWhpI7u6/OKL+vvOofW2NkJhHD2wm6pOZoS Y2Z6QyTuLrGXk/PBoyBk0BpygQeZP1qRKESmB5a+O0sS0utr2LesJVP2ZbuZ/La5+C a3pAY3l6rgF8g==
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:42.0) Gecko/20100101 Thunderbird/42.0
From: Joshua Kinard <kumba@xxxxxxxxxx>

Remove the configure check for aio.h, which is not provided by uClibc, and
which does not appear to be used by xfsprogs.

Refer to Gentoo Bug #477758:
https://bugs.gentoo.org/show_bug.cgi?id=477758

Signed-off-by: Joshua Kinard <kumba@xxxxxxxxxx>
Reported-by: El Goretto <el.goretto@xxxxxxx>
Suggested-by: Renà RhÃaume <rene.rheaume@xxxxxxxxx>
---
 aclocal.m4           |    1 -
 configure.ac         |    6 +++---
 m4/Makefile          |    1 -
 m4/package_aiodev.m4 |   36 ------------------------------------
 4 files changed, 3 insertions(+), 41 deletions(-)

diff -Naurp xfsprogs-4.3.0.orig/aclocal.m4 xfsprogs-4.3.0/aclocal.m4
--- xfsprogs-4.3.0.orig/aclocal.m4      2015-11-23 04:30:01.000000000 +0000
+++ xfsprogs-4.3.0/aclocal.m4   2016-01-01 10:47:09.492229000 +0000
@@ -19,7 +19,6 @@ m4_include([m4/ltversion.m4])
 m4_include([m4/lt~obsolete.m4])
 m4_include([m4/manual_format.m4])
 m4_include([m4/multilib.m4])
-m4_include([m4/package_aiodev.m4])
 m4_include([m4/package_blkid.m4])
 m4_include([m4/package_globals.m4])
 m4_include([m4/package_libcdev.m4])
diff -Naurp xfsprogs-4.3.0.orig/configure.ac xfsprogs-4.3.0/configure.ac
--- xfsprogs-4.3.0.orig/configure.ac    2015-11-23 04:24:24.000000000 +0000
+++ xfsprogs-4.3.0/configure.ac 2016-01-01 10:47:09.502229000 +0000
@@ -56,6 +56,9 @@ AC_ARG_ENABLE(lib64,
        enable_lib64=yes)
 AC_SUBST(enable_lib64)
 
+librt="-lrt"
+AC_SUBST(librt)
+
 #
 # If the user specified a libdir ending in lib64 do not append another
 # 64 to the library names.
@@ -101,9 +104,6 @@ AC_PACKAGE_GLOBALS(xfsprogs)
 AC_PACKAGE_UTILITIES(xfsprogs)
 AC_MULTILIB($enable_lib64)
 
-AC_PACKAGE_NEED_AIO_H
-AC_PACKAGE_NEED_LIO_LISTIO
-
 AC_PACKAGE_NEED_UUID_H
 AC_PACKAGE_NEED_UUIDCOMPARE
 
diff -Naurp xfsprogs-4.3.0.orig/m4/Makefile xfsprogs-4.3.0/m4/Makefile
--- xfsprogs-4.3.0.orig/m4/Makefile     2010-01-15 00:27:10.000000000 +0000
+++ xfsprogs-4.3.0/m4/Makefile  2016-01-01 10:47:09.502229000 +0000
@@ -14,7 +14,6 @@ CONFIGURE = \
 
 LSRCFILES = \
        manual_format.m4 \
-       package_aiodev.m4 \
        package_blkid.m4 \
        package_globals.m4 \
        package_libcdev.m4 \
diff -Naurp xfsprogs-4.3.0.orig/m4/package_aiodev.m4 
xfsprogs-4.3.0/m4/package_aiodev.m4
--- xfsprogs-4.3.0.orig/m4/package_aiodev.m4    2010-06-24 22:23:27.000000000 
+0000
+++ xfsprogs-4.3.0/m4/package_aiodev.m4 2016-01-01 10:47:09.502229000 +0000
@@ -1,37 +1 @@
-#
-# Check if we have a libaio.h installed
-#
-AC_DEFUN([AC_PACKAGE_WANT_AIO],
-  [ AC_CHECK_HEADERS(libaio.h, [ have_aio=true ], [ have_aio=false ])
-    AC_SUBST(have_aio)
-  ])
-
-#
-# Check if we have an aio.h installed
-#
-AC_DEFUN([AC_PACKAGE_NEED_AIO_H],
-  [ AC_CHECK_HEADERS(aio.h)
-    if test $ac_cv_header_aio_h = no; then
-       echo
-       echo 'FATAL ERROR: could not find a valid <aio.h> header.'
-       exit 1
-    fi
-  ])
-
-#
-# Check if we have the lio_listio routine in either libc/librt
-#
-AC_DEFUN([AC_PACKAGE_NEED_LIO_LISTIO],
-  [ AC_CHECK_FUNCS(lio_listio)
-    if test $ac_cv_func_lio_listio = yes; then
-       librt=""
-    else
-       AC_CHECK_LIB(rt, lio_listio,, [
-           echo
-           echo 'FATAL ERROR: could not find a library with lio_listio.'
-           exit 1],[-lpthread])
-       librt="-lrt"
-    fi
-    AC_SUBST(librt)
-  ])
 


<Prev in Thread] Current Thread [Next in Thread>