SHA256
7
0
forked from pool/mujs

31 Commits

Author SHA256 Message Date
453a098b8f Update license to ICS 2025-07-28 15:29:03 +02:00
ebe69e3e69 - Updated to 1.3.7
* Added ucd-16.0.0.tar.xz tarball with Unicode specifications.
  * https://github.com/ccxvii/mujs/compare/1.3.5...1.3.7
  * Updated character tables to Unicode 16.
  * Used more common "stack" property for error stack trace.
2025-07-12 23:25:36 +03:00
c3441547cb - Updated to 1.3.7
* Added ucd-16.0.0.tar.xz tarball with unicode instructions.
  * https://github.com/ccxvii/mujs/compare/1.3.5...1.3.7
  * Updated character tables to Unicode 16.
  * Used more common "stack" property for error stack trace.
2025-07-12 20:49:00 +03:00
0f74ecb61c - Updated to 1.3.7
* Added ucd-16.0.0.tar.xz and mujs-remove-curl.patch.
  * https://github.com/ccxvii/mujs/compare/1.3.5...1.3.7
  * Updated character tables to Unicode 16.
  * Used more common "stack" property for error stack trace.
2025-07-12 19:47:27 +03:00
160fef9460 Accepting request 1230945 from devel:languages:javascript
- Updated to 1.3.5
  * https://git.ghostscript.com/?p=mujs.git;a=log;h=refs/tags/1.3.5
  * Fixed bug with String.prototype.split(RegExp).

OBS-URL: https://build.opensuse.org/request/show/1230945
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mujs?expand=0&rev=12
2024-12-16 18:08:54 +00:00
0619a6df9c Accepting request 1143406 from devel:languages:javascript
- Updated to 1.3.4
  * https://git.ghostscript.com/?p=mujs.git;a=log;h=refs/tags/1.3.4
  * Finalize user data if object allocation fails.
  * Fix bug when cleaning up after allocation error.
  * Handle sign when converting integer strings to numbers.
  * Allow disabling readline support in Makefile.

OBS-URL: https://build.opensuse.org/request/show/1143406
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mujs?expand=0&rev=11
2024-02-02 14:44:47 +00:00
Илья Индиго
b605bd32af Accepting request 1143400 from home:ateixeira:branches:devel:languages:javascript
- Updated to 1.3.4
  * https://git.ghostscript.com/?p=mujs.git;a=log;h=refs/tags/1.3.4
  * Finalize user data if object allocation fails.
  * Fix bug when cleaning up after allocation error.
  * Handle sign when converting integer strings to numbers.
  * Allow disabling readline support in Makefile.

OBS-URL: https://build.opensuse.org/request/show/1143400
OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/mujs?expand=0&rev=22
2024-02-01 14:27:56 +00:00
5ff70621d8 Accepting request 1087926 from devel:languages:javascript
- Updated to 1.3.3
  * https://git.ghostscript.com/?p=mujs.git;a=log;h=refs/tags/1.3.3

OBS-URL: https://build.opensuse.org/request/show/1087926
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mujs?expand=0&rev=10
2023-05-21 17:08:12 +00:00
Илья Индиго
e46ee3cd4b Accepting request 1087914 from home:13ilya:branches:devel:languages:javascript
- Updated to 1.3.3
  * https://git.ghostscript.com/?p=mujs.git;a=log;h=refs/tags/1.3.3

OBS-URL: https://build.opensuse.org/request/show/1087914
OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/mujs?expand=0&rev=20
2023-05-19 09:06:49 +00:00
Илья Индиго
135109ad1f OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/mujs?expand=0&rev=19 2023-05-19 08:54:34 +00:00
Илья Индиго
b94f676ac8 OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/mujs?expand=0&rev=18 2023-05-19 08:44:33 +00:00
e6b1d90651 Accepting request 1070845 from devel:languages:javascript
- Allow build on leap

OBS-URL: https://build.opensuse.org/request/show/1070845
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mujs?expand=0&rev=9
2023-03-11 17:24:12 +00:00
Илья Индиго
5d6e3758eb Accepting request 1070838 from home:alois:branches:devel:languages:javascript
- Allow build on leap

OBS-URL: https://build.opensuse.org/request/show/1070838
OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/mujs?expand=0&rev=16
2023-03-11 10:29:34 +00:00
cb9699a26e Accepting request 1058365 from devel:languages:javascript
- Update to 1.3.2
  * https://git.ghostscript.com/?p=mujs.git;a=log;h=refs/tags/1.3.2
  * 1.3.2 patch release for UAF bug fix.
  * Bug 706057: Fix use-after-free in getOwnPropertyDescriptor.
  * Set length of output array Array.prototype.map.
- Update to 1.3.1
  * https://git.ghostscript.com/?p=mujs.git;a=log;h=refs/tags/1.3.1
  * Make a patch release for important iterator bug fix.
  * Issue #166: Use special iterator for string and array indices.
  * Enable choice of library version for shell
  * Use $(@D) instead of $(dir $@)
- Update to 1.3.0
  * https://git.ghostscript.com/?p=mujs.git;a=log;h=refs/tags/1.3.0
  * Avoid freeing buffer twice in case of error.
  * Fast path for "simple" arrays.
  * Bug 705775: Fix double fclose in pretty-printing tool.
  * Makefile: fix parallel builds
  * Guard state initialization with try to avoid panic in initialization.
  * Add js_isbooleanobject and js_isdateobject functions.
  * Issue #161: Cope with empty programs in mujs-pp.
  * Issue #161: Don't fclose a FILE that is NULL.
  * Issue #162: Check stack overflow during regexp compilation.
  * Bug 705052: Don't use private STACK/TOP macros in jsstate.c
  * Add "console" object to mujs shell.
  * Issue #156: Fix check for duplicate formal parameters when strict.
  * Some minor optimizations to Ap_join.
  * array join: avoid strcat, speedup from O(N^2) to O(N)
- Drop mujs-1.2.0-stack-exhaustion.patch because now in upstream.

OBS-URL: https://build.opensuse.org/request/show/1058365
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mujs?expand=0&rev=8
2023-01-14 19:32:33 +00:00
Илья Индиго
78c8d7e1b9 Accepting request 1058364 from home:ecsos
- Update to 1.3.2
  * https://git.ghostscript.com/?p=mujs.git;a=log;h=refs/tags/1.3.2

But there is an stupid rpmlint warning:
mujs.src:67: W: non-break-space line 67, char 9

Line does not exists and, mujs.src does not exist ?!?!
And on console with osc it shows mujs.spec with same errors.
Very strange.

OBS-URL: https://build.opensuse.org/request/show/1058364
OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/mujs?expand=0&rev=14
2023-01-14 12:12:31 +00:00
c0ced92277 Accepting request 977973 from devel:languages:javascript
Added mujs-1.2.0-stack-exhaustion.patch (CVE-2022-30974, boo#1199678).

OBS-URL: https://build.opensuse.org/request/show/977973
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mujs?expand=0&rev=7
2022-05-19 20:49:19 +00:00
Илья Индиго
3d5cb00c3c Accepting request 977972 from home:13ilya:branches:devel:languages:javascript
Added mujs-1.2.0-stack-exhaustion.patch (CVE-2022-30974, boo#1199678).

OBS-URL: https://build.opensuse.org/request/show/977972
OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/mujs?expand=0&rev=12
2022-05-18 15:52:38 +00:00
2820305abe Accepting request 954741 from devel:languages:javascript
- Updated to 1.2.0
  * https://git.ghostscript.com/?p=mujs.git;a=log;h=refs/tags/1.2.0
  * Fixed heap buffer overflow (CVE-2021-45005, boo#1195954).

OBS-URL: https://build.opensuse.org/request/show/954741
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mujs?expand=0&rev=6
2022-02-16 23:30:13 +00:00
Илья Индиго
58a3c5da83 Accepting request 954740 from home:13ilya:branches:devel:languages:javascript
- Updated to 1.2.0
  * https://git.ghostscript.com/?p=mujs.git;a=log;h=refs/tags/1.2.0
  * Fixed heap buffer overflow (CVE-2021-45005, boo#1195954).

OBS-URL: https://build.opensuse.org/request/show/954740
OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/mujs?expand=0&rev=11
2022-02-15 13:13:17 +00:00
Илья Индиго
c4f33440f0 Accepting request 954735 from home:13ilya:branches:devel:languages:javascript
- Updated to 1.2.0
  * https://git.ghostscript.com/?p=mujs.git;a=log;h=refs/tags/1.2.0
  * Fixed heap buffer overflow (CVE-2021-45005, boo#1195954).

OBS-URL: https://build.opensuse.org/request/show/954735
OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/mujs?expand=0&rev=10
2022-02-15 13:01:17 +00:00
1b2d27f32e Accepting request 954325 from devel:languages:javascript
- Updated to 1.2.0
  * https://git.ghostscript.com/?p=mujs.git;a=log;h=refs/tags/1.2.0

OBS-URL: https://build.opensuse.org/request/show/954325
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mujs?expand=0&rev=5
2022-02-14 21:36:23 +00:00
Илья Индиго
99ed33fefb Accepting request 954324 from home:13ilya:branches:devel:languages:javascript
- Updated to 1.2.0
  * https://git.ghostscript.com/?p=mujs.git;a=log;h=refs/tags/1.2.0

OBS-URL: https://build.opensuse.org/request/show/954324
OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/mujs?expand=0&rev=9
2022-02-14 13:48:06 +00:00
1eb302ab54 Accepting request 902621 from devel:languages:javascript
- Updated to 1.1.3
  * https://git.ghostscript.com/?p=mujs.git;a=log;h=refs/tags/1.1.3
  * Fixed error in Array.prototype.toString().

OBS-URL: https://build.opensuse.org/request/show/902621
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mujs?expand=0&rev=4
2021-06-27 16:59:23 +00:00
Илья Индиго
c2fb04a55e Accepting request 902620 from home:13ilya:branches:devel:languages:javascript
- Updated to 1.1.3
  * https://git.ghostscript.com/?p=mujs.git;a=log;h=refs/tags/1.1.3
  * Fixed error in Array.prototype.toString().

OBS-URL: https://build.opensuse.org/request/show/902620
OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/mujs?expand=0&rev=8
2021-06-27 11:56:06 +00:00
b5da61f164 Accepting request 893720 from devel:languages:javascript
OBS-URL: https://build.opensuse.org/request/show/893720
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mujs?expand=0&rev=3
2021-05-17 16:45:31 +00:00
Илья Индиго
fe7efd4c26 Accepting request 893719 from home:susnux:branches:devel:languages:javascript
- Update mujs 1.1.2
  * Check for overflow when reading floating point exponent
  * Fix use-after-free in regexp source property access.

OBS-URL: https://build.opensuse.org/request/show/893719
OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/mujs?expand=0&rev=6
2021-05-17 11:40:29 +00:00
abc7e48ba0 Accepting request 885484 from devel:languages:javascript
OBS-URL: https://build.opensuse.org/request/show/885484
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mujs?expand=0&rev=2
2021-04-15 14:57:50 +00:00
Илья Индиго
f20fc4a0b2 Accepting request 885483 from home:13ilya:branches:devel:languages:javascript
- Update mujs 1.1.1
  * Fix: Always create new scope for eval()
  * Don't redefine/reset existing vars in script code
  * Fix: RegExp.prototype should be a regular expression object
  * Throw when redefining non-configurable/readonly properties
  * Array:  Fix crash when length is negative
  * fix split doesn't convert context to string if no argument is passed
  * Parse integers with floats to support large numbers.
  * Optimize array construction bytecode.
  * Fix: Expose type of value as an enum with js_type()
  * Fixed js_strtol: Prevent negative table indexing in
- Update mujs 1.1.0
  * Don't allow creating new properties on transient objects.
  * Fixed escape characters in regex parser
  * Handle NaN in Date accessors
  * Handle undefined argument to Error constructor
- Fixed RPM error because of missing RPM group

OBS-URL: https://build.opensuse.org/request/show/885483
OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/mujs?expand=0&rev=4
2021-04-14 22:33:07 +00:00
Илья Индиго
ee9f220fcf Accepting request 885480 from home:susnux:branches:devel:languages:javascript
- Update mujs 1.1.1
  * Fix: Always create new scope for eval()
  * Don't redefine/reset existing vars in script code
  * Fix: RegExp.prototype should be a regular expression object
  * Throw when redefining non-configurable/readonly properties
  * Array:  Fix crash when length is negative
  * fix split doesn't convert context to string if no argument is passed
  * Parse integers with floats to support large numbers.
  * Optimize array construction bytecode.
  * Fix: Expose type of value as an enum with js_type()
  * Fixed js_strtol: Prevent negative table indexing in
- Update mujs 1.1.0
  * Don't allow creating new properties on transient objects.
  * Fixed escape characters in regex parser
  * Handle NaN in Date accessors
  * Handle undefined argument to Error constructor
- Fixed RPM error because of missing RPM group

OBS-URL: https://build.opensuse.org/request/show/885480
OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/mujs?expand=0&rev=3
2021-04-14 22:30:21 +00:00
f84a7a7c79 Accepting request 878404 from devel:languages:javascript
Need for mpv for JS scripting support.

OBS-URL: https://build.opensuse.org/request/show/878404
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mujs?expand=0&rev=1
2021-03-12 12:33:20 +00:00
2f8e40dd25 Accepting request 878397 from home:13ilya
Need for mpv for js-scripting support.

OBS-URL: https://build.opensuse.org/request/show/878397
OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/mujs?expand=0&rev=1
2021-03-11 20:13:59 +00:00
6 changed files with 54 additions and 41 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c015475880f6a382e706169c94371a7dd6cc22078832f6e0865af8289c2ef42b
size 128202

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:78a311ae4224400774cb09ef5baa2633c26971513f8b931d3224a0eb85b13e0b
size 128938

BIN
mujs-1.3.7.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

View File

@@ -1,3 +1,17 @@
-------------------------------------------------------------------
Mon Jul 28 13:28:10 UTC 2025 - Lubos Kocman <lubos.kocman@suse.com>
- Update license to ISC
-------------------------------------------------------------------
Sat Jul 12 20:20:29 UTC 2025 - Илья Индиго <ilya@ilya.top>
- Updated to 1.3.7
* Added ucd-16.0.0.tar.xz tarball with Unicode specifications.
* https://github.com/ccxvii/mujs/compare/1.3.5...1.3.7
* Updated character tables to Unicode 16.
* Used more common "stack" property for error stack trace.
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Dec 13 23:56:46 UTC 2024 - Илья Индиго <ilya@ilya.top> Fri Dec 13 23:56:46 UTC 2024 - Илья Индиго <ilya@ilya.top>
@@ -31,31 +45,31 @@ Sat Jan 14 11:41:55 UTC 2023 - ecsos <ecsos@opensuse.org>
- Update to 1.3.2 - Update to 1.3.2
* https://git.ghostscript.com/?p=mujs.git;a=log;h=refs/tags/1.3.2 * https://git.ghostscript.com/?p=mujs.git;a=log;h=refs/tags/1.3.2
* 1.3.2 patch release for UAF bug fix. * 1.3.2 patch release for UAF bug fix.
* Bug 706057: Fix use-after-free in getOwnPropertyDescriptor. * Bug 706057: Fix use-after-free in getOwnPropertyDescriptor.
* Set length of output array Array.prototype.map. * Set length of output array Array.prototype.map.
- Update to 1.3.1 - Update to 1.3.1
* https://git.ghostscript.com/?p=mujs.git;a=log;h=refs/tags/1.3.1 * https://git.ghostscript.com/?p=mujs.git;a=log;h=refs/tags/1.3.1
* Make a patch release for important iterator bug fix. * Make a patch release for important iterator bug fix.
* Issue #166: Use special iterator for string and array indices. * Issue #166: Use special iterator for string and array indices.
* Enable choice of library version for shell * Enable choice of library version for shell
* Use $(@D) instead of $(dir $@) * Use $(@D) instead of $(dir $@)
- Update to 1.3.0 - Update to 1.3.0
* https://git.ghostscript.com/?p=mujs.git;a=log;h=refs/tags/1.3.0 * https://git.ghostscript.com/?p=mujs.git;a=log;h=refs/tags/1.3.0
* Avoid freeing buffer twice in case of error. * Avoid freeing buffer twice in case of error.
* Fast path for "simple" arrays. * Fast path for "simple" arrays.
* Bug 705775: Fix double fclose in pretty-printing tool. * Bug 705775: Fix double fclose in pretty-printing tool.
* Makefile: fix parallel builds * Makefile: fix parallel builds
* Guard state initialization with try to avoid panic in initialization. * Guard state initialization with try to avoid panic in initialization.
* Add js_isbooleanobject and js_isdateobject functions. * Add js_isbooleanobject and js_isdateobject functions.
* Issue #161: Cope with empty programs in mujs-pp. * Issue #161: Cope with empty programs in mujs-pp.
* Issue #161: Don't fclose a FILE that is NULL. * Issue #161: Don't fclose a FILE that is NULL.
* Issue #162: Check stack overflow during regexp compilation. * Issue #162: Check stack overflow during regexp compilation.
* Bug 705052: Don't use private STACK/TOP macros in jsstate.c * Bug 705052: Don't use private STACK/TOP macros in jsstate.c
* Add "console" object to mujs shell. * Add "console" object to mujs shell.
* Issue #156: Fix check for duplicate formal parameters when strict. * Issue #156: Fix check for duplicate formal parameters when strict.
* Some minor optimizations to Ap_join. * Some minor optimizations to Ap_join.
* array join: avoid strcat, speedup from O(N^2) to O(N) * array join: avoid strcat, speedup from O(N^2) to O(N)
- Drop mujs-1.2.0-stack-exhaustion.patch because now in upstream. - Drop mujs-1.2.0-stack-exhaustion.patch because now in upstream.
------------------------------------------------------------------- -------------------------------------------------------------------

View File

@@ -1,7 +1,7 @@
# #
# spec file for package mujs # spec file for package mujs
# #
# Copyright (c) 2024 SUSE LLC # Copyright (c) 2025 SUSE LLC
# #
# All modifications and additions to the file contributed by third parties # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,20 +16,20 @@
# #
%define ucd_ver 16.0.0
Name: mujs Name: mujs
Version: 1.3.5 Version: 1.3.7
Release: 0 Release: 0
Summary: An embeddable Javascript interpreter Summary: An embeddable Javascript interpreter
License: AGPL-3.0-or-later License: ISC
Group: Development/Languages/C and C++ Group: Development/Languages/C and C++
URL: https://mujs.com URL: https://github.com/ccxvii/%{name}
Source0: https://mujs.com/downloads/%{name}-%{version}.tar.gz Source0: https://github.com/ccxvii/%{name}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
# v=16.0.0 && u=https://www.unicode.org/Public/$v/ucd && f1=SpecialCasing.txt && f2=UnicodeData.txt && f=ucd-$v.tar.xz && cd /tmp && curl -O $u/$f1 -O $u/$f2 && tar c --remove-files "$f1" "$f2" | xz -9e > "$f"
Source1: ucd-%{ucd_ver}.tar.xz
BuildRequires: pkgconfig BuildRequires: pkgconfig
%if 0%{?suse_version} > 1500 BuildRequires: python3
BuildRequires: pkgconfig(readline) BuildRequires: pkgconfig(readline)
%else
BuildRequires: readline-devel
%endif
%description %description
MuJS is a lightweight Javascript interpreter designed for embedding in other software to extend them with scripting capabilities. MuJS is a lightweight Javascript interpreter designed for embedding in other software to extend them with scripting capabilities.
@@ -43,20 +43,19 @@ Provides: %{name}-static = %{version}
This package provides the MuJS static library. This package provides the MuJS static library.
%prep %prep
%autosetup -p1 %autosetup -p1 -a1
%build %build
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects %global _lto_cflags %{_lto_cflags} -ffat-lto-objects
%make_build debug CFLAGS="%{optflags} -fPIC" %make_build CFLAGS="%{optflags} -fPIC"
%install %install
%make_install prefix="%{_prefix}" libdir="%{_libdir}" CFLAGS="%{optflags} -fPIC" %make_install CFLAGS="%{optflags} -fPIC" prefix="%{_prefix}" libdir="%{_libdir}"
%files %files
%license COPYING %license COPYING
%doc AUTHORS README %doc AUTHORS README
%{_bindir}/%{name} %{_bindir}/%{name}{,-pp}
%{_bindir}/%{name}-pp
%files devel %files devel
%license COPYING %license COPYING

BIN
ucd-16.0.0.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.