From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iIj7B2VtkF8zMwAA0tVLHw (envelope-from ) for ; Wed, 21 Oct 2020 17:18:29 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id xVvJA2VtkF/HAQAA1q6Kng (envelope-from ) for ; Wed, 21 Oct 2020 17:18:29 +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 A4C339404C4 for ; Wed, 21 Oct 2020 17:18:28 +0000 (UTC) Received: from localhost ([::1]:41878 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kVHkp-0003HH-LU for larch@yhetil.org; Wed, 21 Oct 2020 13:18:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46052) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVHka-0003E5-U3 for guix-devel@gnu.org; Wed, 21 Oct 2020 13:18:16 -0400 Received: from mail-40136.protonmail.ch ([185.70.40.136]:37188) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kVHkW-0003cY-5j; Wed, 21 Oct 2020 13:18:12 -0400 Date: Wed, 21 Oct 2020 17:17:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=elenq.tech; s=protonmail2; t=1603300684; bh=2kqaSPAOB5qqpS9CHnbYFzMKKvjCitKhB3WjLzgSHZI=; h=Date:To:From:Cc:Reply-To:Subject:In-Reply-To:References:From; b=O5Pwq5W74tEXuxZaDSFmX9baqKO1W69/xmyGCn4y+bXmgJX6m2++1rE32wxUDaKpj +RcOGp/IBGA3NZTb79Zx2BzmmqTUcQJC5aWALQEwR10SGsk8hwGhRWcDaatU0tj0jS GcCEl7bUEfMr+d5PfDS4RM0pRCEsNIeJEqDGGNYV2qhyGnKxRYVyarkv1nZpRyfP8N +R1OCPFJnJ3zfMRpa3P0IKmImFYbsjJdary32o38L18WEHNTgZAH8cXs10jvb2IbUz 9hy5VO5TKadfcOCRU5jn63aI/O2Ay6WHGj8XpzHmOXQoYcTf5G3F1nPY2qpaafP45y 3cyHXe8198e6g== To: =?utf-8?Q?Ludovic_Court=C3=A8s?= From: Ekaitz Zarraga Subject: Re: Inkscape export errors Message-ID: In-Reply-To: <87sga71sea.fsf@gnu.org> References: <87h7qn4ton.fsf@gnu.org> <0t1qEcqDeRTxvIVpjTRAmSgxVQhlFHPfRBb5jaLUWANXUggAreFsmHlG4FaaBg7FkTklmAfy5GXpaMiKUyykzcV9wJ3btisunBMEE7DDlMk=@elenq.tech> <87sga71sea.fsf@gnu.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=185.70.40.136; envelope-from=ekaitz@elenq.tech; helo=mail-40136.protonmail.ch X-detected-operating-system: by eggs.gnu.org: First seen = 2020/10/21 13:18:05 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] 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, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Ekaitz Zarraga Cc: "guix-devel\\@gnu.org" Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Scanner: scn0 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=elenq.tech header.s=protonmail2 header.b=O5Pwq5W7; dmarc=pass (policy=none) header.from=elenq.tech; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Spam-Score: -1.71 X-TUID: b7leiEztKIZ5 Hi, I think I managed to solve the issues. All the issues I had were coming from the extensions' dependencies not being added to Inkscape's. With the following changes it's supposed to work (it worked in my machine lol). I had to package scour too, because it wasn't packaged. I have a question here btw. In general, python deps are propagated, and that makes sense. But in programs like inkscape and kicad they are not propagated. Is this because they create a separate python interpreter for themselves that has those dependencies separated? That's why we need to wrap it? Sorry for the amount of questions but I thought I could understand it but now everything is blurred in my mind and I'm afraid of myself. :) Patch candidate below, please tell me if it makes sense or if it's anything wrong and I'll update and send to guix-patches. Thanks! >From 21a439f6f1978116584a6dc9ac80c0759c3fa771 Mon Sep 17 00:00:00 2001 From: Ekaitz Zarraga Date: Wed, 21 Oct 2020 19:08:20 +0200 Subject: [PATCH] gnu: Correct Inkscape extension dependencies * gnu/packages/inkscape.scm (inkscape@1.0.1): Add dependencies. * gnu/packages/python-xyz.scm (python-scour): New variable. --- gnu/packages/inkscape.scm | 27 +++++++++++++++++++++++++-- gnu/packages/python-xyz.scm | 27 +++++++++++++++++++++++++++ 2 files changed, 52 insertions(+), 2 deletions(-) diff --git a/gnu/packages/inkscape.scm b/gnu/packages/inkscape.scm index 4ac3cf3966..b02a8ba8ef 100644 --- a/gnu/packages/inkscape.scm +++ b/gnu/packages/inkscape.scm @@ -44,6 +44,7 @@ #:use-module (gnu packages pdf) #:use-module (gnu packages popt) #:use-module (gnu packages python) + #:use-module (gnu packages python-xyz) #:use-module (gnu packages xml) #:use-module (gnu packages ghostscript) #:use-module (gnu packages fontutils) @@ -250,7 +251,25 @@ endif()~%~%" (add-after 'install 'glib-or-gtk-compile-schemas (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-compile-sc= hemas)) (add-after 'glib-or-gtk-compile-schemas 'glib-or-gtk-wrap - (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap))))) + (assoc-ref glib-or-gtk:%standard-phases 'glib-or-gtk-wrap)) + (add-after 'install 'wrap-program + ;; Ensure correct Python at runtime. + (lambda* (#:key inputs outputs #:allow-other-keys) + (let* ((out (assoc-ref outputs "out")) + (python (assoc-ref inputs "python")) + (file (string-append out "/bin/inkscape")) + (path (string-append + out + "/lib/python" + ,(version-major+minor + (package-version python)) + "/site-packages:" + (getenv "PYTHONPATH")))) + (wrap-program file + `("PYTHONPATH" ":" prefix (,path)) + `("PATH" ":" prefix + (,(string-append python "/bin:"))))) + #t))))) (inputs `(("aspell" ,aspell) ("autotrace" ,autotrace) @@ -283,7 +302,11 @@ endif()~%~%" ("googletest" ,googletest) ("perl" ,perl) ("pkg-config" ,pkg-config) - ("python" ,python-wrapper))) + ("python" ,python-wrapper) + ("python-scour" ,python-scour) + ("python-pyserial" ,python-pyserial) + ("python-numpy" ,python-numpy) + ("python-lxml" ,python-lxml))) (home-page "https://inkscape.org/") (synopsis "Vector graphics editor") (description "Inkscape is a vector graphics editor. What sets Inkscap= e diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 575ce40ac8..5e8aedc63b 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -22524,3 +22524,30 @@ applications with variable CPU loads).") (define-public python2-parallel (package-with-python2 python-parallel)) + +(define-public python-scour + (package + (name "python-scour") + (version "038.1") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/scour-project/scour.git") + (commit + (string-append "v" version)))) + (sha256 + (base32 "0rgiypb9ig8x4rl3hfzpy7kwnx1q3064nvlrv4fk0dnp84girn0v"))= )) + (propagated-inputs + `(("python-six" ,python-six))) + (build-system python-build-system) + (home-page "https://github.com/scour-project/scour") + (synopsis "Scour is an SVG optimizer/cleaner that reduces the size of +scalable vector graphics by optimizing structure and removing unnecessary = data +written in Python.") + (description "The goal of Scour is to output a file that renderes +identically at a fraction of the size by removing a lot of redundant +information created by most SVG editors. Optimization options are typical= ly +lossless but can be tweaked for more agressive cleaning.") + (license license:asl2.0))) -- 2.28.0