From b4e6b08e05783a8ecafa8274939ce3f5f0511291 Mon Sep 17 00:00:00 2001 From: Changqing Li Date: Wed, 18 Jul 2018 15:31:20 +0800 Subject: libblockdev: 2.16 -> 2.18 Signed-off-by: Changqing Li Signed-off-by: Khem Raj --- .../0001-fix-configure-and-compile-failures.patch | 64 ++++++++++++---------- .../libblockdev/libblockdev_2.16.bb | 51 ----------------- .../libblockdev/libblockdev_2.18.bb | 49 +++++++++++++++++ 3 files changed, 85 insertions(+), 79 deletions(-) delete mode 100644 meta-oe/recipes-extended/libblockdev/libblockdev_2.16.bb create mode 100644 meta-oe/recipes-extended/libblockdev/libblockdev_2.18.bb diff --git a/meta-oe/recipes-extended/libblockdev/files/0001-fix-configure-and-compile-failures.patch b/meta-oe/recipes-extended/libblockdev/files/0001-fix-configure-and-compile-failures.patch index 745883ebe8..9c050b7813 100644 --- a/meta-oe/recipes-extended/libblockdev/files/0001-fix-configure-and-compile-failures.patch +++ b/meta-oe/recipes-extended/libblockdev/files/0001-fix-configure-and-compile-failures.patch @@ -1,7 +1,7 @@ -From 86686ccbf43c5d9e8c8dc97c66ba09e522050e5e Mon Sep 17 00:00:00 2001 +From 21654e3719e0a289e735918b234f7aae6766e3a1 Mon Sep 17 00:00:00 2001 From: Hongxu Jia -Date: Thu, 27 Jul 2017 10:06:24 +0800 -Subject: [PATCH 1/3] fix configure and compile failures +Date: Wed, 18 Jul 2018 11:26:28 +0800 +Subject: [PATCH] fix configure and compile failures 1. Fix do_configure failure --------------------------- @@ -9,9 +9,6 @@ Subject: [PATCH 1/3] fix configure and compile failures ../tmp/6tvtK.c:1:38: fatal error: volume_key/libvolume_key.h: No such file or directory | #include -|Checking header dmraid/dmraid.h existence and usability.../tmp/ -ktVJ6.c:1:27: fatal error: dmraid/dmraid.h: No such file or directory -| #include --------------------------- We explictly add volume_key and dmraid to DEPENDS, do not need configure to test. @@ -28,12 +25,20 @@ autoheader: Use AC_DEFINE([LIBMOUNT_NEW_ERR_API], [], [Description]) Upstream-Status: Inappropriate [oe specific] Signed-off-by: Hongxu Jia + +Checking header dmraid/dmraid.h existence and usability.../tmp/ +ktVJ6.c:1:27: fatal error: dmraid/dmraid.h: No such file or directory +| #include + +fix this by add --disable-dmraid + +Signed-off-by: Changqing Li --- - configure.ac | 10 ++++------ - 1 file changed, 4 insertions(+), 6 deletions(-) + configure.ac | 12 +++++++----- + 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/configure.ac b/configure.ac -index d41a307..b036e04 100644 +index a37f337..a8cfe2f 100644 --- a/configure.ac +++ b/configure.ac @@ -9,6 +9,8 @@ AC_DISABLE_STATIC @@ -45,35 +50,38 @@ index d41a307..b036e04 100644 AM_PATH_PYTHON AM_PROG_AR -@@ -154,7 +156,6 @@ LIBBLOCKDEV_PKG_CHECK_MODULES([KMOD], [libkmod >= 19]) +@@ -194,10 +196,9 @@ LIBBLOCKDEV_PKG_CHECK_MODULES([KMOD], [libkmod >= 19]) AS_IF([test "x$with_crypto" != "xno"], [LIBBLOCKDEV_PKG_CHECK_MODULES([CRYPTSETUP], [libcryptsetup >= 1.6.7]) - LIBBLOCKDEV_PKG_CHECK_MODULES([NSS], [nss >= 3.18.0]) -- LIBBLOCKDEV_CHECK_HEADER([volume_key/libvolume_key.h], [$GLIB_CFLAGS $NSS_CFLAGS], [libvolume_key.h not available]) + AS_IF([$PKG_CONFIG --atleast-version=2.0 libcryptsetup], +- [AC_DEFINE([LIBCRYPTSETUP_2])], []) ++ [AC_DEFINE([LIBCRYPTSETUP_2], [1], [new version of libcryptsetup])]) + AS_IF([test "x$with_escrow" != "xno"], +- [LIBBLOCKDEV_PKG_CHECK_MODULES([NSS], [nss >= 3.18.0]) +- LIBBLOCKDEV_CHECK_HEADER([volume_key/libvolume_key.h], [$GLIB_CFLAGS $NSS_CFLAGS], [libvolume_key.h not available])], ++ [LIBBLOCKDEV_PKG_CHECK_MODULES([NSS], [nss >= 3.18.0])], + []) ], []) - -@@ -162,10 +163,6 @@ AS_IF([test "x$with_dm" != "xno" -o "x$with_lvm" != "xno" -o "x$with_lvm_dbus" ! - [LIBBLOCKDEV_PKG_CHECK_MODULES([DEVMAPPER], [devmapper >= 1.02.93])], - []) - --AS_IF([test "x$with_dm" != "xno"], -- [LIBBLOCKDEV_CHECK_HEADER([dmraid/dmraid.h], [], [dmraid.h not available])], -- []) -- - AS_IF([test "x$with_part" != "xno" -o "x$with_fs" != "xno"], - [LIBBLOCKDEV_PKG_CHECK_MODULES([PARTED], [libparted >= 3.1])] - []) -@@ -174,7 +171,8 @@ AS_IF([test "x$with_fs" != "xno"], +@@ -218,7 +219,8 @@ AS_IF([test "x$with_fs" != "xno"], [LIBBLOCKDEV_PKG_CHECK_MODULES([MOUNT], [mount >= 2.23.0]) # new versions of libmount has some new functions we can use AS_IF([$PKG_CONFIG --atleast-version=2.30.0 mount], - [AC_DEFINE([LIBMOUNT_NEW_ERR_API])], []) -+ [AC_DEFINE([LIBMOUNT_NEW_ERR_API], [1], [new versions of libmount has some new functions we can use])], -+ []) ++ [AC_DEFINE([LIBMOUNT_NEW_ERR_API], [1], [new versions of libmount has some new functions we can use])], ++ []) LIBBLOCKDEV_PKG_CHECK_MODULES([BLKID], [blkid >= 2.23.0]) # older versions of libblkid don't support BLKID_SUBLKS_BADCSUM so let's just +@@ -243,7 +245,7 @@ AS_IF([test "x$with_nvdimm" != "xno"], + LIBBLOCKDEV_PKG_CHECK_MODULES([NDCTL], [libndctl >= 58.4]) + # new versions of libndctl new modes + AS_IF([$PKG_CONFIG --atleast-version=60 libndctl], +- [AC_DEFINE([LIBNDCTL_NEW_MODES])], [])] ++ [AC_DEFINE([LIBNDCTL_NEW_MODES], [1], [new version of libndctl new modes])], [])] + []) + + AS_IF([test "x$with_vdo" != "xno"], -- -2.14.3 +2.7.4 diff --git a/meta-oe/recipes-extended/libblockdev/libblockdev_2.16.bb b/meta-oe/recipes-extended/libblockdev/libblockdev_2.16.bb deleted file mode 100644 index 0c954aa39b..0000000000 --- a/meta-oe/recipes-extended/libblockdev/libblockdev_2.16.bb +++ /dev/null @@ -1,51 +0,0 @@ -DESCRIPTION = "libblockdev is a C library supporting GObject introspection for manipulation of \ -block devices. It has a plugin-based architecture where each technology (like \ -LVM, Btrfs, MD RAID, Swap,...) is implemented in a separate plugin, possibly \ -with multiple implementations (e.g. using LVM CLI or the new LVM DBus API)." -HOMEPAGE = "http://rhinstaller.github.io/libblockdev/" -LICENSE = "LGPLv2+" -SECTION = "devel/lib" - -LIC_FILES_CHKSUM = "file://LICENSE;md5=c07cb499d259452f324bb90c3067d85c" - -inherit autotools python3native gobject-introspection - -DEPENDS += " \ - cryptsetup \ - nss \ - volume-key \ - libbytesize \ - btrfs-tools \ -" - -SRCREV = "e2e0899efe8dd3f111ff955fb6c1dc10b0bd2075" -SRC_URI = " \ - git://github.com/rhinstaller/libblockdev;branch=master \ - file://0001-fix-configure-and-compile-failures.patch \ - file://0002-remove-python2-support.patch \ - file://0003-remove-dmraid-while-compiling-with-with-dm.patch \ - file://0005-fix-a-clang-compiling-issue.patch \ -" -SRC_URI_append_libc-musl = " \ - file://0004-fix-compile-failure-against-musl-C-library.patch \ -" - -S = "${WORKDIR}/git" - -RDEPENDS_${PN} += " \ - lvm2 \ -" - -FILES_${PN} += "${PYTHON_SITEPACKAGES_DIR}" - -PACKAGECONFIG ??= "python3 lvm dm kmod parted fs" -PACKAGECONFIG[python3] = "--with-python3, --without-python3,,python3" -PACKAGECONFIG[lvm] = "--with-lvm, --without-lvm, multipath-tools" -PACKAGECONFIG[dm] = "--with-dm, --without-dm" -PACKAGECONFIG[kmod] = "--with-kbd, --without-kbd, kmod" -PACKAGECONFIG[parted] = "--with-part, --without-part, parted" -PACKAGECONFIG[fs] = "--with-fs, --without-fs, util-linux" -PACKAGECONFIG[doc] = "--with-gtk-doc, --without-gtk-doc, gtk-doc-native" - -export GIR_EXTRA_LIBS_PATH="${B}/src/utils/.libs" - diff --git a/meta-oe/recipes-extended/libblockdev/libblockdev_2.18.bb b/meta-oe/recipes-extended/libblockdev/libblockdev_2.18.bb new file mode 100644 index 0000000000..4dbd04cd7b --- /dev/null +++ b/meta-oe/recipes-extended/libblockdev/libblockdev_2.18.bb @@ -0,0 +1,49 @@ +DESCRIPTION = "libblockdev is a C library supporting GObject introspection for manipulation of \ +block devices. It has a plugin-based architecture where each technology (like \ +LVM, Btrfs, MD RAID, Swap,...) is implemented in a separate plugin, possibly \ +with multiple implementations (e.g. using LVM CLI or the new LVM DBus API)." +HOMEPAGE = "http://rhinstaller.github.io/libblockdev/" +LICENSE = "LGPLv2+" +SECTION = "devel/lib" + +LIC_FILES_CHKSUM = "file://LICENSE;md5=c07cb499d259452f324bb90c3067d85c" + +inherit autotools python3native gobject-introspection + +DEPENDS += " \ + cryptsetup \ + nss \ + volume-key \ + libbytesize \ + btrfs-tools \ +" + +SRCREV = "0debeb45562ac3d8f6f43f6f942b238abab55be9" +SRC_URI = " \ + git://github.com/rhinstaller/libblockdev;branch=master \ + file://0001-fix-configure-and-compile-failures.patch \ +" + +S = "${WORKDIR}/git" + +RDEPENDS_${PN} += " \ + lvm2 \ +" + +FILES_${PN} += "${PYTHON_SITEPACKAGES_DIR}" + +PACKAGECONFIG ??= "python3 lvm dm kmod parted fs" +PACKAGECONFIG[python3] = "--with-python3, --without-python3,,python3" +PACKAGECONFIG[python2] = "--with-python2, --without-python2,,python2" +PACKAGECONFIG[lvm] = "--with-lvm, --without-lvm, multipath-tools" +PACKAGECONFIG[dm] = "--with-dm, --without-dm" +PACKAGECONFIG[dmraid] = "--with-dmraid, --without-dmraid" +PACKAGECONFIG[kmod] = "--with-kbd, --without-kbd, kmod" +PACKAGECONFIG[parted] = "--with-part, --without-part, parted" +PACKAGECONFIG[fs] = "--with-fs, --without-fs, util-linux" +PACKAGECONFIG[doc] = "--with-gtk-doc, --without-gtk-doc, gtk-doc-native" +PACKAGECONFIG[nvdimm] = "--with-nvdimm, --without-nvdimm" +PACKAGECONFIG[vdo] = "--with-vdo, --without-vdo" + +export GIR_EXTRA_LIBS_PATH="${B}/src/utils/.libs" + -- cgit 1.2.3-korg