From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcus Folkesson Date: Sun, 29 Oct 2017 21:19:34 +0100 Subject: [Buildroot] [RESEND PATCH v4] libostree: new package In-Reply-To: References: <20171029093756.23671-1-marcus.folkesson@gmail.com> Message-ID: <20171029201934.GA30818@gmail.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: buildroot@busybox.net Hi Bernd, Thank you for your comments, really, that was helpful. On Sun, Oct 29, 2017 at 12:03:53PM +0100, Bernd Kuhls wrote: > Hi Marcus, > > Am Sun, 29 Oct 2017 10:37:56 +0100 schrieb Marcus Folkesson: > > you need to propagate some dependencies from packages libostree depends > on. > > > diff --git a/package/libostree/Config.in b/package/libostree/Config.in > > new file mode 100644 > > index 0000000000..520e76ce6a > > --- /dev/null > > +++ b/package/libostree/Config.in > > @@ -0,0 +1,12 @@ > > +config BR2_PACKAGE_LIBOSTREE > > + bool "libostree" > > + select BR2_PACKAGE_LIBGLIB2 > > libglib2 contains: > > depends on BR2_USE_WCHAR # gettext > depends on BR2_TOOLCHAIN_HAS_THREADS > depends on BR2_USE_MMU # fork() > Will do. Actually, I thought Buildroot would handle this. How about dependencies in the next step and so on? > > + > > +LIBOSTREE_VERSION = v2017.12 > > +LIBOSTREE_SITE = https://github.com/ostreedev/ostree.git > > +LIBOSTREE_SITE_METHOD = git > > +LIBOSTREE_GIT_SUBMODULES = yes > > What about using the tarball provided by upstream? > > LIBOSTREE_VERSION = 2017.12 > LIBOSTREE_SOURCE = libostree-$(LIBOSTREE_VERSION).tar.xz > LIBOSTREE_SITE = https://github.com/ostreedev/ostree/releases/download/v > $(LIBOSTREE_VERSION) > > It contains the git submodules as well so you can drop autoreconf and > patch 0001. Please also add a hash file. > Tarball is a much better approach. I was looking at this first but dropped it since I did not saw the submodules. Guess I was looking at https://github.com/ostreedev/ostree/archive/v2017.12.tar.gz then, not the actual releases. > > +LIBOSTREE_LICENSE = GPLv2 > > +LIBOSTREE_LICENSE_FILES = COPYING > > +LIBOSTREE_AUTORECONF = YES > > +LIBOSTREE_DEPENDENCIES = libgpgme libglib2 xz libfuse pkgconf e2fsprogs > > Please sort this list alphabetically and add host-pkgconf as it is used > by configure. > Ok. > > +# Use their special autogen.sh script to workaround automake bug with > subdir-objects and computed paths > > Please wrap this line to 72 chars. > Ok. > > +define LIBOSTREE_RUN_AUTOGEN > > + cd $(@D) && PATH=$(BR_PATH) ./autogen.sh > > +endef > > +LIBOSTREE_PRE_CONFIGURE_HOOKS += LIBOSTREE_RUN_AUTOGEN > > + > > +$(eval $(autotools-package)) > > Please add openssl as optional dependency: > > ifeq ($(BR2_PACKAGE_OPENSSL),y) > LIBOSTREE_CONF_OPTS += --with-openssl > LIBOSTREE_DEPENDENCIES += openssl > else > LIBOSTREE_CONF_OPTS += --without-openssl > endif > > Same for avahi, libarchive, libcurl, libsoup and systemd. Will do. > > Please note that curl support also needs libsoup > > configure: error: Curl enabled, but libsoup is not; libsoup is needed for > tests > > To solve this configure error: > > checking for gpgme-config... no > checking for OT_DEP_GPGME... no > checking for GPGME pthread - version >= 1.1.8... no > configure: error: Need GPGME_PTHREAD version 1.1.8 or later > > I needed to add > > LIBOSTREE_CONF_OPTS += --with-gpgme-prefix=$(STAGING_DIR)/usr > > Regards, Bernd > Best regards Marcus Folkesson