{"id":815971,"url":"http://patchwork.ozlabs.org/api/patches/815971/?format=json","web_url":"http://patchwork.ozlabs.org/project/buildroot/patch/20170920030210.19446-2-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-2-christian@paral.in>","list_archive_url":null,"date":"2017-09-20T03:02:02","name":"[1/9] dumb-init: new package","commit_ref":null,"pull_url":null,"state":"rfc","archived":false,"hash":"493c71b3867071b804c836a2f52037d3cdcdd870","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-2-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/815971/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/815971/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.133; helo=hemlock.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=\"nQqRpo2w\";\n\tdkim-atps=neutral"],"Received":["from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\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 3xxl6n3vvBz9s82\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 20 Sep 2017 13:08:01 +1000 (AEST)","from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 0EF8987A51;\n\tWed, 20 Sep 2017 03:07:58 +0000 (UTC)","from hemlock.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id yCUGF1LdlK4e; Wed, 20 Sep 2017 03:07:57 +0000 (UTC)","from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 41A0387E31;\n\tWed, 20 Sep 2017 03:07:57 +0000 (UTC)","from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id EDA9B1BFB70\n\tfor <buildroot@lists.busybox.net>;\n\tWed, 20 Sep 2017 03:07:55 +0000 (UTC)","from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id E7BAC87305\n\tfor <buildroot@lists.busybox.net>;\n\tWed, 20 Sep 2017 03:07:55 +0000 (UTC)","from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id RJTXRR7Cv5md for <buildroot@lists.busybox.net>;\n\tWed, 20 Sep 2017 03:07:55 +0000 (UTC)","from mail-wr0-f180.google.com (mail-wr0-f180.google.com\n\t[209.85.128.180])\n\tby fraxinus.osuosl.org (Postfix) with ESMTPS id E3221872C4\n\tfor <buildroot@buildroot.org>; Wed, 20 Sep 2017 03:07:54 +0000 (UTC)","by mail-wr0-f180.google.com with SMTP id 108so1020240wra.5\n\tfor <buildroot@buildroot.org>; Tue, 19 Sep 2017 20:07:54 -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:15 -0700 (PDT)"],"X-Virus-Scanned":["amavisd-new at osuosl.org","amavisd-new at osuosl.org"],"X-Greylist":"delayed 00:05:38 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=V7EtyuCG83eCZ5PSeD2zrChpgQgJK76/gEsHCnkQP8A=;\n\tb=nQqRpo2w+vIg3Il0a98V9O5K2uFLNlL+aaI5ACotW6QzN+wmaBjECo7bSLbJq/075W\n\tqaD2ADZymnQADPzXHLzgc/eaBukn38klgJP7bN3B9cevicXgEjTdcylllUJAcOrG141G\n\toqllISR/iCQ0b56N7WIf3ehX26bSW32Qd28um/MN9xFdeTsMJx3MmGHfkpzcpVhjJ6en\n\tUJuWnkb2Du5gHd6/lFBsQ8zrGcrgN7KU3tlnqQWsCvj3WAjCZQpgVV1IOaXxtCBpqiu4\n\tw8Rv3R84tTK3VASC2hDRLEKXSYjB92ZRnoElXy/R4EaND2NuEPEmMTB4hjcpml4ZhTHd\n\tXWfw==","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=V7EtyuCG83eCZ5PSeD2zrChpgQgJK76/gEsHCnkQP8A=;\n\tb=sI+Hdg6mPrbMydBqOypVOMql+x18wiFTZ2nZhFxQh/l8rP5tVlrjs0l8/bBbc7cFAe\n\tDpdHubmiKiuhMs02uS3W82nGgZvFKIp/x1s8e7SaA14YYy12VDkxkSSWr6urzs/M5Tod\n\toDFE2Ur0vo+YS4iasO7SZpaUz3HSMvlqPsF7yaa5x7aNmHKz02SedOnOXCJkJ0rVt5NX\n\tD3vjOK6Oszbe6i7U0xkSilPnP8t3mndaPSOpgB/xa95Bheus4c9o6u2602NlsPT/0Upf\n\tPriIb6UwNKnc3IHRUlENg30B1deiVNwkiURPhHuSwHu+zXtf7Rb9eEcvuf7QpBnvLrht\n\trPdA==","X-Gm-Message-State":"AHPjjUgyEbRN2RTgQFVuAoLyd4+CyNJ2iJ6lJJe/KMFkq3GDNRTQJ+qx\n\t2gEc5NTuFpr/oVOKLE3m8GhZsvGa","X-Google-Smtp-Source":"AOwi7QCm3I7lIABFkl8CR+PVOcatXkewMpl8WTnrtRqV6qWhTj2MgDoUT0pn2xTpStlwIkV8lfRdog==","X-Received":"by 10.223.130.116 with SMTP id 107mr3257038wrb.240.1505876535808;\n\tTue, 19 Sep 2017 20:02:15 -0700 (PDT)","From":"Christian Stewart <christian@paral.in>","To":"buildroot@buildroot.org","Date":"Wed, 20 Sep 2017 04:02:02 +0100","Message-Id":"<20170920030210.19446-2-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 1/9] dumb-init: 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":"dumb-init is a minimal init process to act as PID 1 for containers.\n\ndumb-init can be used to satisfy docker-engine's docker-init binary\nrequirement.\n\nIn many cases docker-init backing processes like dumb-init must be static, as\nthey are executed inside a container in an unknown environment. This\npatch includes an option to specifically compile dumb-init 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/dumb-init/Config.in      | 16 ++++++++++++++++\n package/dumb-init/dumb-init.hash |  2 ++\n package/dumb-init/dumb-init.mk   | 27 +++++++++++++++++++++++++++\n 4 files changed, 46 insertions(+)\n create mode 100644 package/dumb-init/Config.in\n create mode 100644 package/dumb-init/dumb-init.hash\n create mode 100644 package/dumb-init/dumb-init.mk","diff":"diff --git a/package/Config.in b/package/Config.in\nindex 48d1381921..96f04dec7a 100644\n--- a/package/Config.in\n+++ b/package/Config.in\n@@ -1835,6 +1835,7 @@ comment \"Utilities\"\n \tsource \"package/crudini/Config.in\"\n \tsource \"package/dialog/Config.in\"\n \tsource \"package/dtach/Config.in\"\n+\tsource \"package/dumb-init/Config.in\"\n \tsource \"package/file/Config.in\"\n \tsource \"package/easy-rsa/Config.in\"\n \tsource \"package/gnupg/Config.in\"\ndiff --git a/package/dumb-init/Config.in b/package/dumb-init/Config.in\nnew file mode 100644\nindex 0000000000..aaad119a15\n--- /dev/null\n+++ b/package/dumb-init/Config.in\n@@ -0,0 +1,16 @@\n+config BR2_PACKAGE_DUMB_INIT\n+\tbool \"dumb-init\"\n+\thelp\n+\t  dumb-init is a simple but valid init binary to\n+\t  act as PID 1 for containers.\n+\n+\t  https://github.com/Yelp/dumb-init\n+\n+if BR2_PACKAGE_DUMB_INIT\n+\n+config BR2_PACKAGE_DUMB_INIT_STATIC\n+\tbool \"build static\"\n+\thelp\n+\t  Enables static compilation for dumb-init.\n+\n+endif\ndiff --git a/package/dumb-init/dumb-init.hash b/package/dumb-init/dumb-init.hash\nnew file mode 100644\nindex 0000000000..4705ce4368\n--- /dev/null\n+++ b/package/dumb-init/dumb-init.hash\n@@ -0,0 +1,2 @@\n+# Locally computed\n+sha256\t74486997321bd939cad2ee6af030f481d39751bc9aa0ece84ed55f864e309a3f\tv1.2.0.tar.gz\ndiff --git a/package/dumb-init/dumb-init.mk b/package/dumb-init/dumb-init.mk\nnew file mode 100644\nindex 0000000000..cc24ffafa1\n--- /dev/null\n+++ b/package/dumb-init/dumb-init.mk\n@@ -0,0 +1,27 @@\n+################################################################################\n+#\n+# dumb-init\n+#\n+################################################################################\n+\n+DUMB_INIT_VERSION = v1.2.0\n+DUMB_INIT_SITE = https://github.com/Yelp/dumb-init/archive\n+DUMB_INIT_SOURCE = $(DUMB_INIT_VERSION).tar.gz\n+DUMB_INIT_LICENSE = MIT\n+DUMB_INIT_LICENSE_FILES = LICENSE\n+\n+ifeq ($(BR2_PACKAGE_DUMB_INIT_STATIC),y)\n+DUMB_INIT_CFLAGS += -static\n+endif\n+\n+define DUMB_INIT_BUILD_CMDS\n+\t$(TARGET_CC) \\\n+\t\t$(DUMB_INIT_CFLAGS) \\\n+\t\t-o $(@D)/dumb-init $(@D)/dumb-init.c\n+endef\n+\n+define DUMB_INIT_INSTALL_TARGET_CMDS\n+\t$(INSTALL) -D -m 0755 $(@D)/dumb-init $(TARGET_DIR)/usr/bin/dumb-init\n+endef\n+\n+$(eval $(generic-package))\n","prefixes":["1/9"]}