{"id":815071,"url":"http://patchwork.ozlabs.org/api/1.2/patches/815071/?format=json","web_url":"http://patchwork.ozlabs.org/project/buildroot/patch/e61b7469d3048416c7e3c681a75f773843fe48a6.1505759427.git.baruch@tkos.co.il/","project":{"id":27,"url":"http://patchwork.ozlabs.org/api/1.2/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":"<e61b7469d3048416c7e3c681a75f773843fe48a6.1505759427.git.baruch@tkos.co.il>","list_archive_url":null,"date":"2017-09-18T18:30:27","name":"bash: fix static build","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"3c6c0bfcbb43c15ddb813103e1d7d1275d0d78e3","submitter":{"id":1458,"url":"http://patchwork.ozlabs.org/api/1.2/people/1458/?format=json","name":"Baruch Siach","email":"baruch@tkos.co.il"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/buildroot/patch/e61b7469d3048416c7e3c681a75f773843fe48a6.1505759427.git.baruch@tkos.co.il/mbox/","series":[{"id":3701,"url":"http://patchwork.ozlabs.org/api/1.2/series/3701/?format=json","web_url":"http://patchwork.ozlabs.org/project/buildroot/list/?series=3701","date":"2017-09-18T18:30:27","name":"bash: fix static build","version":1,"mbox":"http://patchwork.ozlabs.org/series/3701/mbox/"}],"comments":"http://patchwork.ozlabs.org/api/patches/815071/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/815071/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>)","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 3xwvhj20Y4z9s7m\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 19 Sep 2017 04:30:52 +1000 (AEST)","from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 8D5528863F;\n\tMon, 18 Sep 2017 18:30:49 +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 7D0Df16yApf8; Mon, 18 Sep 2017 18:30:48 +0000 (UTC)","from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id C77DD88634;\n\tMon, 18 Sep 2017 18:30:48 +0000 (UTC)","from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id 401901C0479\n\tfor <buildroot@lists.busybox.net>;\n\tMon, 18 Sep 2017 18:30:48 +0000 (UTC)","from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 3742788634\n\tfor <buildroot@lists.busybox.net>;\n\tMon, 18 Sep 2017 18:30:48 +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 Wup+pC451pw8 for <buildroot@lists.busybox.net>;\n\tMon, 18 Sep 2017 18:30:46 +0000 (UTC)","from mx.tkos.co.il (guitar.tcltek.co.il [192.115.133.116])\n\tby whitealder.osuosl.org (Postfix) with ESMTPS id 3C24088623\n\tfor <buildroot@busybox.net>; Mon, 18 Sep 2017 18:30:46 +0000 (UTC)","from tarshish.tkos.co.il (unknown [10.0.8.6])\n\t(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128\n\tbits)) (No client certificate requested)\n\tby mx.tkos.co.il (Postfix) with ESMTPSA id 69724440107;\n\tMon, 18 Sep 2017 21:30:23 +0300 (IDT)"],"X-Virus-Scanned":["amavisd-new at osuosl.org","amavisd-new at osuosl.org"],"X-Greylist":"domain auto-whitelisted by SQLgrey-1.7.6","From":"Baruch Siach <baruch@tkos.co.il>","To":"buildroot@busybox.net","Date":"Mon, 18 Sep 2017 21:30:27 +0300","Message-Id":"<e61b7469d3048416c7e3c681a75f773843fe48a6.1505759427.git.baruch@tkos.co.il>","X-Mailer":"git-send-email 2.14.1","Subject":"[Buildroot] [PATCH] bash: fix static build","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":"When building bash statically, configure does not initialize the\nSHOBJ_STATUS variable. The SHOBJ_STATUS make variable in\nexamples/loadables/Makefile.in must resolve to either 'supported' or\n'unsupported'. Otherwise, the install-$(SHOBJ_STATUS) target does not\nexist.\n\nThis leads to the following build failure:\n\nmake[2]: Entering directory '.../output/build/bash-4.4/examples/loadables'\nmake[2]: *** No rule to make target 'install-', needed by 'install'.  Stop.\nmake[2]: Leaving directory '.../output/build/bash-4.4/examples/loadables'\nMakefile:793: recipe for target 'install' failed\n\nwith the following defconfig:\n\nBR2_arm=y\nBR2_STATIC_LIBS=y\nBR2_PACKAGE_BUSYBOX_SHOW_OTHERS=y\nBR2_PACKAGE_BASH=y\n\nSet SHOBJ_STATUS in the configure environment as a workaround.\n\nSigned-off-by: Baruch Siach <baruch@tkos.co.il>\n---\nFor some reason the autobuilders never caught this issue since the 4.4\nversion bump last November (commit cde22e1fd340).\n---\n package/bash/bash.mk | 1 +\n 1 file changed, 1 insertion(+)","diff":"diff --git a/package/bash/bash.mk b/package/bash/bash.mk\nindex 32c87a659e16..dd7c26fc1258 100644\n--- a/package/bash/bash.mk\n+++ b/package/bash/bash.mk\n@@ -25,6 +25,7 @@ BASH_CONF_ENV += \\\n # The static build needs some trickery\n ifeq ($(BR2_STATIC_LIBS),y)\n BASH_CONF_OPTS += --enable-static-link\n+BASH_CONF_ENV += SHOBJ_STATUS=unsupported\n # bash wants to redefine the getenv() function. To check whether this is\n # possible, AC_TRY_RUN is used which is not possible in\n # cross-compilation.\n","prefixes":[]}