From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44976) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDzAT-0003S9-9S for guix-patches@gnu.org; Wed, 02 May 2018 17:20:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fDzAQ-0004kU-3u for guix-patches@gnu.org; Wed, 02 May 2018 17:20:05 -0400 Received: from debbugs.gnu.org ([208.118.235.43]:39491) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fDzAQ-0004kI-0R for guix-patches@gnu.org; Wed, 02 May 2018 17:20:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1fDzAP-0003Yx-Mc for guix-patches@gnu.org; Wed, 02 May 2018 17:20:01 -0400 Subject: [bug#31346] [PATCH] gnu: gnuzilla: Add mozjs-52. Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44885) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDz9r-0003QI-GU for guix-patches@gnu.org; Wed, 02 May 2018 17:19:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fDz9o-0004dU-CJ for guix-patches@gnu.org; Wed, 02 May 2018 17:19:27 -0400 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:54754) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fDz9o-0004dM-7U for guix-patches@gnu.org; Wed, 02 May 2018 17:19:24 -0400 Received: from ip112-245-209-87.adsl2.static.versatel.nl ([87.209.245.112]:59363 helo=yellowstone) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1fDz9n-0003Dm-Q8 for guix-patches@gnu.org; Wed, 02 May 2018 17:19:24 -0400 From: Roel Janssen Date: Wed, 02 May 2018 23:19:16 +0200 Message-ID: <87fu39oiwb.fsf@gnu.org> 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: 31346@debbugs.gnu.org --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Dear Guix, I'd like to add ‘mozjs-52’ because an updated version of ‘gjs’ needs it. I copied most of the recipe for mozjs-38, removing the bits that aren't relevant anymore. Kind regards, Roel Janssen --=-=-= Content-Type: text/x-patch Content-Disposition: attachment; filename=0001-gnu-gnuzilla-Add-mozjs-52.patch >From ce8b4e85b03ed76fb671a4d554f966b7eac00b8d Mon Sep 17 00:00:00 2001 From: Roel Janssen Date: Wed, 2 May 2018 22:11:34 +0200 Subject: [PATCH] gnu: gnuzilla: Add mozjs-52. * gnu/packages/gnuzilla.scm (mozjs-52): New variable. --- gnu/packages/gnuzilla.scm | 62 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm index d7f80014b..59427fe12 100644 --- a/gnu/packages/gnuzilla.scm +++ b/gnu/packages/gnuzilla.scm @@ -247,6 +247,68 @@ in C/C++.") ("icu4c" ,icu4c) ("zlib" ,zlib))))) +(define-public mozjs-52 + (package + (inherit mozjs) + (name "mozjs") + (version "52.7.4") + (source (origin + (method url-fetch) + (uri (string-append + "https://queue.taskcluster.net/v1/task/" + "YqG2fjJJSTGzGX090FjDYg/runs/0/artifacts/" + "public/build/mozjs-" version ".tar.bz2")) + (sha256 + (base32 + "1bc83h2268lfj7h9i8s7dk0hbh1q92fdk5bi3688ybn95xipz185")) + (modules '((guix build utils))) + (snippet + '(begin + ;; Remove bundled libraries. + (for-each delete-file-recursively + '("js/src/ctypes/libffi" + "js/src/ctypes/libffi-patches" + "modules/zlib")) + #t)))) + (arguments + `(#:tests? #f ; Needs Mercurial or Git repository to be avalable. + #:phases + (modify-phases %standard-phases + (replace 'configure + (lambda* (#:key inputs outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (chdir "js/src") + (setenv "SHELL" (which "sh")) + (setenv "CONFIG_SHELL" (which "sh")) + (setenv "AUTOCONF" (string-append + (assoc-ref inputs "autoconf") + "/bin/autoreconf")) + (zero? (system* "./configure" + (string-append "--prefix=" out) + "--enable-ctypes" + "--enable-optimize" + "--enable-pie" + "--enable-readline" + "--enable-shared-js" + "--enable-system-ffi" + "--with-system-icu" + "--with-system-nspr" + "--with-system-zlib" + + ;; Intl API requires bundled ICU. + "--without-intl-api")))))))) + (native-inputs + `(("perl" ,perl) + ("autoconf" ,autoconf) + ("pkg-config" ,pkg-config) + ("python-2" ,python-2) + ("which" ,which))) + (inputs + `(("libffi" ,libffi) + ("readline" ,readline) + ("icu4c" ,icu4c) + ("zlib" ,zlib))))) + (define-public nspr (package (name "nspr") -- 2.17.0 --=-=-=--