Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/810232/?format=api
{ "id": 810232, "url": "http://patchwork.ozlabs.org/api/1.2/patches/810232/?format=api", "web_url": "http://patchwork.ozlabs.org/project/buildroot/patch/20170905175545.3243-1-yann.morin.1998@free.fr/", "project": { "id": 27, "url": "http://patchwork.ozlabs.org/api/1.2/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": "<20170905175545.3243-1-yann.morin.1998@free.fr>", "list_archive_url": null, "date": "2017-09-05T17:55:45", "name": "Revert \"check-host-rpath: no longer allow $(HOST_DIR)/usr\"", "commit_ref": null, "pull_url": null, "state": "rejected", "archived": false, "hash": "cac0de23f2f1a5b8228a38d6d4ceb480ea9c61fe", "submitter": { "id": 13903, "url": "http://patchwork.ozlabs.org/api/1.2/people/13903/?format=api", "name": "Yann E. MORIN", "email": "yann.morin.1998@free.fr" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/buildroot/patch/20170905175545.3243-1-yann.morin.1998@free.fr/mbox/", "series": [ { "id": 1618, "url": "http://patchwork.ozlabs.org/api/1.2/series/1618/?format=api", "web_url": "http://patchwork.ozlabs.org/project/buildroot/list/?series=1618", "date": "2017-09-05T17:55:45", "name": "Revert \"check-host-rpath: no longer allow $(HOST_DIR)/usr\"", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/1618/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/810232/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/810232/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=gmail.com header.i=@gmail.com\n\theader.b=\"rGuRS9zf\"; dkim-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 3xmvXW6wl6z9t16\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 6 Sep 2017 03:56:10 +1000 (AEST)", "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id EA2DB88ABB;\n\tTue, 5 Sep 2017 17:56:02 +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 c06urN4adSEm; Tue, 5 Sep 2017 17:56:00 +0000 (UTC)", "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 09DC9889E8;\n\tTue, 5 Sep 2017 17:56:00 +0000 (UTC)", "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\tby ash.osuosl.org (Postfix) with ESMTP id D3CED1BFCB4\n\tfor <buildroot@lists.busybox.net>;\n\tTue, 5 Sep 2017 17:55:58 +0000 (UTC)", "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id CC93C86AFD\n\tfor <buildroot@lists.busybox.net>;\n\tTue, 5 Sep 2017 17:55:58 +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 edZoy6FoUvI7 for <buildroot@lists.busybox.net>;\n\tTue, 5 Sep 2017 17:55:57 +0000 (UTC)", "from mail-wr0-f195.google.com (mail-wr0-f195.google.com\n\t[209.85.128.195])\n\tby fraxinus.osuosl.org (Postfix) with ESMTPS id B723486970\n\tfor <buildroot@buildroot.org>; Tue, 5 Sep 2017 17:55:56 +0000 (UTC)", "by mail-wr0-f195.google.com with SMTP id a47so2053924wra.2\n\tfor <buildroot@buildroot.org>; Tue, 05 Sep 2017 10:55:56 -0700 (PDT)", "from localhost.localdomain\n\t(2a01cb0886107300a556795e0851f8aa.ipv6.abo.wanadoo.fr.\n\t[2a01:cb08:8610:7300:a556:795e:851:f8aa])\n\tby smtp.gmail.com with ESMTPSA id\n\ta69sm725824wme.29.2017.09.05.10.55.53\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tTue, 05 Sep 2017 10:55:53 -0700 (PDT)" ], "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=20161025;\n\th=sender:from:to:cc:subject:date:message-id;\n\tbh=oRr7f/3I442yzTA7mGObyd8UxUofJJSGZJc3G+/ASMc=;\n\tb=rGuRS9zfxABD2ItYkEge/ThImuToPDSVqEmKrlvmBijFFnjndMaZZwDlCL8miR84So\n\tR6Kc3HkXXSM4mtpsfTmroQdF82sRR0lUp9woaN16KNccIVbW6VEx4t7JA+p4Q/pxmhS2\n\tB6JyKZJQS74knCKwHsM/HdQpSwQ9hlfJxjQHharlh+sB/mz2dIwHp8BzJFn7RA8ekYzL\n\tqJQoj5gdMWsl3Mu0kln+8FsDJIWp6komlwF70Q9o6YHIDBnb/BBQI69WghMGLUVjBesl\n\tuF+eGFMVXCNLhFXqJhMaNJdIHWxpIxi7Tq3f7KMwiGG8+q3P81p4PpT4aBq2Wq3azfsZ\n\tl1VA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:sender:from:to:cc:subject:date:message-id;\n\tbh=oRr7f/3I442yzTA7mGObyd8UxUofJJSGZJc3G+/ASMc=;\n\tb=aDsdsOLwLmco7HD4vQpHVhr0URm0W37fNtKZc3YjOf2hyTWNTY322+FjTpReH4CgXT\n\tehYPlA8AwqXeZA37JNXR9gAj3OfgLvr0FkvGd0fIZZ9jqtcBUasBJ2IxCwMGwUgMq7XC\n\tZn5YRAsLHbzLQXahuOLAvpZtL95ODFubjbjYtNv+V8uuGA7ZnyC8kAlb3X0M1rKPAMI9\n\tYDMwjBKGEZGYTdskM1U9WSi10xEYL43ESoz9WENRbH3rfdvJMUht/yBr32h9cDmRFmXr\n\te71cHfjKcchkiRM9DSDDtM/BxZ06WyCTwnQu9P1Vj5hdOsETVYot/9TQjgWsCi2oRUSG\n\tkQfQ==", "X-Gm-Message-State": "AHPjjUhEZ7m3IaIQAhDaqj3y7GXHvFplmVPwEkrGcCasDoTh9us8tAkn\n\t/R4ymFioxwZsUec6", "X-Google-Smtp-Source": "ADKCNb5KAkJq7BzCsUfs0osEAYzK/iWw84zA01a+lsHgNwzgaXiFIlrxKnwz/cXFqvFPtUQFqhGcqQ==", "X-Received": "by 10.223.146.4 with SMTP id 4mr3289602wrj.16.1504634154687;\n\tTue, 05 Sep 2017 10:55:54 -0700 (PDT)", "From": "\"Yann E. MORIN\" <yann.morin.1998@free.fr>", "To": "buildroot@buildroot.org", "Date": "Tue, 5 Sep 2017 19:55:45 +0200", "Message-Id": "<20170905175545.3243-1-yann.morin.1998@free.fr>", "X-Mailer": "git-send-email 2.11.0", "Cc": "\"Yann E. MORIN\" <yann.morin.1998@free.fr>,\n\tAdam Duskett <aduskett@gmail.com>", "Subject": "[Buildroot] [PATCH] Revert \"check-host-rpath: no longer allow\n\t$(HOST_DIR)/usr\"", "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": "We no longer have any host package that installs files in\n$(HOST_DIR)/usr, so we indeed no longer have any package that is\nsupposed to have an RPATH to $(HOST_DIR)/usr/lib.\n\nHowever, there exists out-of-tree packages that hard-code that path in\nthere build-system, and they are now broken.\n\nThis reverts commit 1d11d6314cd5ab793b5f2db784d11614f2d2d604.\n\nReported-by: Adam Duskett <aduskett@gmail.com>\nSigned-off-by: \"Yann E. MORIN\" <yann.morin.1998@free.fr>\nCc: Adam Duskett <aduskett@gmail.com>\nCc: Arnout Vandecappelle <arnout@mind.be>\n\n---\nNote: I'm not sure we really want to revert it; this is just to\nkickstart the discussion.\n---\n support/scripts/check-host-rpath | 4 +++-\n 1 file changed, 3 insertions(+), 1 deletion(-)", "diff": "diff --git a/support/scripts/check-host-rpath b/support/scripts/check-host-rpath\nindex 74a25ba99c..2846d5eb51 100755\n--- a/support/scripts/check-host-rpath\n+++ b/support/scripts/check-host-rpath\n@@ -1,7 +1,7 @@\n #!/usr/bin/env bash\n \n # This script scans $(HOST_DIR)/{bin,sbin} for all ELF files, and checks\n-# they have an RPATH to $(HOST_DIR)/lib if they need libraries from\n+# they have an RPATH to $(HOST_DIR)/{,usr/}lib if they need libraries from\n # there.\n \n # Override the user's locale so we are sure we can parse the output of\n@@ -59,6 +59,8 @@ check_elf_has_rpath() {\n # Remove duplicate and trailing '/' for proper match\n dir=\"$( sed -r -e 's:/+:/:g; s:/$::;' <<<\"${dir}\" )\"\n [ \"${dir}\" = \"${hostdir}/lib\" -o \"${dir}\" = \"\\$ORIGIN/../lib\" ] && return 0\n+ # For the time being, the rpath is allowed with both usr/lib and lib\n+ [ \"${dir}\" = \"${hostdir}/usr/lib\" -o \"${dir}\" = \"\\$ORIGIN/../../usr/lib\" ] && return 0\n done\n done < <( readelf -d \"${file}\" \\\n |sed -r -e '/.* \\(R(UN)?PATH\\) +Library r(un)?path: \\[(.+)\\]$/!d' \\\n", "prefixes": [] }