Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/613863/?format=api
{ "id": 613863, "url": "http://patchwork.ozlabs.org/api/patches/613863/?format=api", "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/1461358223-18312-12-git-send-email-s.martin49@gmail.com/", "project": { "id": 27, "url": "http://patchwork.ozlabs.org/api/projects/27/?format=api", "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": "<1461358223-18312-12-git-send-email-s.martin49@gmail.com>", "list_archive_url": null, "date": "2016-04-22T20:50:23", "name": "[v9,11/11] docs/manual: document how to debug shell script", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": false, "hash": "58775089507b09bbaed52351d7d1b0905d627aeb", "submitter": { "id": 12868, "url": "http://patchwork.ozlabs.org/api/people/12868/?format=api", "name": "Samuel Martin", "email": "s.martin49@gmail.com" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/1461358223-18312-12-git-send-email-s.martin49@gmail.com/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/613863/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/613863/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" ], "Received": [ "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\tby ozlabs.org (Postfix) with ESMTP id 3qs77x4vk2z9sCk\n\tfor <incoming@patchwork.ozlabs.org>;\n\tSat, 23 Apr 2016 06:51:25 +1000 (AEST)", "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id B17229668D;\n\tFri, 22 Apr 2016 20:51:21 +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 b-OhIJ0vttFf; Fri, 22 Apr 2016 20:51:19 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 03621966C9;\n\tFri, 22 Apr 2016 20:51:03 +0000 (UTC)", "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id ABF6A1C1750\n\tfor <buildroot@lists.busybox.net>;\n\tFri, 22 Apr 2016 20:50:55 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id A93A3C002F\n\tfor <buildroot@lists.busybox.net>;\n\tFri, 22 Apr 2016 20:50: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 grRPHF9IzUfm for <buildroot@lists.busybox.net>;\n\tFri, 22 Apr 2016 20:50:53 +0000 (UTC)", "from mail-wm0-f65.google.com (mail-wm0-f65.google.com\n\t[74.125.82.65])\n\tby fraxinus.osuosl.org (Postfix) with ESMTPS id EB2EEC0079\n\tfor <buildroot@buildroot.org>; Fri, 22 Apr 2016 20:50:52 +0000 (UTC)", "by mail-wm0-f65.google.com with SMTP id n3so7847602wmn.1\n\tfor <buildroot@buildroot.org>; Fri, 22 Apr 2016 13:50:52 -0700 (PDT)", "from bobook.localdomain (ivr94-4-82-229-165-48.fbx.proxad.net.\n\t[82.229.165.48]) by smtp.gmail.com with ESMTPSA id\n\tiv1sm9826507wjb.34.2016.04.22.13.50.50\n\t(version=TLSv1/SSLv3 cipher=OTHER);\n\tFri, 22 Apr 2016 13:50:50 -0700 (PDT)" ], "Authentication-Results": "ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=gmail.com header.i=@gmail.com header.b=OLCNIc+C;\n\tdkim-atps=neutral", "X-Virus-Scanned": [ "amavisd-new at osuosl.org", "amavisd-new at osuosl.org" ], "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=f5YcL5WyJ6E6SfSmiE1MK5SYbfvFeB1n7k4qsei4nC0=;\n\tb=OLCNIc+CRLy/izOS5GkVd3uHVkBD06ZONdFGp/mH2bBYAYa74SulDjJrZY72tQQH0w\n\tE7ZEAMA4DGmOjt8YpY6N3Pr1E4z+quwkTC8a3MwGZ2BTBZUY+333wKJoS1vKNW6XBYoh\n\t17tTzMCCuqcr1TDDl7nhgcuqJ5dP8i9l0TjwcwgKLLoEZFyOweUIbjE42tas7wKSrMKW\n\tJuLPUQPx65NYFL1sEhmUhXFhGmbz35B5u4MUVln+X5Ze7UCi+pUdORFB9NHkk9zd2vQl\n\tUTOugKEpZi57lsKgb/C3dF2u78HjW0q1QAfGCNnlMy1Bw/BC87bSukq1AwJsfi+ICKOF\n\t4YlQ==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=f5YcL5WyJ6E6SfSmiE1MK5SYbfvFeB1n7k4qsei4nC0=;\n\tb=IUxbMlGK/M5GP7GyfqAmwFqJyCW3saXNnsBz/Ci9bp3gjEJ4J3TiouARUMCDtKfXyj\n\tviZBW9CtBxBOIPcNZDKRL9XT3ityXnC8SanRbJ/9f4hLys+6W9aYSkVriaiF5fCTRjS0\n\t8Kfzvc9wc1Cy9gjpWcYLMIRZA7WT+4JZNPNoIKX6/30XLb2K31waO6hjJ6srbMYOjgJQ\n\tnv+YQ0Y/eEe79mYY5H6zZ8u2MX3R44pUWN2gnMgHwsg8Z0KALsrwwsnEDG2PUQ85HP5M\n\tPNDf8lt9CgRAL0KVxpCTJyzR+dzv3VEI+xRhcj3BGGf2kG1F0vc9hWpuL1MjEzivvIiK\n\tZpgg==", "X-Gm-Message-State": "AOPr4FXvlRhkPtLTTZIzKCj9O7vMrQOTQhFBUIi2CFsZ3HEF6m7S1KqxzmdmcFLxBHcaWA==", "X-Received": "by 10.194.125.201 with SMTP id ms9mr22080668wjb.71.1461358251664;\n\tFri, 22 Apr 2016 13:50:51 -0700 (PDT)", "From": "Samuel Martin <s.martin49@gmail.com>", "To": "buildroot@buildroot.org", "Date": "Fri, 22 Apr 2016 22:50:23 +0200", "Message-Id": "<1461358223-18312-12-git-send-email-s.martin49@gmail.com>", "X-Mailer": "git-send-email 2.8.0", "In-Reply-To": "<1461358223-18312-1-git-send-email-s.martin49@gmail.com>", "References": "<1461358223-18312-1-git-send-email-s.martin49@gmail.com>", "Subject": "[Buildroot] [PATCH v9 11/11] docs/manual: document how to debug\n\tshell script", "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": "The method describes here is only true for scripts using the shell\nmodules from support/scripts/shell/*.\n\nSigned-off-by: Samuel Martin <s.martin49@gmail.com>\n\n---\nchanges v8->v9:\n- none\n\nchanges v7->v8:\n- put instrumentation in a subsection (Arnout)\n- minor rewording\n\nchanges v6->v7:\n- new patch\n---\n docs/manual/debugging-buildroot.txt | 17 +++++++++++++++++\n 1 file changed, 17 insertions(+)", "diff": "diff --git a/docs/manual/debugging-buildroot.txt b/docs/manual/debugging-buildroot.txt\nindex f575fc4..b809c2d 100644\n--- a/docs/manual/debugging-buildroot.txt\n+++ b/docs/manual/debugging-buildroot.txt\n@@ -5,6 +5,8 @@\n \n == Debugging Buildroot\n \n+=== Running scripts before and after each build step\n+\n It is possible to instrument the steps +Buildroot+ does when building\n packages. Define the variable +BR2_INSTRUMENTATION_SCRIPTS+ to contain\n the path of one or more scripts (or other executables), in a\n@@ -41,3 +43,18 @@ The script has access to the following variables:\n - +BINARIES_DIR+: the place where all binary files (aka images) are\n stored\n - +BASE_DIR+: the base output directory\n+\n+=== Debugging shell scripts in Buildroot\n+\n+For shell scripts using the _shell modules_ (available in\n++support/scripts/shell/+), an environment variable is available to trace\n+the scripts:\n+\n+ - +SHELL_DEBUG+ adjustes the debug level, from 0 to 3 (only errors to\n+ all debug messages)\n+\n+To enable these debug outputs:\n+\n+----\n+SHELL_DEBUG=3 make\n+----\n", "prefixes": [ "v9", "11/11" ] }