Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2216181/?format=api
{ "id": 2216181, "url": "http://patchwork.ozlabs.org/api/patches/2216181/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/patch/20260325231623.1549875-2-me@manueljacob.de/", "project": { "id": 17, "url": "http://patchwork.ozlabs.org/api/projects/17/?format=api", "name": "GNU Compiler Collection", "link_name": "gcc", "list_id": "gcc-patches.gcc.gnu.org", "list_email": "gcc-patches@gcc.gnu.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20260325231623.1549875-2-me@manueljacob.de>", "list_archive_url": null, "date": "2026-03-25T23:16:23", "name": "[2/2] build: Set default for CPP_FOR_BUILD environment variable in all cases.", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "9da6fe71a630ac78a5571fe81f4d893775499db5", "submitter": { "id": 92972, "url": "http://patchwork.ozlabs.org/api/people/92972/?format=api", "name": "Manuel Jacob", "email": "me@manueljacob.de" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/gcc/patch/20260325231623.1549875-2-me@manueljacob.de/mbox/", "series": [ { "id": 497520, "url": "http://patchwork.ozlabs.org/api/series/497520/?format=api", "web_url": "http://patchwork.ozlabs.org/project/gcc/list/?series=497520", "date": "2026-03-25T23:16:23", "name": "[1/2] build: Preserve *_FOR_BUILD environment variables in all cases.", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/497520/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2216181/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2216181/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org>", "X-Original-To": [ "incoming@patchwork.ozlabs.org", "gcc-patches@gcc.gnu.org" ], "Delivered-To": [ "patchwork-incoming@legolas.ozlabs.org", "gcc-patches@gcc.gnu.org" ], "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (4096-bit key;\n unprotected) header.d=manueljacob.de header.i=@manueljacob.de\n header.a=rsa-sha256 header.s=uberspace header.b=l4noKfZk;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=temperror (SPF Temporary Error: DNS Timeout) smtp.mailfrom=gcc.gnu.org\n (client-ip=2620:52:6:3111::32; helo=vm01.sourceware.org;\n envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org;\n receiver=patchwork.ozlabs.org)", "sourceware.org;\n\tdkim=pass (4096-bit key,\n unprotected) header.d=manueljacob.de header.i=@manueljacob.de\n header.a=rsa-sha256 header.s=uberspace header.b=l4noKfZk", "sourceware.org; dmarc=none (p=none dis=none)\n header.from=manueljacob.de", "sourceware.org; spf=pass smtp.mailfrom=manueljacob.de", "server2.sourceware.org;\n arc=none smtp.remote-ip=185.26.156.114", "adrastea.uberspace.de;\n\tauth=pass (plain)" ], "Received": [ "from vm01.sourceware.org (vm01.sourceware.org\n [IPv6:2620:52:6:3111::32])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384)\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fh2rW58mjz1y1G\n\tfor <incoming@patchwork.ozlabs.org>; Thu, 26 Mar 2026 10:17:42 +1100 (AEDT)", "from vm01.sourceware.org (localhost [127.0.0.1])\n\tby sourceware.org (Postfix) with ESMTP id ADD314BAD15F\n\tfor <incoming@patchwork.ozlabs.org>; Wed, 25 Mar 2026 23:17:40 +0000 (GMT)", "from mailgate02.uberspace.is (mailgate02.uberspace.is\n [185.26.156.114])\n by sourceware.org (Postfix) with ESMTPS id 4A57C4BAE7C9\n for <gcc-patches@gcc.gnu.org>; Wed, 25 Mar 2026 23:17:10 +0000 (GMT)", "from adrastea.uberspace.de (adrastea.uberspace.de [185.26.156.139])\n by mailgate02.uberspace.is (Postfix) with ESMTPS id 32616180B1E\n for <gcc-patches@gcc.gnu.org>; Thu, 26 Mar 2026 00:17:09 +0100 (CET)", "(qmail 21552 invoked by uid 990); 25 Mar 2026 23:17:09 -0000", "from unknown (HELO unkown) (::1)\n by adrastea.uberspace.de (Haraka/3.1.1) with ESMTPSA;\n Thu, 26 Mar 2026 00:17:08 +0100" ], "DKIM-Filter": [ "OpenDKIM Filter v2.11.0 sourceware.org ADD314BAD15F", "OpenDKIM Filter v2.11.0 sourceware.org 4A57C4BAE7C9" ], "DMARC-Filter": "OpenDMARC Filter v1.4.2 sourceware.org 4A57C4BAE7C9", "ARC-Filter": "OpenARC Filter v1.0.0 sourceware.org 4A57C4BAE7C9", "ARC-Seal": "i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1774480632; cv=none;\n b=pUh88BgB9EBdJCnM+mruQW/zWp+A/j5UKSoRTDSdW7KMTR8XXvNtr64LQLEgbYVPoCtX5PAWa7F8ZOuaZnF/R2zYZ1Iglre/e55B+H3H+EPlxRpXRxPWc66UAnmbap3kSfzSVQxnjulzD7nftGNH1Djzulpe3hcOypYw3J9mexM=", "ARC-Message-Signature": "i=1; a=rsa-sha256; d=sourceware.org; s=key;\n t=1774480632; c=relaxed/simple;\n bh=keUzHTfrGIxMphlRfYzXRkIno0iyuf0BU+aN5ZCVmFE=;\n h=From:To:Subject:Date:Message-ID:MIME-Version:DKIM-Signature;\n b=EQUEqIk4Gz0B2iTJXqbn7d+7FY7RihNlDW1Fef3IUU3ugo34+e4LsCDK2cK9hGsKOyVDsTD36cuQM6V57SNVxGFMyPg6rZ34IwJX2doQJ2AQ96wtFuWGndO9zPxACrCYY9or9oSImkr1YoydWYZ2KDvrkPYcoPfeoujErk4J85c=", "ARC-Authentication-Results": "i=1; server2.sourceware.org", "From": "Manuel Jacob <me@manueljacob.de>", "To": "gcc-patches@gcc.gnu.org", "Cc": "Manuel Jacob <me@manueljacob.de>", "Subject": "[PATCH 2/2] build: Set default for CPP_FOR_BUILD environment variable\n in all cases.", "Date": "Thu, 26 Mar 2026 00:16:23 +0100", "Message-ID": "<20260325231623.1549875-2-me@manueljacob.de>", "X-Mailer": "git-send-email 2.53.0", "In-Reply-To": "<20260325231623.1549875-1-me@manueljacob.de>", "References": "<20260325231623.1549875-1-me@manueljacob.de>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-Rspamd-Bar": "-----", "X-Rspamd-Report": "REPLY(-4) BAYES_HAM(-2.999999) MID_CONTAINS_FROM(1)\n MIME_GOOD(-0.1) R_MISSING_CHARSET(0.5)", "X-Rspamd-Score": "-5.599999", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=manueljacob.de; s=uberspace; h=from:to:cc:subject:date;\n bh=keUzHTfrGIxMphlRfYzXRkIno0iyuf0BU+aN5ZCVmFE=;\n b=l4noKfZkBtdCAS2qVEO+nof8Jzv8q2QVTs9u7inTR7l/Fh41k0ILVMTVoJMtH1ai6/6MUl2Y0X\n aYQibLHQCzvq/chKmBnkSl5A6T4Z2SoXvabXYlA7Q4Zu5Gn/XK4D8R2NxKv9g/8ryvkx98Qn2rn3\n UZEX/m5Um1duf39EnkevfKUEUhA8PWVyC+9KzLw1hMksBzLLO3VDukoAl9VtOLQ6JZZ5AIJxIpeW\n 3OLp6OlotWwRcny7hszW8DrLgIIgulEQTUuFgLSENgJ1qvggVU7bBAmFh0qOxPD9YkRKfu7O2vx7\n 1PELW8asZ+vrRxU2MPaxwBxYVrcVccJP3vAaz93nKo6ucKcIeINTYUCRCuYAJLcCFK25FriiHK4D\n Kct3/Wh0x3uOlBhRcWyeyhu8Or3N55yy0xQDi6kEIybxV14of7a/EkwAI0oVxkTEJJxbt+ItZ0R/\n NaeSdh0gZu92kIdiXdRi1FQ3xiTVITtZGtSqOh1mSkK3DeFSxMfmL5263fBlSC6hhok2ukU+J5CJ\n iuZDqQLSRC+kVeC9H2WW3aV7OZvdeDjY1TGa+yS4YswIqY1LVOYnGLAUbfNNwAhLcw2vpTE4ea0k\n 37lFchD+5QjYgJeZpyynsjIp6jzcKvNPFE+dUlMgfogRYqKWrvks4AeQUgHjiLyZO+Li/zeX6jjA\n 8=", "X-BeenThere": "gcc-patches@gcc.gnu.org", "X-Mailman-Version": "2.1.30", "Precedence": "list", "List-Id": "Gcc-patches mailing list <gcc-patches.gcc.gnu.org>", "List-Unsubscribe": "<https://gcc.gnu.org/mailman/options/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe>", "List-Archive": "<https://gcc.gnu.org/pipermail/gcc-patches/>", "List-Post": "<mailto:gcc-patches@gcc.gnu.org>", "List-Help": "<mailto:gcc-patches-request@gcc.gnu.org?subject=help>", "List-Subscribe": "<https://gcc.gnu.org/mailman/listinfo/gcc-patches>,\n <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe>", "Errors-To": "gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org" }, "content": "A default was set in the `\"${build}\" != \"${host}\"` case, but not in the `\"${build}\" = \"${host}\"` case.\n\nFor a working build, this change should not make any difference. CPP_FOR_BUILD is passed to build modules as CPP. If not set, autoconf macro AC_PROG_CC infers CPP by trying various programs. First, it tries \"$CC -E\", which CPP will default to in all cases with this patch.\n\nThe following command produces the same build directory with and without the patch:\n\n./configure --build=x86_64-make_autoconf_enable_cross_compiling-linux-gnu --host=x86_64-linux-gnu\n\nThe following command produces a Makefile containing `CPP_FOR_BUILD = ` without the patch and containing `CPP_FOR_BUILD = $(CC_FOR_BUILD) -E` with the patch:\n\n./configure\n\nChangeLog:\n\n\t* configure.ac: Set default for CPP_FOR_BUILD environment variable in all cases.\n\t* configure: Regenerate.\n---\n configure | 2 +-\n configure.ac | 2 +-\n 2 files changed, 2 insertions(+), 2 deletions(-)", "diff": "diff --git a/configure b/configure\nindex 9a6407d2c6f..e2150f50aac 100755\n--- a/configure\n+++ b/configure\n@@ -4318,7 +4318,6 @@ if test \"${build}\" != \"${host}\" ; then\n AR_FOR_BUILD=${AR_FOR_BUILD-ar}\n AS_FOR_BUILD=${AS_FOR_BUILD-as}\n CC_FOR_BUILD=${CC_FOR_BUILD-gcc}\n- CPP_FOR_BUILD=\"${CPP_FOR_BUILD-\\$(CC_FOR_BUILD) -E}\"\n CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}\n DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}\n DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}\n@@ -4350,6 +4349,7 @@ else\n WINDRES_FOR_BUILD=\"${WINDRES_FOR_BUILD-\\$(WINDRES)}\"\n WINDMC_FOR_BUILD=\"${WINDMC_FOR_BUILD-\\$(WINDMC)}\"\n fi\n+CPP_FOR_BUILD=\"${CPP_FOR_BUILD-\\$(CC_FOR_BUILD) -E}\"\n \n ac_ext=c\n ac_cpp='$CPP $CPPFLAGS'\ndiff --git a/configure.ac b/configure.ac\nindex 0854638e8e8..edd53b2bb42 100644\n--- a/configure.ac\n+++ b/configure.ac\n@@ -1453,7 +1453,6 @@ if test \"${build}\" != \"${host}\" ; then\n AR_FOR_BUILD=${AR_FOR_BUILD-ar}\n AS_FOR_BUILD=${AS_FOR_BUILD-as}\n CC_FOR_BUILD=${CC_FOR_BUILD-gcc}\n- CPP_FOR_BUILD=\"${CPP_FOR_BUILD-\\$(CC_FOR_BUILD) -E}\"\n CXX_FOR_BUILD=${CXX_FOR_BUILD-g++}\n DLLTOOL_FOR_BUILD=${DLLTOOL_FOR_BUILD-dlltool}\n DSYMUTIL_FOR_BUILD=${DSYMUTIL_FOR_BUILD-dsymutil}\n@@ -1485,6 +1484,7 @@ else\n WINDRES_FOR_BUILD=\"${WINDRES_FOR_BUILD-\\$(WINDRES)}\"\n WINDMC_FOR_BUILD=\"${WINDMC_FOR_BUILD-\\$(WINDMC)}\"\n fi\n+CPP_FOR_BUILD=\"${CPP_FOR_BUILD-\\$(CC_FOR_BUILD) -E}\"\n \n AC_PROG_CC_C99\n AC_PROG_CXX\n", "prefixes": [ "2/2" ] }