mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-11-16 17:51:30 -10:00
Release notes:
https://github.com/storaged-project/libblockdev/releases/tag/3.6.0
The crypto plugin now uses libdevmapper directly, so add lvm2 to the
dependencies of the crypto plugin (it was previously only pulled in
indirectly through cryptsetup).
Refresh patch 0001 so it applies without fuzz.
Fixes:
https://nvd.nist.gov/vuln/detail/cve-2026-111581
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Signed-off-by: Giulio Benetti <giulio.benetti@benettiengineering.com>
[Julien: marked the commit as "security", add link to CVE]
(cherry picked from commit 80407b615d)
Signed-off-by: Julien Olivain <ju.o@free.fr>
99 lines
2.5 KiB
Makefile
99 lines
2.5 KiB
Makefile
################################################################################
|
|
#
|
|
# libblockdev
|
|
#
|
|
################################################################################
|
|
|
|
LIBBLOCKDEV_VERSION = 3.6.0
|
|
LIBBLOCKDEV_SITE = https://github.com/storaged-project/libblockdev/releases/download/$(LIBBLOCKDEV_VERSION)
|
|
LIBBLOCKDEV_LICENSE = LGPL-2.1
|
|
LIBBLOCKDEV_LICENSE_FILES = LICENSE
|
|
LIBBLOCKDEV_INSTALL_STAGING = YES
|
|
LIBBLOCKDEV_DEPENDENCIES = host-pkgconf libglib2 kmod udev
|
|
# 0001-Provide-replacement-function-for-strerror_l.patch
|
|
LIBBLOCKDEV_AUTORECONF = YES
|
|
|
|
LIBBLOCKDEV_CONF_OPTS = \
|
|
--disable-introspection \
|
|
--with-loop \
|
|
--without-btrfs \
|
|
--without-dm \
|
|
--without-escrow \
|
|
--without-lvm_dbus \
|
|
--without-mpath \
|
|
--without-nvdimm \
|
|
--without-python3 \
|
|
--without-s390 \
|
|
--without-tools
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBBLOCKDEV_CRYPTO),y)
|
|
LIBBLOCKDEV_DEPENDENCIES += cryptsetup keyutils lvm2
|
|
LIBBLOCKDEV_CONF_OPTS += --with-crypto
|
|
else
|
|
LIBBLOCKDEV_CONF_OPTS += --without-crypto
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBBLOCKDEV_FS),y)
|
|
LIBBLOCKDEV_DEPENDENCIES += e2fsprogs parted util-linux
|
|
LIBBLOCKDEV_CONF_OPTS += --with-fs
|
|
else
|
|
LIBBLOCKDEV_CONF_OPTS += --without-fs
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBBLOCKDEV_LOOP),y)
|
|
LIBBLOCKDEV_CONF_OPTS += --with-loop
|
|
else
|
|
LIBBLOCKDEV_CONF_OPTS += --without-loop
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBBLOCKDEV_LVM2),y)
|
|
LIBBLOCKDEV_DEPENDENCIES += json-glib libyaml lvm2 parted
|
|
LIBBLOCKDEV_CONF_OPTS += --with-lvm
|
|
else
|
|
LIBBLOCKDEV_CONF_OPTS += --without-lvm
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBBLOCKDEV_MDRAID),y)
|
|
LIBBLOCKDEV_DEPENDENCIES += libbytesize
|
|
LIBBLOCKDEV_CONF_OPTS += --with-mdraid
|
|
else
|
|
LIBBLOCKDEV_CONF_OPTS += --without-mdraid
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBBLOCKDEV_PART),y)
|
|
LIBBLOCKDEV_DEPENDENCIES += parted util-linux
|
|
LIBBLOCKDEV_CONF_OPTS += --with-part
|
|
else
|
|
LIBBLOCKDEV_CONF_OPTS += --without-part
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBBLOCKDEV_SMART),y)
|
|
LIBBLOCKDEV_DEPENDENCIES += libatasmart
|
|
LIBBLOCKDEV_CONF_OPTS += --with-smart
|
|
else
|
|
LIBBLOCKDEV_CONF_OPTS += --without-smart
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBBLOCKDEV_SMARTMONTOOLS),y)
|
|
LIBBLOCKDEV_DEPENDENCIES += json-glib
|
|
LIBBLOCKDEV_CONF_OPTS += --with-smartmontools
|
|
else
|
|
LIBBLOCKDEV_CONF_OPTS += --without-smartmontools
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBBLOCKDEV_SWAP),y)
|
|
LIBBLOCKDEV_DEPENDENCIES += util-linux
|
|
LIBBLOCKDEV_CONF_OPTS += --with-swap
|
|
else
|
|
LIBBLOCKDEV_CONF_OPTS += --without-swap
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBBLOCKDEV_NVME),y)
|
|
LIBBLOCKDEV_DEPENDENCIES += libnvme
|
|
LIBBLOCKDEV_CONF_OPTS += --with-nvme
|
|
else
|
|
LIBBLOCKDEV_CONF_OPTS += --without-nvme
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|