From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id WPZIIldH7WByLwAAgWs5BA (envelope-from ) for ; Tue, 13 Jul 2021 09:57:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 4JjhHVdH7WA8VgAAbx9fmQ (envelope-from ) for ; Tue, 13 Jul 2021 07:57:11 +0000 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 07D871BA68 for ; Tue, 13 Jul 2021 09:57:11 +0200 (CEST) Received: from localhost ([::1]:38624 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m3DHx-0005aw-UR for larch@yhetil.org; Tue, 13 Jul 2021 03:57:09 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35556) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m3DHq-0005Wi-D0 for guix-patches@gnu.org; Tue, 13 Jul 2021 03:57:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:56024) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m3DHq-0000ey-4t for guix-patches@gnu.org; Tue, 13 Jul 2021 03:57:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1m3DHq-0000US-5E for guix-patches@gnu.org; Tue, 13 Jul 2021 03:57:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#48443] [PATCH v2 1/2] gnu: Add texlive-libkpathsea. References: In-Reply-To: Resent-From: Leo Prikler Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 13 Jul 2021 07:57:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 48443 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 48443@debbugs.gnu.org Cc: bauermann@kolabnow.com Received: via spool by 48443-submit@debbugs.gnu.org id=B48443.16261630151862 (code B ref 48443); Tue, 13 Jul 2021 07:57:02 +0000 Received: (at 48443) by debbugs.gnu.org; 13 Jul 2021 07:56:55 +0000 Received: from localhost ([127.0.0.1]:39336 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3DHj-0000Ts-GA for submit@debbugs.gnu.org; Tue, 13 Jul 2021 03:56:55 -0400 Received: from mailrelay.tugraz.at ([129.27.2.202]:8912) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1m3DHg-0000TX-Jm for 48443@debbugs.gnu.org; Tue, 13 Jul 2021 03:56:54 -0400 Received: from localhost.localdomain (80-121-26-175.adsl.highway.telekom.at [80.121.26.175]) by mailrelay.tugraz.at (Postfix) with ESMTPSA id 4GPCdW3v3bz1LWny; Tue, 13 Jul 2021 09:56:47 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 mailrelay.tugraz.at 4GPCdW3v3bz1LWny DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=tugraz.at; s=mailrelay; t=1626163007; bh=1snC2GgpcMsDBODlVt4TeLhCVbQ6hj/K91gcOt3tTe0=; h=From:To:Cc:Subject:Date:From; b=vI70tsR6oXmFAy1FtYcMOxAOCbpoWl3xL17t0ukEmn1QMajaRl+SyKnkxrBWAnMX/ wWjt0aqG1aStfGjC1awDDAnYpay5LsccKxvn90dI6oeKQqNyDo+EClu4YmBtqL5mGL IqBmKHVURGYJROExmab2fiudZALzBqyreIO7R+NE= From: Leo Prikler Date: Tue, 13 Jul 2021 09:56:08 +0200 Message-Id: <20210713075608.12929-1-leo.prikler@student.tugraz.at> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-TUG-Backscatter-control: bt4lQm5Tva3SBgCuw0EnZw X-Spam-Scanner: SpamAssassin 3.003001 X-Spam-Score-relay: -1.9 X-Scanned-By: MIMEDefang 2.74 on 129.27.10.117 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" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1626163031; 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=qSjbE1GxNKcTilCkgfrnPiJU2VGglYCwudkddJ+ce+I=; b=q3Qx+XtXA1htK6wiLeNfA4RQaVIkxelOrN2pMoWJVEGiHioAkrg0meKpZ/7vq8mZ6z9Ejo wJ0eXaTinU6ikNxuQUCV4q+Sqwl3ktmd70gg+3WXQDONTG/5dlM6AdryrmccXs90kgAC+G aZQhqVwGL1g2ELOLg94AS0jfvNwjMRYXRpZsX6Gbm1hel3beXc8bIoABUEpriHHozT6IfC ZVXKQAiIXiiT5QY6OCx+k4D55R812SFk3GI8xEocUMUQ42Tu9oI5GH6Q4y9uxd0o2oS5Fc Lh7XlppUTqfTNCTu0IMISaXSnEztDmlsfKf0NMEqB1cczjiIutLe/EJwH0XF5w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1626163031; a=rsa-sha256; cv=none; b=GeKAO/dmqr/3pz7XMFr4WOEbybFzn2WR9AJ/dI7HQz1XNOhCAAQgDGBTd6zI27ntZngoQM TOATnxqWodIdQqqXJk20V92Br7IyWA2TjY8+aaVrewOI74o89jAKXNzGBLZUteE4X4hvGA l+/p6woyXhNrjiiYOg2BWm7dH+jsAJSGCsQeVJu4KVLzF/bn6jx/LV1A1IjJheRpTC5OUo sZbKdXVumEFjrfu6Ctj4l5pQQvKRtN6fkOzhm75W2j7J34XDklCgEwhkSHcy2NJbtT+jWZ +lSs0kbOrkpXMNQqX+V36kAkhNw/pM79w4g5imqBNxrK3T5RInh/tN4HLfGJGg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=tugraz.at header.s=mailrelay header.b=vI70tsR6; dmarc=fail reason="SPF not aligned (relaxed)" header.from=student.tugraz.at (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 3.70 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=tugraz.at header.s=mailrelay header.b=vI70tsR6; dmarc=fail reason="SPF not aligned (relaxed)" header.from=student.tugraz.at (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 07D871BA68 X-Spam-Score: 3.70 X-Migadu-Scanner: scn0.migadu.com X-TUID: rNzQ0GS7xU7+ * gnu/packages/tex.scm (texlive-libkpathsea): New variable. --- gnu/packages/tex.scm | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/gnu/packages/tex.scm b/gnu/packages/tex.scm index 8d86264209..9256f56842 100644 --- a/gnu/packages/tex.scm +++ b/gnu/packages/tex.scm @@ -460,6 +460,38 @@ This package contains the binaries.") (license (license:fsf-free "https://www.tug.org/texlive/copying.html")) (home-page "https://www.tug.org/texlive/"))) +(define-public texlive-libkpathsea + (package/inherit texlive-bin + (name "texlive-libkpathsea") + (source + (origin + (inherit (package-source texlive-bin)) + (snippet + `(begin + ,(origin-snippet (package-source texlive-bin)) + (with-directory-excursion "texk" + (let ((preserved-directories '("." ".." "kpathsea"))) + (for-each + delete-file-recursively + (scandir "." + (lambda (file) + (and (not (member file preserved-directories)) + (eq? 'directory (stat:type (stat file))))))))))))) + (arguments + (substitute-keyword-arguments (package-arguments texlive-bin) + ((#:configure-flags flags) + `(cons* "--disable-all-pkgs" "--enable-kpathsea" + "--enable-shared" ,flags)) + ((#:phases phases) + `(modify-phases %standard-phases + (add-after 'install 'post-install + (lambda* (#:key inputs outputs #:allow-other-keys) + (with-directory-excursion "texk/kpathsea" + (invoke "make" "install")))))))) + (synopsis "Path searching library") + (description "kpathsea is a library, whose purpose is to return a filename +from a list of user-specified directories similar to how shells look up +executables. It is maintained as a part of TeX Live."))) (define texlive-docstrip (package -- 2.32.0