From patchwork Wed Aug 30 18:32:49 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcus Folkesson X-Patchwork-Id: 807855 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="U1s1xCQC"; 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 3xjDdw1Bmdz9sMN for ; Thu, 31 Aug 2017 04:33:07 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id B5F0D899D3; Wed, 30 Aug 2017 18:33:02 +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 0ENoOWzRHlAl; Wed, 30 Aug 2017 18:33:01 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by hemlock.osuosl.org (Postfix) with ESMTP id EDE938996B; Wed, 30 Aug 2017 18:33:00 +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 ABB8D1BFE1F for ; Wed, 30 Aug 2017 18:32:59 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id A4E0487903 for ; Wed, 30 Aug 2017 18:32:59 +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 fuzoIXJFfQw2 for ; Wed, 30 Aug 2017 18:32:58 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-lf0-f50.google.com (mail-lf0-f50.google.com [209.85.215.50]) by whitealder.osuosl.org (Postfix) with ESMTPS id 6A8F987863 for ; Wed, 30 Aug 2017 18:32:58 +0000 (UTC) Received: by mail-lf0-f50.google.com with SMTP id z12so27680370lfd.3 for ; Wed, 30 Aug 2017 11:32:58 -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=xyfYI7OkUe95S1ppsxNI/LKrD1CoxQ3uddr53bxqyIQ=; b=U1s1xCQCu+v3NEDusazXvNqcW08zaZVydWw+tqemlNI17QtushEe1cLQF8mTRxaLY8 PVcKmV2/0i19+hZaKI+5MAP9Rv0O9dx9haVr5FZbsPBf7SW/Mrqcsxf3l37V4BpVN9qD V12Jp4DmHLF3zj0zfrvfU8jZySijSsV40VoZR+2d9XuwsHSalR+9tphBby6MG68PLMyd TDGUX+Y7aqnWzirhlLWetnOIalzJ/UlQ+6byMtNjOdfSbQlPI7Xof66vXdhutovRUof+ gCnfSIhj/n1WNOKvQ1Pa+9jANybCY99k89KTFeWLXgRdPzUAXNnN1xo9M4Dep7czuouj 7dIQ== 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=xyfYI7OkUe95S1ppsxNI/LKrD1CoxQ3uddr53bxqyIQ=; b=ap//g1Clfdrwvz9V8Cx7cEtF5bLwgt17iI7OQh41//9wn0g8QF3LEfrwOBwIcibokY XoD6dKodmgaVbCgqQhCJO8ddd78JVjoZK4I9rN5pqNbC+6DwcO8nb4jD2s8gG2J/dgl6 jRvvWNya1eBIoDxcGSQui8vGXJWY9V+hVVptSMneVIuslu86zBrQ0FK1RddSRvuljhBl /1n2PfQZC15+eok2FUbuv8IbRy1zR6RvfuLpn+6f3Ewsov4s3+fwhQZ+LAJoJsOyycH1 aol7YaIsSnDxCGfGl/t78peGdMWGHx3oGmNl7XeWCBJwthZ4ejQa7H56rlg1m/229hZk MpJg== X-Gm-Message-State: AHYfb5ilfHtMxIlICUfHiPac4Cy6e9StMhovhLaexo9DghzqyiSlOz2C 5qJxc7GC2hS2YUzA X-Received: by 10.46.86.212 with SMTP id k81mr1002140lje.105.1504117976317; Wed, 30 Aug 2017 11:32:56 -0700 (PDT) Received: from localhost.localdomain (c-2ec27fd4-74736162.cust.telenor.se. [46.194.127.212]) by smtp.gmail.com with ESMTPSA id 7sm1206160lje.5.2017.08.30.11.32.54 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 30 Aug 2017 11:32:55 -0700 (PDT) From: Marcus Folkesson To: buildroot@buildroot.org Date: Wed, 30 Aug 2017 20:32:49 +0200 Message-Id: <20170830183249.8257-1-marcus.folkesson@gmail.com> X-Mailer: git-send-email 2.13.1 Cc: Marcus Folkesson Subject: [Buildroot] [PATCH] 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 --- 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..28d80343b7 --- /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 + +# 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))