From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33287) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEOlq-0003gP-C0 for guix-patches@gnu.org; Mon, 13 Nov 2017 19:08:07 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eEOln-0004HQ-10 for guix-patches@gnu.org; Mon, 13 Nov 2017 19:08:06 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:58651) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eEOlm-0004Gr-TK for guix-patches@gnu.org; Mon, 13 Nov 2017 19:08:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eEOlm-0007oO-GC for guix-patches@gnu.org; Mon, 13 Nov 2017 19:08:02 -0500 Subject: [bug#29292] [PATCH] Scribus: Fix No module named _sysconfigdata_nd Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33195) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEOlb-0003gJ-AO for guix-patches@gnu.org; Mon, 13 Nov 2017 19:07:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eEOlX-00048V-VP for guix-patches@gnu.org; Mon, 13 Nov 2017 19:07:51 -0500 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:34288) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eEOlX-00046p-Oj for guix-patches@gnu.org; Mon, 13 Nov 2017 19:07:47 -0500 Received: from adfeno-pc1 (unknown [179.221.205.42]) (Authenticated sender: adfeno@hyperbola.info) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id 04A01FB883 for ; Tue, 14 Nov 2017 01:07:44 +0100 (CET) From: Adonay Felipe Nogueira References: <87zi7pzque.fsf@nicolasgoaziou.fr> Date: Mon, 13 Nov 2017 22:07:42 -0200 In-Reply-To: <87zi7pzque.fsf@nicolasgoaziou.fr> (Nicolas Goaziou's message of "Tue, 14 Nov 2017 00:44:25 +0100") Message-ID: <87shdh7mep.fsf@hyperbola.info> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+kyle=kyleam.com@gnu.org Sender: "Guix-patches" To: 29292@debbugs.gnu.org Wow! Thank you very much for the patch, once I have the time to, I will test it. If someone else is also affected, feel free to test it too. :) Nicolas Goaziou writes: > Hello, > > This patch is an attempt to fix bug #25035, thanks to the Guix people on > IRC. > > Regards, > > --=20 > Nicolas Goaziou 0x80A93738 > > From 445ce30a90250d6c584a98ac60fddb4b96f1a3a7 Mon Sep 17 00:00:00 2001 > From: Nicolas Goaziou > Date: Tue, 14 Nov 2017 00:35:46 +0100 > Subject: [PATCH] gnu: scribus: Fix No module named _sysconfigdata_nd > > * gnu/packages/scribus.scm (scribus): Wrap PATH with expected Python arou= nd > executable. > > This fixes #25035. > --- > gnu/packages/scribus.scm | 14 +++++++++++++- > 1 file changed, 13 insertions(+), 1 deletion(-) > > diff --git a/gnu/packages/scribus.scm b/gnu/packages/scribus.scm > index 6230195ed..860d34677 100644 > --- a/gnu/packages/scribus.scm > +++ b/gnu/packages/scribus.scm > @@ -81,7 +81,19 @@ > (arguments > `(#:tests? #f ;no test target > #:configure-flags > - '("-DWANT_GRAPHICSMAGICK=3D1"))) > + '("-DWANT_GRAPHICSMAGICK=3D1") > + #:phases > + (modify-phases %standard-phases > + (add-after 'install 'wrap-program > + (lambda* (#:key inputs outputs #:allow-other-keys) > + ;; Fix "ImportError: No module named _sysconfigdata_nd" whe= re > + ;; Scribus checks PATH and eventually runs system's Python > + ;; instead of package's. > + (let* ((out (assoc-ref outputs "out")) > + (py2 (assoc-ref inputs "python"))) > + (wrap-program (string-append out "/bin/scribus") > + `("PATH" ":" prefix (,(string-append py2 "/bin"))))) > + #t))))) > (inputs > `(("boost" ,boost) > ("cairo" ,cairo) --=20 - https://libreplanet.org/wiki/User:Adfeno - Palestrante e consultor sobre /software/ livre (n=C3=A3o confundir com gratis). - "WhatsApp"? Ele n=C3=A3o =C3=A9 livre. Por favor, veja formas de se comun= icar instantaneamente comigo no endere=C3=A7o abaixo. - Contato: https://libreplanet.org/wiki/User:Adfeno#vCard - Arquivos comuns aceitos (apenas sem DRM): Corel Draw, Microsoft Office, MP3, MP4, WMA, WMV. - Arquivos comuns aceitos e enviados: CSV, GNU Dia, GNU Emacs Org, GNU GIMP, Inkscape SVG, JPG, LibreOffice (padr=C3=A3o ODF), OGG, OPUS, PDF (apenas sem DRM), PNG, TXT, WEBM.