{"id":815976,"url":"http://patchwork.ozlabs.org/api/patches/815976/?format=json","web_url":"http://patchwork.ozlabs.org/project/buildroot/patch/20170920030210.19446-3-christian@paral.in/","project":{"id":27,"url":"http://patchwork.ozlabs.org/api/projects/27/?format=json","name":"Buildroot development","link_name":"buildroot","list_id":"buildroot.buildroot.org","list_email":"buildroot@buildroot.org","web_url":"","scm_url":"","webscm_url":"","list_archive_url":"","list_archive_url_format":"","commit_url_format":""},"msgid":"<20170920030210.19446-3-christian@paral.in>","list_archive_url":null,"date":"2017-09-20T03:02:03","name":"[2/9] tini: new package","commit_ref":null,"pull_url":null,"state":"rfc","archived":false,"hash":"91f4dff124031f9fea27fcfbeaf7b7464817193a","submitter":{"id":66856,"url":"http://patchwork.ozlabs.org/api/people/66856/?format=json","name":"Christian Stewart","email":"christian@paral.in"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/buildroot/patch/20170920030210.19446-3-christian@paral.in/mbox/","series":[{"id":4003,"url":"http://patchwork.ozlabs.org/api/series/4003/?format=json","web_url":"http://patchwork.ozlabs.org/project/buildroot/list/?series=4003","date":"2017-09-20T03:02:02","name":"Upgrading Go to 1.9 and Docker to v2017.07","version":1,"mbox":"http://patchwork.ozlabs.org/series/4003/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/815976/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/815976/checks/","tags":{},"related":[],"headers":{"Return-Path":"<buildroot-bounces@busybox.net>","X-Original-To":["incoming@patchwork.ozlabs.org","buildroot@lists.busybox.net"],"Delivered-To":["patchwork-incoming@bilbo.ozlabs.org","buildroot@osuosl.org"],"Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=busybox.net\n\t(client-ip=140.211.166.138; helo=whitealder.osuosl.org;\n\tenvelope-from=buildroot-bounces@busybox.net;\n\treceiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=paral-in.20150623.gappssmtp.com\n\theader.i=@paral-in.20150623.gappssmtp.com header.b=\"avwS2IPA\";\n\tdkim-atps=neutral"],"Received":["from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xxl8f5bNYz9s82\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 20 Sep 2017 13:09:38 +1000 (AEST)","from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id E9BC188950;\n\tWed, 20 Sep 2017 03:09:36 +0000 (UTC)","from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 90rqcGJU1119; Wed, 20 Sep 2017 03:09:34 +0000 (UTC)","from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 951A98892B;\n\tWed, 20 Sep 2017 03:09:34 +0000 (UTC)","from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id 0E3471C41D9\n\tfor <buildroot@lists.busybox.net>;\n\tWed, 20 Sep 2017 03:09:33 +0000 (UTC)","from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 0560C8890C\n\tfor <buildroot@lists.busybox.net>;\n\tWed, 20 Sep 2017 03:09:33 +0000 (UTC)","from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id udDDGCdvMYEk for <buildroot@lists.busybox.net>;\n\tWed, 20 Sep 2017 03:09:32 +0000 (UTC)","from mail-wr0-f177.google.com (mail-wr0-f177.google.com\n\t[209.85.128.177])\n\tby whitealder.osuosl.org (Postfix) with ESMTPS id 1F37D81E49\n\tfor <buildroot@buildroot.org>; Wed, 20 Sep 2017 03:09:32 +0000 (UTC)","by mail-wr0-f177.google.com with SMTP id l39so1008704wrl.12\n\tfor <buildroot@buildroot.org>; Tue, 19 Sep 2017 20:09:32 -0700 (PDT)","from ember.home ([2a00:23c1:5b80:3501:e08a:3b55:75b1:41fb])\n\tby smtp.gmail.com with ESMTPSA id\n\ti131sm585601wmf.31.2017.09.19.20.02.15\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128);\n\tTue, 19 Sep 2017 20:02:17 -0700 (PDT)"],"X-Virus-Scanned":["amavisd-new at osuosl.org","amavisd-new at osuosl.org"],"X-Greylist":"from auto-whitelisted by SQLgrey-1.7.6","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=paral-in.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=QeyfTqad9GbvGoeYTTbotewVNyQaJtqLm0P7yG6OKP4=;\n\tb=avwS2IPAvX1/ePCv5Ld6Ek2X4+MiClyGTL41RpaY0DYPFZJawI+CiRKtHTSsSLfeCD\n\tIc5u9PUi3qB9YRMgSFktGmcgwhi08B6Fi3jcYL5M0A0FFwJslfVS8H4Iwkp+uYJ7utS1\n\t0xM03doCCB1X7JZVoLLYmd+O3/jq2tn+vG7eeHRdiXSTex1sa4vtr+hOM1xTYdJxuDJi\n\tZXt2AQsaIAtUnrf0Fw+9EEBKEXnPLiDTSeqIdgvPV+xALrTw3oa3y/dREH2oJXZ5gSrG\n\tUAZwYw2XhWfdzM2ewLO05BC87vPU4ck930YRIHzTi/uHcvCaHlCPkDSEekwWmMttf5wr\n\tf2tw==","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=QeyfTqad9GbvGoeYTTbotewVNyQaJtqLm0P7yG6OKP4=;\n\tb=M7sqh2mHWufp0E+yF3ZwLwFLja30iksD42TeI5skkOxamIUk8ZEnCNX3P9ntprtkMx\n\tkD3jch7xD11wJH7sQTjsG4tdbsjHnFeqavHH+d2v2qiGXTFng2GhJC93wr1fMHWHak3Q\n\tF1/33l84pH74fIEshsDihnHUYPB8OlQqdaCmRWeNsyAjGkeF5ldB8gn/xydbGxTtiupT\n\tdrfbUU6IXF7LyEiyfPV2n2AY6EadKhApHzo3o4mwZuXduCqTPvWnczHUoFn4Qp2r/TAY\n\tEd0XuxKM7MxPSjvwHYzahDQ2jGC2g30wWXP4e1KQ9bfUZZNHIbu10UBaoTEE+fuzW22K\n\tlPpQ==","X-Gm-Message-State":"AHPjjUiNNPSw3/FDcl73PUSP2e4WKUdvPlrkpVbU+uKDIqBWPip7ORJ4\n\thzx6vHzqwflKetbQWy7hbwC3QEaS","X-Google-Smtp-Source":"AOwi7QBpnUIha7Jp+CtfOrl/s3uvHMvoreGwvIP46pplsyp56eNgeJQP9oZ6uB1V5F2Y/jtvlkb0lw==","X-Received":"by 10.223.193.140 with SMTP id x12mr2992215wre.155.1505876537892;\n\tTue, 19 Sep 2017 20:02:17 -0700 (PDT)","From":"Christian Stewart <christian@paral.in>","To":"buildroot@buildroot.org","Date":"Wed, 20 Sep 2017 04:02:03 +0100","Message-Id":"<20170920030210.19446-3-christian@paral.in>","X-Mailer":"git-send-email 2.13.5","In-Reply-To":"<20170920030210.19446-1-christian@paral.in>","References":"<20170920030210.19446-1-christian@paral.in>","Cc":"thomas.petazzoni@free-electrons.com, geoff@infradead.org,\n\tChristian Stewart <christian@paral.in>","Subject":"[Buildroot] [PATCH 2/9] tini: new package","X-BeenThere":"buildroot@busybox.net","X-Mailman-Version":"2.1.18-1","Precedence":"list","List-Id":"Discussion and development of buildroot <buildroot.busybox.net>","List-Unsubscribe":"<http://lists.busybox.net/mailman/options/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=unsubscribe>","List-Archive":"<http://lists.busybox.net/pipermail/buildroot/>","List-Post":"<mailto:buildroot@busybox.net>","List-Help":"<mailto:buildroot-request@busybox.net?subject=help>","List-Subscribe":"<http://lists.busybox.net/mailman/listinfo/buildroot>,\n\t<mailto:buildroot-request@busybox.net?subject=subscribe>","MIME-Version":"1.0","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Errors-To":"buildroot-bounces@busybox.net","Sender":"\"buildroot\" <buildroot-bounces@busybox.net>"},"content":"Tini is a minimal init process to act as PID 1 for containers.\n\nTini can be used to satisfy docker-engine's docker-init binary\nrequirement.\n\nIn many cases docker-init backing processes like Tini must be static, as\nthey are executed inside a container in an unknown environment. This\npatch adds an option to specifically compile Tini statically, even if\nthe system is compiled dynamically.\n\nSigned-off-by: Christian Stewart <christian@paral.in>\n---\n package/Config.in      |  1 +\n package/tini/Config.in | 21 +++++++++++++++++++++\n package/tini/tini.hash |  2 ++\n package/tini/tini.mk   | 41 +++++++++++++++++++++++++++++++++++++++++\n 4 files changed, 65 insertions(+)\n create mode 100644 package/tini/Config.in\n create mode 100644 package/tini/tini.hash\n create mode 100644 package/tini/tini.mk","diff":"diff --git a/package/Config.in b/package/Config.in\nindex 96f04dec7a..b3fb8fa222 100644\n--- a/package/Config.in\n+++ b/package/Config.in\n@@ -1851,6 +1851,7 @@ comment \"Utilities\"\n \tsource \"package/sudo/Config.in\"\n \tsource \"package/terminology/Config.in\"\n \tsource \"package/time/Config.in\"\n+\tsource \"package/tini/Config.in\"\n \tsource \"package/tmux/Config.in\"\n \tsource \"package/which/Config.in\"\n \tsource \"package/xmlstarlet/Config.in\"\ndiff --git a/package/tini/Config.in b/package/tini/Config.in\nnew file mode 100644\nindex 0000000000..323b9d17a1\n--- /dev/null\n+++ b/package/tini/Config.in\n@@ -0,0 +1,21 @@\n+config BR2_PACKAGE_TINI\n+\tbool \"tini\"\n+\thelp\n+\t  tini is a simple but valid init binary to\n+\t  act as PID 1 for containers.\n+\n+\t  https://github.com/krallin/tini\n+\n+if BR2_PACKAGE_TINI\n+\n+config BR2_PACKAGE_TINI_MINIMAL\n+\tbool \"build minimal variant\"\n+\thelp\n+\t  Disables argument parsing and verbose output.\n+\n+config BR2_PACKAGE_TINI_STATIC\n+\tbool \"build static\"\n+\thelp\n+\t  Enables static compilation for tini.\n+\n+endif\ndiff --git a/package/tini/tini.hash b/package/tini/tini.hash\nnew file mode 100644\nindex 0000000000..a4731bb791\n--- /dev/null\n+++ b/package/tini/tini.hash\n@@ -0,0 +1,2 @@\n+# Locally computed\n+sha256\td624bb6fba3bc02701977813b7bdac9dfc9bdeedf88aff67066cf8948d2ec6ab\tv0.14.0.tar.gz\ndiff --git a/package/tini/tini.mk b/package/tini/tini.mk\nnew file mode 100644\nindex 0000000000..6fa40e7920\n--- /dev/null\n+++ b/package/tini/tini.mk\n@@ -0,0 +1,41 @@\n+################################################################################\n+#\n+# tini\n+#\n+################################################################################\n+\n+TINI_VERSION = v0.14.0\n+TINI_SITE = https://github.com/krallin/tini/archive\n+TINI_SOURCE = $(TINI_VERSION).tar.gz\n+TINI_LICENSE = MIT\n+TINI_LICENSE_FILES = LICENSE\n+TINI_CFLAGS = $(TARGET_CFLAGS) -DTINI_VERSION=\\\"$(TINI_VERSION)\\\" -DTINI_GIT=\\\"\\\"\n+\n+ifeq ($(BR2_PACKAGE_TINI_MINIMAL),y)\n+TINI_CFLAGS += -DTINI_MINIMAL\n+endif\n+\n+ifeq ($(BR2_PACKAGE_TINI_STATIC),y)\n+TINI_CFLAGS += -static\n+endif\n+\n+ifeq ($(BR2_TOOLCHAIN_HAS_SSP),y)\n+TINI_CFLAGS += -fstack-protector --param=ssp-buffer-size=4\n+endif\n+\n+define TINI_CONFIGURE_CMDS\n+\tprintf \"#pragma once\\n\" > $(@D)/src/tiniConfig.h\n+endef\n+\n+define TINI_BUILD_CMDS\n+\t$(TARGET_CC) \\\n+\t\t$(TINI_CFLAGS) \\\n+\t\t-o $(@D)/tini $(@D)/src/tini.c\n+endef\n+\n+define TINI_INSTALL_TARGET_CMDS\n+\t$(INSTALL) -D -m 0755 $(@D)/tini $(TARGET_DIR)/usr/bin/tini\n+endef\n+\n+# Tini's CMakeLists.txt is not suitable for Buildroot.\n+$(eval $(generic-package))\n","prefixes":["2/9"]}