From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id OJ1THY2xcWQXeAAASxT56A (envelope-from ) for ; Sat, 27 May 2023 09:30:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 8G1IHY2xcWS6agAA9RJhRA (envelope-from ) for ; Sat, 27 May 2023 09:30:21 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 19E6C30E6E for ; Sat, 27 May 2023 09:30:19 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q2oNJ-0008UY-2y; Sat, 27 May 2023 03:30:05 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q2oNH-0008UI-8o for bug-guix@gnu.org; Sat, 27 May 2023 03:30:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q2oNG-0003PW-Vf for bug-guix@gnu.org; Sat, 27 May 2023 03:30:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q2oNG-0004iT-MZ for bug-guix@gnu.org; Sat, 27 May 2023 03:30:02 -0400 X-Loop: help-debbugs@gnu.org Subject: bug#63526: [PATCH v2] gnu (hubbub): Fix build References: In-Reply-To: Resent-From: Andy Tai Original-Sender: "Debbugs-submit" Resent-CC: bug-guix@gnu.org Resent-Date: Sat, 27 May 2023 07:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63526 X-GNU-PR-Package: guix X-GNU-PR-Keywords: To: 63526@debbugs.gnu.org, code@greghogan.com, mirai@makinata.eu Cc: Andy Tai Received: via spool by 63526-submit@debbugs.gnu.org id=B63526.168517255918050 (code B ref 63526); Sat, 27 May 2023 07:30:02 +0000 Received: (at 63526) by debbugs.gnu.org; 27 May 2023 07:29:19 +0000 Received: from localhost ([127.0.0.1]:51330 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q2oMZ-0004h3-4s for submit@debbugs.gnu.org; Sat, 27 May 2023 03:29:19 -0400 Received: from mail-pf1-f173.google.com ([209.85.210.173]:45514) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q2oMV-0004gl-Tp for 63526@debbugs.gnu.org; Sat, 27 May 2023 03:29:17 -0400 Received: by mail-pf1-f173.google.com with SMTP id d2e1a72fcca58-64d2b42a8f9so1393742b3a.3 for <63526@debbugs.gnu.org>; Sat, 27 May 2023 00:29:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1685172549; x=1687764549; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:from:to:cc:subject:date:message-id:reply-to; bh=h1OS5N2RFLBlmoBPH14MuAoU1gaXggJHM+OjOfbqyLw=; b=LTO8uaE9gcvFmfT/ISZTq2Zr58N+xYUd997U1n17KMa2VjfQix+26ZaZamWrxQuQOU UGNVEty0MaMz9iLBXiC6EjK9lefxlfXuq8jh1NPFA2fF11Y/YkR71MlA5WoVHKp656rg 2MCNbo3gSpjUqlRdOSzBlKreVx0dbZmsx9BAciqT4pG/F6ZODh+MsHDGNpBTZ+yfpelg ivvMs3JCFjTiPYtbnD2IeFl+Umn1+fhtYqJ4tjvTSZGHMrZnDatrStDdPOGdP8Nhrios ytb3geXt9+2bRMIY9IXqehFwnR4L9RxKs1DdSL2yYrhlgU3KhqMEWa7Kmszt6qIWS990 2Dqg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685172549; x=1687764549; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:sender:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=h1OS5N2RFLBlmoBPH14MuAoU1gaXggJHM+OjOfbqyLw=; b=MSzyRd9gBRWv5u1XpwFZmqNvGpAD4rS9t9GKOoNphB5XpoKjEJTIhn4Uxiqj8kLf4T xJsTD2bWh/eh/Lukt+x1LiicM34MBMjF7r3jOG5ABgGiQW7KEQtSMZgXMkbwPpMauGJ5 nTD2Rn+hhERdHeccK9/SHR0IUAofpTLpCX1X6y8UK3YZ7I4GL4TtUmdjNovA2VJav2CA zT+8Z/Y6VVndT6qKibtxmJ9RhoX2qZcosqod9nEW1QvUH0PpX/htxQ0JkslHK2oWim0S nq2WLeoQPt7WWOUaSAMd+7hHQJJycrieVyGbnFaizUeldHxV3gdPLeDw/sbpwQrsppLQ O9gw== X-Gm-Message-State: AC+VfDxBAOmLZ4Vc2/h6yPl+vvf5fgvGy9l4BbUVvCjq4Nd8L0XVxTcF moxlBvssN/c99nLWKRd95dtb0wlXmqA= X-Google-Smtp-Source: ACHHUZ4xNA6KjWvQMXm1W3kCFjGxqh2JflggsrkWcMQ2SSGQG2fgb4lFkaJ+3IP8rn04wbuDuFHahg== X-Received: by 2002:a05:6a20:8408:b0:10b:97c8:2e16 with SMTP id c8-20020a056a20840800b0010b97c82e16mr2977299pzd.29.1685172549231; Sat, 27 May 2023 00:29:09 -0700 (PDT) Received: from localhost.localdomain ([98.37.226.98]) by smtp.googlemail.com with ESMTPSA id ck6-20020a17090afe0600b00246ba2b48f3sm7886378pjb.3.2023.05.27.00.29.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 27 May 2023 00:29:08 -0700 (PDT) From: Andy Tai Date: Sat, 27 May 2023 00:29:04 -0700 Message-Id: <8a20497755db7ee3c2ecfa9a3fc931011718036d.1685172508.git.atai@atai.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-guix@gnu.org List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+larch=yhetil.org@gnu.org Sender: bug-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1685172620; a=rsa-sha256; cv=none; b=cqX4bH62okzpEFQS3/rMkf2uONPrMYn0Tp0SxgXJfV17HgE0Im5//8+c559Bfud683z0WU y8cNzkWsGeXB6oFG8eoMOcJOeYrXZW8Fxlu4B017q7TpwKsHp/xxXVQfmtiaeJiX9gvKRd hfVPgP2tJdm8kzIXGq4AJ2JePxCzZaUE+BEm7SL4UzJCFQnC1KrmtWLtdo7XTOmRsEgizq w6LWX/HspJ3fXPjIX/ugyANBsbeybMACa+f5U+acLpVhV+U7nZioH6Qe4lgzi3oROCbgs7 kZNuXAtZdm+6pv2tvCZvqZ/w+h0F1qMep/42aJZNx4UbMmp5/6/pmZ/Ee1HNUw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=LTO8uaE9; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1685172620; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=h1OS5N2RFLBlmoBPH14MuAoU1gaXggJHM+OjOfbqyLw=; b=sapB0YaREQQqjVEkOGceO3eW4JtCXponNhfmAaBbS2wtl9s9R9mjTUXi41mjMQX70MWnyn Qp2mBXym6gCfxLfYimmT/vcD1pjIja/gEYtxIFPHwZEUqdistzpq/xHMzVruJE5oZflHxn /zRabGFbgtW2/6S6bLaf25OoXNi4VTOcOEYD0umdjEBiQs1zJPvMYVZ1nc4uza2/2JdwEu 8cyJHTudq29WAIWanYI7uQTYVJva7bzQw2/Qd08SsXYaOeyCil4/n2DOyTic4it9XOwt/b HHHP/Nwa/rcRKd7ALM44XNho+mHdH3n6KbZ1IEDN1ww62a4VDFGAC0XM/yr+KQ== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20221208 header.b=LTO8uaE9; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "bug-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="bug-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 3.34 X-Spam-Score: 3.34 X-Migadu-Queue-Id: 19E6C30E6E X-TUID: Rkh9MPm9Ask/ Fix for https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63526 * gnu/packages/web.scm (hubbub): [source](patches): Add patch to fix build. * gnu/packages/patches/hubbub-prevent-Werror-maybe-uninitialized-build-failure-wit.patch: New file * gnu/local.mk (dist_patch_DATA): Add it. --- gnu/local.mk | 2 + ...aybe-uninitialized-build-failure-wit.patch | 40 +++++++++++++++++++ gnu/packages/web.scm | 4 +- 3 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 gnu/packages/patches/hubbub-prevent-Werror-maybe-uninitialized-build-failure-wit.patch diff --git a/gnu/local.mk b/gnu/local.mk index 18e8235140..e2b42ca676 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -58,6 +58,7 @@ # Copyright © 2022 jgart # Copyright © 2023 Zheng Junjie <873216071@qq.com> # Copyright © 2023 Ivana Drazovic +# Copyright © 2023 Andy Tai # # This file is part of GNU Guix. # @@ -1349,6 +1350,7 @@ dist_patch_DATA = \ %D%/packages/patches/http-parser-CVE-2020-8287.patch \ %D%/packages/patches/htslib-for-stringtie.patch \ %D%/packages/patches/hubbub-sort-entities.patch \ + %D%/packages/patches/hubbub-prevent-Werror-maybe-uninitialized-build-failure-wit.patch \ %D%/packages/patches/hueplusplus-mbedtls.patch \ %D%/packages/patches/hurd-add-without-rump-configure-option.patch \ %D%/packages/patches/hurd-fix-types-of-read-write-and-readables-methods-2.patch \ diff --git a/gnu/packages/patches/hubbub-prevent-Werror-maybe-uninitialized-build-failure-wit.patch b/gnu/packages/patches/hubbub-prevent-Werror-maybe-uninitialized-build-failure-wit.patch new file mode 100644 index 0000000000..6f289a770e --- /dev/null +++ b/gnu/packages/patches/hubbub-prevent-Werror-maybe-uninitialized-build-failure-wit.patch @@ -0,0 +1,40 @@ +From 69d81a8a4d4c223aad67cde0fdf64d64351b9802 Mon Sep 17 00:00:00 2001 +From: Andy Tai +Date: Sat, 27 May 2023 00:01:34 -0700 +Subject: [PATCH] prevent -Werror=maybe-uninitialized build failure with gcc 11 + when building tests tokeniser2 and tokeniser3 + +--- + test/tokeniser2.c | 2 +- + test/tokeniser3.c | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/test/tokeniser2.c b/test/tokeniser2.c +index c8ab9c0..4caae38 100644 +--- a/test/tokeniser2.c ++++ b/test/tokeniser2.c +@@ -438,7 +438,7 @@ hubbub_error token_handler(const hubbub_token *token, void *pw) + /* Expected token only contained part of the data + * Calculate how much is left, then try again with + * the next expected token */ +- hubbub_token t; ++ hubbub_token t = { 0 }; + + t.type = HUBBUB_TOKEN_CHARACTER; + t.data.character.ptr += len; +diff --git a/test/tokeniser3.c b/test/tokeniser3.c +index e33d018..b3be901 100644 +--- a/test/tokeniser3.c ++++ b/test/tokeniser3.c +@@ -447,7 +447,7 @@ hubbub_error token_handler(const hubbub_token *token, void *pw) + /* Expected token only contained part of the data + * Calculate how much is left, then try again with + * the next expected token */ +- hubbub_token t; ++ hubbub_token t = { 0 }; + + t.type = HUBBUB_TOKEN_CHARACTER; + t.data.character.ptr += len; +-- +2.40.1 + diff --git a/gnu/packages/web.scm b/gnu/packages/web.scm index 3af4aa0b8d..387ceac058 100644 --- a/gnu/packages/web.scm +++ b/gnu/packages/web.scm @@ -5242,7 +5242,9 @@ (define-public hubbub (sha256 (base32 "1dimfyblmym98qa1b80c5jslv2zk8r44xbdrgrsrw1n9wr9y4yly")) - (patches (search-patches "hubbub-sort-entities.patch")))) + (patches (search-patches + "hubbub-sort-entities.patch" + "hubbub-prevent-Werror-maybe-uninitialized-build-failure-wit.patch")))) (build-system gnu-build-system) (native-inputs (list netsurf-buildsystem base-commit: b96b82bcd4bc24529941ff74a91432481f1a71b5 -- 2.40.1