From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id kAF7ESU6ZGdPVQAAqHPOHw:P1 (envelope-from ) for ; Thu, 19 Dec 2024 15:22:13 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id kAF7ESU6ZGdPVQAAqHPOHw (envelope-from ) for ; Thu, 19 Dec 2024 16:22:13 +0100 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=XdAza0fo; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=CCP580br; 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=1734621733; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=UIcDOhwXZPk4ceehyPSPHez5CkW/Nwbx2py43MBs0CU=; b=QpggkYbxZkSYaUriUNlGwuA6/EO4yVlSVErx/UUbB8FqEA2L9TnkxaJeN9X8kiPcchn1EW 4im8FQEZPonQ9sacow/QtbFuKi/Ug9iNK6krgR0t56KqaBiiOabRAle99ihHDb8mgES7eC IWnEOF1nZlBWBEk8eyxVC9zeRAuCAOMLdGiosnAjqf3/KvqcOmJKqWLp+8ibzP20ytX/ke PyTScNueHTMB6+2kKb6CSJ6gEVdd6IkYQaagX76OgtVzgUdeCfoe8We4f9xut07Ze/xSZQ polFQ1g7R1faqxTBksy9t4r79/6UhGbjvXxf1FWDX6cYKgzFl10AxQsgIwzKeQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debbugs.gnu.org header.s=debbugs-gnu-org header.b=XdAza0fo; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20230601 header.b=CCP580br; 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=1734621733; a=rsa-sha256; cv=none; b=niPSBEpwg8I9IFiCTb/FdJblQivU3gEo3sOcLud3nRbNNLtG3b6vGeG6MNllSf1BtoBYc2 vqH8AsHuBYhbh2XJPtXa2BUEKk8NVnfbqvNyXK3BnJV3wyYiZcNmcU9ThCQ/YtTTzLDfaV uFKUmnV+YckFCLBz9b5BfSf2nEGiTFiDZu5fe70X/tDvxwRRYC/iMlxp8lngthvIJkYMQB SBqQR46wJ3qKiUnO8NLrSl+SGvJLG29BSIpgQMUDLp1a6KAxn8m4HHeBNdcMAaLnSx+V46 1yUZuimHOAf74A7KrfFMTTW7EPvWx1JViQYeOje4sy+HYy7FNXnRaPjCagcZsA== 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 5429C665E0 for ; Thu, 19 Dec 2024 16:22:12 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tOILf-0000I6-S8; Thu, 19 Dec 2024 10:21:59 -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 1tOIEx-0007bD-9Z for guix-patches@gnu.org; Thu, 19 Dec 2024 10:15:03 -0500 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 1tOIEw-0008HX-WE; Thu, 19 Dec 2024 10:15:03 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=debbugs.gnu.org; s=debbugs-gnu-org; h=MIME-Version:References:In-Reply-To:Date:From:To:Subject; bh=UIcDOhwXZPk4ceehyPSPHez5CkW/Nwbx2py43MBs0CU=; b=XdAza0foog46vAC6sI2UE5EVd1GpAnAulNu0WpdRQU0PAwI8KU/+JuOqyOs9ODN2C1gp+/cid2daeDEN39+etWupugBwN8djLYasExWAIV7a2MBYkGPuVY44FFSK9ybfhiUZK98qYQv9kff8GOGSZ8isgVdn6KHGf3KUl2/E609RMZoiAvYxDjb5gJKIGyJJcxkZ2ieh+7i7HI1kAK5/Ec0Qhn+qerMOleiwRtHgj09O+drtgOoPiJsim7NeN6klwkzq7gh10hs1nsHbt0KE4kkJJtv9hn+kJvZVn5cvV3YolxWFi/EHKsz2SwdLGHXeYaXFUO95GrNG+2Iu6nv1tQ==; Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1tOIEw-00059p-Hp; Thu, 19 Dec 2024 10:15:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#74393] [PATCH v2 2/2] gnu: texinfo-7: Use external modules. Resent-From: gemmaro Original-Sender: "Debbugs-submit" Resent-CC: gemmaro.dev@gmail.com, ludo@gnu.org, guix-patches@gnu.org Resent-Date: Thu, 19 Dec 2024 15:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 74393 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 74393@debbugs.gnu.org Cc: gemmaro , gemmaro , Ludovic =?UTF-8?Q?Court=C3=A8s?= X-Debbugs-Original-Xcc: gemmaro , Ludovic =?UTF-8?Q?Court=C3=A8s?= Received: via spool by 74393-submit@debbugs.gnu.org id=B74393.173462129719785 (code B ref 74393); Thu, 19 Dec 2024 15:15:02 +0000 Received: (at 74393) by debbugs.gnu.org; 19 Dec 2024 15:14:57 +0000 Received: from localhost ([127.0.0.1]:39679 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tOIEr-000593-64 for submit@debbugs.gnu.org; Thu, 19 Dec 2024 10:14:57 -0500 Received: from mail-pl1-f182.google.com ([209.85.214.182]:47524) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tOIEm-00058q-RY for 74393@debbugs.gnu.org; Thu, 19 Dec 2024 10:14:53 -0500 Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-21683192bf9so9219555ad.3 for <74393@debbugs.gnu.org>; Thu, 19 Dec 2024 07:14:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734621232; x=1735226032; darn=debbugs.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=UIcDOhwXZPk4ceehyPSPHez5CkW/Nwbx2py43MBs0CU=; b=CCP580brmnzk7ZIGitiMg+socunKJ9KFCX09s7kydYtVU+gN4/BVkAlw0jbKBqugyT P/YLwV2q1kTtuXcSuESroNT6Fp+RKBYozgjGOWgl64wa/c4yEcvIA35zcUlWMm9lpBSN F/p57t0UCV0KMDGfcbS/uAKj3BDAi4Jcr9Q+SpxV5ggaFbsUi5p48TbMJ54Bf/PHdYq5 kwFLz08UAMc06XnHR5/5VB1oCNLRklM6ZVPdMmYuzFF5ImkMmn+P0TyNq2LqtUUf69xv WOBgFJ9Hc997bb/ZVmds1ZlRsZo++s08fNcoQDCXWeDscHQ+5wjJYwRQdL+5tod8y3MZ De3A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734621232; x=1735226032; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=UIcDOhwXZPk4ceehyPSPHez5CkW/Nwbx2py43MBs0CU=; b=C5zgNmCVPOeq9ebtD2ZSSkIgMtVZny3W9f5w6nzgKL6YodiKAFWJDQtW+VSaepDpS6 Zab67Ak3a4evucl2fBRIcmMiT6Ftt3mO4kG1++wRSZjYW3s5AvI81W0DFoBYJ+5NBajH krZsuCRURLwqv2nLjSwFddTX7zlhgNSxZS7YqHvlkT4PXOSCPs3WrUo0mpMb4bYya4sY RdRB4iUANS5IFssWvohHdfLj/E8a1uOtKUqwW0Ei7EburyeDusS2rWUSQGNN2oUTDFZe wjmawE8i+CuMH19A32IWVjhsUnNFCM+pqdsd/Vnr/ApbmRCQ1n5VNv/G4DTzRbdmEPZ3 8Khg== X-Gm-Message-State: AOJu0Yw2AbJfNvuNrNd8FSCF3Kb1q+KkrUPDmSvuHw5Thw26toCzENSL me8GI+wjnWmbURJOQjwJAK81oG+zIRduIrceBQqiNUCj6uL4omOesZwa/g== X-Gm-Gg: ASbGncsQcm8zf9x6m2ABNWPHLhp/o5sMFXpC30pymACud+8fl27ZhFZAFfIInDOYa2F G1tUlkZe8BvqiL/2Ys1IQYsnQ8Y6c5BX/8GJVlBTKQSO4jwMyRgFS+kOjXvmxH3AdMnjHaIQoar KMpxasgM5wSfhQpIY7WNDaGolM2dzqih3uxLzpnvyDZOD3wE1Jl+BJmkS6vURZ5pTULLqNBCRoz p5BcGPwyvopQSvk+yCgowI7trQbS99ycVUxlcPS3gJmunXRO41OMRWD9nvCgB4= X-Google-Smtp-Source: AGHT+IFA9clsCEEtQVwbuMzAeExkTxBYrBspfglQp9v7MvSeBUJmjvoLLdx65sc+fk/tyR+5deDNWw== X-Received: by 2002:a17:902:f651:b0:206:9a3f:15e5 with SMTP id d9443c01a7336-218d7217397mr104938635ad.32.1734621232188; Thu, 19 Dec 2024 07:13:52 -0800 (PST) Received: from mac.gemmaro.name ([240f:74:d1f0:1:1883:f3d1:907f:a2e3]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-219dca01989sm13403255ad.239.2024.12.19.07.13.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Dec 2024 07:13:51 -0800 (PST) From: gemmaro Date: Fri, 20 Dec 2024 00:10:34 +0900 Message-ID: <20241219151042.3949-2-gemmaro.dev@gmail.com> X-Mailer: git-send-email 2.46.0 In-Reply-To: <20241219151042.3949-1-gemmaro.dev@gmail.com> References: <20241219151042.3949-1-gemmaro.dev@gmail.com> MIME-Version: 1.0 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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: 0.32 X-Spam-Score: 0.32 X-Migadu-Queue-Id: 5429C665E0 X-TUID: 3ySuLcPcZvtw * gnu/packages/texinfo.scm (texinfo-7): Use external modules rather than bundled ones. [inputs]: Add perl-unicode-eastasianwidth, perl-text-unidecode, and perl-libintl-perl. [arguments]<#:configure-flags>: Add a phase to enable the use of external modules. <#:phases>: Add Perl modules to the PERL5LIB variable of the texi2any program in the wrap-program phase. Change-Id: Ife2cdec50affb5287d5ad850b0ef80c6048b4b32 --- gnu/packages/texinfo.scm | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/gnu/packages/texinfo.scm b/gnu/packages/texinfo.scm index 13c780897e..d389e4d60e 100644 --- a/gnu/packages/texinfo.scm +++ b/gnu/packages/texinfo.scm @@ -120,9 +120,17 @@ (define-public texinfo-7 (base32 "10kcdb3pf7yakniccvv0krchs2fh3vh1rvhvnqr98ll3cbj3gbii")))) (inputs (modify-inputs (package-inputs texinfo) - (append perl-archive-zip))) ;needed for 'tex2any --epub3' + (append perl-archive-zip ;needed for 'tex2any --epub3' + perl-unicode-eastasianwidth perl-text-unidecode + perl-libintl-perl))) (arguments (substitute-keyword-arguments (package-arguments texinfo) + ((#:configure-flags flags + ''()) + #~(cons* "--with-external-Unicode-EastAsianWidth" + "--with-external-Text-Unidecode" + "--with-external-libintl-perl" + #$flags)) ((#:phases phases #~%standard-phases) #~(modify-phases #$phases (add-after 'install 'wrap-program @@ -136,9 +144,15 @@ (define-public texinfo-7 (and (eq? 'directory (stat:type stat)) (string=? (basename file) "Archive"))) - #:directories? #t)))) + #:directories? #t))) + (mods (map (lambda (mod) + (string-append (assoc-ref inputs mod) + "/lib/perl5/site_perl")) + '("perl-unicode-eastasianwidth" + "perl-text-unidecode" "perl-libintl-perl")))) (wrap-program program - `("PERL5LIB" prefix (,(dirname zip))))))))))))) + `("PERL5LIB" prefix + ,(cons* (dirname zip) mods)))))))))))) (define-public texinfo-5 (package (inherit texinfo) -- 2.46.0