From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54780) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEOPY-0007YF-4L for guix-patches@gnu.org; Mon, 13 Nov 2017 18:45:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eEOPX-00040y-Cc for guix-patches@gnu.org; Mon, 13 Nov 2017 18:45:04 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:58618) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eEOPX-00040s-81 for guix-patches@gnu.org; Mon, 13 Nov 2017 18:45:03 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eEOPW-0005LJ-Ro for guix-patches@gnu.org; Mon, 13 Nov 2017 18:45: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]:54682) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eEOP1-0007WB-Bz for guix-patches@gnu.org; Mon, 13 Nov 2017 18:44:32 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eEOP0-0003qm-8M for guix-patches@gnu.org; Mon, 13 Nov 2017 18:44:31 -0500 Received: from relay4-d.mail.gandi.net ([2001:4b98:c:538::196]:40990) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eEOP0-0003qP-1M for guix-patches@gnu.org; Mon, 13 Nov 2017 18:44:30 -0500 Received: from saiph.selenimh (000043010000000000000469.ipv6.commingeshautdebit.fr [IPv6:2a03:a0a0:0:4301::469]) (Authenticated sender: mail@nicolasgoaziou.fr) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 9D19517209A for ; Tue, 14 Nov 2017 00:44:26 +0100 (CET) Received: from ngz by saiph.selenimh with local (Exim 4.89) (envelope-from ) id 1eEOOv-00049i-Me for guix-patches@gnu.org; Tue, 14 Nov 2017 00:44:25 +0100 From: Nicolas Goaziou Date: Tue, 14 Nov 2017 00:44:25 +0100 Message-ID: <87zi7pzque.fsf@nicolasgoaziou.fr> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" 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 --=-=-= Content-Type: text/plain Hello, This patch is an attempt to fix bug #25035, thanks to the Guix people on IRC. Regards, -- Nicolas Goaziou 0x80A93738 --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-gnu-scribus-Fix-No-module-named-_sysconfigdata_nd.patch Content-Description: Fix Scribus >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 around 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=1"))) + '("-DWANT_GRAPHICSMAGICK=1") + #:phases + (modify-phases %standard-phases + (add-after 'install 'wrap-program + (lambda* (#:key inputs outputs #:allow-other-keys) + ;; Fix "ImportError: No module named _sysconfigdata_nd" where + ;; 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) -- 2.14.3 --=-=-=--