2017-11-12 22:06:09 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libostree
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2019-12-11 21:27:16 +01:00
|
|
|
LIBOSTREE_VERSION_MAJOR = 2019.6
|
2019-10-05 18:43:00 +02:00
|
|
|
LIBOSTREE_VERSION= $(LIBOSTREE_VERSION_MAJOR)
|
2017-11-12 22:06:09 +01:00
|
|
|
LIBOSTREE_SOURCE = libostree-$(LIBOSTREE_VERSION).tar.xz
|
2018-11-20 22:48:24 +01:00
|
|
|
LIBOSTREE_SITE = https://github.com/ostreedev/ostree/releases/download/v$(LIBOSTREE_VERSION_MAJOR)
|
2017-11-12 22:06:09 +01:00
|
|
|
|
2017-12-07 13:03:13 +01:00
|
|
|
LIBOSTREE_LICENSE = LGPL-2.0+
|
2017-11-12 22:06:09 +01:00
|
|
|
LIBOSTREE_LICENSE_FILES = COPYING
|
2018-07-27 21:40:32 +02:00
|
|
|
LIBOSTREE_DEPENDENCIES = e2fsprogs host-bison host-pkgconf libfuse libglib2 libgpg-error libgpgme xz
|
2017-12-07 13:03:42 +01:00
|
|
|
LIBOSTREE_INSTALL_STAGING = YES
|
2017-11-12 22:06:09 +01:00
|
|
|
|
2018-07-27 21:40:32 +02:00
|
|
|
LIBOSTREE_CONF_ENV = \
|
|
|
|
GPG_ERROR_CONFIG=$(STAGING_DIR)/usr/bin/gpg-error-config
|
2017-12-02 08:58:49 +01:00
|
|
|
LIBOSTREE_CONF_OPTS += \
|
|
|
|
--with-gpgme-prefix=$(STAGING_DIR)/usr \
|
|
|
|
--disable-gtk-doc \
|
|
|
|
--disable-gtk-doc-html \
|
|
|
|
--disable-gtk-doc-pdf \
|
package/libostree: disable introspection
Build fails if gobject-introspection is built before libostree:
./.libs/libostree-1.so: error adding symbols: File in wrong format
collect2: error: ld returned 1 exit status
src/libostree/ostree-repo-deprecated.h:28: Warning: OSTree: symbol='G_GNUC_DEPRECATED_FOR': Skipping foreign symbol from namespace Gio
linking of temporary binary failed: Command '['/bin/bash', './libtool', '--mode=link', '--tag=CC', '--silent', 'gcc', '-o', '/home/buildroot/autobuild/instance-2/output-1/build/libostree-2019.6/tmp-introspectvtkql2xj/OSTree-1.0', '-export-dynamic', '-D_LARGEFILE_SOURCE', '-D_LARGEFILE64_SOURCE', '-D_FILE_OFFSET_BITS=64', '-D_LARGEFILE_SOURCE', '-D_LARGEFILE64_SOURCE', '-D_FILE_OFFSET_BITS=64', '-Os', '/home/buildroot/autobuild/instance-2/output-1/build/libostree-2019.6/tmp-introspectvtkql2xj/OSTree-1.0.o', '-L.', 'libostree-1.la', '-L/home/buildroot/autobuild/instance-2/output-1/host/bin/../aarch64-buildroot-linux-gnu/sysroot/usr/lib', '-lgio-2.0', '-lgobject-2.0', '-Wl,--export-dynamic', '-lgmodule-2.0', '-pthread', '-lglib-2.0', '-lglib-2.0']' returned non-zero exit status 1.
/home/buildroot/autobuild/instance-2/output-1/host/bin/../aarch64-buildroot-linux-gnu/sysroot/usr/lib/../share/gobject-introspection-1.0/Makefile.introspection:155: recipe for target 'OSTree-1.0.gir' failed
Fixes:
- http://autobuild.buildroot.org/results/f8a14307e6feff61acd963d6cd2aac289e6d1647
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
2020-03-20 18:29:48 +01:00
|
|
|
--disable-introspection \
|
2017-12-02 08:58:49 +01:00
|
|
|
--disable-man
|
2017-11-12 22:06:09 +01:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
LIBOSTREE_CONF_OPTS += --with-openssl
|
|
|
|
LIBOSTREE_DEPENDENCIES += openssl
|
|
|
|
else
|
|
|
|
LIBOSTREE_CONF_OPTS += --without-openssl
|
|
|
|
endif
|
|
|
|
|
2017-12-22 00:19:32 +01:00
|
|
|
# Avahi support needs libavahi-client, which is built by avahi if avahi-daemon
|
|
|
|
# and dbus is selected. Since there is no BR2_PACKAGE_LIBAVAHI_CLIENT config
|
|
|
|
# option yet, use the avahi-daemon and dbus config symbols to check for
|
|
|
|
# libavahi-client.
|
|
|
|
ifeq ($(BR2_PACKAGE_AVAHI_DAEMON)$(BR2_PACKAGE_DBUS),yy)
|
2017-11-12 22:06:09 +01:00
|
|
|
LIBOSTREE_CONF_OPTS += --with-avahi
|
|
|
|
LIBOSTREE_DEPENDENCIES += avahi
|
|
|
|
else
|
|
|
|
LIBOSTREE_CONF_OPTS += --without-avahi
|
|
|
|
endif
|
|
|
|
|
|
|
|
#cURL support depends on libsoup
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBSOUP),y)
|
2018-06-29 10:13:00 +02:00
|
|
|
LIBOSTREE_CONF_OPTS += --with-soup
|
2017-11-12 22:06:09 +01:00
|
|
|
LIBOSTREE_DEPENDENCIES += libsoup
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBCURL),y)
|
|
|
|
LIBOSTREE_CONF_OPTS += --with-curl
|
|
|
|
LIBOSTREE_DEPENDENCIES += libcurl
|
|
|
|
else
|
|
|
|
LIBOSTREE_CONF_OPTS += --without-curl
|
|
|
|
endif
|
|
|
|
else
|
2018-06-29 10:13:00 +02:00
|
|
|
LIBOSTREE_CONF_OPTS += --without-soup --without-curl
|
2017-11-12 22:06:09 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBARCHIVE),y)
|
|
|
|
LIBOSTREE_CONF_OPTS += --with-libarchive
|
|
|
|
LIBOSTREE_DEPENDENCIES += libarchive
|
|
|
|
else
|
|
|
|
LIBOSTREE_CONF_OPTS += --without-libarchive
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
|
|
|
|
LIBOSTREE_CONF_OPTS += --with-selinux
|
|
|
|
LIBOSTREE_DEPENDENCIES += libselinux
|
|
|
|
else
|
|
|
|
LIBOSTREE_CONF_OPTS += --without-selinux
|
|
|
|
endif
|
|
|
|
|
2018-11-20 22:48:23 +01:00
|
|
|
ifeq ($(BR2_INIT_SYSTEMD),y)
|
|
|
|
LIBOSTREE_CONF_OPTS += \
|
|
|
|
--with-libsystemd \
|
|
|
|
--with-systemdsystemunitdir=/usr/lib/systemd/system
|
|
|
|
LIBOSTREE_DEPENDENCIES += systemd
|
|
|
|
else
|
|
|
|
LIBOSTREE_CONF_OPTS += --without-libsystemd
|
|
|
|
endif
|
|
|
|
|
2017-11-12 22:06:09 +01:00
|
|
|
$(eval $(autotools-package))
|