From patchwork Mon Mar 14 09:35:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Brendan Tildesley X-Patchwork-Id: 37793 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 33AEA27BBEA; Mon, 14 Mar 2022 10:02:31 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-3.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id A74E827BBE9 for ; Mon, 14 Mar 2022 10:02:30 +0000 (GMT) Received: from localhost ([::1]:57304 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nThX3-00072b-PS for patchwork@mira.cbaines.net; Mon, 14 Mar 2022 06:02:29 -0400 Received: from eggs.gnu.org ([209.51.188.92]:50414) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nTh8R-0005qe-Ix for guix-patches@gnu.org; Mon, 14 Mar 2022 05:37:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:50216) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nTh8R-0000VL-8m for guix-patches@gnu.org; Mon, 14 Mar 2022 05:37:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1nTh8R-0002Xy-70 for guix-patches@gnu.org; Mon, 14 Mar 2022 05:37:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#54337] [PATCH v2 2/3] gnu: Add boost-for-cryfs. Resent-From: 'Brendan Tildesley Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 14 Mar 2022 09:37:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 54337 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 54337@debbugs.gnu.org Cc: Maxime Devos , Brendan Tildesley Received: via spool by 54337-submit@debbugs.gnu.org id=B54337.16472505849721 (code B ref 54337); Mon, 14 Mar 2022 09:37:03 +0000 Received: (at 54337) by debbugs.gnu.org; 14 Mar 2022 09:36:24 +0000 Received: from localhost ([127.0.0.1]:44111 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nTh7j-0002Wb-OY for submit@debbugs.gnu.org; Mon, 14 Mar 2022 05:36:24 -0400 Received: from mout-p-201.mailbox.org ([80.241.56.171]:55166) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1nTh7h-0002W6-SZ for 54337@debbugs.gnu.org; Mon, 14 Mar 2022 05:36:18 -0400 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:105:465:1:2:0]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-384) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-201.mailbox.org (Postfix) with ESMTPS id 4KHBHc1pHFz9sRP; Mon, 14 Mar 2022 10:36:12 +0100 (CET) From: 'Brendan Tildesley DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brendan.scot; s=MBO0001; t=1647250568; h=from:from: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: in-reply-to:in-reply-to:references:references; bh=A2eGF0u1ZR3VE27CzqxjqmOivhW+sslfVnA97MW7efg=; b=NLTI0Wux61dPyFfsystqlhOz37gRfQksUfVe11/L46PklERvlnLm44U2oeIQuSEIqhFH4P ocG98gqaOiT6tISxhb47PuJftE71BDNT1EAgdpTe+3ch+Bt02MBYqQi6gVRvA9+qnMIS7+ v6dVpiRZM8RkynDfPBBMgKUijBHaNvfxVN5qxKXB28fv7cBdJZMD1QuY7V+LdXGnBjpbUH kk8yqbjGnlcIv2r6f5BOVw85zHW9q1eBqyh2S+qnkO0baZsj6A9lKs38TTlnSTfIlh+ygz xIr6E7IySFm1wsEGnYuVVMLyOYMAOmvg1Md1a36DQG7mPwWBzqIteKENJQZwWA== Date: Mon, 14 Mar 2022 20:35:49 +1100 Message-Id: <20220314093550.16580-2-mail@brendan.scot> In-Reply-To: <20220314093550.16580-1-mail@brendan.scot> References: <20220314093550.16580-1-mail@brendan.scot> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches From: Brendan Tildesley * gnu/packages/boost.scm (boost-for-cryfs): New variable. Since updating boost would resulting in building 1000s of rebuilds, add a temporary variant to fixing a missing import resulting in "error: 'transform' is not a member of 'std'" when building cryfs. See: https://github.com/boostorg/process/commit/e08374ed95ac33865bda40602c94909e7cd9607f * gnu/packages/patches/boost-wchar-include-algorithm.patch: New file. * gnu/local.mk: Reference patch. . --- gnu/local.mk | 1 + gnu/packages/boost.scm | 11 +++++++++++ .../patches/boost-wchar-include-algorithm.patch | 11 +++++++++++ 3 files changed, 23 insertions(+) create mode 100644 gnu/packages/patches/boost-wchar-include-algorithm.patch diff --git a/gnu/local.mk b/gnu/local.mk index 484757b207..465f5ae96d 100644 --- a/gnu/local.mk +++ b/gnu/local.mk @@ -915,6 +915,7 @@ dist_patch_DATA = \ %D%/packages/patches/binutils-CVE-2021-45078.patch \ %D%/packages/patches/bloomberg-bde-cmake-module-path.patch \ %D%/packages/patches/bloomberg-bde-tools-fix-install-path.patch \ + %D%/packages/patches/boost-wchar-include-algorithm.patch \ %D%/packages/patches/bpftrace-disable-bfd-disasm.patch \ %D%/packages/patches/byobu-writable-status.patch \ %D%/packages/patches/bubblewrap-fix-locale-in-tests.patch \ diff --git a/gnu/packages/boost.scm b/gnu/packages/boost.scm index b53b1f4257..b6f0c1fc22 100644 --- a/gnu/packages/boost.scm +++ b/gnu/packages/boost.scm @@ -19,6 +19,7 @@ ;;; Copyright © 2021 Franck Pérignon ;;; Copyright © 2021 Greg Hogan ;;; Copyright © 2021 Aleksandr Vityazev +;;; Copyright © 2022 Brendan Tildesley ;;; ;;; This file is part of GNU Guix. ;;; @@ -68,6 +69,7 @@ (define (boost-patch name version hash) (define-public boost (package (name "boost") + ;; Note: consider removing boost-1.77/fixed when updating boost to 1.78 or newer. (version "1.77.0") (source (origin (method url-fetch) @@ -193,6 +195,15 @@ (define-public boost (license (license:x11-style "https://www.boost.org/LICENSE_1_0.txt" "Some components have other similar licences.")))) +(define-public boost-for-cryfs + ;; This patch applies for boost 1.77. Should not be needed in later releases. + ;; See: https://github.com/boostorg/process/commit/e08374ed95ac33865bda40602c94909e7cd9607f + (package/inherit boost + (name "boost-for-cryfs") + (source (origin + (inherit (package-source boost)) + (patches (search-patches "boost-wchar-include-algorithm.patch")))))) + ;; Sadly, this is needed for irods. It won't link with 1.69 or later. (define-public boost-for-irods (package diff --git a/gnu/packages/patches/boost-wchar-include-algorithm.patch b/gnu/packages/patches/boost-wchar-include-algorithm.patch new file mode 100644 index 0000000000..c174dc5cd2 --- /dev/null +++ b/gnu/packages/patches/boost-wchar-include-algorithm.patch @@ -0,0 +1,11 @@ +--- a/boost/process/detail/traits/wchar_t.hpp ++++ b/boost/process/detail/traits/wchar_t.hpp +@@ -12,6 +12,8 @@ + #include + #include + ++#include ++ + namespace boost { namespace process { namespace detail { + + //template