all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* sha256 hash mismatch for mozjs-38.2.1.rc0
@ 2019-04-16 20:45 Platoxia
  2019-04-18  0:30 ` Mark H Weaver
  0 siblings, 1 reply; 3+ messages in thread
From: Platoxia @ 2019-04-16 20:45 UTC (permalink / raw)
  To: help-guix@gnu.org

[-- Attachment #1: Type: text/plain, Size: 7045 bytes --]

After successfully doing "guix pull" as root, GuixSD fails to update from /gnu/store/nbpba96q5vjhr64c91s788109mj7f3y6-system (kernel 4.20.1)
to current with "guix system reconfigure" due to an sha256 hash mismatch after downloading mozjs-38.2.1.rc0.

I have attempted this system reconfiguration 3 times in as many weeks and this failure always occurs for me. I am uncertain if this issue is unique
to me which is why I am posting here rather than making a bug report. It could simply be a case of the mozjs-38 hash needing to be updated
in gnuzilla.scm.

From Guix System Reconfigure log:

building /gnu/store/x1k7m8k5n39ydbayh2mn57514sh77jyp-mozjs-38.2.1.rc0.tar.bz2.drv...
downloading from https://people.mozilla.org/~sstangl/mozjs-38.2.1.rc0.tar.bz2...

[K mozjs-38.2.1.rc0.tar.bz2  21KiB      648KiB/s 00:00 [##################] 100.0%
[K mozjs-38.2.1.rc0.tar.bz2  21KiB      644KiB/s 00:00 [##################] 100.0%
sha256 hash mismatch for /gnu/store/5jwzyzqkbvan3xl7dxjysncvqssadgn4-mozjs-38.2.1.rc0.tar.bz2:
  expected hash: 0p4bmbpgkfsj54xschcny0a118jdrdgg0q29rwxigg3lh5slr681
  actual hash:   14pxqrw81dzjdhsm5069crck7n1c3ilm84c326cbq6kf52n7a0bi
hash mismatch for store item '/gnu/store/5jwzyzqkbvan3xl7dxjysncvqssadgn4-mozjs-38.2.1.rc0.tar.bz2'
build of /gnu/store/x1k7m8k5n39ydbayh2mn57514sh77jyp-mozjs-38.2.1.rc0.tar.bz2.drv failed
View build log at '/var/log/guix/drvs/x1/k7m8k5n39ydbayh2mn57514sh77jyp-mozjs-38.2.1.rc0.tar.bz2.drv.bz2'.
building /gnu/store/a5vrq18l293v6d7vka1if47kkv566rky-libwacom-0.33.drv...
cannot build derivation `/gnu/store/spilipm4wx4wvvcw28vqbdfbl5zwzj0k-mozjs-38.2.1.rc0.tar.xz.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/7hfs3l0cq7vhazmp77xpc63khag7svgp-mozjs-38.2.1.rc0.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/cf44ypf7plx0b6hkmchj0bi5dhyrdjb1-gnome-shell-3.24.3.drv': 1 dependencies couldn't be built
cannot build derivation `/gnu/store/g8gb2ljf9ax1zwdsh172gwn52kmaqc7h-gnome-3.24.3.drv': 1 dependencies couldn't be built
guix system: error: build of `/gnu/store/g8gb2ljf9ax1zwdsh172gwn52kmaqc7h-gnome-3.24.3.drv' failed

From mozjs-38.2.1.rc0 build log:

Starting download of /gnu/store/5jwzyzqkbvan3xl7dxjysncvqssadgn4-mozjs-38.2.1.rc0.tar.bz2
From https://people.mozilla.org/~sstangl/mozjs-38.2.1.rc0.tar.bz2...
following redirection to `https://auth.mozilla.auth0.com/authorize?response_type=code&client_id=o2e391VjmnPk0115UedNTmRL8x2nySOa&state=c3005b5429fdcba847d422e18dc04bb7&redirect_uri=https%3A%2F%2Fpeople.mozilla.org%2Fredirect_uri&nonce=088a3286d14e61c5527a5d768758b6de&scope=openid%20email%20profile'...
following redirection to `https://auth.mozilla.auth0.com/login?state=g6Fo2SAtQ09hREdmNGtNOEdqWUlNSHc1bC1PYmpaRWZXRkR1RKN0aWTZIHZFVkltc1lhMU9HaExxWW9BenFuXzdKTm44bGstTlBYo2NpZNkgbzJlMzkxVmptblBrMDExNVVlZE5UbVJMOHgybnlTT2E&client=o2e391VjmnPk0115UedNTmRL8x2nySOa&protocol=oauth2&response_type=code&redirect_uri=https%3A%2F%2Fpeople.mozilla.org%2Fredirect_uri&nonce=088a3286d14e61c5527a5d768758b6de&scope=openid%20email%20profile'...
@ download-started /gnu/store/5jwzyzqkbvan3xl7dxjysncvqssadgn4-mozjs-38.2.1.rc0.tar.bz2 https://people.mozilla.org/~sstangl/mozjs-38.2.1.rc0.tar.bz2 21123
@ download-progress /gnu/store/5jwzyzqkbvan3xl7dxjysncvqssadgn4-mozjs-38.2.1.rc0.tar.bz2 https://people.mozilla.org/~sstangl/mozjs-38.2.1.rc0.tar.bz2 21123 21123
@ download-progress /gnu/store/5jwzyzqkbvan3xl7dxjysncvqssadgn4-mozjs-38.2.1.rc0.tar.bz2 https://people.mozilla.org/~sstangl/mozjs-38.2.1.rc0.tar.bz2 21123 21123
@ download-succeeded /gnu/store/5jwzyzqkbvan3xl7dxjysncvqssadgn4-mozjs-38.2.1.rc0.tar.bz2 https://people.mozilla.org/~sstangl/mozjs-38.2.1.rc0.tar.bz2 21123

The mozjs-38 definition as found in gnuzilla.scm:

(define-public mozjs-38
  (package
    (inherit mozjs)
    (name "mozjs")
    (version "38.2.1.rc0")
    (source (origin
              (method url-fetch)
              (uri (string-append
                    "
https://people.mozilla.org/~sstangl/
"
                    name "-" version ".tar.bz2"))
              (sha256
               (base32
                "0p4bmbpgkfsj54xschcny0a118jdrdgg0q29rwxigg3lh5slr681"))
              (patches
               (search-patches
                ;; See
https://bugzilla.mozilla.org/show_bug.cgi?id=1269317
for
                ;; GCC 6 compatibility.

                "mozjs38-version-detection.patch" ; for 0ad
                "mozjs38-tracelogger.patch"

                ;; See
https://bugzilla.mozilla.org/show_bug.cgi?id=1339931
.
                "mozjs38-pkg-config-version.patch"
                "mozjs38-shell-version.patch"))
              (modules '((guix build utils)))
              (snippet
               '(begin
                  ;; Fix incompatibility with sed 4.4.
                  (substitute* "js/src/configure"
                    (("\\^\\[:space:\\]") "^[[:space:]]"))

                  ;; The headers are symlinks to files that are in /tmp, so they
                  ;; end up broken.  Copy them instead.
                  (substitute*
                      "python/mozbuild/mozbuild/backend/recursivemake.py"
                    (("\\['dist_include'\\].add_symlink")
                     "['dist_include'].add_copy"))

                  ;; Remove bundled libraries.
                  (for-each delete-file-recursively
                            '("intl"
                              "js/src/ctypes/libffi"
                              "js/src/ctypes/libffi-patches"
                              "modules/zlib"))
                  #t))))
    (arguments
     `(;; XXX: parallel build fails, lacking:
       ;;   mkdir -p "system_wrapper_js/"
       #:parallel-build? #f
       ;; See
https://bugzilla.mozilla.org/show_bug.cgi?id=1008470
.
       #:tests? #f
       #:phases
       (modify-phases %standard-phases
         (replace 'configure
           (lambda* (#:key outputs #:allow-other-keys)
             (let ((out (assoc-ref outputs "out")))
               (chdir "js/src")
               (setenv "SHELL" (which "sh"))
               (setenv "CONFIG_SHELL" (which "sh"))
               (invoke "./configure"
                       (string-append "--prefix=" out)
                       "--enable-ctypes"
                       "--enable-gcgenerational"
                       "--enable-optimize"
                       "--enable-pie"
                       "--enable-readline"
                       "--enable-shared-js"
                       "--enable-system-ffi"
                       "--enable-threadsafe"
                       "--enable-xterm-updates"
                       "--with-system-icu"
                       "--with-system-nspr"
                       "--with-system-zlib"

                       ;; Intl API requires bundled ICU.
                       "--without-intl-api")))))))
    (native-inputs
     `(("perl" ,perl)
       ("pkg-config" ,pkg-config)
       ("python-2" ,python-2)))
    (inputs
     `(("libffi" ,libffi)
       ("readline" ,readline)
       ("icu4c" ,icu4c)
       ("zlib" ,zlib)))))

[-- Attachment #2: Type: text/html, Size: 8314 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: sha256 hash mismatch for mozjs-38.2.1.rc0
  2019-04-16 20:45 sha256 hash mismatch for mozjs-38.2.1.rc0 Platoxia
@ 2019-04-18  0:30 ` Mark H Weaver
  2019-04-27 10:11   ` Clément Lassieur
  0 siblings, 1 reply; 3+ messages in thread
From: Mark H Weaver @ 2019-04-18  0:30 UTC (permalink / raw)
  To: Platoxia; +Cc: help-guix, Clément Lassieur

Hi,

Platoxia <platoxia@protonmail.com> writes:

> After successfully doing "guix pull" as root, GuixSD fails to update from /gnu/store/nbpba96q5vjhr64c91s788109mj7f3y6-system (kernel 4.20.1) 
> to current with "guix system reconfigure" due to an sha256 hash mismatch after downloading mozjs-38.2.1.rc0.  
>
> I have attempted this system reconfiguration 3 times in as many weeks and this failure always occurs for me. I am uncertain if this issue is unique 
> to me which is why I am posting here rather than making a bug report. It could simply be a case of the mozjs-38 hash needing to be updated
> in gnuzilla.scm.
>
> From Guix System Reconfigure log:
>
> building /gnu/store/x1k7m8k5n39ydbayh2mn57514sh77jyp-mozjs-38.2.1.rc0.tar.bz2.drv...
> downloading from https://people.mozilla.org/~sstangl/mozjs-38.2.1.rc0.tar.bz2...

Indeed, the URL above is no longer valid.  It returns some kind of error
page.  In general, when this happens, you can work around the problem by
finding another copy of the same file somewhere else.  Often it is
sufficient to type the file name into a search engine.  I found this:

  http://anduin.linuxfromscratch.org/BLFS/mozjs/mozjs-38.2.1.rc0.tar.bz2

Now, if you type "guix download <URL>", it will download the file and
add it to your store.  If it has the correct hash, it will be used
automatically when you repeat the "guix system reconfigure" command.

(If it has the wrong hash, it will be ignored and eventually removed the
next time you perform a garbage collection with "guix gc").

> The mozjs-38 definition as found in gnuzilla.scm:
> (define-public mozjs-38
>   (package
>     (inherit mozjs)
>     (name "mozjs")
>     (version "38.2.1.rc0")
>     (source (origin
>               (method url-fetch)
>               (uri (string-append
>                     "https://people.mozilla.org/~sstangl/"
>                     name "-" version ".tar.bz2"))

Indeed, in order to properly fix this problem, the code above needs to
be updated.

Clément: I see that you added our 'mozjs-38' package about a year ago.
Would you be willing to find a new source URL for it, and possibly to
update to a newer 38.x version?  It might be easier to find a stable URL
for a non-RC version, and it looks like several other distros now have
mozjs-38.8.0.

       Mark

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: sha256 hash mismatch for mozjs-38.2.1.rc0
  2019-04-18  0:30 ` Mark H Weaver
@ 2019-04-27 10:11   ` Clément Lassieur
  0 siblings, 0 replies; 3+ messages in thread
From: Clément Lassieur @ 2019-04-27 10:11 UTC (permalink / raw)
  To: Mark H Weaver; +Cc: Platoxia, help-guix

Mark H Weaver <mhw@netris.org> writes:

> Clément: I see that you added our 'mozjs-38' package about a year ago.
> Would you be willing to find a new source URL for it, and possibly to
> update to a newer 38.x version?  It might be easier to find a stable URL
> for a non-RC version, and it looks like several other distros now have
> mozjs-38.8.0.

Hi Mark and Platoxia,

I updated the URI.  I'm afraid I won't have time to update to 30.8.0
soon.

Thanks!
Clément

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-04-27 10:11 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-04-16 20:45 sha256 hash mismatch for mozjs-38.2.1.rc0 Platoxia
2019-04-18  0:30 ` Mark H Weaver
2019-04-27 10:11   ` Clément Lassieur

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.