GNU bug report logs -
#32364
[PATCH] gnu: Add mozjs-52.
Previous Next
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 32364 in the body.
You can then email your comments to 32364 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#32364
; Package
guix-patches
.
(Fri, 03 Aug 2018 16:17:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Ricardo Wurmus <ricardo.wurmus <at> mdc-berlin.de>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Fri, 03 Aug 2018 16:17:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* gnu/packages/gnuzilla.scm (mozjs-52): New variable.
---
gnu/packages/gnuzilla.scm | 56 +++++++++++++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
diff --git a/gnu/packages/gnuzilla.scm b/gnu/packages/gnuzilla.scm
index ba60d1372..79d05bdaa 100644
--- a/gnu/packages/gnuzilla.scm
+++ b/gnu/packages/gnuzilla.scm
@@ -8,6 +8,7 @@
;;; Copyright © 2017 Clément Lassieur <clement <at> lassieur.org>
;;; Copyright © 2017 Nils Gillmann <ng0 <at> n0.is>
;;; Copyright © 2017, 2018 Tobias Geerinckx-Rice <me <at> tobias.gr>
+;;; Copyright © 2018 Ricardo Wurmus <rekado <at> elephly.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -31,6 +32,7 @@
#:use-module ((guix licenses) #:prefix license:)
#:use-module (guix packages)
#:use-module (guix download)
+ #:use-module (guix git-download)
#:use-module (guix utils)
#:use-module (guix build-system gnu)
#:use-module (gnu packages autotools)
@@ -252,6 +254,60 @@ in C/C++.")
("icu4c" ,icu4c)
("zlib" ,zlib)))))
+(define-public mozjs-52
+ ;; No releases yet at <https://archive.mozilla.org/pub/spidermonkey/releases/>.
+ ;; While we could take a snapshot of the complete mozilla-esr52 repository at
+ ;; <https://treeherder.mozilla.org/#/jobs?repo=mozilla-esr52&filter-searchStr=sm-tc>,
+ ;; we take the Debian version instead, because it is easier to work with.
+ (let ((commit "6507e63cc416fd7a3269e390efe712f8b56f374a")
+ (revision "1"))
+ (package (inherit mozjs-38)
+ (version (git-version "52.0-0." revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://salsa.debian.org/gnome-team/mozjs52.git")
+ (commit commit)))
+ (file-name (git-file-name "mozjs" version))
+ (sha256
+ (base32
+ "1ny0s53r8wn4byys87h784xrq1xg767akmfm6gqrbvrz57mlm3q2"))))
+ (arguments
+ `(#:tests? #f ; depends on repository metadata
+ #:configure-flags
+ '("--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")
+ #:phases
+ (modify-phases %standard-phases
+ (add-after 'unpack 'chdir
+ (lambda _ (chdir "js/src") #t))
+ (replace 'configure
+ (lambda* (#:key inputs outputs configure-flags #:allow-other-keys)
+ ;; The configure script does not accept environment variables
+ ;; as arguments.
+ (let ((out (assoc-ref outputs "out")))
+ (setenv "SHELL" (which "sh"))
+ (setenv "CONFIG_SHELL" (which "sh"))
+ (setenv "AUTOCONF" (string-append (assoc-ref inputs "autoconf")
+ "/bin/autoconf"))
+ (apply invoke "./configure"
+ (cons (string-append "--prefix=" out)
+ configure-flags))))))))
+ (native-inputs
+ `(("autoconf" ,autoconf-2.13)
+ ("automake" ,automake)
+ ,@(package-native-inputs mozjs-38))))))
+
(define-public nspr
(package
(name "nspr")
--
2.18.0
Information forwarded
to
guix-patches <at> gnu.org
:
bug#32364
; Package
guix-patches
.
(Sun, 05 Aug 2018 17:58:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 32364 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
On Fri, Aug 03, 2018 at 06:15:42PM +0200, Ricardo Wurmus wrote:
> + ;; No releases yet at <https://archive.mozilla.org/pub/spidermonkey/releases/>.
> + ;; While we could take a snapshot of the complete mozilla-esr52 repository at
> + ;; <https://treeherder.mozilla.org/#/jobs?repo=mozilla-esr52&filter-searchStr=sm-tc>,
> + ;; we take the Debian version instead, because it is easier to work with.
> + (let ((commit "6507e63cc416fd7a3269e390efe712f8b56f374a")
> + (revision "1"))
> + (package (inherit mozjs-38)
Do the other ones have their name listed? I had to build 'mozjs <at> 52'
instead of 'mozjs-52'
> + (version (git-version "52.0-0." revision commit))
> + (source (origin
> + (method git-fetch)
> + (uri (git-reference
This built with no problems on aarch64 and the package looks good. It
also built with '--system=armhf-linux' on my aarch64 board.
--
Efraim Flashner <efraim <at> flashner.co.il> אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D 14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#32364
; Package
guix-patches
.
(Sun, 05 Aug 2018 20:12:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 32364 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Efraim Flashner <efraim <at> flashner.co.il> writes:
> On Fri, Aug 03, 2018 at 06:15:42PM +0200, Ricardo Wurmus wrote:
>> + ;; No releases yet at
>> <https://archive.mozilla.org/pub/spidermonkey/releases/>.
>> + ;; While we could take a snapshot of the complete mozilla-esr52
>> repository at
>> + ;;
>> <https://treeherder.mozilla.org/#/jobs?repo=mozilla-esr52&filter-searchStr=sm-tc>,
>> + ;; we take the Debian version instead, because it is easier to work with.
>> + (let ((commit "6507e63cc416fd7a3269e390efe712f8b56f374a")
>> + (revision "1"))
>> + (package (inherit mozjs-38)
>
> Do the other ones have their name listed? I had to build 'mozjs <at> 52'
> instead of 'mozjs-52'
>
I mangaged to build this with just 'mozjs'.
>> + (version (git-version "52.0-0." revision commit))
>> + (source (origin
>> + (method git-fetch)
>> + (uri (git-reference
>
>
> This built with no problems on aarch64 and the package looks good. It
> also built with '--system=armhf-linux' on my aarch64 board.
I built this successfully for x86_64-linux, i686-linux, and armhf-linux
on a x86_64-linux computer.
[signature.asc (application/pgp-signature, inline)]
Reply sent
to
Ricardo Wurmus <ricardo.wurmus <at> mdc-berlin.de>
:
You have taken responsibility.
(Tue, 07 Aug 2018 11:54:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Ricardo Wurmus <ricardo.wurmus <at> mdc-berlin.de>
:
bug acknowledged by developer.
(Tue, 07 Aug 2018 11:54:03 GMT)
Full text and
rfc822 format available.
Message #16 received at 32364-done <at> debbugs.gnu.org (full text, mbox):
Kei Kebreau <kkebreau <at> posteo.net> writes:
> Efraim Flashner <efraim <at> flashner.co.il> writes:
>
>> On Fri, Aug 03, 2018 at 06:15:42PM +0200, Ricardo Wurmus wrote:
>>> + ;; No releases yet at
>>> <https://archive.mozilla.org/pub/spidermonkey/releases/>.
>>> + ;; While we could take a snapshot of the complete mozilla-esr52
>>> repository at
>>> + ;;
>>> <https://treeherder.mozilla.org/#/jobs?repo=mozilla-esr52&filter-searchStr=sm-tc>,
>>> + ;; we take the Debian version instead, because it is easier to work with.
>>> + (let ((commit "6507e63cc416fd7a3269e390efe712f8b56f374a")
>>> + (revision "1"))
>>> + (package (inherit mozjs-38)
>>
>> Do the other ones have their name listed? I had to build 'mozjs <at> 52'
>> instead of 'mozjs-52'
>>
>
> I mangaged to build this with just 'mozjs'.
>
>>> + (version (git-version "52.0-0." revision commit))
>>> + (source (origin
>>> + (method git-fetch)
>>> + (uri (git-reference
>>
>>
>> This built with no problems on aarch64 and the package looks good. It
>> also built with '--system=armhf-linux' on my aarch64 board.
>
> I built this successfully for x86_64-linux, i686-linux, and armhf-linux
> on a x86_64-linux computer.
Thank you both for testing the patch.
I pushed a slightly modified version of this patch to
wip-gnome-upgrades, which is supposed to be merged into core-updates
soon.
The patch that I sent here results in a package that cannot be used with
GJS (it segfaults). I had to apply a patch that is included in the
Debian copy of the source code.
--
Ricardo
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Wed, 05 Sep 2018 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 6 years and 289 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.