d8bb9b5f8a
parted uses libiconv but doesn't link with it. Add a patch to add it to LIBADD of the library that uses it. iconv was already checked in configure.ac, but only if i18n is enabled, so the iconv check is also added unconditionally in configure.ac. Also add an optional dependency on libiconv, so it is reproducible. This was not detected in the autobuilders, since it only occurs when libiconv exists (otherwise uClibc stubs will be used). libiconv depends on !BR2_ENABLE_LOCALE and parted depends on BR2_USE_WCHAR. We don't have such a configuration in the autobuilders. Upstream status: sent to mailing list http://lists.alioth.debian.org/pipermail/parted-devel/2017-November/005131.html Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Cc: Sjoerd Venema <srg.venema@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
48 lines
1.2 KiB
Makefile
48 lines
1.2 KiB
Makefile
################################################################################
|
|
#
|
|
# parted
|
|
#
|
|
################################################################################
|
|
|
|
PARTED_VERSION = 3.2
|
|
PARTED_SOURCE = parted-$(PARTED_VERSION).tar.xz
|
|
PARTED_SITE = $(BR2_GNU_MIRROR)/parted
|
|
PARTED_DEPENDENCIES = host-pkgconf util-linux
|
|
PARTED_INSTALL_STAGING = YES
|
|
# 0002-configure.ac-uclinux-is-also-linux.patch
|
|
# 0004-libparted-labels-link-with-libiconv-if-needed.patch
|
|
PARTED_AUTORECONF = YES
|
|
PARTED_GETTEXTIZE = YES
|
|
PARTED_LICENSE = GPL-3.0+
|
|
PARTED_LICENSE_FILES = COPYING
|
|
|
|
ifeq ($(BR2_PACKAGE_READLINE),y)
|
|
PARTED_DEPENDENCIES += readline
|
|
PARTED_CONF_OPTS += --with-readline
|
|
else
|
|
PARTED_CONF_OPTS += --without-readline
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LVM2),y)
|
|
PARTED_DEPENDENCIES += lvm2
|
|
PARTED_CONF_OPTS += --enable-device-mapper
|
|
else
|
|
PARTED_CONF_OPTS += --disable-device-mapper
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBICONV),y)
|
|
PARTED_DEPENDENCIES += libiconv
|
|
endif
|
|
|
|
ifeq ($(BR2_STATIC_LIBS),y)
|
|
PARTED_CONF_OPTS += --disable-dynamic-loading
|
|
endif
|
|
|
|
HOST_PARTED_DEPENDENCIES = host-pkgconf host-util-linux
|
|
HOST_PARTED_CONF_OPTS += \
|
|
--without-readline \
|
|
--disable-device-mapper
|
|
|
|
$(eval $(autotools-package))
|
|
$(eval $(host-autotools-package))
|