From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id YHBTO4x70mbFuAAAqHPOHw:P1 (envelope-from ) for ; Sat, 31 Aug 2024 02:10:21 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id YHBTO4x70mbFuAAAqHPOHw (envelope-from ) for ; Sat, 31 Aug 2024 04:10:21 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b="JKsL3xE/"; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=ks5+zqOQ; 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"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1725070220; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=uBaaxcUz70oAxklDuXJwA3xempCiSSUh1+9ezrwW2vA=; b=NonODbZMV/LuO4UrfVgTkLzERjZMM/GSd73ahc+PNEzivwIj1v02EOhzywzRxkA1/carhf nvh/HL2g8GmVOLcpQ7rs+lzJ1iP4mgRIAM+DXqoIoV9FfYC186dgMhChywdqWf3Jze2I42 WviHONWezK6bJ20tHhKvAuK8cK81DQOFthlufgIFCBnXdr4HG/7RVCAHJG0/tbJUojx0F6 YqfjgQIAXepCLUiZKKJLDP21nVCmXNEtu3tEjWyIGJVnab/nYFaWX1twM5oVmwFVUp+GC7 iWEVAjmPbzpkh87AFAZEQAcLbbqcjr1Y4WAAHWhO4U9j7N4zF8jX1b0kmNYFLQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b="JKsL3xE/"; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=ks5+zqOQ; 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"; dmarc=fail reason="SPF not aligned (relaxed), DKIM not aligned (relaxed)" header.from=gmail.com (policy=none) ARC-Seal: i=1; s=key1; d=yhetil.org; t=1725070220; a=rsa-sha256; cv=none; b=VxTfLR3VjX7hc+E8rhEA1UwhQ7QHkFIT3ZKT0bnp9KQr827oTu50RQEAjTuGBdkGdcTuSN +hQf1ZyufGgBAUcj9gDvkmDBD+EjAApc5kYv37V27+Xs7XGE0XVAH9jAIPgqxqpmnwCaWE tVM2EnvQm73tNe8tUH1gB85Jb/SSZOnv7ecuuDU07kdf/LUDDRoqw8Mi2AVMmjQTi0tbqI tdHkiFMGeGxWEYq3PbsvTLltbAHgHKPVyfESZitfB9M6xvPWKyOdPsBcgkbKEfmE3lUx5s bD3/zHAJhwVmF90tKDqWnqMBxgbZ54tniHWD0CQmD98QD8Yp4177/13hgbEoVQ== 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 6684970F94 for ; Sat, 31 Aug 2024 04:10:18 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1skDZ4-0001vS-1f; Fri, 30 Aug 2024 22:10:10 -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 1skDZ0-0001vA-Pg for guix-patches@gnu.org; Fri, 30 Aug 2024 22:10:06 -0400 Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1skDZ0-0000uG-F9 for guix-patches@gnu.org; Fri, 30 Aug 2024 22:10:06 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:Date:From:To:Subject; bh=uBaaxcUz70oAxklDuXJwA3xempCiSSUh1+9ezrwW2vA=; b=JKsL3xE/nRz/NJjL5LdTvCh0QHJgdIDjOhbqtJGPX6d4O+wVS9zlUjcVGcy+Im0gOOddWlNf2k8FR/xq1B1jUYS6kIuN2sAbmQPfUNyt0zeWhPwLaWMvIMHXYbkZ7+dmPIXr9/iGNCjffMeBITH0fRD+UaITD9iIXqQsTST7Wx0sPx9wzFh0zmbvPkbnUcAat0s8TrDbBXJCblrZuRockzlczEGz+QPKC+ElRka/ookn/AT7XC7SLq7gtF4yrmNCPr6C6Nb6g/cBX5hCJly9ypguE4lQeLYR84uX57Lp7ICIqS82o750ii2syP+r/50RPR3uxjY7EXCV4kuo66j/Kw==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1skDZt-00043R-T2 for guix-patches@gnu.org; Fri, 30 Aug 2024 22:11:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#72897] [PATCH] gnu: perl-critic: Make the perlcritic command available. Resent-From: gemmaro Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 31 Aug 2024 02:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 72897 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 72897@debbugs.gnu.org Cc: gemmaro X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.172507020715491 (code B ref -1); Sat, 31 Aug 2024 02:11:01 +0000 Received: (at submit) by debbugs.gnu.org; 31 Aug 2024 02:10:07 +0000 Received: from localhost ([127.0.0.1]:53651 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1skDZ0-00041m-J6 for submit@debbugs.gnu.org; Fri, 30 Aug 2024 22:10:06 -0400 Received: from lists.gnu.org ([209.51.188.17]:55214) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1skDYy-00041c-6N for submit@debbugs.gnu.org; Fri, 30 Aug 2024 22:10: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 1skDY2-0001sG-8K for guix-patches@gnu.org; Fri, 30 Aug 2024 22:09:06 -0400 Received: from mail-pl1-x634.google.com ([2607:f8b0:4864:20::634]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1skDY0-0000fL-NU for guix-patches@gnu.org; Fri, 30 Aug 2024 22:09:05 -0400 Received: by mail-pl1-x634.google.com with SMTP id d9443c01a7336-202318c4f45so23915975ad.0 for ; Fri, 30 Aug 2024 19:09:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725070142; x=1725674942; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=uBaaxcUz70oAxklDuXJwA3xempCiSSUh1+9ezrwW2vA=; b=ks5+zqOQDD3ix2mDybAeQa+8Ai2LbzHwva5JTXtXEAetpRZnC6tGenF1Xm8S496h16 QErSATwzArQTrmy/PJbjulAMI34tJ20s4rwVxzBL3XhMVampL/r9dKz8QCTBTc68pxbx 0cyhsX1s7GJFXmRTHOI5drnAY2vnBfDkQmKtQKu7wLjW6YNAmp3w00vUQ2BGpeNQFQOW hxEpgjTzjPWf5RNrWQTLgZv2XUAou5R3Q0RkPqWpsmO7PTIQzA9NsW4D5b3XScRbRF2N kpGdUCaBLUhzoDvQxGHcQTCN8GyV/eyNLYvF3tqxRZZSfBYirt1bc350TSvG+TzNuUea I+uQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725070142; x=1725674942; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=uBaaxcUz70oAxklDuXJwA3xempCiSSUh1+9ezrwW2vA=; b=XS4KZG35TAIAlvh4joeAT2zE24rQkkTAvvs128J/DRoW/qSlqMMk5424ukxKGgegqw /KZGV81Oh1IWcSUl7LkX8Sn8JYZMyl6yAVLN8z1JMzepnWnua2sv3tZP+15N0YKAndF3 32UT8KP/ZXKOJly27qeahy+VDO1om6PLOl7/PJvRAj/Vir4BU0wZNt0P1b/nTaq/nQ+I aHAsiA55zOiDlc1DywQefjMA3Z1c0HY0nS6L9qOQoNf9bpb66uXWv7l3QKBfSw3WL0BV GsYgAq3sBLtcmXYo5JIY7SNovSkNnGJKX792lsMSD9OdCf4r4S/LTYFFgbinGDjkK/xl x8vw== X-Gm-Message-State: AOJu0YyxryW4D1crat7bfHCk2HrECgs+KYszjgtSlzWjQRp7u/Bcv4Oi m/QtR6CzEzM6vrfGW75eu8jY9n8fKCveXV9aW1EaWVt3t9R04g78KEsARDBf X-Google-Smtp-Source: AGHT+IHFWXwKNuOBA+flsn0PmLo5s/g1fFxxCxT8VPtPnVJl+q5H9HfS41AcsuABZ30ue0//B9lgpA== X-Received: by 2002:a17:902:ebc5:b0:1fb:8aa9:e2a9 with SMTP id d9443c01a7336-2054612bdc7mr12354235ad.15.1725070142220; Fri, 30 Aug 2024 19:09:02 -0700 (PDT) Received: from mac.gemmaro.name ([240f:74:d1f0:1:1883:f3d1:907f:a2e3]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2054403849csm4091855ad.278.2024.08.30.19.09.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 30 Aug 2024 19:09:01 -0700 (PDT) From: gemmaro Date: Sat, 31 Aug 2024 11:07:55 +0900 Message-ID: <3af28be611dab07d703f307f2bdcc19dc63a17fe.1725070075.git.gemmaro.dev@gmail.com> X-Mailer: git-send-email 2.45.2 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::634; envelope-from=gemmaro.dev@gmail.com; helo=mail-pl1-x634.google.com 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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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-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 X-Spam-Score: -5.22 X-Migadu-Queue-Id: 6684970F94 X-Migadu-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -5.22 X-TUID: qn6NgqiSnKqC * gnu/packages/perl.scm (perl-critic)[arguments]<#:phases>: Add phases to wrap the perlcritic command and test it works. [inputs]: Add bash-minimal for wrap-program. Change-Id: I8c506e655fdf2b1c33e850579c6a5adcbbd37192 --- gnu/packages/perl.scm | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/gnu/packages/perl.scm b/gnu/packages/perl.scm index 816aca2d59..b0c1451078 100644 --- a/gnu/packages/perl.scm +++ b/gnu/packages/perl.scm @@ -2301,7 +2301,22 @@ (define-public perl-critic (base32 "1nzxpn71mrpp85yxrxlraj52q2skvf9ja887ls11d57h6smg1vmz")))) (build-system perl-build-system) + (arguments + (list + #:phases #~(modify-phases %standard-phases + (add-after 'install 'wrap-perlcritic + (lambda _ + (wrap-program (string-append #$output "/bin/perlcritic") + `("PERL5LIB" ":" prefix + (,(getenv "PERL5LIB") ,(string-append #$output + "/lib/perl5/site_perl")))))) + (add-after 'wrap-perlcritic 'check-perlcritic + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke (string-append #$output "/bin/perlcritic") + "--version"))))))) (native-inputs (list perl-module-build perl-test-deep)) + (inputs (list bash-minimal)) (propagated-inputs (list perltidy perl-exception-class perl-io-string base-commit: df14cacca9b95d69fdd3b6191e42df36af266bcd -- 2.45.2