{"id":803734,"url":"http://patchwork.ozlabs.org/api/1.2/patches/803734/?format=json","web_url":"http://patchwork.ozlabs.org/project/buildroot/patch/20170820144154.15347-1-romain.naour@gmail.com/","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":"<20170820144154.15347-1-romain.naour@gmail.com>","list_archive_url":null,"date":"2017-08-20T14:41:54","name":"glibc: needs kernel headers >= 4.5 on mips(64)","commit_ref":null,"pull_url":null,"state":"changes-requested","archived":false,"hash":"d2f3372d75ccf6368a191e9588287435d419898a","submitter":{"id":67942,"url":"http://patchwork.ozlabs.org/api/1.2/people/67942/?format=json","name":"Romain Naour","email":"romain.naour@gmail.com"},"delegate":null,"mbox":"http://patchwork.ozlabs.org/project/buildroot/patch/20170820144154.15347-1-romain.naour@gmail.com/mbox/","series":[],"comments":"http://patchwork.ozlabs.org/api/patches/803734/comments/","check":"pending","checks":"http://patchwork.ozlabs.org/api/patches/803734/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.137; helo=fraxinus.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=\"DsJd1yN+\"; dkim-atps=neutral"],"Received":["from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\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 3xb0076HB0z9sDB\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 21 Aug 2017 00:42:14 +1000 (AEST)","from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 88555866E0;\n\tSun, 20 Aug 2017 14:42:12 +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 9_RvRvWRoZ4C; Sun, 20 Aug 2017 14:42:06 +0000 (UTC)","from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 79D2A86569;\n\tSun, 20 Aug 2017 14:42:06 +0000 (UTC)","from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\tby ash.osuosl.org (Postfix) with ESMTP id 3BA6F1C006F\n\tfor <buildroot@lists.busybox.net>;\n\tSun, 20 Aug 2017 14:42:04 +0000 (UTC)","from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id 2B47E2CDCA\n\tfor <buildroot@lists.busybox.net>;\n\tSun, 20 Aug 2017 14:42:04 +0000 (UTC)","from silver.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 1aCAN871ny4p for <buildroot@lists.busybox.net>;\n\tSun, 20 Aug 2017 14:42:01 +0000 (UTC)","from mail-wr0-f195.google.com (mail-wr0-f195.google.com\n\t[209.85.128.195])\n\tby silver.osuosl.org (Postfix) with ESMTPS id C1B7026016\n\tfor <buildroot@buildroot.org>; Sun, 20 Aug 2017 14:42:00 +0000 (UTC)","by mail-wr0-f195.google.com with SMTP id 30so1359129wrk.0\n\tfor <buildroot@buildroot.org>; Sun, 20 Aug 2017 07:42:00 -0700 (PDT)","from localhost.localdomain\n\t([2a01:e35:1391:67d0:f99c:7bd9:42cc:21ff])\n\tby smtp.gmail.com with ESMTPSA id\n\t5sm11451406wre.5.2017.08.20.07.41.57\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tSun, 20 Aug 2017 07:41:58 -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=from:to:cc:subject:date:message-id;\n\tbh=bv77qC4Xpgn8HjWl2zNt9F6nWe180nCoibwvEFXo06Q=;\n\tb=DsJd1yN+UjLDAivyXuhTqgJmOD88UUba6nzOaLA+ETwp0LC6+1Oz7gDBB8x3wexz66\n\tZZH9CDfSBGp5PxViJwdVlo13oPKpqK/iIN0E3Z6/tYKAmJtH6//FkX3ITI4pFBbNUCo5\n\tBkUcy+G0wqU2AycHQ/ri9i6NUB9gJ4G0o5Hj27pokwqfNQMGIniG4vRL1w0of21JeOZ4\n\txg3Yq0XJbUrp9YibgUQuai1PAVUILQ5tNMTm2m+uMWkC3m6qxY5cs/cB/Ywnih1TvG1l\n\tgaVxpg5iYdHswQKaTm9Gv6IVd1GAJV35C3Re+SyHGQatbUS+1NUAaPXmmwBrfJ/OPYB0\n\t9nyQ==","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;\n\tbh=bv77qC4Xpgn8HjWl2zNt9F6nWe180nCoibwvEFXo06Q=;\n\tb=SFP/bXY270f9hvSi7T8aIDCfdLBhxCXu7OClB8dB4x9zv/YgNmxo4fp5zhwBKdKSO5\n\tZmsUFNWYhGXBsJg1UO/TEZ6OCdzBeoq5WrKhmeBS8mRAHGZyote/ebQFCOIrTPZqzLjn\n\tIvVe6OYaaDbooO6m4AV7pzw9V2i7UR6vPS7eVH88r+ABaI9oK+oCR73Z0b0CBba2K125\n\twF2SgAtV9VcYKzEqTve6pY6SR1qqxu7Qp8LluT61OpHCimt+VkaEQGSx7G8S9SBXHXrw\n\t3sxU+4BfvradCy8wvudebBHwOLtHUO3fTxEfOcZd8veoSGj2A7Si7+/BIrYetby6DB1+\n\tfK3w==","X-Gm-Message-State":"AHYfb5gHxJg4fQbiXbvhBzARIvFy5fP1VenVSzeDG4ky6a2db3aWpiFP\n\tLYZLzHTadncqqrhB/Cg=","X-Received":"by 10.28.10.76 with SMTP id 73mr4962109wmk.0.1503240118840;\n\tSun, 20 Aug 2017 07:41:58 -0700 (PDT)","From":"Romain Naour <romain.naour@gmail.com>","To":"buildroot@buildroot.org","Date":"Sun, 20 Aug 2017 16:41:54 +0200","Message-Id":"<20170820144154.15347-1-romain.naour@gmail.com>","X-Mailer":"git-send-email 2.9.5","Cc":"Thomas Petazzoni <thomas.petazzoni@free-electrons.com>,\n\tRomain Naour <romain.naour@gmail.com>","Subject":"[Buildroot] [PATCH] glibc: needs kernel headers >= 4.5 on mips(64)","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":"Since glibc 2.23 [1]:\nsysdeps/unix/sysv/linux/mips/configure.ac\n[...]\nif test -z \"$arch_minimum_kernel\"; then\n  if test x$libc_cv_mips_nan2008 = xyes; then\n    arch_minimum_kernel=4.5.0\n  fi\nfi\n\nThis mean that if nan2008 support is requested (i.e BR2_MIPS_NAN_2008\nin Buildroot) the minimum kernel headers version is 4.5.0 (not 3.2.0).\n\nTo simplify the dependancy handling in Buildroot we add this dependency\nfor all mips(64), even if BR2_MIPS_NAN_2008 is not selected.\n\n[1] https://sourceware.org/git/?p=glibc.git;a=commit;h=d5f2798a0ac9d5ad8ad7a506a2f840035135e2d2\n\nSigned-off-by: Romain Naour <romain.naour@gmail.com>\nCc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>\nCc: Vicente Olivert Riera <Vincent.Riera@imgtec.com>\n---\n\nThis is for master.\n\nI tried to use BR2_MIPS_NAN_2008 but it trigger a circular dependency in Kconfig.\n\n toolchain/toolchain-buildroot/Config.in | 10 ++++++++--\n 1 file changed, 8 insertions(+), 2 deletions(-)","diff":"diff --git a/toolchain/toolchain-buildroot/Config.in b/toolchain/toolchain-buildroot/Config.in\nindex f47001f..967da1a 100644\n--- a/toolchain/toolchain-buildroot/Config.in\n+++ b/toolchain/toolchain-buildroot/Config.in\n@@ -43,8 +43,9 @@ config BR2_TOOLCHAIN_BUILDROOT_UCLIBC\n config BR2_TOOLCHAIN_BUILDROOT_GLIBC\n \tbool \"glibc\"\n \tdepends on BR2_arm         || BR2_armeb      || BR2_aarch64 || \\\n-\t\t   BR2_aarch64_be  || BR2_i386       || BR2_mips    || \\\n-\t\t   BR2_mipsel      || BR2_mips64     || BR2_mips64el|| \\\n+\t\t   BR2_aarch64_be  || BR2_i386       || \\\n+\t\t   ((BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el) && \\\n+\t\t   BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5) || \\\n \t\t   BR2_powerpc     || BR2_powerpc64  || BR2_powerpc64le || \\\n \t\t   BR2_sh          || BR2_sparc64    || BR2_x86_64 || \\\n \t\t   BR2_microblaze || BR2_nios2\n@@ -65,6 +66,11 @@ comment \"glibc needs a toolchain w/ dynamic library, kernel headers >= 3.2\"\n \tdepends on BR2_USE_MMU\n \tdepends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HEADERS_AT_LEAST_3_2\n \n+# glibc require kernel headers >= 4.5 if nan2008 support is selected.\n+comment \"glibc on mips(64) needs a toolchain w/ headers >= 4.5\"\n+\tdepends on BR2_mips || BR2_mipsel || BR2_mips64 || BR2_mips64el\n+\tdepends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_5\n+\n config BR2_TOOLCHAIN_BUILDROOT_MUSL\n \tbool \"musl\"\n \tdepends on BR2_aarch64\t  || BR2_arm     || BR2_armeb     || BR2_i386 || \\\n","prefixes":[]}