From patchwork Wed Jul 20 08:01:43 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "ashish.is--- via Guix-patches\" via" X-Patchwork-Id: 40777 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 209EE27BBEA; Wed, 20 Jul 2022 14:20:56 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,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 CE2D427BBE9 for ; Wed, 20 Jul 2022 14:20:55 +0100 (BST) Received: from localhost ([::1]:45320 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oE9dG-0007v7-TH for patchwork@mira.cbaines.net; Wed, 20 Jul 2022 09:20:54 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55722) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oE5P9-00038H-6q for guix-patches@gnu.org; Wed, 20 Jul 2022 04:50:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:58040) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oE5P8-0007Hv-Pa for guix-patches@gnu.org; Wed, 20 Jul 2022 04:50:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oE5P8-0005XF-LU for guix-patches@gnu.org; Wed, 20 Jul 2022 04:50:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56657] [PATCH] gnu: ranger: Add dependency file Resent-From: =?utf-8?b?Tmd1eeG7hW4=?= Gia Phong Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 20 Jul 2022 08:50:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 56657 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56657@debbugs.gnu.org Cc: =?utf-8?b?Tmd1eeG7hW4=?= Gia Phong X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.165830697221233 (code B ref -1); Wed, 20 Jul 2022 08:50:02 +0000 Received: (at submit) by debbugs.gnu.org; 20 Jul 2022 08:49:32 +0000 Received: from localhost ([127.0.0.1]:55799 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oE5Od-0005WO-Ch for submit@debbugs.gnu.org; Wed, 20 Jul 2022 04:49:31 -0400 Received: from lists.gnu.org ([209.51.188.17]:44194) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oE4fJ-0004KD-SO for submit@debbugs.gnu.org; Wed, 20 Jul 2022 04:02:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47156) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oE4fI-000553-S3 for guix-patches@gnu.org; Wed, 20 Jul 2022 04:02:41 -0400 Received: from knopi.disroot.org ([178.21.23.139]:54466) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oE4fG-0008Vb-Si for guix-patches@gnu.org; Wed, 20 Jul 2022 04:02:40 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id 2A05540E2F; Wed, 20 Jul 2022 10:02:36 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with UTF8SMTP id oklS-1p6n8UT; Wed, 20 Jul 2022 10:02:31 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1658304116; bh=KS3nN9fMb3zRltBY9dqE95Nnrmk18mapqbbCahGDS1M=; h=From:To:Cc:Subject:Date; b=H79cQPkJf2p/sA/QIEHyd6rpxQ1PQFjvCVG6lD9GsWW7YSwcovSRIttoHiw7gxFuq nG/yXX+CQi0YVIK9ntMmDZyPc6B/05qxRJRz67g4zx3QQ70R2Udj3jweZFjGgxGWxu 1KLll4f3irL6Hv4m62XQO68bSVC4RFii8vcB1R89BVATNsJZueuOBdSy4pPXozNWPP QXPf5elsXvhTFcN+fSz39ezp8+rUonvf7c79wc1gPyhILLMlvz22lHE6UbSnxq9v6m ahyLsGquGLTPHucBwAuVIJrX5v2Q3cBWKW26GJWlSaD8bIlv4nlK7YqGq/67A9ez5k 5Abul2eKhrVpg== Date: Wed, 20 Jul 2022 17:01:43 +0900 Message-Id: <20220720080143.18005-1-mcsinyx@disroot.org> Mime-Version: 1.0 Received-SPF: pass client-ip=178.21.23.139; envelope-from=mcsinyx@disroot.org; helo=knopi.disroot.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Wed, 20 Jul 2022 04:49:30 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-Mailman-Approved-At: Wed, 20 Jul 2022 09:16:48 -0400 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" Reply-to: =?utf-8?b?Tmd1eeG7hW4=?= Gia Phong X-ACL-Warn: , =?utf-8?q?Nguy=E1=BB=85n_Gia_Phong_via_Guix-patches?= X-Patchwork-Original-From: guix-patches--- via From: "ashish.is--- via Guix-patches\" via" X-getmail-retrieved-from-mailbox: Patches While file is an optional dependency, without it file type determination and opening does not work out of the box. --- gnu/packages/disk.scm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gnu/packages/disk.scm b/gnu/packages/disk.scm index 47b15e588f79..58bd3db3812c 100644 --- a/gnu/packages/disk.scm +++ b/gnu/packages/disk.scm @@ -24,6 +24,7 @@ ;;; Copyright © 2021 Justin Veilleux ;;; Copyright © 2014, 2022 Ludovic Courtès ;;; Copyright © 2022 Maxim Cournoyer +;;; Copyright © 2022 Nguyễn Gia Phong ;;; ;;; This file is part of GNU Guix. ;;; @@ -800,7 +801,7 @@ (define-public ranger "0lfjrpv3z4h0knd3v94fijrw2zjba51mrp3mjqx2c98wr428l26f")))) (build-system python-build-system) (inputs - (list w3m)) + (list file w3m)) (native-inputs (list which ;; For tests. @@ -815,11 +816,13 @@ (define-public ranger (lambda* (#:key inputs outputs #:allow-other-keys) (let* ((out (assoc-ref outputs "out")) (ranger (string-append out "/bin/ranger")) + (file (assoc-ref inputs "file")) (w3m (assoc-ref inputs "w3m")) (w3mimgdisplay (string-append w3m "/libexec/w3m/w3mimgdisplay"))) (wrap-program ranger - `("W3MIMGDISPLAY_PATH" ":" prefix (,w3mimgdisplay))) + `("W3MIMGDISPLAY_PATH" ":" prefix (,w3mimgdisplay)) + `("PATH" ":" prefix ,(list (string-append file "/bin")))) #t))) (replace 'check ;; The default check phase simply prints 'Ran 0 tests in 0.000s'.