From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id 4BbrGNeH+GT5uwAA9RJhRA:P1 (envelope-from ) for ; Wed, 06 Sep 2023 16:08:23 +0200 Received: from aspmx1.migadu.com ([2001:41d0:306:2d92::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id 4BbrGNeH+GT5uwAA9RJhRA (envelope-from ) for ; Wed, 06 Sep 2023 16:08:23 +0200 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 2DB2759C31 for ; Wed, 6 Sep 2023 16:08:23 +0200 (CEST) Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=aruba.it header.s=a1 header.b="m/fAKerf"; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1694009303; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: 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=WEE53fnF7bNB7G2y4bZXDs7x3k5v7ylUljRzhmKRoJw=; b=FziAXYi0s8C9DUJxFk3wWfLaxA4KXAW9ztVQD4TYU98ICYeUc5zAaJTsCISPf07z+IU66q 3iMmMBLpxyClRlRHCGoSCuJJlUH83duL0EUJUlss3fOL8dgck14KDw4otbL5I0FuE+Luqp Cx/c6osEHw0IeOjktMwaWzju5gc72KvOdgQ6CKSiBNspQBeUgufm9gh+brjRY++Hv7W0ry b/37hxqn2EPHQRL3Jul5OQ4MMZZcor0dsv7T1Y+j1e4+pkmgOU8L5uFY+VgfaIwaoa/8/s p1aeq/dadgZcKf+ki8k+Se/ZtPuYnRKvTZDiTrUJ5xwIVDCaAR4qKO32NNwpKg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1694009303; a=rsa-sha256; cv=none; b=bUk3GvGA/e0tbIaWlNCQltU0Rog41j4Vwi/FxKJp/admmBgJ4QWDFg8T8FGxIlwO6yycAt ZDVamDMs2frc4s1OxOE1Ckfk8cqyizn1Czz3DTLecyGUs7sfNuJZYoUsUJy+kFojyG9Jq5 65QhdVLlSTlSkXu1FN5abD8ThFsHo2YBp4RmQD9WQU4MBgDR8Lpd5EaUKWfNkOQhhJNoQz RPmQzQFuq8eeywIi4KhJm1bIOVQh9/YTGfQaUOhfEf92dkUCWCiF5LnWjj/ZYxuyL9SZPy qDkZpjFGZbQmt+dtbDqi9t+SLVxiAopSqjnr2EULCLn1qx9uMv96ooSM96jdjQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=aruba.it header.s=a1 header.b="m/fAKerf"; 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=none Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qdtCN-0001w0-PV; Wed, 06 Sep 2023 10:08:03 -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 1qdtCK-0001vf-OB for guix-patches@gnu.org; Wed, 06 Sep 2023 10:08:00 -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 1qdtCK-0000WK-GQ for guix-patches@gnu.org; Wed, 06 Sep 2023 10:08:00 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qdtCL-0003J1-J5 for guix-patches@gnu.org; Wed, 06 Sep 2023 10:08:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#65097] [PATCH] gnu: Add tk-img. References: <637de43ce6edf9cebaf84d3b456901a184e6de82.1691242776.git.cage-dev@twistfold.it> In-Reply-To: <637de43ce6edf9cebaf84d3b456901a184e6de82.1691242776.git.cage-dev@twistfold.it> Resent-From: cage Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 06 Sep 2023 14:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65097 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 65097@debbugs.gnu.org Cc: maxim.cournoyer@gmail.com Received: via spool by 65097-submit@debbugs.gnu.org id=B65097.169400924612662 (code B ref 65097); Wed, 06 Sep 2023 14:08:01 +0000 Received: (at 65097) by debbugs.gnu.org; 6 Sep 2023 14:07:26 +0000 Received: from localhost ([127.0.0.1]:37061 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdtBm-0003IA-0R for submit@debbugs.gnu.org; Wed, 06 Sep 2023 10:07:26 -0400 Received: from smtpcmd03117.aruba.it ([62.149.158.117]:53317) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qdtBi-0003Hm-60 for 65097@debbugs.gnu.org; Wed, 06 Sep 2023 10:07:24 -0400 Received: from shimizu.casa.net ([94.34.23.103]) by Aruba Outgoing Smtp with ESMTPSA id dtBZqnp7SqAKqdtBZqZ4u1; Wed, 06 Sep 2023 16:07:14 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=aruba.it; s=a1; t=1694009234; bh=Q0INMPCJuEXkEsDg55z/AEDYCze0XVHIi0y1j+9tMI8=; h=Date:From:To:Subject:MIME-Version:Content-Type; b=m/fAKerfSa0ts00lqksVybRoBP4Sb2ZGaS2yX/306BLR8G3X3JYgWWX+csw6jLCoV Jtw2XVNaLhIIg2iLItzD+dBgtjicWirskSsre+Byyy15O8K6RYq7Xslp82j1nkPoXy E5oDQCc+x+SJza9UsZSwDUcOFcFRhDwq/lhLsmLlrE1E663hYsLwxyEVsYGASxZ15n MQbl00or9b4g0CO0pTmRzyZgKJMuzozPM/qBU4j6NFyw+M+ySSwuHV2NcIxCEhr2Gr DO9bCcL21MCufqiczxtO1nnFyLq2yAZh+GXcifsFyLCwKBYfUw/lEMkAlRMOCnMJhz uLyBiBrPrm06g== Received: by shimizu.casa.net (Postfix, from userid 1000) id 4DF5FDA05C8; Wed, 6 Sep 2023 16:06:59 +0200 (CEST) Date: Wed, 6 Sep 2023 16:06:59 +0200 From: cage Message-ID: <2a54087d189965c4a6ee73d8b24b3b594bb0d5f4.1694008299.git.cage-dev@twistfold.it> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-CMAE-Envelope: MS4xfBmFoFjIv1Mj8z4JIIHf7Gctng7kxjOeNJ5GDXQ70R3XHL8elVRH1ioFI9PfwN2VLdy5EwT0I89CZjQ4yEiw7ZYR2x9vvqofiGIcn136Q7UfpJJ2WI+S b1Wmquuzl5Q4qcsBi6Lyu25+AyeXxou3IHeV0+Srz/rwLBCPAYiZHDW6sCgxCbL/7QQJlEtn3pf/Cuw4poNUgc9zQ7uhX3qcQHAmZMRqRpn1n8dk5FKygV3p 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-Migadu-Scanner: mx2.migadu.com X-Spam-Score: -4.22 X-Migadu-Queue-Id: 2DB2759C31 X-Migadu-Spam-Score: -4.22 X-TUID: qKdPitXzWBLW Hi! With this patch I tried to address all the issues that was pointed out (hope they are fine :)) except one: > One last thing, the source of tk-img carries many 'contrib' sources; > they should be removed in a snippet to ensure only Guix-provided system > libraries are used instead. Because I was not able to find out the contribs sources. Also, for the record, the problem with tests is not that the Tk (as I erroneously thought) executable can not be found but that, for some reasons, the tcl script seems to fails to resolve Tk as dependency: $ tclsh % package require Tk → raise an error the same line works on my other system (Debian) Bye! C. --- gnu/packages/tcl.scm | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/gnu/packages/tcl.scm b/gnu/packages/tcl.scm index b69dba2254..22602c177a 100644 --- a/gnu/packages/tcl.scm +++ b/gnu/packages/tcl.scm @@ -36,6 +36,7 @@ (define-module (gnu packages tcl) #:use-module (gnu packages) #:use-module (gnu packages image) #:use-module (gnu packages fontutils) + #:use-module (gnu packages ghostscript) #:use-module (gnu packages perl) #:use-module (gnu packages pkg-config) #:use-module (gnu packages tls) @@ -509,3 +510,42 @@ (define-public go-github.com-nsf-gothic (description "Gothic contains Go bindings for Tcl/Tk. The package contains only one type and one function that can be used to create a Tk interpreter.") (license license:expat)))) + +(define-public tk-img + (package + (name "tk-img") + (version "1.4.14") + (source + (origin + (method url-fetch) + (uri (string-append + "mirror://sourceforge/tkimg/tkimg/1.4/tkimg%20" + version + "/Img-" version "-Source.tar.gz")) + (file-name (string-append "tkimg-" version ".tar.gz")) + (sha256 + (base32 "08dvb8bfkxr919wp6fq14cfb9lz1v59jx1la4a6j4ks636wb243m")))) + (build-system gnu-build-system) + (arguments + (list #:tests? #f ; tests fails because the tcl shell can not find Tk ("package require Tk" fails) + #:phases + #~(modify-phases %standard-phases + (replace 'install + (lambda* (#:key outputs #:allow-other-keys) + (invoke "make" "install-libraries")))) + #:configure-flags + #~(list + (string-append "--exec-prefix=" #$output) + (string-append "--with-tcl=" + (assoc-ref %build-inputs "tcl") "/lib") + (string-append "--with-tk=" + (assoc-ref %build-inputs "tk") "/lib")))) + (native-inputs + (list tcl tk ghostscript)) + (home-page "https://sourceforge.net/projects/tkimg/") + (synopsis "Increase the number bitmap file formats supported by TK.") + (description + "The Img package adds supports for several image formats to TCl/TK; notably JPEG, ICO, BMP, TGA and PostScript (using an external PostScript interpreter).") + (license (license:non-copyleft + "file://license.terms" + "See license.terms in the distribution.")))) base-commit: 42ae42cf41e8f5e88422e30d801251a3427d7f3b -- 2.34.0