Bug 1373212

Summary: Please keep mozjs updated to the latest released version
Product: [Fedora] Fedora Reporter: Christian Stadelmann <fedora>
Component: mozjs31Assignee: Kalev Lember <klember>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: fedora, paulo.cesar.pereira.de.andrade
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: mozjs31-31.5.0-1.fc26 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-01-19 11:24:08 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Christian Stadelmann 2016-09-05 13:44:51 UTC
Description of problem:
The purpose of having mozjs releases for Firefox ESR releases is getting security updates for it. So why not keep mozjs31 up-to-date with upstream firefox 31 ESR releases?

Version-Release number of selected component (if applicable):
Is: mozjs31-31.2.0-8
should be: mozjs31-31.8.0

How reproducible:
on all currently supported versions of Fedora

Additional info:
This is a more general issue for all mozjs packages and is probably an important security issue depending on the package which uses mozjs. You probably should put a regex on https://release-monitoring.org/ to make sure you'll get notified of package updates.

Release list and source for latest version info: https://ftp.mozilla.org/pub/firefox/releases/

Comment 1 Igor Gnatenko 2016-09-05 14:15:20 UTC
According to: https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/31

You can download full source code here: https://people.mozilla.org/~sstangl/mozjs-31.2.0.rc0.tar.bz2.

I don't see where is 31.8.0.

Comment 2 Christian Stadelmann 2016-09-05 14:49:43 UTC
Ok, that's interesting. mozjs45 is build from ESR firefox source code, not from these people.mozilla.source bundles (in case of SpiderMonkey 45: https://people.mozilla.org/~sfink/mozjs-45.0.2.tar.bz2). Instead, look at the spec file [1]:

%global		major			45

Summary:	JavaScript interpreter and libraries
Name:		mozjs%{major}
Version:	%{major}.1.1
Release:	6%{?dist}
License:	MPLv2.0 and MPLv1.1 and BSD and GPLv2+ and GPLv3+ and LGPLv2.1 and LGPLv2.1+ and AFL and ASL 2.0
URL:		https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/45
Source0:        https://ftp.mozilla.org/pub/firefox/releases/%{version}esr/source/firefox-%{version}esr.source.tar.xz
Source1:        LICENSE.txt

[1] https://pkgs.fedoraproject.org/cgit/rpms/mozjs45.git/tree/mozjs45.spec

So mozjs45 is directly built from firefox ESR sources whereas mozjs38, mozjs31 are build from releases provided to people.mozilla.org (are these official releases at all?) and mozjs17, mozjs24 are build from http://ftp.mozilla.org/pub/mozilla.org/js/ (which should be SSL-encrypted btw).

The builds from people.mozilla.org don't seem to get any of the security bug fixes for ESR releases. Just have a look at https://www.mozilla.org/en-US/security/known-vulnerabilities/firefox-esr/ and all the critical fixes in ESR 31.8, 31.7, …

mozjs45 is built from official sources following the official build documentation [2] and thus can get all the ESR bugs.

(In reply to Igor Gnatenko from comment #1)
> I don't see where is 31.8.0.
Part of the firefox source release in comment #0

[2] https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Build_Documentation

Comment 3 Fedora End Of Life 2016-11-25 09:33:39 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '23'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version.

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 is end of life. If you would still like 
to see this bug fixed and are able to reproduce it against a later version 
of Fedora, you are encouraged  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

Comment 4 Kalev Lember 2017-01-19 11:24:08 UTC
I went ahead and updated it in rawhide to the latest mozjs31 standalone release, 31.5.0.