From mboxrd@z Thu Jan 1 00:00:00 1970 From: nee Subject: bug#30095: substitute* decoding-error Date: Sat, 13 Jan 2018 03:25:35 +0100 Message-ID: <7870af65-1d3f-408d-9b26-4a5850c776a2@cock.li> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------C0EDDDFF14A150BE1C8BD709" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51235) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eaBWH-0000ov-JF for bug-guix@gnu.org; Fri, 12 Jan 2018 21:26:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eaBWE-00064d-CC for bug-guix@gnu.org; Fri, 12 Jan 2018 21:26:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:46417) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1eaBWE-00064P-7p for bug-guix@gnu.org; Fri, 12 Jan 2018 21:26:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1eaBWD-0004La-Us for bug-guix@gnu.org; Fri, 12 Jan 2018 21:26:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51132) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eaBVv-0000j8-6h for bug-guix@gnu.org; Fri, 12 Jan 2018 21:25:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eaBVr-0005Su-TV for bug-guix@gnu.org; Fri, 12 Jan 2018 21:25:43 -0500 Received: from cock.li ([185.100.85.212]:53936) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eaBVr-0005OP-BW for bug-guix@gnu.org; Fri, 12 Jan 2018 21:25:39 -0500 Content-Language: en-GB List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 30095@debbugs.gnu.org This is a multi-part message in MIME format. --------------C0EDDDFF14A150BE1C8BD709 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, attached is a package definition that fails because substitute* throws an error. The file I try to substitute* on has some names with special signs like =C3=AB and =C3=A9 that might be related? I also included a sed workaround which can be uncommented and works perfectly fine, so the itself file is not too broken to be edited and this is a bug with substitute*. The file in question is: src/main.cc from https://sourceforge.net/projects/eureka-editor/files/Eureka/1.21/eureka-1= 21-source.tar.gz/download I tested this on the latest guix master. git log says: commit 7c0926ea7c6f0d0fa291251017704dfb6fb21924 (origin/master, origin/HEAD, eureka) Author: Ludovic Court=C3=A8s Date: Sat Jan 13 00:57:52 2018 +0100 --------------C0EDDDFF14A150BE1C8BD709 Content-Type: text/x-patch; name="0001-demonstrate-substitute-bug-in-eureka-package.patch" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="0001-demonstrate-substitute-bug-in-eureka-package.patch" =46rom c92de18c559dac1be48f05ed39acbcd15120c0b6 Mon Sep 17 00:00:00 2001 From: nee Date: Sat, 13 Jan 2018 02:49:32 +0100 Subject: [PATCH] demonstrate substitute* bug in eureka package --- gnu/packages/game-development.scm | 70 +++++++++++++++++++++++++++++++++= +++++- 1 file changed, 69 insertions(+), 1 deletion(-) diff --git a/gnu/packages/game-development.scm b/gnu/packages/game-develo= pment.scm index 363d9a253..1937d0a59 100644 --- a/gnu/packages/game-development.scm +++ b/gnu/packages/game-development.scm @@ -45,6 +45,7 @@ #:use-module (gnu packages curl) #:use-module (gnu packages databases) #:use-module (gnu packages documentation) + #:use-module (gnu packages fltk) #:use-module (gnu packages fonts) #:use-module (gnu packages fontutils) #:use-module (gnu packages freedesktop) @@ -78,7 +79,9 @@ #:use-module (gnu packages lua) #:use-module (gnu packages mp3) #:use-module (gnu packages xml) - #:use-module (gnu packages tls)) + #:use-module (gnu packages tls) + ;; TODO remove + #:use-module (gnu packages base)) =20 (define-public bullet (package @@ -1150,3 +1153,68 @@ features design tools such as a visual editor, can= import 3D models and provide high-quality 3D rendering, it contains an animation editor, and = can be scripted in a Python-like language.") (license license:expat))) + +(define-public eureka + (package + (name "eureka") + (version "1.21") + (source (origin + (method url-fetch) + (uri (string-append "mirror://sourceforge/eureka-editor/Eu= reka/" + version "/eureka-" + ;; version without dots e.g 1.21 =3D> = 121 + (string-join (string-split version #\.= ) "") + "-source.tar.gz")) + (sha256 + (base32 + "1a7pf7xi56fcz7jc8layih5gq5m66g2ss4x5j61kzgip07j6rkir"))= )) + (build-system gnu-build-system) + (arguments + '(#:tests? + #f + #:make-flags + (let ((out (assoc-ref %outputs "out"))) + (list (string-append "PREFIX=3D" out))) + #:phases + (modify-phases + %standard-phases + (delete 'configure) + (add-before + 'build 'prepare-install-directories + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (mkdir-p (string-append out "/bin")) + (mkdir-p (string-append out "/share")) + + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + ;; FIXME substitute* crashes because of an accent in the = name of someone + ;; (system* (which "sed") + ;; "-i" (string-append "s|/usr/local|" out "|") + ;; "src/main.cc") + (substitute* + "./src/main.cc" + (("/usr/local") + out)) + ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; + + (substitute* + "Makefile" + (("-o root") + "")))))))) + (inputs `(("mesa" ,mesa) + ("libxft" ,libxft) + ("libxinerama" ,libxinerama) + ("libfontconfig" ,fontconfig) + ("libjpeg" ,libjpeg) + ("libpng" ,libpng) + ("fltk" ,fltk) + ("zlib" ,zlib))) + (native-inputs `(("pkg-config" ,pkg-config) + ("xdg-utils" ,xdg-utils) + ;; TODO remove when substitute* is fixed + ("sed" ,sed) + ("which" ,which))) + (synopsis "gzdoom") + (description "gzdoom") + (home-page "https://zdoom.org/") + (license license:gpl3+))) --=20 2.15.1 --------------C0EDDDFF14A150BE1C8BD709 Content-Type: text/x-log; name="substitute-error.log" Content-Transfer-Encoding: quoted-printable Content-Disposition: attachment; filename="substitute-error.log" starting phase `prepare-install-directories' Backtrace: 11 (primitive-load "/gnu/store/fk2ms0qy9lxv1xjz3mr3a5zclcr=E2=80= =A6") In ice-9/eval.scm: 191:35 10 (_ _) In srfi/srfi-1.scm: 863:16 9 (every1 # =E2=80=A6) In /gnu/store/xhwmxry8kkmq7897558qmcmfsx8r1z45-module-import/guix/build/g= nu-build-system.scm: 684:27 8 (_ _) In ice-9/eval.scm: 619:8 7 (_ #(#(#(#) ((# . #))) #)) In ice-9/boot-9.scm: 849:4 6 (with-throw-handler _ _ _) In ice-9/ports.scm: 444:17 5 (call-with-input-file _ _ #:binary _ #:encoding _ # _) In /gnu/store/xhwmxry8kkmq7897558qmcmfsx8r1z45-module-import/guix/build/u= tils.scm: 609:26 4 (_ _) 645:22 3 (_ # #) In ice-9/rdelim.scm: 195:24 2 (read-line _ _) In unknown file: 1 (%read-line #) In ice-9/boot-9.scm: 760:25 0 (dispatch-exception _ _ _) ice-9/boot-9.scm:760:25: In procedure dispatch-exception: ice-9/boot-9.scm:760:25: Throw to key `decoding-error' with args `("peek-= char" "input decoding error" 84 #)'. builder for `/gnu/store/0plpd4ly1vhj849ia5dqwqbrx1g1a6by-eureka-1.21.drv'= failed with exit code 1 @ build-failed /gnu/store/0plpd4ly1vhj849ia5dqwqbrx1g1a6by-eureka-1.21.dr= v - 1 builder for `/gnu/store/0plpd4ly1vhj849ia5dqwqbrx1g1a6by-eureka-1.2= 1.drv' failed with exit code 1 guix build: error: build failed: build of `/gnu/store/0plpd4ly1vhj849ia5d= qwqbrx1g1a6by-eureka-1.21.drv' failed Some deprecated features have been used. Set the environment variable GUILE_WARN_DEPRECATED to "detailed" and rerun the program to get more information. Set it to "no" to suppress this message. --------------C0EDDDFF14A150BE1C8BD709--