From patchwork Fri Jan 13 20:58:01 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Greg Hogan X-Patchwork-Id: 46090 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 1002F27BBE9; Fri, 13 Jan 2023 20:59:17 +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_H2,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 28C0B27BBEB for ; Fri, 13 Jan 2023 20:59:15 +0000 (GMT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pGR8i-0003oQ-Hq; Fri, 13 Jan 2023 15:59:04 -0500 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 1pGR8h-0003oH-82 for guix-patches@gnu.org; Fri, 13 Jan 2023 15:59:03 -0500 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 1pGR8g-0000e1-Vx for guix-patches@gnu.org; Fri, 13 Jan 2023 15:59:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pGR8g-00028X-II for guix-patches@gnu.org; Fri, 13 Jan 2023 15:59:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#60789] [PATCH] gnu: moreutils: Fix library path. Resent-From: Greg Hogan Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 13 Jan 2023 20:59:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 60789 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 60789@debbugs.gnu.org Cc: Greg Hogan X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16736434908142 (code B ref -1); Fri, 13 Jan 2023 20:59:02 +0000 Received: (at submit) by debbugs.gnu.org; 13 Jan 2023 20:58:10 +0000 Received: from localhost ([127.0.0.1]:52512 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pGR7q-00027G-4l for submit@debbugs.gnu.org; Fri, 13 Jan 2023 15:58:10 -0500 Received: from lists.gnu.org ([209.51.188.17]:50200) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pGR7o-000278-DV for submit@debbugs.gnu.org; Fri, 13 Jan 2023 15:58:08 -0500 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 1pGR7o-0003kh-5R for guix-patches@gnu.org; Fri, 13 Jan 2023 15:58:08 -0500 Received: from mail-il1-x12f.google.com ([2607:f8b0:4864:20::12f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pGR7m-0000b6-4r for guix-patches@gnu.org; Fri, 13 Jan 2023 15:58:07 -0500 Received: by mail-il1-x12f.google.com with SMTP id f8so5257373ilj.5 for ; Fri, 13 Jan 2023 12:58:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=greghogan-com.20210112.gappssmtp.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=5RRpF21mDbLNVDusNQ3EbQvIfImInHKkgwD7PqBQY2s=; b=NaZhp8ZT0zEC/QI2s1OVB4VVmXrQfy97dWCjl0FaE3f06OLccz91sR2tsFVjyPg4Z+ F9dr8RN6nov4yg3mZN826H6xOuf5dTK4+YnUTUzNfbZOEdiA7Uv2QdLZNfHGEsIXE6Ja NLfFaABY3o0eu3GXtUVRhtREs+3mFs7sAL884EpakWSbK86qfzLSjtMh3y/Mwqqw6p6L dYxskqBXW1GFwDegDgIOlno/a2o4W87ry/poLRZw1Rw1NGwAsixd94l4x/kJPdgHh+m2 qwMB6+ARU+AYHpRWfEz+mIvM051gcZbduFltj0PX6Z2KKCgxQq6y5/KgsFPa7wLT9Ubi cTpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=5RRpF21mDbLNVDusNQ3EbQvIfImInHKkgwD7PqBQY2s=; b=dE5nC6RcfDRV5JVGOpUY7QdvKPS+RiCeQEha1f92eheXbLIUVKd64222HmaIYB61RN ZRF8ElIJ153uVniAqXHQeEXN5IwFFyqYciYabDH+6v0obZbDp5GjpuhW4d0rV3g+iitu ybFwuwzbmz7lwdBDZeklN8LkAzTzc+6i5pWJ8aNV91hwKk9HDfNBaOL50Dyli/F03/3h Q9fzUZK8OfQiFRrWO+h9hn4sOCRJ3g8bniCbe8J7/dZ4BViAAuaG2psHVohLEMl1zlmw EzrixpH2aoZnvWCn85yhSliULcifIMk1QTmjWsGeljtmMMTlkdYucH+bA4fOuXztEEA7 /wng== X-Gm-Message-State: AFqh2krnrfR3vjotLiboTJJjk4hOcdgYdt9MCXxVxULBEbwGoZ7j4Xiw f7kXDc2HUqW89PW93d3oB2+bvCOmsR5QweTFT3I= X-Google-Smtp-Source: AMrXdXs1i/Kq+gSn33YtsjuGTbBkB//Y4aeLLgSY054pvpBS8XWRTqly7RgNj0gNA8/8XciEyqQTbA== X-Received: by 2002:a92:cf02:0:b0:30d:c671:48c5 with SMTP id c2-20020a92cf02000000b0030dc67148c5mr7495547ilo.16.1673643483966; Fri, 13 Jan 2023 12:58:03 -0800 (PST) Received: from ip-172-31-20-162.us-east-2.compute.internal (ec2-18-188-223-65.us-east-2.compute.amazonaws.com. [18.188.223.65]) by smtp.gmail.com with ESMTPSA id q14-20020a056e02078e00b00302632f0d20sm6378509ils.67.2023.01.13.12.58.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Jan 2023 12:58:03 -0800 (PST) From: Greg Hogan Date: Fri, 13 Jan 2023 20:58:01 +0000 Message-Id: <20230113205801.1188087-1-code@greghogan.com> X-Mailer: git-send-email 2.39.0 MIME-Version: 1.0 Received-SPF: none client-ip=2607:f8b0:4864:20::12f; envelope-from=code@greghogan.com; helo=mail-il1-x12f.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 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+patchwork=mira.cbaines.net@gnu.org Sender: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org X-getmail-retrieved-from-mailbox: Patches Fix for the following error. $ guix shell --container moreutils -- chronic ls Can't locate IPC/Run.pm in @INC (you may need to install the IPC::Run module) (@INC contains: /gnu/store/hy6abswwv4d89zp464fw52z65fkzr7h5-perl-5.34.0/lib/perl5/site_perl/5.34.0/x86_64-linux-thread-multi /gnu/store/hy6abswwv4d89zp464fw52z65fkzr7h5-perl-5.34.0/lib/perl5/site_perl/5.34.0 /gnu/store/hy6abswwv4d89zp464fw52z65fkzr7h5-perl-5.34.0/lib/perl5/5.34.0/x86_64-linux-thread-multi /gnu/store/hy6abswwv4d89zp464fw52z65fkzr7h5-perl-5.34.0/lib/perl5/5.34.0) at /gnu/store/r7kzz76arp9h480h2rnpdg21yzd6pyk2-profile/bin/chronic line 57. BEGIN failed--compilation aborted at /gnu/store/r7kzz76arp9h480h2rnpdg21yzd6pyk2-profile/bin/chronic line 57. * gnu/packages/moreutils.scm: Set Perl library path for all scripts. [inputs]: Add perl-ipc-run. --- gnu/packages/moreutils.scm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/gnu/packages/moreutils.scm b/gnu/packages/moreutils.scm index 5c9560530b..4b0b617bde 100644 --- a/gnu/packages/moreutils.scm +++ b/gnu/packages/moreutils.scm @@ -49,9 +49,11 @@ (define-public moreutils #~(modify-phases %standard-phases (add-after 'install 'wrap-program (lambda _ - (wrap-program - (string-append #$output "/bin/ts") - `("PERL5LIB" ":" prefix (,(getenv "PERL5LIB")))))) + (for-each + (lambda (script) + (wrap-program script + `("PERL5LIB" ":" prefix (,(getenv "PERL5LIB"))))) + (find-files (string-append #$output "/bin"))))) (delete 'configure)) ; no configure script #:make-flags #~(list (string-append "PREFIX=" #$output) @@ -63,6 +65,7 @@ (define-public moreutils (string-append "CC=" #$(cc-for-target))))) (inputs (list perl + perl-ipc-run perl-timedate perl-time-duration)) ;; For building the manual pages.