From patchwork Tue Sep 5 08:57:45 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcus Folkesson X-Patchwork-Id: 810015 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.133; helo=hemlock.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="h7NRs3Ff"; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xmgbc6TVYz9s72 for ; Tue, 5 Sep 2017 18:58:04 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 1A534874C3; Tue, 5 Sep 2017 08:58:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id CSw1SGiB0Xuz; Tue, 5 Sep 2017 08:57:59 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id BC607872F7; Tue, 5 Sep 2017 08:57:59 +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 2DDBF1CE899 for ; Tue, 5 Sep 2017 08:57:58 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 27CE985C23 for ; Tue, 5 Sep 2017 08:57:58 +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 qXnjzhSfKo0S for ; Tue, 5 Sep 2017 08:57:57 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-lf0-f41.google.com (mail-lf0-f41.google.com [209.85.215.41]) by whitealder.osuosl.org (Postfix) with ESMTPS id A5EB885961 for ; Tue, 5 Sep 2017 08:57:56 +0000 (UTC) Received: by mail-lf0-f41.google.com with SMTP id d17so8800385lfe.2 for ; Tue, 05 Sep 2017 01:57:56 -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=0/Z2n8O4jUXmDmxbS5nEjQlFlY+3o/STmxkBMsVfOuk=; b=h7NRs3FfTKxsjOznxtvsgpOd7ERu80f/ZIWxhkdRS5pAyOydZIm3EkyZWhudRuPK/Z QL5YD8w+rbK/g635DYVeB47R/6Q3j0kjDyuwK8PCnl4we4Jx/AzDMymP2eacm06q2QBl BLpY3NSalQa0Crm8bSfoXZJ/LAggKIOM2hOBGVar4QxR0AAiV2LwWySvmqS2av33oMrh zVguXg3NSLfUDny2GR3tcNXTR63rxmYAI7zxKsfjc3WYUppwGr/eBDleOO+UXHsxac0Q H8ysGV4Mj6jO3apEd4tp5e1nHBQdjWfWwSZuEXddpOrkgMuZilEGaFvOepVTHGrYuG0N +oIw== 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=0/Z2n8O4jUXmDmxbS5nEjQlFlY+3o/STmxkBMsVfOuk=; b=fm1pWGDu+ecR9S5m04CAgtxrW3KgdaDIhlYegmcyNllKn8Uf1nXLLwQXZNsIZUaAXY XqKaJyZ3Q+hJ7gAxWnx+XNPXWrabpJt1lfwcCG0JLc4OFujSElEgh5rk8E6fB2+YHzPM mU+mX/vv2AofbIfZ8hZQQYAYxRCBnx/8Gq8K86z3hGfC0wQ/e0r1WfimRQLUh9GQzvrc krLLZwVq0PV9Y3qZiqPs6ET7FzhLcZ95YTnhZAWC0jfC76W+ROcXbmsuGoAhtJuR9nGm 0NjNaoF51+NgQz1Vlx3fl6FNXSoxgrCU9OVNFxMxPADdDHED/JXyTha1eN/OGcGPf7rj g2qg== X-Gm-Message-State: AHPjjUjtZ16XvvvarbigJnIv6j92eSr2DM4Ftn81Ec+fl6R+Kb4VgSAZ jk7vyfbBxjqMu2hh X-Google-Smtp-Source: ADKCNb62AgbHTBMwekZxuYn3YpawRv7zK1h/Qps0T+KK86rPYNrQ49oG6BkqQrpWzknKLKMLbpEHwA== X-Received: by 10.46.77.212 with SMTP id c81mr1388504ljd.16.1504601874621; Tue, 05 Sep 2017 01:57:54 -0700 (PDT) Received: from localhost.localdomain (c-2ec2e124-74736162.cust.telenor.se. [46.194.225.36]) by smtp.gmail.com with ESMTPSA id b25sm23045lje.21.2017.09.05.01.57.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Sep 2017 01:57:53 -0700 (PDT) From: Marcus Folkesson To: buildroot@buildroot.org Date: Tue, 5 Sep 2017 10:57:45 +0200 Message-Id: <20170905085745.18783-1-marcus.folkesson@gmail.com> X-Mailer: git-send-email 2.13.1 Cc: Marcus Folkesson Subject: [Buildroot] [PATCH v2] 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 --- 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 f3944e2748..a1cfd9e1bb 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -1100,6 +1100,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 a0868d92ee..12cd6187a5 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1883,6 +1883,7 @@ menu "System tools" source "package/numactl/Config.in" source "package/nut/Config.in" source "package/openvmtools/Config.in" + source "package/libostree/Config.in" source "package/polkit/Config.in" source "package/powerpc-utils/Config.in" source "package/procps-ng/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..75ee53f01c --- /dev/null +++ b/package/libostree/libostree.mk @@ -0,0 +1,22 @@ +################################################################################ +# +# libostree +# +################################################################################ + +LIBOSTREE_VERSION = v2017.10 +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))