From debbugs-submit-bounces@debbugs.gnu.org Fri Jan 12 21:25:54 2018 Received: (at submit) by debbugs.gnu.org; 13 Jan 2018 02:25:54 +0000 Received: from localhost ([127.0.0.1]:54314 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eaBW5-0004LC-Pj for submit@debbugs.gnu.org; Fri, 12 Jan 2018 21:25:54 -0500 Received: from eggs.gnu.org ([208.118.235.92]:60163) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eaBW3-0004Kz-PI for submit@debbugs.gnu.org; Fri, 12 Jan 2018 21:25:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eaBVx-0005ar-BZ for submit@debbugs.gnu.org; Fri, 12 Jan 2018 21:25:46 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50,T_DKIM_INVALID autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:55708) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1eaBVx-0005aa-7F for submit@debbugs.gnu.org; Fri, 12 Jan 2018 21:25:45 -0500 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 To: bug-guix@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cock.li; s=mail; t=1515810335; bh=JGoN99jmxJ8APQYCVyxFW5F8b1PQ4zKklQz0rAbKOzc=; h=To:From:Subject:Date:From; b=JcJoGAwJV7BQcKXszLcSOSnWjYS7SGTLJQM6ZCF2xqoo1CUa2N7bGcl4MdBmqb4QQ oD0xO8NEx+B5NWz5Z/PuGmgOKvTwJwdt+uf2NyKwFqA4Vp5yimBdDU2iUdR10U2T1e BI+eF8Kc9sWk4tQobwoN75JgLL6AihmrnZu9vEJoM3V6TRZkQrnhoNL68NEs1Eu79N pZ6HKYvF/YR46CvrMyYUxkA9et7+1tGlOuHjechGb4IDjWRDW+s8YbHTijq8INNnmQ 3nazr5YkEmkcWqxLcL3R2t5bs3vlfvaQnrMYVfDi3S8YX/m1th6UtAVp/p3NuKhSZ7 hyYl9yrxJhIXw== From: nee Subject: substitute* decoding-error Message-ID: <7870af65-1d3f-408d-9b26-4a5850c776a2@cock.li> Date: Sat, 13 Jan 2018 03:25:35 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.0 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="------------C0EDDDFF14A150BE1C8BD709" Content-Language: en-GB X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -4.1 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -4.1 (----) 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-- From debbugs-submit-bounces@debbugs.gnu.org Sat Jan 13 16:35:31 2018 Received: (at 30095) by debbugs.gnu.org; 13 Jan 2018 21:35:31 +0000 Received: from localhost ([127.0.0.1]:55187 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eaTSd-0008KL-FY for submit@debbugs.gnu.org; Sat, 13 Jan 2018 16:35:31 -0500 Received: from hera.aquilenet.fr ([185.233.100.1]:52816) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1eaTSc-0008KE-2F for 30095@debbugs.gnu.org; Sat, 13 Jan 2018 16:35:30 -0500 Received: from localhost (localhost [127.0.0.1]) by hera.aquilenet.fr (Postfix) with ESMTP id 7DDE91076E; Sat, 13 Jan 2018 22:35:29 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at aquilenet.fr Received: from hera.aquilenet.fr ([127.0.0.1]) by localhost (hera.aquilenet.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Tj4pGhZ6qOMn; Sat, 13 Jan 2018 22:35:28 +0100 (CET) Received: from ribbon (unknown [IPv6:2a01:e0a:1d:7270:af76:b9b:ca24:c465]) by hera.aquilenet.fr (Postfix) with ESMTPSA id 7DB8910268; Sat, 13 Jan 2018 22:35:28 +0100 (CET) From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: nee Subject: Re: bug#30095: substitute* decoding-error References: <7870af65-1d3f-408d-9b26-4a5850c776a2@cock.li> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 24 =?utf-8?Q?Niv=C3=B4se?= an 226 de la =?utf-8?Q?R?= =?utf-8?Q?=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-pc-linux-gnu Date: Sat, 13 Jan 2018 22:35:27 +0100 In-Reply-To: <7870af65-1d3f-408d-9b26-4a5850c776a2@cock.li> (nee@cock.li's message of "Sat, 13 Jan 2018 03:25:35 +0100") Message-ID: <87bmhxl9wg.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: 1.0 (+) X-Debbugs-Envelope-To: 30095 Cc: 30095@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 1.0 (+) Hi, nee skribis: > 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? Most likely the file in question is not UTF-8-encoded, whereas =E2=80=98substitute*=E2=80=99 defaults to UTF-8. If it=E2=80=99s Latin-1 (aka. ISO-8859-1), you can do: (with-fluids ((%default-port-encoding "ISO-8859-1")) (substitute* =E2=80=A6)) which should solve the problem (there are a few examples of that in the package definitions.) HTH! Ludo=E2=80=99. =20=20 From debbugs-submit-bounces@debbugs.gnu.org Sun Jan 14 11:36:19 2018 Received: (at 30095) by debbugs.gnu.org; 14 Jan 2018 16:36:19 +0000 Received: from localhost ([127.0.0.1]:56198 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ealGd-0005fa-Ld for submit@debbugs.gnu.org; Sun, 14 Jan 2018 11:36:19 -0500 Received: from sender-of-o51.zoho.com ([135.84.80.216]:21074) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ealGc-0005fT-QC for 30095@debbugs.gnu.org; Sun, 14 Jan 2018 11:36:19 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1515847755; s=zoho; d=elephly.net; i=rekado@elephly.net; h=References:From:To:Cc:Subject:In-reply-to:Date:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; l=491; bh=U25hPtZgtpQ4cI9IHsbamupPjgZ03ORRKdvGSINtKQQ=; b=RpAAb1Xk1I5ylkCWBLqaNYr8o3SUmtJ5U6qGWCKlOR0hNdwwgBAT/HsahwHiF2Yw GOHuSX1Ofstp0kTBlJ4fZFMcMciJ2jo2E6d5C6YE2ecSbLlbXmfxidkEFj42jaYqZJU +WRBZWr2x53CmViz0b5dxO1Kn2bZDg3CoZqjedgo= Received: from localhost (port-92-200-186-202.dynamic.qsc.de [92.200.186.202]) by mx.zohomail.com with SMTPS id 1515847755405671.7926766612146; Sat, 13 Jan 2018 04:49:15 -0800 (PST) References: <7870af65-1d3f-408d-9b26-4a5850c776a2@cock.li> User-agent: mu4e 1.0-alpha3; emacs 25.3.1 From: Ricardo Wurmus To: nee Subject: Re: bug#30095: substitute* decoding-error In-reply-to: <7870af65-1d3f-408d-9b26-4a5850c776a2@cock.li> X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Sat, 13 Jan 2018 13:49:12 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-ID: <87po6dc4af.fsf@elephly.net> X-ZohoMailClient: External X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 30095 Cc: 30095@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: 0.0 (/) Hi nee, > 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? You could try something like this: ;; This file is ISO-8859-1 encoded. (with-fluids ((%default-port-encoding #f)) (substitute* "the/file" (("this") "that"))) --=20 Ricardo GPG: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC https://elephly.net From debbugs-submit-bounces@debbugs.gnu.org Thu May 14 08:46:20 2020 Received: (at 30095-done) by debbugs.gnu.org; 14 May 2020 12:46:20 +0000 Received: from localhost ([127.0.0.1]:60594 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZDFj-0001wN-Su for submit@debbugs.gnu.org; Thu, 14 May 2020 08:46:20 -0400 Received: from sender4-of-o53.zoho.com ([136.143.188.53]:21314) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1jZDFi-0001wF-Ip for 30095-done@debbugs.gnu.org; Thu, 14 May 2020 08:46:19 -0400 ARC-Seal: i=1; a=rsa-sha256; t=1589460376; cv=none; d=zohomail.com; s=zohoarc; b=LNvME1Cn6Bev6eEzuYokW+kVPdi7pR+RIkiCjgQ1RVZn8y7X7jUfNY9VvoQFSh7Vp68QWeBVCwfcMLFCKpJBXOdYQdJTB8sl/zVNdN2Rf1IIyBNdGoBrMNtdx5RrrkJtfw6p/4Rms6GhmYAWAF6Ay9eXtHA+ziK1x3L+uoCPLCI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1589460376; h=Content-Type:Content-Transfer-Encoding:Date:From:MIME-Version:Message-ID:Subject:To; bh=52G+nVmhxSKpo8s3IrD+F7TNVCXqRDyCdjUl0fRtcJI=; b=UZnyr2mUqW8eadxBYh2mXkMrhmOi+5j5lwz0FFFnIpS+xs9NVSfSGYwud/Ve646pBQLPNXje+0dhmQD52XsdIDbZgGB2mtqg8Oe7i+0j8FprRCx6NP2s/B4hr/BaO32yBdXBs19hZ+Qb5nQMcyJm21v0XDGzBwWbXEwQXIVdpUY= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=elephly.net; spf=pass smtp.mailfrom=rekado@elephly.net; dmarc=pass header.from= header.from= DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; t=1589460376; s=zoho; d=elephly.net; i=rekado@elephly.net; h=From:To:Subject:Date:Message-ID:MIME-Version:Content-Type:Content-Transfer-Encoding; bh=52G+nVmhxSKpo8s3IrD+F7TNVCXqRDyCdjUl0fRtcJI=; b=f1G0jPQ12GQPXz5+DUZrOPiBge0Uz61NZYFo+z6k0/BdOHxIgO0EozjINhsh+H52 el7d0AhMNLeVrUxLBAbcsBxX1uvalfDIUYQy75RLqYjMxS0bHhsjaEXdlpJrSuZrf0s B10+KHHConQ1zG3vJSgPT8OdzruVznn1kDFoIQqE= Received: from localhost (p54AD4B14.dip0.t-ipconnect.de [84.173.75.20]) by mx.zohomail.com with SMTPS id 1589460373803802.4192934161024; Thu, 14 May 2020 05:46:13 -0700 (PDT) User-agent: mu4e 1.4.4; emacs 26.3 From: Ricardo Wurmus To: 30095-done@debbugs.gnu.org Subject: substitute* decoding-error X-URL: https://elephly.net X-PGP-Key: https://elephly.net/rekado.pubkey X-PGP-Fingerprint: BCA6 89B6 3655 3801 C3C6 2150 197A 5888 235F ACAC Date: Thu, 14 May 2020 14:46:10 +0200 Message-ID: <87a72ak7l9.fsf@elephly.net> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-ZohoMailClient: External X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 30095-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) I=E2=80=99m closing this as eureka-editor has already been added to the Guix package collection. --=20 Ricardo From unknown Tue Jun 17 22:29:23 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Fri, 12 Jun 2020 11:24:10 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator