From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 3/4] package/libblockdev: add new package
Date: Mon, 17 Feb 2020 19:56:39 +0100 [thread overview]
Message-ID: <20200217195639.0380459c@windsurf> (raw)
In-Reply-To: <20200217143030.5031-4-giulio.benetti@benettiengineering.com>
Hello,
On Mon, 17 Feb 2020 15:30:29 +0100
Giulio Benetti <giulio.benetti@benettiengineering.com> wrote:
> diff --git a/package/libblockdev/Config.in b/package/libblockdev/Config.in
> new file mode 100644
> index 0000000000..0b0a943d5f
> --- /dev/null
> +++ b/package/libblockdev/Config.in
> @@ -0,0 +1,22 @@
> +config BR2_PACKAGE_LIBBLOCKDEV
> + bool "libblockdev"
> + depends on BR2_PACKAGE_HAS_UDEV
> + depends on BR2_TOOLCHAIN_HAS_THREADS # volume_key -> cryptsetup
> + depends on BR2_USE_MMU # lvm2, volume_key -> cryptsetup
> + depends on !BR2_STATIC_LIBS # volume_key -> cryptsetup
You're missing a few dependencies from volume-key:
+ depends on BR2_TOOLCHAIN_HAS_SYNC_4 # cryptsetup
+ depends on BR2_PACKAGE_LIBGPG_ERROR_ARCH_SUPPORTS # libgpgme, libassuan
+ depends on BR2_USE_WCHAR # libglib2
Could you double check ?
> + depends on BR2_SYSTEM_ENABLE_NLS # volume_key
There is no such dependency in volume-key.
> + select BR2_PACKAGE_LIBBYTESIZE
> + select BR2_PACKAGE_LIBYAML
> + select BR2_PACKAGE_PARTED
This one depends on BR2_ENABLE_LOCALE
> + select BR2_PACKAGE_VOLUME_KEY
> + select BR2_PACKAGE_UTIL_LINUX_LIBMOUNT
> + select BR2_PACKAGE_UTIL_LINUX
Reverse the order of those last two lines.
> + help
> + libblockdev is a C library supporting GObject introspection for
> + manipulation of block devices
> +
> + https://github.com/storaged-project/libblockdev/
> +
> +comment "libblockdev needs udev /dev management and a toolchain w/ threads"
> + depends on BR2_USE_MMU
> + depends on !BR2_TOOLCHAIN_HAS_THREADS || !BR2_PACKAGE_HAS_UDEV
This is not accurate considering the dependencies of
BR2_PACKAGE_LIBBLOCKDEV.
> +LIBBLOCKDEV_VERSION = 2.23-1
> +LIBBLOCKDEV_SITE = $(call github,storaged-project,libblockdev,$(LIBBLOCKDEV_VERSION))
> +LIBBLOCKDEV_LICENSE = LGPL-2.1+
> +LIBBLOCKDEV_LICENSE_FILES = LICENSE
> +LIBBLOCKDEV_DEPENDENCIES = host-autoconf-archive host-pkgconf kmod \
> + libbytesize libyaml parted udev util-linux \
> + volume_key
kmod is used here, but not selected by the Config.in file. Indentation
is also odd: you should have only one tab to indent the continuation
lines.
> +LIBBLOCKDEV_INSTALL_STAGING = YES
> +LIBBLOCKDEV_AUTORECONF_OPTS = --include=$(HOST_DIR)/share/autoconf-archive
I haven't followed the recent autoreconf rework, is this now the right
way of using autoconf-archive macros ?
> +ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y)
> +LIBBLOCKDEV_CONF_OPTS += --enable-introspection=yes
> +LIBBLOCKDEV_DEPENDENCIES += gobject-introspection
> +else
> +LIBBLOCKDEV_CONF_OPTS += --enable-introspection=no
> +endif
We don't have GOI support (yet).
> +# Autoreconf requires an existing m4 directory
> +define LIBBLOCKDEV_MKDIR_M4
> + mkdir -p $(@D)/m4
> +endef
> +LIBBLOCKDEV_POST_PATCH_HOOKS += LIBBLOCKDEV_MKDIR_M4
So the change from Michael Walle that allows to drop this was not
merged yet?
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
next prev parent reply other threads:[~2020-02-17 18:56 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-17 14:30 [Buildroot] [PATCH 0/4] udisks bump to version 2.8.4 Giulio Benetti
2020-02-17 14:30 ` [Buildroot] [PATCH 1/4] package/libbytesize: add new package Giulio Benetti
2020-04-12 14:00 ` Thomas Petazzoni
2020-02-17 14:30 ` [Buildroot] [PATCH 2/4] package/volume_key: " Giulio Benetti
2020-02-17 18:51 ` Thomas Petazzoni
2020-02-18 13:46 ` Giulio Benetti
2020-02-18 14:06 ` Giulio Benetti
2020-02-18 14:47 ` Thomas Petazzoni
2020-02-20 16:28 ` Giulio Benetti
2020-02-18 14:46 ` Thomas Petazzoni
2020-02-18 14:55 ` Giulio Benetti
2020-02-17 14:30 ` [Buildroot] [PATCH 3/4] package/libblockdev: " Giulio Benetti
2020-02-17 18:56 ` Thomas Petazzoni [this message]
2020-02-17 14:30 ` [Buildroot] [PATCH 4/4] package/udisks: bump version to 2.8.4 Giulio Benetti
2020-02-17 19:07 ` Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200217195639.0380459c@windsurf \
--to=thomas.petazzoni@bootlin.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox