From patchwork Sat Mar 11 12:47:44 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?J=C3=B6rg_Krause?= X-Patchwork-Id: 737663 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vgP785HsTz9s7C for ; Sat, 11 Mar 2017 23:48:03 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="key not found in DNS" (0-bit key; unprotected) header.d=embedded.rocks header.i=@embedded.rocks header.b="HeDWk6EK"; dkim-atps=neutral Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 5F04C3083F; Sat, 11 Mar 2017 12:47:59 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id piUGGzC8D9lm; Sat, 11 Mar 2017 12:47:56 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by silver.osuosl.org (Postfix) with ESMTP id 30F0B3083E; Sat, 11 Mar 2017 12:47:56 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 4AC0D1C0F5C for ; Sat, 11 Mar 2017 12:47:55 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 43DDE89FC6 for ; Sat, 11 Mar 2017 12:47:55 +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 WAHXVgrE1Kdh for ; Sat, 11 Mar 2017 12:47:54 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mout02.posteo.de (mout02.posteo.de [185.67.36.142]) by hemlock.osuosl.org (Postfix) with ESMTPS id AFBFF89F76 for ; Sat, 11 Mar 2017 12:47:53 +0000 (UTC) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 3vgP6t2Ql4z109B; Sat, 11 Mar 2017 13:47:49 +0100 (CET) Authentication-Results: mail.embedded.rocks (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=embedded.rocks DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=embedded.rocks; h=content-transfer-encoding:content-type:content-type :mime-version:x-mailer:message-id:date:date:subject:subject:from :from:received:received; s=default; t=1489236468; x=1489841269; bh=9T1bZysZx/1g0hPAKmIFKnjG98VLgfEiaFPIaTbYKDg=; b=HeDWk6EKdaCr n/pQNuY65OElCRVa1jkFTD+6pgjRTQ/GxCRiig9gLbm8eOZgfIR4uSGD/+ens9Xl 3+uWIEVRn/N1Fd8sIo364GQODXUFnpkljfP7cuw0ZVNWkgBYDNkGYvSsEuT3jzDd 7Yv3NGDtFLnMeysPSzJ1/zhdzIg3wyZYf95cOfCaS1mosVfsRBmVyhDJHYROtALE VYHvEUDSoits7aQtxU7wSF3hKRbHgPOpiioS4jzzsnmP3DkK8a5ayGyLseMBl1Fu 98EZLycoYBenGa5zq1TZuLk8+QUGkVjaB9bJpqSzYXLHD/EAZPi8ZbVwoA/UhAFV LPZ/VFM9gg== Received: from mail.embedded.rocks ([127.0.0.1]) by localhost (mail.embedded.rocks [127.0.0.1]) (amavisd-new, port 10025) with ESMTP id t9j76WQ6b5O9; Sat, 11 Mar 2017 13:47:48 +0100 (CET) Received: from nzxt.fritz.box (x4d020b41.dyn.telefonica.de [77.2.11.65]) (Authenticated sender: joerg.krause@embedded.rocks) by mail.embedded.rocks (Postfix) with ESMTPSA; Sat, 11 Mar 2017 13:47:48 +0100 (CET) From: =?UTF-8?q?J=C3=B6rg=20Krause?= To: buildroot@buildroot.org Date: Sat, 11 Mar 2017 13:47:44 +0100 Message-Id: <20170311124744.22020-1-joerg.krause@embedded.rocks> X-Mailer: git-send-email 2.12.0 MIME-Version: 1.0 Cc: Romain Naour Subject: [Buildroot] [PATCH v2] augeas: 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: , Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Augeas is a configuration editing tool. It parses configuration files in their native formats and transforms them into a tree. Configuration changes are made by manipulating this tree and saving it back into native config files. Signed-off-by: Jörg Krause Cc: Romain Naour --- v2 (suggested by Romain Naour): * fix line wrap of help text * disable for arc (toolchain issue) * depend of wchar * fetch upstream patch to fix static linking --- DEVELOPERS | 1 + package/Config.in | 1 + package/augeas/Config.in | 19 +++++++++++++++++++ package/augeas/augeas.hash | 3 +++ package/augeas/augeas.mk | 25 +++++++++++++++++++++++++ 5 files changed, 49 insertions(+) create mode 100644 package/augeas/Config.in create mode 100644 package/augeas/augeas.hash create mode 100644 package/augeas/augeas.mk diff --git a/DEVELOPERS b/DEVELOPERS index 8daf6705f..99e275442 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -913,6 +913,7 @@ F: package/x11r7/xdriver_xf86-video-imx-viv/ N: Jörg Krause F: board/lemaker/bananapro/ F: configs/bananapro_defconfig +F: package/augeas/ F: package/bctoolbox/ F: package/libshout/ F: package/libupnpp/ diff --git a/package/Config.in b/package/Config.in index 7721727bb..16e232e67 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1417,6 +1417,7 @@ menu "Security" endmenu menu "Text and terminal handling" + source "package/augeas/Config.in" source "package/enchant/Config.in" source "package/icu/Config.in" source "package/libcli/Config.in" diff --git a/package/augeas/Config.in b/package/augeas/Config.in new file mode 100644 index 000000000..c308db9a9 --- /dev/null +++ b/package/augeas/Config.in @@ -0,0 +1,19 @@ +config BR2_PACKAGE_AUGEAS + bool "augeas" + # ARC toolchain issue: + # https://github.com/foss-for-synopsys-dwc-arc-processors/toolchain/issues/108 + depends on !BR2_arc + depends on BR2_USE_WCHAR + select BR2_PACKAGE_LIBXML2 + select BR2_PACKAGE_READLINE + help + Augeas is a configuration editing tool. It parses + configuration files in their native formats and transforms + them into a tree. Configuration changes are made by + manipulating this tree and saving it back into native config + files. + + http://augeas.net + +comment "augeas needs a toolchain w/ wchar" + depends on !BR2_USE_WCHAR diff --git a/package/augeas/augeas.hash b/package/augeas/augeas.hash new file mode 100644 index 000000000..04fbcba3e --- /dev/null +++ b/package/augeas/augeas.hash @@ -0,0 +1,3 @@ +# Locally calculated +sha256 b9315575d07f7ba28ca2f9f60b4987dfe77b5970c98b59dc6ca7873fc4979763 augeas-1.7.0.tar.gz +sha256 12a987e78166032b59d816aced96c97813cb109108e7c2336cb8ae369c32e2bf 05a27f4e374e9f0dc2cda6301b52d2a6b109b2e8.patch diff --git a/package/augeas/augeas.mk b/package/augeas/augeas.mk new file mode 100644 index 000000000..e52ef046d --- /dev/null +++ b/package/augeas/augeas.mk @@ -0,0 +1,25 @@ +################################################################################ +# +# augeas +# +################################################################################ + +AUGEAS_VERSION = 1.7.0 +AUGEAS_SITE = http://download.augeas.net +AUGEAS_INSTALL_STAGING = YES +AUGEAS_LICENSE = LGPLv2.1+ +AUGEAS_LICENSE_FILES = COPYING +AUGEAS_DEPENDENCIES = host-pkgconf readline libxml2 + +# Fetch upstream patch to fix static linking +AUGEAS_PATCH = https://github.com/hercules-team/augeas/commit/05a27f4e374e9f0dc2cda6301b52d2a6b109b2e8.patch + +AUGEAS_CONF_OPTS = --disable-gnulib-tests + +# Remove the test lenses which occupy about 1.4 MB on the target +define AUGEAS_REMOVE_TEST_LENSES + rm -rf $(TARGET_DIR)/usr/share/augeas/lenses/dist/tests +endef +AUGEAS_POST_INSTALL_TARGET_HOOKS += AUGEAS_REMOVE_TEST_LENSES + +$(eval $(autotools-package))