From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id sHHnBRfJW2SVagEASxT56A (envelope-from ) for ; Wed, 10 May 2023 18:40:55 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id NrPOBRfJW2TTUwAA9RJhRA (envelope-from ) for ; Wed, 10 May 2023 18:40:55 +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 D24632F7D for ; Wed, 10 May 2023 18:40:54 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pwmrG-0006Yt-OS; Wed, 10 May 2023 12:40:06 -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 1pwmrD-0006YG-IV for guix-patches@gnu.org; Wed, 10 May 2023 12:40: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 1pwmrD-00060K-8y for guix-patches@gnu.org; Wed, 10 May 2023 12:40:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pwmrD-0003PJ-5E for guix-patches@gnu.org; Wed, 10 May 2023 12:40:03 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#63420] [PATCH v1 3/4] gnu: btrfs-progs: Make the python-sphinx input conditional. Resent-From: Denis 'GNUtoo' Carikli Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 10 May 2023 16:40:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63420 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Leo Famulari , Tobias Geerinckx-Rice , 63420@debbugs.gnu.org Cc: Denis 'GNUtoo' Carikli Received: via spool by 63420-submit@debbugs.gnu.org id=B63420.168373677413028 (code B ref 63420); Wed, 10 May 2023 16:40:03 +0000 Received: (at 63420) by debbugs.gnu.org; 10 May 2023 16:39:34 +0000 Received: from localhost ([127.0.0.1]:48854 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwmqj-0003Ny-CE for submit@debbugs.gnu.org; Wed, 10 May 2023 12:39:33 -0400 Received: from cyberdimension.org ([80.67.179.20]:49868 helo=gnutoo.cyberdimension.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pwmqg-0003NM-TK for 63420@debbugs.gnu.org; Wed, 10 May 2023 12:39:31 -0400 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id 394f0de7; Wed, 10 May 2023 16:39:28 +0000 (UTC) Received: from localhost.localdomain (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id 91199b15; Wed, 10 May 2023 16:39:27 +0000 (UTC) From: Denis 'GNUtoo' Carikli Date: Wed, 10 May 2023 18:39:24 +0200 Message-Id: <20230510163925.3071-3-GNUtoo@cyberdimension.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230510163925.3071-1-GNUtoo@cyberdimension.org> References: <20230510163925.3071-1-GNUtoo@cyberdimension.org> 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: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: guix-patches-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Seal: i=1; s=key1; d=yhetil.org; t=1683736854; a=rsa-sha256; cv=none; b=P1KWRtz0BhXmU0UKmpD8rTRBOxZ07w6EQ8FVfXl3i11CTFu+ORFwLrjWhIceVn+IG5WycX a5VbinYeCwlltScR8Ui1yW4Gb/7v43hC4jY6XipmheSncTTmyUgLYXuyMR/kNL9Whovj6E j/Z0yA5nZnc1XV8tyhsqD6/5eEYQ8OV4I2jymdWSAX7zHDsNOvaPjqIazb48jY5SmbxWKm 9jWK+mnTIp8wkfPiC6RUA6tYJHfFwnlXPSjVD1TPLeu7GmHa+QCFA+jzONovarLXINOunq 5lE+eybVcI0azhX5/T9fAwCv7KDiRnB6l3NgB/h5v42QbXVvqt6UVnUs+vHoMA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1683736854; 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; bh=L74GC+lTIQ76Odf0lxZDn1JbwpElhIpirK6iIyJ3Opo=; b=jQCOQB1Mn4ZAsQrBUD0DtBzvmuqV0i7Lk9bBqKOOBc68ekQz5ay61+gCfxbOg379nbmXov iCWp+K3gpS9wD4TEbUqMte8V0zQHzWH88T89xDeh/omzWWyN24fOB+/n4oVEJRK64fs5rK yBJjhkd8Z4uEHaUm14Ia1goZ3ZKRIs1sLQBiZdk+SOtR/Npoc0utTr74qGmaRfucw5flze T7EmlCuF/Y7EkGle3J6Z6plseCwN0zVq0hKvb4Cj+yOeDZHIzbhoFl/W/wNOiq2LfpH53d nxMGVj6ticV1Rz6Esc7vGLaovg0grEgCvhMsAdw37jaIKBx+P4z6DhFSD8dqtw== X-Migadu-Spam-Score: -1.11 X-Spam-Score: -1.11 X-Migadu-Queue-Id: D24632F7D X-Migadu-Scanner: scn0.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-TUID: T2hRin3+yc+p * gnu/packages/linux.scm (btrfs-progs) [native-inputs]: Make the python-sphinx input conditional. [arguments]: Conditionally add --disable-documentation to configure flags. Signed-off-by: Denis 'GNUtoo' Carikli --- gnu/packages/linux.scm | 42 ++++++++++++++++++++++++++++++------------ 1 file changed, 30 insertions(+), 12 deletions(-) diff --git a/gnu/packages/linux.scm b/gnu/packages/linux.scm index a71100baab..e910c47ab9 100644 --- a/gnu/packages/linux.scm +++ b/gnu/packages/linux.scm @@ -5894,9 +5894,18 @@ (define-public btrfs-progs (arguments (list #:configure-flags - ;; The ‘Python support’ was never actually installed by previous - ;; versions of this package, but did prevent cross-compilation. - #~(list "--disable-python") + #~(append + ;; Without --disable-documentation, it complains about missing + ;; python-sphinx on systems where this package isn't available + ;; (because it requires Rust). + (if #$@(member (%current-system) + (package-transitive-supported-systems + python-sphinx)) + '() + (list "--disable-documentation")) + ;; The ‘Python support’ was never actually installed by previous + ;; versions of this package, but did prevent cross-compilation. + (list "--disable-python")) #:phases #~(modify-phases %standard-phases (add-after 'unpack 'patch-makefile (lambda* (#:key outputs #:allow-other-keys) @@ -5935,15 +5944,24 @@ (define-public btrfs-progs `(,zlib "static") `(,zstd "lib") `(,zstd "static"))) - (native-inputs (list pkg-config - python-sphinx ;; For building documentation. - acl ;; For tests. - lvm2 ;; For dmsetup. - grep ;; Need Perl regexp support. - libaio - liburing - util-linux ;; For fallocate. - which)) + (native-inputs + (append + ;; For building documentation. Since python-sphinx + ;; requires Rust, add it conditionally depending on such + ;; support. + (if (member (%current-system) + (package-transitive-supported-systems + python-sphinx)) + (list python-sphinx) + '()) + (list pkg-config + acl ;; For tests. + lvm2 ;; For dmsetup. + grep ;; Need Perl regexp support. + libaio + liburing + util-linux ;; For fallocate. + which))) (home-page "https://btrfs.wiki.kernel.org/index.php/Main_Page") (synopsis "Create and manage btrfs copy-on-write file systems") (description -- 2.39.2