Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 1 | From 86686ccbf43c5d9e8c8dc97c66ba09e522050e5e Mon Sep 17 00:00:00 2001 |
| 2 | From: Hongxu Jia <hongxu.jia@windriver.com> |
| 3 | Date: Thu, 27 Jul 2017 10:06:24 +0800 |
| 4 | Subject: [PATCH 1/3] fix configure and compile failures |
| 5 | |
| 6 | 1. Fix do_configure failure |
| 7 | --------------------------- |
| 8 | |Checking header volume_key/libvolume_key.h existence and usability. |
| 9 | ../tmp/6tvtK.c:1:38: fatal error: volume_key/libvolume_key.h: |
| 10 | No such file or directory |
| 11 | | #include <volume_key/libvolume_key.h> |
| 12 | |Checking header dmraid/dmraid.h existence and usability.../tmp/ |
| 13 | ktVJ6.c:1:27: fatal error: dmraid/dmraid.h: No such file or directory |
| 14 | | #include <dmraid/dmraid.h> |
| 15 | --------------------------- |
| 16 | We explictly add volume_key and dmraid to DEPENDS, do not need |
| 17 | configure to test. |
| 18 | |
| 19 | 2. Fix config.h not found |
| 20 | Add it to configure.ac |
| 21 | |
| 22 | 3. Correct AC_DEFINE |
| 23 | ... |
| 24 | autoheader: warning: missing template: LIBMOUNT_NEW_ERR_API |
| 25 | autoheader: Use AC_DEFINE([LIBMOUNT_NEW_ERR_API], [], [Description]) |
| 26 | ... |
| 27 | |
| 28 | Upstream-Status: Inappropriate [oe specific] |
| 29 | |
| 30 | Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> |
| 31 | --- |
| 32 | configure.ac | 10 ++++------ |
| 33 | 1 file changed, 4 insertions(+), 6 deletions(-) |
| 34 | |
| 35 | diff --git a/configure.ac b/configure.ac |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 36 | index d41a307..b036e04 100644 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 37 | --- a/configure.ac |
| 38 | +++ b/configure.ac |
| 39 | @@ -9,6 +9,8 @@ AC_DISABLE_STATIC |
| 40 | AM_INIT_AUTOMAKE([foreign -Wall -Werror -Wno-syntax -Wno-portability]) |
| 41 | AC_CONFIG_MACRO_DIR([m4]) |
| 42 | |
| 43 | +AC_CONFIG_HEADERS([config.h]) |
| 44 | + |
| 45 | AM_PATH_PYTHON |
| 46 | |
| 47 | AM_PROG_AR |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 48 | @@ -154,7 +156,6 @@ LIBBLOCKDEV_PKG_CHECK_MODULES([KMOD], [libkmod >= 19]) |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 49 | AS_IF([test "x$with_crypto" != "xno"], |
| 50 | [LIBBLOCKDEV_PKG_CHECK_MODULES([CRYPTSETUP], [libcryptsetup >= 1.6.7]) |
| 51 | LIBBLOCKDEV_PKG_CHECK_MODULES([NSS], [nss >= 3.18.0]) |
| 52 | - LIBBLOCKDEV_CHECK_HEADER([volume_key/libvolume_key.h], [$GLIB_CFLAGS $NSS_CFLAGS], [libvolume_key.h not available]) |
| 53 | ], |
| 54 | []) |
| 55 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 56 | @@ -162,10 +163,6 @@ AS_IF([test "x$with_dm" != "xno" -o "x$with_lvm" != "xno" -o "x$with_lvm_dbus" ! |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 57 | [LIBBLOCKDEV_PKG_CHECK_MODULES([DEVMAPPER], [devmapper >= 1.02.93])], |
| 58 | []) |
| 59 | |
| 60 | -AS_IF([test "x$with_dm" != "xno"], |
| 61 | - [LIBBLOCKDEV_CHECK_HEADER([dmraid/dmraid.h], [], [dmraid.h not available])], |
| 62 | - []) |
| 63 | - |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 64 | AS_IF([test "x$with_part" != "xno" -o "x$with_fs" != "xno"], |
| 65 | [LIBBLOCKDEV_PKG_CHECK_MODULES([PARTED], [libparted >= 3.1])] |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 66 | []) |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 67 | @@ -174,7 +171,8 @@ AS_IF([test "x$with_fs" != "xno"], |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 68 | [LIBBLOCKDEV_PKG_CHECK_MODULES([MOUNT], [mount >= 2.23.0]) |
| 69 | # new versions of libmount has some new functions we can use |
| 70 | AS_IF([$PKG_CONFIG --atleast-version=2.30.0 mount], |
| 71 | - [AC_DEFINE([LIBMOUNT_NEW_ERR_API])], []) |
| 72 | + [AC_DEFINE([LIBMOUNT_NEW_ERR_API], [1], [new versions of libmount has some new functions we can use])], |
| 73 | + []) |
| 74 | |
| 75 | LIBBLOCKDEV_PKG_CHECK_MODULES([BLKID], [blkid >= 2.23.0]) |
| 76 | # older versions of libblkid don't support BLKID_SUBLKS_BADCSUM so let's just |
| 77 | -- |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 78 | 2.14.3 |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 79 | |