From patchwork Sun Oct 29 09:37:56 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcus Folkesson X-Patchwork-Id: 831685 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="j8eB4qQB"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yPsx00MBlz9s7C for ; Sun, 29 Oct 2017 20:38:11 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 783D38914C; Sun, 29 Oct 2017 09:38:08 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 860cg5BDjhTF; Sun, 29 Oct 2017 09:38:06 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id B853989132; Sun, 29 Oct 2017 09:38:06 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 68BEF1BFA57 for ; Sun, 29 Oct 2017 09:38:05 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 63A2C89132 for ; Sun, 29 Oct 2017 09:38:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id I5LNKLVk5qPP for ; Sun, 29 Oct 2017 09:38:04 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-lf0-f67.google.com (mail-lf0-f67.google.com [209.85.215.67]) by whitealder.osuosl.org (Postfix) with ESMTPS id 543428912F for ; Sun, 29 Oct 2017 09:38:04 +0000 (UTC) Received: by mail-lf0-f67.google.com with SMTP id g70so11608586lfl.3 for ; Sun, 29 Oct 2017 02:38:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=121iIVKlupPCOpfZBF3LnG3NeAM4faMex2Ikag3nUAk=; b=j8eB4qQBW+1O9NzTlpSFmHQky+0Lquc+WL2ixTVHh6jHzKKuKFz/Kvu9cYy5z/c3os 5GdxSxSDcqJo/yw8Hs8mMYfRkwcYXJnCq1cG2dA5yvzB895cfSs46N0tmnNwUCAHBhpL AxcJatq+0bvFg7gONSPScTFD1/uU+OgRGk/LJTICJXXYOxeL0oh1dMSX1lBZLNx96gr5 QIVJwScP3kcKrUTSEcyWQ/fzsLhYefBebR89vOtEQqZSUEzEQE/CwKW+xpK1F6Ajn9FC GKn8/Mia1XMOwzWTlWrGNlHZ/4XANHvqmrwRO0gUvZdHzRTqaQVAl77869Gx9/9l3pNo 0oqA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=121iIVKlupPCOpfZBF3LnG3NeAM4faMex2Ikag3nUAk=; b=GxUpNL6nx2iI5E44D+aYas9ygKvm9ZkRHY+g/q0qlRdkn0qUkO0q8z85Y5zRc+Bfis yQpoSVpitwMea237ZZ/vWEbLuz0GWsAPXEKRfZLB0SaRSzMguSMSKKgHrmX/FVOP1xqK a6aQCC2LhWX5UrYP4iAv9/5AFL2Mt54BWwgRaZvcY7vphEocVhKqpkv1PmIlOJR6RZDn IzCWsY2A+IFmLyL+UGxEsH6/WgVxxMEVC8NiSML7O6SE90XBZjBjaby67g9r30ieh3sA 4U6b4/N71GreA9+pvCJbpHPdlogv4JsvPb6RwK7E9/uHXeHRM+uffIz1/C4MeN1r0d7l x0qQ== X-Gm-Message-State: AMCzsaXTsa5zYzcdB3pz7qVcQTMjzNts6oiZ2E/bPPdOy+jHwMVTceq4 5UAPE0Px9rm/3rg9UpLY3IGx+w== X-Google-Smtp-Source: ABhQp+Se3FLzoTvZlW9W9XDkmQXiY5rs6W3pjthn9PWAGehkT6Ye86R0kohAJyHsAA+8ey8XZNmInA== X-Received: by 10.46.99.86 with SMTP id x83mr2373503ljb.161.1509269882107; Sun, 29 Oct 2017 02:38:02 -0700 (PDT) Received: from localhost.localdomain (c-2ec26f73-74736162.cust.telenor.se. [46.194.111.115]) by smtp.gmail.com with ESMTPSA id v26sm2744728ljd.15.2017.10.29.02.38.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 29 Oct 2017 02:38:00 -0700 (PDT) From: Marcus Folkesson To: buildroot@buildroot.org Date: Sun, 29 Oct 2017 10:37:56 +0100 Message-Id: <20171029093756.23671-1-marcus.folkesson@gmail.com> X-Mailer: git-send-email 2.13.1 Cc: Marcus Folkesson Subject: [Buildroot] [RESEND PATCH v4] libostree: new package X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" OSTree is an upgrade system for Linux-based operating systems Signed-off-by: Marcus Folkesson --- v4: - bump version to 2017.12 v3: - move with the package within Config.in to match the chronological order (the former name was just 'ostree') v2: - add e2fsprogs as dependency DEVELOPERS | 3 ++ package/Config.in | 1 + ...Use-autoreconf-from-the-build-environment.patch | 42 ++++++++++++++++++++++ package/libostree/Config.in | 12 +++++++ package/libostree/libostree.mk | 22 ++++++++++++ 5 files changed, 80 insertions(+) create mode 100644 package/libostree/0001-Use-autoreconf-from-the-build-environment.patch create mode 100644 package/libostree/Config.in create mode 100644 package/libostree/libostree.mk diff --git a/DEVELOPERS b/DEVELOPERS index 942abcf836..602122cfed 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1129,6 +1129,9 @@ F: package/turbolua/ N: Marcin Nowakowski F: package/libkcapi/ +N: Marcus Folkesson +F: package/libostree/ + N: Marek Belisko F: package/libatasmart/ F: package/polkit/ diff --git a/package/Config.in b/package/Config.in index d4cf62708a..8fbc213610 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1913,6 +1913,7 @@ menu "System tools" source "package/keyutils/Config.in" source "package/kmod/Config.in" source "package/kvmtool/Config.in" + source "package/libostree/Config.in" source "package/lxc/Config.in" source "package/monit/Config.in" source "package/ncdu/Config.in" diff --git a/package/libostree/0001-Use-autoreconf-from-the-build-environment.patch b/package/libostree/0001-Use-autoreconf-from-the-build-environment.patch new file mode 100644 index 0000000000..36d9b3f15e --- /dev/null +++ b/package/libostree/0001-Use-autoreconf-from-the-build-environment.patch @@ -0,0 +1,42 @@ +From e4b940cc02776edee63c5a706746dc237862151d Mon Sep 17 00:00:00 2001 +From: Marcus Folkesson +Date: Wed, 30 Aug 2017 19:20:35 +0200 +Subject: [PATCH] Use autoreconf from the build environment + +OSTree workarounds a bug in automake in their autogen.sh file. +Use the script but do not call autoreconf from it. + +Signed-off-by: Marcus Folkesson +--- + autogen.sh | 11 ----------- + 1 file changed, 11 deletions(-) + +diff --git a/autogen.sh b/autogen.sh +index 17f6abf4..0dfbb15a 100755 +--- a/autogen.sh ++++ b/autogen.sh +@@ -6,12 +6,6 @@ test -n "$srcdir" || srcdir=. + olddir=`pwd` + cd $srcdir + +-AUTORECONF=`which autoreconf` +-if test -z $AUTORECONF; then +- echo "*** No autoreconf found, please install it ***" +- exit 1 +-fi +- + set -e + + mkdir -p m4 +@@ -37,8 +31,3 @@ sed -e 's,$(libbsdiff_srcpath),bsdiff,g' < bsdiff/Makefile-bsdiff.am >bsdiff/Mak + + # FIXME - figure out how to get aclocal to find this by default + ln -sf ../libglnx/libglnx.m4 buildutil/libglnx.m4 +- +-autoreconf --force --install --verbose +- +-cd $olddir +-test -n "$NOCONFIGURE" || "$srcdir/configure" "$@" +-- +2.13.1 + 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 + select BR2_PACKAGE_PKGCONF + select BR2_PACKAGE_XZ + select BR2_PACKAGE_E2FSPROGS + select BR2_PACKAGE_LIBFUSE + select BR2_PACKAGE_LIBGPGME + help + OSTree is an upgrade system for Linux-based operating systems. + + https://ostree.readthedocs.io/en/latest/ diff --git a/package/libostree/libostree.mk b/package/libostree/libostree.mk new file mode 100644 index 0000000000..5d0483665c --- /dev/null +++ b/package/libostree/libostree.mk @@ -0,0 +1,22 @@ +################################################################################ +# +# libostree +# +################################################################################ + +LIBOSTREE_VERSION = v2017.12 +LIBOSTREE_SITE = https://github.com/ostreedev/ostree.git +LIBOSTREE_SITE_METHOD = git +LIBOSTREE_GIT_SUBMODULES = yes +LIBOSTREE_LICENSE = GPLv2 +LIBOSTREE_LICENSE_FILES = COPYING +LIBOSTREE_AUTORECONF = YES +LIBOSTREE_DEPENDENCIES = libgpgme libglib2 xz libfuse pkgconf e2fsprogs + +# Use their special autogen.sh script to workaround automake bug with subdir-objects and computed paths +define LIBOSTREE_RUN_AUTOGEN + cd $(@D) && PATH=$(BR_PATH) ./autogen.sh +endef +LIBOSTREE_PRE_CONFIGURE_HOOKS += LIBOSTREE_RUN_AUTOGEN + +$(eval $(autotools-package))