Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] Remove js (mozjs185), mozjs68 and couchdb
@ 2021-01-24 21:50 ericonr
  2021-01-25 13:36 ` [PR PATCH] [Updated] " ericonr
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: ericonr @ 2021-01-24 21:50 UTC (permalink / raw)
  To: ml

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

There is a new pull request by ericonr against master on the void-packages repository

https://github.com/ericonr/void-packages mozjs
https://github.com/void-linux/void-packages/pull/28201

Remove js (mozjs185), mozjs68 and couchdb
<!-- Mark items with [x] where applicable -->

couchdb has been broken for a long time and is on an old version. I don't think keeping `js` because of it makes sense, so removinf the entire package.

@arete if you want to fix the package, feel free to make a PR, then I will remove the removal from here.

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/28201.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-mozjs-28201.patch --]
[-- Type: text/x-diff, Size: 30395 bytes --]

From 59824ac88eeeeccc346749da182eb96d5cb37fa3 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=89rico=20Rolim?= <erico.erc@gmail.com>
Date: Sun, 24 Jan 2021 18:46:42 -0300
Subject: [PATCH 1/3] couchdb: remove package.

---
 srcpkgs/couchdb/INSTALL           |  6 -----
 srcpkgs/couchdb/files/couchdb/run |  6 -----
 srcpkgs/couchdb/template          | 40 -------------------------------
 srcpkgs/couchdb/update            |  1 -
 4 files changed, 53 deletions(-)
 delete mode 100644 srcpkgs/couchdb/INSTALL
 delete mode 100755 srcpkgs/couchdb/files/couchdb/run
 delete mode 100644 srcpkgs/couchdb/template
 delete mode 100644 srcpkgs/couchdb/update

diff --git a/srcpkgs/couchdb/INSTALL b/srcpkgs/couchdb/INSTALL
deleted file mode 100644
index 753e71b95d6..00000000000
--- a/srcpkgs/couchdb/INSTALL
+++ /dev/null
@@ -1,6 +0,0 @@
-case "$ACTION" in
-        post)
-                chown -R couchdb /var/lib/couchdb/ /var/log/couchdb/
-        ;;
-esac
-
diff --git a/srcpkgs/couchdb/files/couchdb/run b/srcpkgs/couchdb/files/couchdb/run
deleted file mode 100755
index 25d1abb8272..00000000000
--- a/srcpkgs/couchdb/files/couchdb/run
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-export HOME=/var/lib/couchdb
-mkdir -p /var/run/couchdb
-chown couchdb /var/run/couchdb
-exec chpst -u couchdb:couchdb couchdb -r 5 -o /dev/null  -e /dev/null
-
diff --git a/srcpkgs/couchdb/template b/srcpkgs/couchdb/template
deleted file mode 100644
index 5ca5eacbaab..00000000000
--- a/srcpkgs/couchdb/template
+++ /dev/null
@@ -1,40 +0,0 @@
-# Template file for 'couchdb'
-pkgname=couchdb
-version=1.7.1
-revision=2
-wrksrc="apache-couchdb-${version}"
-build_style=gnu-configure
-conf_files="/etc/couchdb/default.ini /etc/couchdb/local.ini"
-hostmakedepends="erlang pkg-config"
-makedepends="libressl-devel icu-devel js-devel libcurl-devel"
-depends="erlang"
-short_desc="A document-oriented database"
-maintainer="Gerardo Di Iorio <arete74@gmail.com>"
-license="Apache-2.0"
-homepage="http://couchdb.apache.org/"
-distfiles="https://dist.apache.org/repos/dist/release/couchdb/source/${version}/apache-couchdb-${version}.tar.gz"
-checksum=91200aa6fbc6fa5e2f3d78ef40e39d8c1ec7c83ea1c2cd730d270658735b2cad
-broken="unsupported version upstream, broken distfiles"
-
-system_accounts="couchdb"
-couchdb_homedir="/var/lib/couchdb"
-make_dirs="
-	/var/lib/couchdb 0700 couchdb couchdb
-	/var/log/couchdb 0750 couchdb couchdb"
-
-if [ "$CROSS_BUILD" ]; then
-	makedepends+=" erlang"
-	configure_args="--with-erlang=${XBPS_CROSS_BASE}/usr/lib/erlang/usr/include"
-fi
-
-pre_configure() {
-	sed -i 's|-Werror|-pie -fPIE|g' src/couchdb/priv/Makefile.*
-if [ "$CROSS_BUILD" ]; then
-	sed -i '/FLAGS.*\(usr\|opt\)/s/.*/:/' configure
-fi
-}
-
-
-post_install() {
-	vsv couchdb
-}
diff --git a/srcpkgs/couchdb/update b/srcpkgs/couchdb/update
deleted file mode 100644
index bad80599c94..00000000000
--- a/srcpkgs/couchdb/update
+++ /dev/null
@@ -1 +0,0 @@
-pkgname=apache-$pkgname

From 6560c15726d786585dfa11af49c33311686c4acc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=89rico=20Rolim?= <erico.erc@gmail.com>
Date: Sun, 24 Jan 2021 18:43:23 -0300
Subject: [PATCH 2/3] js: remove package.

---
 common/shlibs                          |   1 -
 srcpkgs/js-devel                       |   1 -
 srcpkgs/js/patches/js185-destdir.patch |  15 ---
 srcpkgs/js/patches/js185-gcc6.patch    | 135 -------------------------
 srcpkgs/js/template                    |  57 -----------
 srcpkgs/js/update                      |   1 -
 srcpkgs/removed-packages/template      |   1 +
 7 files changed, 1 insertion(+), 210 deletions(-)
 delete mode 120000 srcpkgs/js-devel
 delete mode 100644 srcpkgs/js/patches/js185-destdir.patch
 delete mode 100644 srcpkgs/js/patches/js185-gcc6.patch
 delete mode 100644 srcpkgs/js/template
 delete mode 100644 srcpkgs/js/update

diff --git a/common/shlibs b/common/shlibs
index 979daeddbf1..430676f2db4 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -863,7 +863,6 @@ libquadmath.so.0 libquadmath-4.4.0_1
 libgfortran.so.5 libgfortran-8.2.0_1
 libgnarl-10.so libada-10.2.0_1
 libgnat-10.so libada-10.2.0_1
-libmozjs185.so.1.0 js-1.8.5_1
 libwebp.so.7 libwebp-0.6.0_1
 libwebpmux.so.3 libwebp-0.6.0_1
 libwebpdemux.so.2 libwebp-0.5.0_1
diff --git a/srcpkgs/js-devel b/srcpkgs/js-devel
deleted file mode 120000
index bc42fd64f54..00000000000
--- a/srcpkgs/js-devel
+++ /dev/null
@@ -1 +0,0 @@
-js
\ No newline at end of file
diff --git a/srcpkgs/js/patches/js185-destdir.patch b/srcpkgs/js/patches/js185-destdir.patch
deleted file mode 100644
index 30854e12103..00000000000
--- a/srcpkgs/js/patches/js185-destdir.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-#https://bugzilla.mozilla.org/show_bug.cgi?id=628723
-
---- js/src/Makefile.in.old	2011-04-10 04:21:19.918608008 -0700
-+++ js/src/Makefile.in	2011-04-10 04:21:58.088607992 -0700
-@@ -888,8 +888,8 @@
- ifeq (,$(HOST_BIN_SUFFIX))
- 	mv -f $(SHLIB_ANY_VER) $(SHLIB_EXACT_VER)
- 	@[ ! -h $(SHLIB_ABI_VER) ] || rm -f $(SHLIB_ABI_VER)
--	ln -s $(SHLIB_EXACT_VER) $(SHLIB_ABI_VER)
--	ln -s $(SHLIB_ABI_VER) $(SHLIB_ANY_VER)
-+	ln -s $(notdir $(SHLIB_EXACT_VER)) $(SHLIB_ABI_VER)
-+	ln -s $(notdir $(SHLIB_ABI_VER)) $(SHLIB_ANY_VER)
- endif
- endif
- ifneq (,$(IMPORT_LIBRARY))
diff --git a/srcpkgs/js/patches/js185-gcc6.patch b/srcpkgs/js/patches/js185-gcc6.patch
deleted file mode 100644
index 7495e7190bc..00000000000
--- a/srcpkgs/js/patches/js185-gcc6.patch
+++ /dev/null
@@ -1,135 +0,0 @@
---- js/src/jsapi.cpp
-+++ js/src/jsapi.cpp
-@@ -3985,7 +3985,7 @@ JS_Enumerate(JSContext *cx, JSObject *ob
-     AutoIdVector props(cx);
-     JSIdArray *ida;
-     if (!GetPropertyNames(cx, obj, JSITER_OWNONLY, &props) || !VectorToIdArray(cx, props, &ida))
--        return false;
-+        return NULL;
-     for (size_t n = 0; n < size_t(ida->length); ++n)
-         JS_ASSERT(js_CheckForStringIndex(ida->vector[n]) == ida->vector[n]);
-     return ida;
---- js/src/jsfun.cpp
-+++ js/src/jsfun.cpp
-@@ -2051,7 +2051,7 @@ fun_toStringHelper(JSContext *cx, JSObje
- 
-     JSString *str = JS_DecompileFunction(cx, fun, indent);
-     if (!str)
--        return false;
-+        return NULL;
- 
-     if (!indent)
-         cx->compartment->toSourceCache.put(fun, str);
-@@ -2657,7 +2657,7 @@ LookupInterpretedFunctionPrototype(JSCon
-     const Shape *shape = funobj->nativeLookup(id);
-     if (!shape) {
-         if (!ResolveInterpretedFunctionPrototype(cx, funobj))
--            return false;
-+            return NULL;
-         shape = funobj->nativeLookup(id);
-     }
-     JS_ASSERT(!shape->configurable());
---- js/src/jsiter.cpp
-+++ js/src/jsiter.cpp
-@@ -425,7 +425,7 @@ NewIteratorObject(JSContext *cx, uintN f
-          */
-         JSObject *obj = js_NewGCObject(cx, FINALIZE_OBJECT0);
-         if (!obj)
--            return false;
-+            return NULL;
-         obj->init(cx, &js_IteratorClass, NULL, NULL, NULL, false);
-         obj->setMap(cx->compartment->emptyEnumeratorShape);
-         return obj;
---- js/src/jsparse.cpp
-+++ js/src/jsparse.cpp
-@@ -3352,7 +3352,7 @@ Parser::functionDef(JSAtom *funAtom, Fun
-     if (!outertc->inFunction() && bodyLevel && funAtom && !lambda && outertc->compiling()) {
-         JS_ASSERT(pn->pn_cookie.isFree());
-         if (!DefineGlobal(pn, outertc->asCodeGenerator(), funAtom))
--            return false;
-+            return NULL;
-     }
- 
-     pn->pn_blockid = outertc->blockid();
---- js/src/jsstr.cpp
-+++ js/src/jsstr.cpp
-@@ -1734,7 +1734,7 @@ class RegExpGuard
-         if (flat) {
-             patstr = flattenPattern(cx, fm.patstr);
-             if (!patstr)
--                return false;
-+                return NULL;
-         } else {
-             patstr = fm.patstr;
-         }
-@@ -3400,7 +3400,7 @@ js_InitStringClass(JSContext *cx, JSObje
-                                  UndefinedValue(), NULL, NULL,
-                                  JSPROP_READONLY | JSPROP_PERMANENT | JSPROP_SHARED, 0, 0,
-                                  NULL)) {
--        return JS_FALSE;
-+        return NULL;
-     }
- 
-     return proto;
---- js/src/jstypedarray.cpp
-+++ js/src/jstypedarray.cpp
-@@ -1334,7 +1334,7 @@ class TypedArrayTemplate
-         if (size != 0 && count >= INT32_MAX / size) {
-             JS_ReportErrorNumber(cx, js_GetErrorMessage, NULL,
-                                  JSMSG_NEED_DIET, "size and count");
--            return false;
-+            return NULL;
-         }
- 
-         int32 bytelen = size * count;
-@@ -1668,7 +1668,7 @@ TypedArrayConstruct(JSContext *cx, jsint
- 
-       default:
-         JS_NOT_REACHED("shouldn't have gotten here");
--        return false;
-+        return NULL;
-     }
- }
- 
---- js/src/jsxml.cpp
-+++ js/src/jsxml.cpp
-@@ -282,7 +282,7 @@ NewXMLNamespace(JSContext *cx, JSLinearS
- 
-     obj = NewBuiltinClassInstanceXML(cx, &js_NamespaceClass);
-     if (!obj)
--        return JS_FALSE;
-+        return NULL;
-     JS_ASSERT(JSVAL_IS_VOID(obj->getNamePrefixVal()));
-     JS_ASSERT(JSVAL_IS_VOID(obj->getNameURIVal()));
-     JS_ASSERT(JSVAL_IS_VOID(obj->getNamespaceDeclared()));
-@@ -431,7 +431,7 @@ ConvertQNameToString(JSContext *cx, JSOb
-         size_t length = str->length();
-         jschar *chars = (jschar *) cx->malloc((length + 2) * sizeof(jschar));
-         if (!chars)
--            return JS_FALSE;
-+            return NULL;
-         *chars = '@';
-         const jschar *strChars = str->getChars(cx);
-         if (!strChars) {
---- js/src/methodjit/InvokeHelpers.cpp
-+++ js/src/methodjit/InvokeHelpers.cpp
-@@ -728,7 +728,7 @@ AtSafePoint(JSContext *cx)
- {
-     JSStackFrame *fp = cx->fp();
-     if (fp->hasImacropc())
--        return false;
-+        return NULL;
- 
-     JSScript *script = fp->script();
-     return script->maybeNativeCodeForPC(fp->isConstructing(), cx->regs->pc);
---- js/src/nanojit/NativeX64.cpp
-+++ js/src/nanojit/NativeX64.cpp
-@@ -1899,7 +1899,7 @@ namespace nanojit
-          }
-     }
- 
--    static const AVMPLUS_ALIGN16(int64_t) negateMask[] = {0x8000000000000000LL,0};
-+    static const AVMPLUS_ALIGN16(int64_t) negateMask[] = {int64_t(0x8000000000000000LL),0};
- 
-     void Assembler::asm_fneg(LIns *ins) {
-         Register rr, ra;
diff --git a/srcpkgs/js/template b/srcpkgs/js/template
deleted file mode 100644
index a7230dc0122..00000000000
--- a/srcpkgs/js/template
+++ /dev/null
@@ -1,57 +0,0 @@
-# Template file for 'js'
-pkgname=js
-version=1.8.5
-revision=11
-archs="x86_64* i686* aarch64* arm*"
-build_wrksrc="js/src"
-build_style=gnu-configure
-hostmakedepends="zip python perl nspr-devel"
-makedepends="nspr-devel"
-short_desc="Spidermonkey JavaScript interpreter and library"
-maintainer="Orphaned <orphan@voidlinux.org>"
-license="MPL-1.1, GPL-2.0-only, LGPL-2.1-only"
-homepage="https://developer.mozilla.org/en/docs/SpiderMonkey"
-distfiles="${MOZILLA_SITE}/js/js185-1.0.0.tar.gz"
-checksum=5d12f7e1f5b4a99436685d97b9b7b75f094d33580227aa998c406bbae6f2a687
-
-case "$XBPS_TARGET_MACHINE" in
-	aarch64*)
-		# ./assembler/jit/ExecutableAllocator.h:395:6: error: #error "The cacheFlush support is missing on this platform."
-		broken="https://build.voidlinux.org/builders/aarch64_builder/builds/2509/steps/shell_3/logs/stdio"
-		;;
-esac
-
-do_configure() {
-	local _args
-
-	if [ "$CROSS_BUILD" ]; then
-		export HOST_CC=cc
-		export HOST_CXX=g++
-		export HOST_CFLAGS="-Os -DFORCE_LITTLE_ENDIAN -fPIE"
-		export HOST_CXXFLAGS="-Os -DFORCE_LITTLE_ENDIAN -fPIE"
-
-		case "$XBPS_MACHINE" in
-			armv6l*) _args+=" --with-cpu-arch=armv6";;
-			armv7l*) _args+=" --with-cpu-arch=armv7";;
-		esac
-		_args+=" --target=$XBPS_CROSS_TRIPLET"
-	fi
-
-	sed -e "s,-mfpu=neon -mfloat-abi=softfp,,g" -i configure
-	sed -e "s,-march=armv7-a -marm -mfloat-abi=softfp,${CFLAGS},g" -i configure
-	sed -e "s,-march=armv7 -marm -msoftfp,${CFLAGS},g" -i configure
-
-	./configure --prefix=/usr --with-system-nspr --enable-threadsafe ${_args}
-}
-
-js-devel_package() {
-	depends="nspr-devel js>=${version}_${revision}"
-	short_desc+=" - development files"
-	pkg_install() {
-		vmove usr/bin
-		vmove usr/include
-		vmove "usr/lib/*.a"
-		vmove "usr/lib/*.so"
-		vmove usr/lib/pkgconfig
-	}
-}
diff --git a/srcpkgs/js/update b/srcpkgs/js/update
deleted file mode 100644
index c54d0609c55..00000000000
--- a/srcpkgs/js/update
+++ /dev/null
@@ -1 +0,0 @@
-ignore="1.60"
diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template
index 7fa5d31e349..c446156ad3b 100644
--- a/srcpkgs/removed-packages/template
+++ b/srcpkgs/removed-packages/template
@@ -38,6 +38,7 @@ replaces="
  libgtkhtml<=4.10.0_1
  httperf<=0.9.0_9
  isl16<=0.16_2
+ js<=1.8.5_11
  keepassx<=0.4.4_2
  libapp<=20140527_2
  libdbusmenu-qt<=0.9.2_4

From c93dcb805c0f2aa312663b43f358a004f3f996f5 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=89rico=20Rolim?= <erico.erc@gmail.com>
Date: Sun, 24 Jan 2021 18:48:05 -0300
Subject: [PATCH 3/3] mozjs68: remove package.

---
 common/shlibs                                 |  1 -
 srcpkgs/mozjs68-devel                         |  1 -
 .../001-silence-sandbox-violations.patch      | 27 -------
 srcpkgs/mozjs68/patches/002-fix-soname.patch  | 22 ------
 .../mozjs68/patches/003-fix-wasm-arm.patch    | 16 ----
 .../mozjs68/patches/004-fix-musl-build.patch  | 17 -----
 .../005-spidermonkey-checks-disable.patch     | 12 ---
 .../006-mozjs68.pc-honor-sysroot.patch        | 10 ---
 ...sed-LLVM-and-Rust-build-dependencies.patch | 74 -------------------
 .../mozjs68/patches/008-fix-mips32-inl.patch  | 53 -------------
 .../patches/009-fix-mips-sgidefs_h.patch      | 11 ---
 srcpkgs/mozjs68/template                      | 71 ------------------
 srcpkgs/mozjs68/update                        |  1 -
 srcpkgs/removed-packages/template             |  2 +
 14 files changed, 2 insertions(+), 316 deletions(-)
 delete mode 120000 srcpkgs/mozjs68-devel
 delete mode 100644 srcpkgs/mozjs68/patches/001-silence-sandbox-violations.patch
 delete mode 100644 srcpkgs/mozjs68/patches/002-fix-soname.patch
 delete mode 100644 srcpkgs/mozjs68/patches/003-fix-wasm-arm.patch
 delete mode 100644 srcpkgs/mozjs68/patches/004-fix-musl-build.patch
 delete mode 100644 srcpkgs/mozjs68/patches/005-spidermonkey-checks-disable.patch
 delete mode 100644 srcpkgs/mozjs68/patches/006-mozjs68.pc-honor-sysroot.patch
 delete mode 100644 srcpkgs/mozjs68/patches/007-Remove-unused-LLVM-and-Rust-build-dependencies.patch
 delete mode 100644 srcpkgs/mozjs68/patches/008-fix-mips32-inl.patch
 delete mode 100644 srcpkgs/mozjs68/patches/009-fix-mips-sgidefs_h.patch
 delete mode 100644 srcpkgs/mozjs68/template
 delete mode 100644 srcpkgs/mozjs68/update

diff --git a/common/shlibs b/common/shlibs
index 430676f2db4..81db5bbb235 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3519,7 +3519,6 @@ libmysqlpp.so.3 mysql++-3.2.5_1
 libKF5Syndication.so.5 syndication-5.50.0_1
 liblqr-1.so.0 liblqr-0.4.2_1
 libmozjs-60.so.0 mozjs60-60.0.2_1
-libmozjs-68.so.0 mozjs68-68.8.0_1
 libmozjs-78.so.0 mozjs78-78.1.0_1
 libebur128.so.1 libebur128-1.2.4_1
 libgtksourceview-4.so.0 gtksourceview4-4.0.2_1
diff --git a/srcpkgs/mozjs68-devel b/srcpkgs/mozjs68-devel
deleted file mode 120000
index 0843c595e78..00000000000
--- a/srcpkgs/mozjs68-devel
+++ /dev/null
@@ -1 +0,0 @@
-mozjs68
\ No newline at end of file
diff --git a/srcpkgs/mozjs68/patches/001-silence-sandbox-violations.patch b/srcpkgs/mozjs68/patches/001-silence-sandbox-violations.patch
deleted file mode 100644
index 51208e9438b..00000000000
--- a/srcpkgs/mozjs68/patches/001-silence-sandbox-violations.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-"Carried over from mozjs60"
-Upstream: no
-From 9ad10569e11a2fb96377188f895bc66abcc9511d Mon Sep 17 00:00:00 2001
-From: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
-Date: Wed, 5 Sep 2018 15:05:24 +0200
-Subject: [PATCH] silence sandbox violations
-
-Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
----
- python/mozbuild/mozbuild/frontend/emitter.py | 5 -----
- 1 file changed, 5 deletions(-)
-
---- a/python/mozbuild/mozbuild/frontend/emitter.py
-+++ b/python/mozbuild/mozbuild/frontend/emitter.py
-@@ -1195,11 +1195,6 @@
-                     raise SandboxValidationError('Path specified in LOCAL_INCLUDES '
-                         'is a filename, but a directory is required: %s '
-                         '(resolved to %s)' % (local_include, full_path), context)
--            if (full_path == context.config.topsrcdir or
--                    full_path == context.config.topobjdir):
--                raise SandboxValidationError('Path specified in LOCAL_INCLUDES '
--                    '(%s) resolves to the topsrcdir or topobjdir (%s), which is '
--                    'not allowed' % (local_include, full_path), context)
-             include_obj = LocalInclude(context, local_include)
-             local_includes.append(include_obj.path.full_path)
-             yield include_obj
-
diff --git a/srcpkgs/mozjs68/patches/002-fix-soname.patch b/srcpkgs/mozjs68/patches/002-fix-soname.patch
deleted file mode 100644
index 26cd1847929..00000000000
--- a/srcpkgs/mozjs68/patches/002-fix-soname.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-"Carried over from mozjs60"
---- a/js/src/build/Makefile.in
-+++ b/js/src/build/Makefile.in
-@@ -78,6 +78,8 @@
- endif
- ifneq (,$(SHARED_LIBRARY))
- 	$(SYSINSTALL) $(SHARED_LIBRARY) $(DESTDIR)$(libdir)
-+	mv -f $(DESTDIR)$(libdir)/$(SHARED_LIBRARY) $(DESTDIR)$(libdir)/$(SHARED_LIBRARY).0
-+	ln -s $(SHARED_LIBRARY).0 $(DESTDIR)$(libdir)/$(SHARED_LIBRARY)
- ifeq ($(OS_ARCH),Darwin)
- 	install_name_tool -id $(abspath $(libdir)/$(SHARED_LIBRARY)) $(DESTDIR)$(libdir)/$(SHARED_LIBRARY)
- endif
---- a/js/src/build/moz.build
-+++ b/js/src/build/moz.build
-@@ -25,6 +25,7 @@
- if CONFIG['JS_SHARED_LIBRARY']:
-     GeckoSharedLibrary('js', linkage=None)
-     SHARED_LIBRARY_NAME = CONFIG['JS_LIBRARY_NAME']
-+    LDFLAGS += ['-Wl,-soname,lib{}.so.0'.format(SHARED_LIBRARY_NAME)]
- 
-     # Ensure symbol versions of shared library on Linux do not conflict
-     # with those in libxul.
diff --git a/srcpkgs/mozjs68/patches/003-fix-wasm-arm.patch b/srcpkgs/mozjs68/patches/003-fix-wasm-arm.patch
deleted file mode 100644
index 891a7652056..00000000000
--- a/srcpkgs/mozjs68/patches/003-fix-wasm-arm.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-"Taken from firefox-esr"
---- a/js/src/wasm/WasmSignalHandlers.cpp
-+++ b/js/src/wasm/WasmSignalHandlers.cpp
-@@ -243,9 +243,9 @@
- // If you run into compile problems on a tier-3 platform, you can disable the
- // emulation here.
- 
--#if defined(__linux__) && defined(__arm__)
--#  define WASM_EMULATE_ARM_UNALIGNED_FP_ACCESS
--#endif
-+// #if defined(__linux__) && defined(__arm__)
-+// #  define WASM_EMULATE_ARM_UNALIGNED_FP_ACCESS
-+// #endif
- 
- #ifdef WASM_EMULATE_ARM_UNALIGNED_FP_ACCESS
- #  include <sys/user.h>
diff --git a/srcpkgs/mozjs68/patches/004-fix-musl-build.patch b/srcpkgs/mozjs68/patches/004-fix-musl-build.patch
deleted file mode 100644
index f629fa2ac35..00000000000
--- a/srcpkgs/mozjs68/patches/004-fix-musl-build.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-"Carried over from mozjs60"
-Upstream: No
-Reason: mozjs68 miscompiles on musl if built with HAVE_THREAD_TLS_KEYWORD:
-https://github.com/void-linux/void-packages/issues/2598
-diff --git a/js/src/old-configure.in b/js/src/old-configure.in
---- a/js/src/old-configure.in
-+++ b/js/src/old-configure.in
-@@ -1272,6 +1272,9 @@
-     *-android*|*-linuxandroid*)
-       :
-       ;;
-+    *-musl*)
-+      :
-+      ;;
-     *)
-       AC_DEFINE(HAVE_THREAD_TLS_KEYWORD)
-       ;;
diff --git a/srcpkgs/mozjs68/patches/005-spidermonkey-checks-disable.patch b/srcpkgs/mozjs68/patches/005-spidermonkey-checks-disable.patch
deleted file mode 100644
index f6eababd1f2..00000000000
--- a/srcpkgs/mozjs68/patches/005-spidermonkey-checks-disable.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-Source:Fedora
-Reason: Checks failed(Todo: Figure out why)
-+++ a/config/run_spidermonkey_checks.py
-+++ b/config/run_spidermonkey_checks.py
-@@ -11,5 +11,5 @@
-     for script in scripts:
-         retcode = subprocess.call(
-             [sys.executable, script], cwd=buildconfig.topsrcdir)
--        if retcode != 0:
--            raise Exception(script + " failed")
-+        #if retcode != 0:
-+        #    raise Exception(script + " failed")
diff --git a/srcpkgs/mozjs68/patches/006-mozjs68.pc-honor-sysroot.patch b/srcpkgs/mozjs68/patches/006-mozjs68.pc-honor-sysroot.patch
deleted file mode 100644
index 71214b8eccf..00000000000
--- a/srcpkgs/mozjs68/patches/006-mozjs68.pc-honor-sysroot.patch
+++ /dev/null
@@ -1,10 +0,0 @@
-"Carried over from mozjs60"
-Reason: Fix the '-include' directive, otherwise it tries to use the host's header
---- a/js/src/build/js.pc.in
-+++ b/js/src/build/js.pc.in
-@@ -11,4 +11,4 @@
- # Use -isystem for includes rather than -I, to mark them as "system headers"
- # that don't generate warning diagnostics. For justification, see
- # https://bugzilla.mozilla.org/show_bug.cgi?id=1539036
--Cflags: -include ${includedir}/@JS_LIBRARY_NAME@/js/RequiredDefines.h -isystem ${includedir}/@JS_LIBRARY_NAME@
-+Cflags: -include ${pc_sysrootdir}${includedir}/@JS_LIBRARY_NAME@/js/RequiredDefines.h -isystem ${includedir}/@JS_LIBRARY_NAME@
diff --git a/srcpkgs/mozjs68/patches/007-Remove-unused-LLVM-and-Rust-build-dependencies.patch b/srcpkgs/mozjs68/patches/007-Remove-unused-LLVM-and-Rust-build-dependencies.patch
deleted file mode 100644
index b1c7782adbf..00000000000
--- a/srcpkgs/mozjs68/patches/007-Remove-unused-LLVM-and-Rust-build-dependencies.patch
+++ /dev/null
@@ -1,74 +0,0 @@
-Source: openSUSE
-Upstream: No
-Description: Remove unused LLVM and Rust build dependencies
- Since the Javascript engine is normally part of Firefox, its build
- system has dependencies on the LLVM and Rust toolchains. This limits
- the number of architectures which mozjs68 can be built on.
- .
- It turns out, however, that neither LLVM nor Rust are used when mozjs68
- is being built and these build dependencies are therefore not necessary.
- .
- This patch removes them and allows mozjs68 to be built on any architecture.
- .
-Author: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
-Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=959144
-Forwarded: no
-Last-Update: 2020-04-30
-
-Index: js/moz.configure
-===================================================================
---- a/js/moz.configure
-+++ a/js/moz.configure
-@@ -18,11 +18,6 @@ def building_js(build_project):
- option(env='JS_STANDALONE', default=building_js,
-        help='Reserved for internal use')
- 
--include('../build/moz.configure/rust.configure',
--        when='--enable-compile-environment')
--include('../build/moz.configure/bindgen.configure',
--        when='--enable-compile-environment')
--
- @depends('JS_STANDALONE')
- def js_standalone(value):
-     if value:
-Index: moz.configure
-===================================================================
---- a/moz.configure
-+++ b/moz.configure
-@@ -598,36 +598,6 @@ set_config('MAKENSISU_FLAGS', nsis_flags
- 
- check_prog('7Z', ('7z', '7za'), allow_missing=True, when=target_is_windows)
- 
--
--@depends(host_c_compiler, c_compiler, bindgen_config_paths)
--def llvm_objdump(host_c_compiler, c_compiler, bindgen_config_paths):
--    clang = None
--    for compiler in (host_c_compiler, c_compiler):
--        if compiler and compiler.type == 'clang':
--            clang = compiler.compiler
--            break
--        elif compiler and compiler.type == 'clang-cl':
--            clang = os.path.join(os.path.dirname(compiler.compiler), 'clang')
--            break
--
--    if not clang and bindgen_config_paths:
--        clang = bindgen_config_paths.clang_path
--    llvm_objdump = 'llvm-objdump'
--    if clang:
--        out = check_cmd_output(clang, '--print-prog-name=llvm-objdump',
--                               onerror=lambda: None)
--        if out:
--            llvm_objdump = out.rstrip()
--    return (llvm_objdump,)
--
--
--llvm_objdump = check_prog('LLVM_OBJDUMP', llvm_objdump, what='llvm-objdump',
--                          when='--enable-compile-environment',
--                          paths=toolchain_search_path)
--
--add_old_configure_assignment('LLVM_OBJDUMP', llvm_objdump)
--
--
- # Please do not add configure checks from here on.
- 
- # Fallthrough to autoconf-based configure
diff --git a/srcpkgs/mozjs68/patches/008-fix-mips32-inl.patch b/srcpkgs/mozjs68/patches/008-fix-mips32-inl.patch
deleted file mode 100644
index 9c964e35299..00000000000
--- a/srcpkgs/mozjs68/patches/008-fix-mips32-inl.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From: qiaopengcheng <qiaopengcheng-hf@loongson.cn>
-Date: Sun, 2 Jun 2019 07:28:24 +0900
-Subject: Bug 1556197 - amend Bug-1544631 for fixing mips32.
-
----
- js/src/jit/mips32/MacroAssembler-mips32-inl.h | 10 +++++++---
- 1 file changed, 7 insertions(+), 3 deletions(-)
-
-diff --git a/js/src/jit/mips32/MacroAssembler-mips32-inl.h b/js/src/jit/mips32/MacroAssembler-mips32-inl.h
-index 1f7f4d1cf31..06d8773e92a 100644
---- a/js/src/jit/mips32/MacroAssembler-mips32-inl.h
-+++ b/js/src/jit/mips32/MacroAssembler-mips32-inl.h
-@@ -69,6 +69,15 @@
- }
- 
- // ===============================================================
-+// Load instructions
-+
-+void MacroAssembler::load32SignExtendToPtr(const Address& src, Register dest) {
-+  loadPtr(src, dest);
-+}
-+
-+// ===============================================================
-+
-+// ===============================================================
- // Logical instructions
- 
- void MacroAssembler::andPtr(Register src, Register dest) { ma_and(dest, src); }
-@@ -820,19 +820,21 @@ void MacroAssembler::branchTestSymbol(Condition cond, const ValueOperand& value,
- 
- void MacroAssembler::branchTestBigInt(Condition cond, Register tag,
-                                       Label* label) {
--  branchTestBigIntImpl(cond, tag, label);
-+  MOZ_ASSERT(cond == Equal || cond == NotEqual);
-+  ma_b(tag, ImmTag(JSVAL_TAG_BIGINT), label, cond);
- }
- 
- void MacroAssembler::branchTestBigInt(Condition cond, const BaseIndex& address,
-                                       Label* label) {
-   SecondScratchRegisterScope scratch2(*this);
--  splitTag(value, scratch2);
-+  computeEffectiveAddress(address, scratch2);
-   branchTestBigInt(cond, scratch2, label);
- }
- 
- void MacroAssembler::branchTestBigInt(Condition cond, const ValueOperand& value,
-                                       Label* label) {
--  branchTestBigInt(cond, value.typeReg(), label);
-+  SecondScratchRegisterScope scratch2(*this);
-+  branchTestBigInt(cond, scratch2, label);
- }
- 
- void MacroAssembler::branchTestBigIntTruthy(bool b, const ValueOperand& value,
diff --git a/srcpkgs/mozjs68/patches/009-fix-mips-sgidefs_h.patch b/srcpkgs/mozjs68/patches/009-fix-mips-sgidefs_h.patch
deleted file mode 100644
index abb140233a0..00000000000
--- a/srcpkgs/mozjs68/patches/009-fix-mips-sgidefs_h.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/mfbt/RandomNum.cpp	2020-04-29 23:49:40.000000000 +0200
-+++ b/mfbt/RandomNum.cpp	2020-08-04 19:29:36.127471301 +0200
-@@ -52,7 +52,7 @@
- #  elif defined(__s390__)
- #    define GETRANDOM_NR 349
- #  elif defined(__mips__)
--#    include <sgidefs.h>
-+#    include <asm/sgidefs.h>
- #    if _MIPS_SIM == _MIPS_SIM_ABI32
- #      define GETRANDOM_NR 4353
- #    elif _MIPS_SIM == _MIPS_SIM_ABI64
diff --git a/srcpkgs/mozjs68/template b/srcpkgs/mozjs68/template
deleted file mode 100644
index 80345a9ea9e..00000000000
--- a/srcpkgs/mozjs68/template
+++ /dev/null
@@ -1,71 +0,0 @@
-# Template file for 'mozjs68'
-pkgname=mozjs68
-version=68.11.0
-revision=1
-wrksrc="firefox-${version}"
-build_wrksrc=js/src
-build_style=gnu-configure
-hostmakedepends="perl python pkg-config automake autoconf213 autoconf-archive
- which python3"
-makedepends="icu-devel libffi-devel nspr-devel python-devel readline-devel zlib-devel
- python3-devel"
-depends="nspr>=4.19"
-short_desc="Mozilla JavaScript interpreter and library (68.x series)"
-maintainer="Enno Boland <gottox@voidlinux.org>"
-license="MPL-2.0"
-homepage="https://www.mozilla.org/js/"
-distfiles="${MOZILLA_SITE}/firefox/releases/${version}esr/source/firefox-${version}esr.source.tar.xz"
-checksum=91c1f7caaf1ba785b74799865227456bf784ba614d17cf5f0f41a5f25d6d2160
-patch_args="-Np1"
-CXXFLAGS="-Wno-class-memaccess"
-LDFLAGS+=" -Wl,-z,stack-size=1048576"
-
-if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
-	makedepends+=" libatomic-devel"
-	LDFLAGS+=" -latomic"
-fi
-
-do_configure() {
-	local _args
-
-	if [ "$CROSS_BUILD" ]; then
-		export HOST_CC=cc
-		export TARGET_CC="${CC}"
-		export HOST_CFLAGS="-Os"
-		export HOST_CXXFLAGS="-Os"
-		_args+=" --target=$XBPS_CROSS_TRIPLET --enable-linker=bfd"
-	fi
-
-	autoconf-2.13 old-configure.in > old-configure
-
-	touch ${wrksrc}/js/src/configure
-	touch ${wrksrc}/js/src/old-configure
-	SHELL=/bin/bash PYTHON=/usr/bin/python2 ./configure --prefix=/usr \
-		--disable-jemalloc --disable-optimize --enable-ctypes \
-		--enable-readline --enable-shared-js --enable-system-ffi \
-		--enable-tests --with-intl-api --with-system-icu --with-system-nspr \
-		--enable-unaligned-private-values  --enable-hardening \
-		--enable-release --with-system-zlib --target=${XBPS_TRIPLET} \
-		--host=${XBPS_TRIPLET} \
-		${_args}
-}
-
-do_check() {
-	dist/bin/jsapi-tests --format=none --exclude-random basic
-}
-
-post_install() {
-	# Remove unneeded static library
-	rm -f "${DESTDIR}"/usr/lib/*.ajs
-}
-
-mozjs68-devel_package() {
-	depends="nspr-devel ${sourcepkg}>=${version}_${revision}"
-	short_desc+=" - development files"
-	pkg_install() {
-		vmove usr/bin/js68-config
-		vmove usr/include
-		vmove "usr/lib/*.so"
-		vmove usr/lib/pkgconfig
-	}
-}
diff --git a/srcpkgs/mozjs68/update b/srcpkgs/mozjs68/update
deleted file mode 100644
index 1947e19217f..00000000000
--- a/srcpkgs/mozjs68/update
+++ /dev/null
@@ -1 +0,0 @@
-pkgname='mozjs'
diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template
index c446156ad3b..f46dad49791 100644
--- a/srcpkgs/removed-packages/template
+++ b/srcpkgs/removed-packages/template
@@ -16,6 +16,7 @@ replaces="
  bokken<=1.8_3
  caja-gksu<=1.20.2_2
  california<=0.4.0_4
+ couchdb<=1.7.1_2
  ctpp2<=2.8.3_7
  ctpp2-devel<=2.8.3_7
  djmount<=0.71_8
@@ -53,6 +54,7 @@ replaces="
  mirrorbits<=0.5.1_1
  mongroup<=0.4.1_2
  mozjs52<=52.9.0_7
+ mozjs68<=68.11.0_1
  phonon-backend-gstreamer<=4.9.0_2
  phonon-backend-vlc<=0.9.1_3
  polkit-qt<=0.112.0_5

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

* Re: [PR PATCH] [Updated] Remove js (mozjs185), mozjs68 and couchdb
  2021-01-24 21:50 [PR PATCH] Remove js (mozjs185), mozjs68 and couchdb ericonr
@ 2021-01-25 13:36 ` ericonr
  2021-01-27 18:17 ` arete
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: ericonr @ 2021-01-25 13:36 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by ericonr against master on the void-packages repository

https://github.com/ericonr/void-packages mozjs
https://github.com/void-linux/void-packages/pull/28201

Remove js (mozjs185), mozjs68 and couchdb
<!-- Mark items with [x] where applicable -->

couchdb has been broken for a long time and is on an old version. I don't think keeping `js` because of it makes sense, so removinf the entire package.

@arete if you want to fix the package, feel free to make a PR, then I will remove the removal from here.

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


A patch file from https://github.com/void-linux/void-packages/pull/28201.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-mozjs-28201.patch --]
[-- Type: text/x-diff, Size: 30641 bytes --]

From 8a05252be67ad3c7bafddbca357609a220782ce6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=89rico=20Rolim?= <erico.erc@gmail.com>
Date: Sun, 24 Jan 2021 18:46:42 -0300
Subject: [PATCH 1/3] couchdb: remove package.

---
 srcpkgs/couchdb/INSTALL           |  6 -----
 srcpkgs/couchdb/files/couchdb/run |  6 -----
 srcpkgs/couchdb/template          | 40 -------------------------------
 srcpkgs/couchdb/update            |  1 -
 srcpkgs/removed-packages/template |  1 +
 5 files changed, 1 insertion(+), 53 deletions(-)
 delete mode 100644 srcpkgs/couchdb/INSTALL
 delete mode 100755 srcpkgs/couchdb/files/couchdb/run
 delete mode 100644 srcpkgs/couchdb/template
 delete mode 100644 srcpkgs/couchdb/update

diff --git a/srcpkgs/couchdb/INSTALL b/srcpkgs/couchdb/INSTALL
deleted file mode 100644
index 753e71b95d6..00000000000
--- a/srcpkgs/couchdb/INSTALL
+++ /dev/null
@@ -1,6 +0,0 @@
-case "$ACTION" in
-        post)
-                chown -R couchdb /var/lib/couchdb/ /var/log/couchdb/
-        ;;
-esac
-
diff --git a/srcpkgs/couchdb/files/couchdb/run b/srcpkgs/couchdb/files/couchdb/run
deleted file mode 100755
index 25d1abb8272..00000000000
--- a/srcpkgs/couchdb/files/couchdb/run
+++ /dev/null
@@ -1,6 +0,0 @@
-#!/bin/sh
-export HOME=/var/lib/couchdb
-mkdir -p /var/run/couchdb
-chown couchdb /var/run/couchdb
-exec chpst -u couchdb:couchdb couchdb -r 5 -o /dev/null  -e /dev/null
-
diff --git a/srcpkgs/couchdb/template b/srcpkgs/couchdb/template
deleted file mode 100644
index 5ca5eacbaab..00000000000
--- a/srcpkgs/couchdb/template
+++ /dev/null
@@ -1,40 +0,0 @@
-# Template file for 'couchdb'
-pkgname=couchdb
-version=1.7.1
-revision=2
-wrksrc="apache-couchdb-${version}"
-build_style=gnu-configure
-conf_files="/etc/couchdb/default.ini /etc/couchdb/local.ini"
-hostmakedepends="erlang pkg-config"
-makedepends="libressl-devel icu-devel js-devel libcurl-devel"
-depends="erlang"
-short_desc="A document-oriented database"
-maintainer="Gerardo Di Iorio <arete74@gmail.com>"
-license="Apache-2.0"
-homepage="http://couchdb.apache.org/"
-distfiles="https://dist.apache.org/repos/dist/release/couchdb/source/${version}/apache-couchdb-${version}.tar.gz"
-checksum=91200aa6fbc6fa5e2f3d78ef40e39d8c1ec7c83ea1c2cd730d270658735b2cad
-broken="unsupported version upstream, broken distfiles"
-
-system_accounts="couchdb"
-couchdb_homedir="/var/lib/couchdb"
-make_dirs="
-	/var/lib/couchdb 0700 couchdb couchdb
-	/var/log/couchdb 0750 couchdb couchdb"
-
-if [ "$CROSS_BUILD" ]; then
-	makedepends+=" erlang"
-	configure_args="--with-erlang=${XBPS_CROSS_BASE}/usr/lib/erlang/usr/include"
-fi
-
-pre_configure() {
-	sed -i 's|-Werror|-pie -fPIE|g' src/couchdb/priv/Makefile.*
-if [ "$CROSS_BUILD" ]; then
-	sed -i '/FLAGS.*\(usr\|opt\)/s/.*/:/' configure
-fi
-}
-
-
-post_install() {
-	vsv couchdb
-}
diff --git a/srcpkgs/couchdb/update b/srcpkgs/couchdb/update
deleted file mode 100644
index bad80599c94..00000000000
--- a/srcpkgs/couchdb/update
+++ /dev/null
@@ -1 +0,0 @@
-pkgname=apache-$pkgname
diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template
index 9286101886a..daa5aeebdf9 100644
--- a/srcpkgs/removed-packages/template
+++ b/srcpkgs/removed-packages/template
@@ -16,6 +16,7 @@ replaces="
  bokken<=1.8_3
  caja-gksu<=1.20.2_2
  california<=0.4.0_4
+ couchdb<=1.7.1_2
  ctpp2<=2.8.3_7
  ctpp2-devel<=2.8.3_7
  djmount<=0.71_8

From b30dfc1b15d39df4137d525f68ddbd4feb97869c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=89rico=20Rolim?= <erico.erc@gmail.com>
Date: Sun, 24 Jan 2021 18:43:23 -0300
Subject: [PATCH 2/3] js: remove package.

---
 common/shlibs                          |   1 -
 srcpkgs/js-devel                       |   1 -
 srcpkgs/js/patches/js185-destdir.patch |  15 ---
 srcpkgs/js/patches/js185-gcc6.patch    | 135 -------------------------
 srcpkgs/js/template                    |  57 -----------
 srcpkgs/js/update                      |   1 -
 srcpkgs/removed-packages/template      |   1 +
 7 files changed, 1 insertion(+), 210 deletions(-)
 delete mode 120000 srcpkgs/js-devel
 delete mode 100644 srcpkgs/js/patches/js185-destdir.patch
 delete mode 100644 srcpkgs/js/patches/js185-gcc6.patch
 delete mode 100644 srcpkgs/js/template
 delete mode 100644 srcpkgs/js/update

diff --git a/common/shlibs b/common/shlibs
index 979daeddbf1..430676f2db4 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -863,7 +863,6 @@ libquadmath.so.0 libquadmath-4.4.0_1
 libgfortran.so.5 libgfortran-8.2.0_1
 libgnarl-10.so libada-10.2.0_1
 libgnat-10.so libada-10.2.0_1
-libmozjs185.so.1.0 js-1.8.5_1
 libwebp.so.7 libwebp-0.6.0_1
 libwebpmux.so.3 libwebp-0.6.0_1
 libwebpdemux.so.2 libwebp-0.5.0_1
diff --git a/srcpkgs/js-devel b/srcpkgs/js-devel
deleted file mode 120000
index bc42fd64f54..00000000000
--- a/srcpkgs/js-devel
+++ /dev/null
@@ -1 +0,0 @@
-js
\ No newline at end of file
diff --git a/srcpkgs/js/patches/js185-destdir.patch b/srcpkgs/js/patches/js185-destdir.patch
deleted file mode 100644
index 30854e12103..00000000000
--- a/srcpkgs/js/patches/js185-destdir.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-#https://bugzilla.mozilla.org/show_bug.cgi?id=628723
-
---- js/src/Makefile.in.old	2011-04-10 04:21:19.918608008 -0700
-+++ js/src/Makefile.in	2011-04-10 04:21:58.088607992 -0700
-@@ -888,8 +888,8 @@
- ifeq (,$(HOST_BIN_SUFFIX))
- 	mv -f $(SHLIB_ANY_VER) $(SHLIB_EXACT_VER)
- 	@[ ! -h $(SHLIB_ABI_VER) ] || rm -f $(SHLIB_ABI_VER)
--	ln -s $(SHLIB_EXACT_VER) $(SHLIB_ABI_VER)
--	ln -s $(SHLIB_ABI_VER) $(SHLIB_ANY_VER)
-+	ln -s $(notdir $(SHLIB_EXACT_VER)) $(SHLIB_ABI_VER)
-+	ln -s $(notdir $(SHLIB_ABI_VER)) $(SHLIB_ANY_VER)
- endif
- endif
- ifneq (,$(IMPORT_LIBRARY))
diff --git a/srcpkgs/js/patches/js185-gcc6.patch b/srcpkgs/js/patches/js185-gcc6.patch
deleted file mode 100644
index 7495e7190bc..00000000000
--- a/srcpkgs/js/patches/js185-gcc6.patch
+++ /dev/null
@@ -1,135 +0,0 @@
---- js/src/jsapi.cpp
-+++ js/src/jsapi.cpp
-@@ -3985,7 +3985,7 @@ JS_Enumerate(JSContext *cx, JSObject *ob
-     AutoIdVector props(cx);
-     JSIdArray *ida;
-     if (!GetPropertyNames(cx, obj, JSITER_OWNONLY, &props) || !VectorToIdArray(cx, props, &ida))
--        return false;
-+        return NULL;
-     for (size_t n = 0; n < size_t(ida->length); ++n)
-         JS_ASSERT(js_CheckForStringIndex(ida->vector[n]) == ida->vector[n]);
-     return ida;
---- js/src/jsfun.cpp
-+++ js/src/jsfun.cpp
-@@ -2051,7 +2051,7 @@ fun_toStringHelper(JSContext *cx, JSObje
- 
-     JSString *str = JS_DecompileFunction(cx, fun, indent);
-     if (!str)
--        return false;
-+        return NULL;
- 
-     if (!indent)
-         cx->compartment->toSourceCache.put(fun, str);
-@@ -2657,7 +2657,7 @@ LookupInterpretedFunctionPrototype(JSCon
-     const Shape *shape = funobj->nativeLookup(id);
-     if (!shape) {
-         if (!ResolveInterpretedFunctionPrototype(cx, funobj))
--            return false;
-+            return NULL;
-         shape = funobj->nativeLookup(id);
-     }
-     JS_ASSERT(!shape->configurable());
---- js/src/jsiter.cpp
-+++ js/src/jsiter.cpp
-@@ -425,7 +425,7 @@ NewIteratorObject(JSContext *cx, uintN f
-          */
-         JSObject *obj = js_NewGCObject(cx, FINALIZE_OBJECT0);
-         if (!obj)
--            return false;
-+            return NULL;
-         obj->init(cx, &js_IteratorClass, NULL, NULL, NULL, false);
-         obj->setMap(cx->compartment->emptyEnumeratorShape);
-         return obj;
---- js/src/jsparse.cpp
-+++ js/src/jsparse.cpp
-@@ -3352,7 +3352,7 @@ Parser::functionDef(JSAtom *funAtom, Fun
-     if (!outertc->inFunction() && bodyLevel && funAtom && !lambda && outertc->compiling()) {
-         JS_ASSERT(pn->pn_cookie.isFree());
-         if (!DefineGlobal(pn, outertc->asCodeGenerator(), funAtom))
--            return false;
-+            return NULL;
-     }
- 
-     pn->pn_blockid = outertc->blockid();
---- js/src/jsstr.cpp
-+++ js/src/jsstr.cpp
-@@ -1734,7 +1734,7 @@ class RegExpGuard
-         if (flat) {
-             patstr = flattenPattern(cx, fm.patstr);
-             if (!patstr)
--                return false;
-+                return NULL;
-         } else {
-             patstr = fm.patstr;
-         }
-@@ -3400,7 +3400,7 @@ js_InitStringClass(JSContext *cx, JSObje
-                                  UndefinedValue(), NULL, NULL,
-                                  JSPROP_READONLY | JSPROP_PERMANENT | JSPROP_SHARED, 0, 0,
-                                  NULL)) {
--        return JS_FALSE;
-+        return NULL;
-     }
- 
-     return proto;
---- js/src/jstypedarray.cpp
-+++ js/src/jstypedarray.cpp
-@@ -1334,7 +1334,7 @@ class TypedArrayTemplate
-         if (size != 0 && count >= INT32_MAX / size) {
-             JS_ReportErrorNumber(cx, js_GetErrorMessage, NULL,
-                                  JSMSG_NEED_DIET, "size and count");
--            return false;
-+            return NULL;
-         }
- 
-         int32 bytelen = size * count;
-@@ -1668,7 +1668,7 @@ TypedArrayConstruct(JSContext *cx, jsint
- 
-       default:
-         JS_NOT_REACHED("shouldn't have gotten here");
--        return false;
-+        return NULL;
-     }
- }
- 
---- js/src/jsxml.cpp
-+++ js/src/jsxml.cpp
-@@ -282,7 +282,7 @@ NewXMLNamespace(JSContext *cx, JSLinearS
- 
-     obj = NewBuiltinClassInstanceXML(cx, &js_NamespaceClass);
-     if (!obj)
--        return JS_FALSE;
-+        return NULL;
-     JS_ASSERT(JSVAL_IS_VOID(obj->getNamePrefixVal()));
-     JS_ASSERT(JSVAL_IS_VOID(obj->getNameURIVal()));
-     JS_ASSERT(JSVAL_IS_VOID(obj->getNamespaceDeclared()));
-@@ -431,7 +431,7 @@ ConvertQNameToString(JSContext *cx, JSOb
-         size_t length = str->length();
-         jschar *chars = (jschar *) cx->malloc((length + 2) * sizeof(jschar));
-         if (!chars)
--            return JS_FALSE;
-+            return NULL;
-         *chars = '@';
-         const jschar *strChars = str->getChars(cx);
-         if (!strChars) {
---- js/src/methodjit/InvokeHelpers.cpp
-+++ js/src/methodjit/InvokeHelpers.cpp
-@@ -728,7 +728,7 @@ AtSafePoint(JSContext *cx)
- {
-     JSStackFrame *fp = cx->fp();
-     if (fp->hasImacropc())
--        return false;
-+        return NULL;
- 
-     JSScript *script = fp->script();
-     return script->maybeNativeCodeForPC(fp->isConstructing(), cx->regs->pc);
---- js/src/nanojit/NativeX64.cpp
-+++ js/src/nanojit/NativeX64.cpp
-@@ -1899,7 +1899,7 @@ namespace nanojit
-          }
-     }
- 
--    static const AVMPLUS_ALIGN16(int64_t) negateMask[] = {0x8000000000000000LL,0};
-+    static const AVMPLUS_ALIGN16(int64_t) negateMask[] = {int64_t(0x8000000000000000LL),0};
- 
-     void Assembler::asm_fneg(LIns *ins) {
-         Register rr, ra;
diff --git a/srcpkgs/js/template b/srcpkgs/js/template
deleted file mode 100644
index a7230dc0122..00000000000
--- a/srcpkgs/js/template
+++ /dev/null
@@ -1,57 +0,0 @@
-# Template file for 'js'
-pkgname=js
-version=1.8.5
-revision=11
-archs="x86_64* i686* aarch64* arm*"
-build_wrksrc="js/src"
-build_style=gnu-configure
-hostmakedepends="zip python perl nspr-devel"
-makedepends="nspr-devel"
-short_desc="Spidermonkey JavaScript interpreter and library"
-maintainer="Orphaned <orphan@voidlinux.org>"
-license="MPL-1.1, GPL-2.0-only, LGPL-2.1-only"
-homepage="https://developer.mozilla.org/en/docs/SpiderMonkey"
-distfiles="${MOZILLA_SITE}/js/js185-1.0.0.tar.gz"
-checksum=5d12f7e1f5b4a99436685d97b9b7b75f094d33580227aa998c406bbae6f2a687
-
-case "$XBPS_TARGET_MACHINE" in
-	aarch64*)
-		# ./assembler/jit/ExecutableAllocator.h:395:6: error: #error "The cacheFlush support is missing on this platform."
-		broken="https://build.voidlinux.org/builders/aarch64_builder/builds/2509/steps/shell_3/logs/stdio"
-		;;
-esac
-
-do_configure() {
-	local _args
-
-	if [ "$CROSS_BUILD" ]; then
-		export HOST_CC=cc
-		export HOST_CXX=g++
-		export HOST_CFLAGS="-Os -DFORCE_LITTLE_ENDIAN -fPIE"
-		export HOST_CXXFLAGS="-Os -DFORCE_LITTLE_ENDIAN -fPIE"
-
-		case "$XBPS_MACHINE" in
-			armv6l*) _args+=" --with-cpu-arch=armv6";;
-			armv7l*) _args+=" --with-cpu-arch=armv7";;
-		esac
-		_args+=" --target=$XBPS_CROSS_TRIPLET"
-	fi
-
-	sed -e "s,-mfpu=neon -mfloat-abi=softfp,,g" -i configure
-	sed -e "s,-march=armv7-a -marm -mfloat-abi=softfp,${CFLAGS},g" -i configure
-	sed -e "s,-march=armv7 -marm -msoftfp,${CFLAGS},g" -i configure
-
-	./configure --prefix=/usr --with-system-nspr --enable-threadsafe ${_args}
-}
-
-js-devel_package() {
-	depends="nspr-devel js>=${version}_${revision}"
-	short_desc+=" - development files"
-	pkg_install() {
-		vmove usr/bin
-		vmove usr/include
-		vmove "usr/lib/*.a"
-		vmove "usr/lib/*.so"
-		vmove usr/lib/pkgconfig
-	}
-}
diff --git a/srcpkgs/js/update b/srcpkgs/js/update
deleted file mode 100644
index c54d0609c55..00000000000
--- a/srcpkgs/js/update
+++ /dev/null
@@ -1 +0,0 @@
-ignore="1.60"
diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template
index daa5aeebdf9..3573d109529 100644
--- a/srcpkgs/removed-packages/template
+++ b/srcpkgs/removed-packages/template
@@ -39,6 +39,7 @@ replaces="
  libgtkhtml<=4.10.0_1
  httperf<=0.9.0_9
  isl16<=0.16_2
+ js<=1.8.5_11
  kadu<=4.3_6
  keepassx<=0.4.4_2
  libapp<=20140527_2

From ae1601cc2d4fa7db994ea9885e10a114eb49443f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=C3=89rico=20Rolim?= <erico.erc@gmail.com>
Date: Sun, 24 Jan 2021 18:48:05 -0300
Subject: [PATCH 3/3] mozjs68: remove package.

---
 common/shlibs                                 |  1 -
 srcpkgs/mozjs68-devel                         |  1 -
 .../001-silence-sandbox-violations.patch      | 27 -------
 srcpkgs/mozjs68/patches/002-fix-soname.patch  | 22 ------
 .../mozjs68/patches/003-fix-wasm-arm.patch    | 16 ----
 .../mozjs68/patches/004-fix-musl-build.patch  | 17 -----
 .../005-spidermonkey-checks-disable.patch     | 12 ---
 .../006-mozjs68.pc-honor-sysroot.patch        | 10 ---
 ...sed-LLVM-and-Rust-build-dependencies.patch | 74 -------------------
 .../mozjs68/patches/008-fix-mips32-inl.patch  | 53 -------------
 .../patches/009-fix-mips-sgidefs_h.patch      | 11 ---
 srcpkgs/mozjs68/template                      | 71 ------------------
 srcpkgs/mozjs68/update                        |  1 -
 srcpkgs/removed-packages/template             |  1 +
 14 files changed, 1 insertion(+), 316 deletions(-)
 delete mode 120000 srcpkgs/mozjs68-devel
 delete mode 100644 srcpkgs/mozjs68/patches/001-silence-sandbox-violations.patch
 delete mode 100644 srcpkgs/mozjs68/patches/002-fix-soname.patch
 delete mode 100644 srcpkgs/mozjs68/patches/003-fix-wasm-arm.patch
 delete mode 100644 srcpkgs/mozjs68/patches/004-fix-musl-build.patch
 delete mode 100644 srcpkgs/mozjs68/patches/005-spidermonkey-checks-disable.patch
 delete mode 100644 srcpkgs/mozjs68/patches/006-mozjs68.pc-honor-sysroot.patch
 delete mode 100644 srcpkgs/mozjs68/patches/007-Remove-unused-LLVM-and-Rust-build-dependencies.patch
 delete mode 100644 srcpkgs/mozjs68/patches/008-fix-mips32-inl.patch
 delete mode 100644 srcpkgs/mozjs68/patches/009-fix-mips-sgidefs_h.patch
 delete mode 100644 srcpkgs/mozjs68/template
 delete mode 100644 srcpkgs/mozjs68/update

diff --git a/common/shlibs b/common/shlibs
index 430676f2db4..81db5bbb235 100644
--- a/common/shlibs
+++ b/common/shlibs
@@ -3519,7 +3519,6 @@ libmysqlpp.so.3 mysql++-3.2.5_1
 libKF5Syndication.so.5 syndication-5.50.0_1
 liblqr-1.so.0 liblqr-0.4.2_1
 libmozjs-60.so.0 mozjs60-60.0.2_1
-libmozjs-68.so.0 mozjs68-68.8.0_1
 libmozjs-78.so.0 mozjs78-78.1.0_1
 libebur128.so.1 libebur128-1.2.4_1
 libgtksourceview-4.so.0 gtksourceview4-4.0.2_1
diff --git a/srcpkgs/mozjs68-devel b/srcpkgs/mozjs68-devel
deleted file mode 120000
index 0843c595e78..00000000000
--- a/srcpkgs/mozjs68-devel
+++ /dev/null
@@ -1 +0,0 @@
-mozjs68
\ No newline at end of file
diff --git a/srcpkgs/mozjs68/patches/001-silence-sandbox-violations.patch b/srcpkgs/mozjs68/patches/001-silence-sandbox-violations.patch
deleted file mode 100644
index 51208e9438b..00000000000
--- a/srcpkgs/mozjs68/patches/001-silence-sandbox-violations.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-"Carried over from mozjs60"
-Upstream: no
-From 9ad10569e11a2fb96377188f895bc66abcc9511d Mon Sep 17 00:00:00 2001
-From: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
-Date: Wed, 5 Sep 2018 15:05:24 +0200
-Subject: [PATCH] silence sandbox violations
-
-Signed-off-by: Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
----
- python/mozbuild/mozbuild/frontend/emitter.py | 5 -----
- 1 file changed, 5 deletions(-)
-
---- a/python/mozbuild/mozbuild/frontend/emitter.py
-+++ b/python/mozbuild/mozbuild/frontend/emitter.py
-@@ -1195,11 +1195,6 @@
-                     raise SandboxValidationError('Path specified in LOCAL_INCLUDES '
-                         'is a filename, but a directory is required: %s '
-                         '(resolved to %s)' % (local_include, full_path), context)
--            if (full_path == context.config.topsrcdir or
--                    full_path == context.config.topobjdir):
--                raise SandboxValidationError('Path specified in LOCAL_INCLUDES '
--                    '(%s) resolves to the topsrcdir or topobjdir (%s), which is '
--                    'not allowed' % (local_include, full_path), context)
-             include_obj = LocalInclude(context, local_include)
-             local_includes.append(include_obj.path.full_path)
-             yield include_obj
-
diff --git a/srcpkgs/mozjs68/patches/002-fix-soname.patch b/srcpkgs/mozjs68/patches/002-fix-soname.patch
deleted file mode 100644
index 26cd1847929..00000000000
--- a/srcpkgs/mozjs68/patches/002-fix-soname.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-"Carried over from mozjs60"
---- a/js/src/build/Makefile.in
-+++ b/js/src/build/Makefile.in
-@@ -78,6 +78,8 @@
- endif
- ifneq (,$(SHARED_LIBRARY))
- 	$(SYSINSTALL) $(SHARED_LIBRARY) $(DESTDIR)$(libdir)
-+	mv -f $(DESTDIR)$(libdir)/$(SHARED_LIBRARY) $(DESTDIR)$(libdir)/$(SHARED_LIBRARY).0
-+	ln -s $(SHARED_LIBRARY).0 $(DESTDIR)$(libdir)/$(SHARED_LIBRARY)
- ifeq ($(OS_ARCH),Darwin)
- 	install_name_tool -id $(abspath $(libdir)/$(SHARED_LIBRARY)) $(DESTDIR)$(libdir)/$(SHARED_LIBRARY)
- endif
---- a/js/src/build/moz.build
-+++ b/js/src/build/moz.build
-@@ -25,6 +25,7 @@
- if CONFIG['JS_SHARED_LIBRARY']:
-     GeckoSharedLibrary('js', linkage=None)
-     SHARED_LIBRARY_NAME = CONFIG['JS_LIBRARY_NAME']
-+    LDFLAGS += ['-Wl,-soname,lib{}.so.0'.format(SHARED_LIBRARY_NAME)]
- 
-     # Ensure symbol versions of shared library on Linux do not conflict
-     # with those in libxul.
diff --git a/srcpkgs/mozjs68/patches/003-fix-wasm-arm.patch b/srcpkgs/mozjs68/patches/003-fix-wasm-arm.patch
deleted file mode 100644
index 891a7652056..00000000000
--- a/srcpkgs/mozjs68/patches/003-fix-wasm-arm.patch
+++ /dev/null
@@ -1,16 +0,0 @@
-"Taken from firefox-esr"
---- a/js/src/wasm/WasmSignalHandlers.cpp
-+++ b/js/src/wasm/WasmSignalHandlers.cpp
-@@ -243,9 +243,9 @@
- // If you run into compile problems on a tier-3 platform, you can disable the
- // emulation here.
- 
--#if defined(__linux__) && defined(__arm__)
--#  define WASM_EMULATE_ARM_UNALIGNED_FP_ACCESS
--#endif
-+// #if defined(__linux__) && defined(__arm__)
-+// #  define WASM_EMULATE_ARM_UNALIGNED_FP_ACCESS
-+// #endif
- 
- #ifdef WASM_EMULATE_ARM_UNALIGNED_FP_ACCESS
- #  include <sys/user.h>
diff --git a/srcpkgs/mozjs68/patches/004-fix-musl-build.patch b/srcpkgs/mozjs68/patches/004-fix-musl-build.patch
deleted file mode 100644
index f629fa2ac35..00000000000
--- a/srcpkgs/mozjs68/patches/004-fix-musl-build.patch
+++ /dev/null
@@ -1,17 +0,0 @@
-"Carried over from mozjs60"
-Upstream: No
-Reason: mozjs68 miscompiles on musl if built with HAVE_THREAD_TLS_KEYWORD:
-https://github.com/void-linux/void-packages/issues/2598
-diff --git a/js/src/old-configure.in b/js/src/old-configure.in
---- a/js/src/old-configure.in
-+++ b/js/src/old-configure.in
-@@ -1272,6 +1272,9 @@
-     *-android*|*-linuxandroid*)
-       :
-       ;;
-+    *-musl*)
-+      :
-+      ;;
-     *)
-       AC_DEFINE(HAVE_THREAD_TLS_KEYWORD)
-       ;;
diff --git a/srcpkgs/mozjs68/patches/005-spidermonkey-checks-disable.patch b/srcpkgs/mozjs68/patches/005-spidermonkey-checks-disable.patch
deleted file mode 100644
index f6eababd1f2..00000000000
--- a/srcpkgs/mozjs68/patches/005-spidermonkey-checks-disable.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-Source:Fedora
-Reason: Checks failed(Todo: Figure out why)
-+++ a/config/run_spidermonkey_checks.py
-+++ b/config/run_spidermonkey_checks.py
-@@ -11,5 +11,5 @@
-     for script in scripts:
-         retcode = subprocess.call(
-             [sys.executable, script], cwd=buildconfig.topsrcdir)
--        if retcode != 0:
--            raise Exception(script + " failed")
-+        #if retcode != 0:
-+        #    raise Exception(script + " failed")
diff --git a/srcpkgs/mozjs68/patches/006-mozjs68.pc-honor-sysroot.patch b/srcpkgs/mozjs68/patches/006-mozjs68.pc-honor-sysroot.patch
deleted file mode 100644
index 71214b8eccf..00000000000
--- a/srcpkgs/mozjs68/patches/006-mozjs68.pc-honor-sysroot.patch
+++ /dev/null
@@ -1,10 +0,0 @@
-"Carried over from mozjs60"
-Reason: Fix the '-include' directive, otherwise it tries to use the host's header
---- a/js/src/build/js.pc.in
-+++ b/js/src/build/js.pc.in
-@@ -11,4 +11,4 @@
- # Use -isystem for includes rather than -I, to mark them as "system headers"
- # that don't generate warning diagnostics. For justification, see
- # https://bugzilla.mozilla.org/show_bug.cgi?id=1539036
--Cflags: -include ${includedir}/@JS_LIBRARY_NAME@/js/RequiredDefines.h -isystem ${includedir}/@JS_LIBRARY_NAME@
-+Cflags: -include ${pc_sysrootdir}${includedir}/@JS_LIBRARY_NAME@/js/RequiredDefines.h -isystem ${includedir}/@JS_LIBRARY_NAME@
diff --git a/srcpkgs/mozjs68/patches/007-Remove-unused-LLVM-and-Rust-build-dependencies.patch b/srcpkgs/mozjs68/patches/007-Remove-unused-LLVM-and-Rust-build-dependencies.patch
deleted file mode 100644
index b1c7782adbf..00000000000
--- a/srcpkgs/mozjs68/patches/007-Remove-unused-LLVM-and-Rust-build-dependencies.patch
+++ /dev/null
@@ -1,74 +0,0 @@
-Source: openSUSE
-Upstream: No
-Description: Remove unused LLVM and Rust build dependencies
- Since the Javascript engine is normally part of Firefox, its build
- system has dependencies on the LLVM and Rust toolchains. This limits
- the number of architectures which mozjs68 can be built on.
- .
- It turns out, however, that neither LLVM nor Rust are used when mozjs68
- is being built and these build dependencies are therefore not necessary.
- .
- This patch removes them and allows mozjs68 to be built on any architecture.
- .
-Author: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
-Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=959144
-Forwarded: no
-Last-Update: 2020-04-30
-
-Index: js/moz.configure
-===================================================================
---- a/js/moz.configure
-+++ a/js/moz.configure
-@@ -18,11 +18,6 @@ def building_js(build_project):
- option(env='JS_STANDALONE', default=building_js,
-        help='Reserved for internal use')
- 
--include('../build/moz.configure/rust.configure',
--        when='--enable-compile-environment')
--include('../build/moz.configure/bindgen.configure',
--        when='--enable-compile-environment')
--
- @depends('JS_STANDALONE')
- def js_standalone(value):
-     if value:
-Index: moz.configure
-===================================================================
---- a/moz.configure
-+++ b/moz.configure
-@@ -598,36 +598,6 @@ set_config('MAKENSISU_FLAGS', nsis_flags
- 
- check_prog('7Z', ('7z', '7za'), allow_missing=True, when=target_is_windows)
- 
--
--@depends(host_c_compiler, c_compiler, bindgen_config_paths)
--def llvm_objdump(host_c_compiler, c_compiler, bindgen_config_paths):
--    clang = None
--    for compiler in (host_c_compiler, c_compiler):
--        if compiler and compiler.type == 'clang':
--            clang = compiler.compiler
--            break
--        elif compiler and compiler.type == 'clang-cl':
--            clang = os.path.join(os.path.dirname(compiler.compiler), 'clang')
--            break
--
--    if not clang and bindgen_config_paths:
--        clang = bindgen_config_paths.clang_path
--    llvm_objdump = 'llvm-objdump'
--    if clang:
--        out = check_cmd_output(clang, '--print-prog-name=llvm-objdump',
--                               onerror=lambda: None)
--        if out:
--            llvm_objdump = out.rstrip()
--    return (llvm_objdump,)
--
--
--llvm_objdump = check_prog('LLVM_OBJDUMP', llvm_objdump, what='llvm-objdump',
--                          when='--enable-compile-environment',
--                          paths=toolchain_search_path)
--
--add_old_configure_assignment('LLVM_OBJDUMP', llvm_objdump)
--
--
- # Please do not add configure checks from here on.
- 
- # Fallthrough to autoconf-based configure
diff --git a/srcpkgs/mozjs68/patches/008-fix-mips32-inl.patch b/srcpkgs/mozjs68/patches/008-fix-mips32-inl.patch
deleted file mode 100644
index 9c964e35299..00000000000
--- a/srcpkgs/mozjs68/patches/008-fix-mips32-inl.patch
+++ /dev/null
@@ -1,53 +0,0 @@
-From: qiaopengcheng <qiaopengcheng-hf@loongson.cn>
-Date: Sun, 2 Jun 2019 07:28:24 +0900
-Subject: Bug 1556197 - amend Bug-1544631 for fixing mips32.
-
----
- js/src/jit/mips32/MacroAssembler-mips32-inl.h | 10 +++++++---
- 1 file changed, 7 insertions(+), 3 deletions(-)
-
-diff --git a/js/src/jit/mips32/MacroAssembler-mips32-inl.h b/js/src/jit/mips32/MacroAssembler-mips32-inl.h
-index 1f7f4d1cf31..06d8773e92a 100644
---- a/js/src/jit/mips32/MacroAssembler-mips32-inl.h
-+++ b/js/src/jit/mips32/MacroAssembler-mips32-inl.h
-@@ -69,6 +69,15 @@
- }
- 
- // ===============================================================
-+// Load instructions
-+
-+void MacroAssembler::load32SignExtendToPtr(const Address& src, Register dest) {
-+  loadPtr(src, dest);
-+}
-+
-+// ===============================================================
-+
-+// ===============================================================
- // Logical instructions
- 
- void MacroAssembler::andPtr(Register src, Register dest) { ma_and(dest, src); }
-@@ -820,19 +820,21 @@ void MacroAssembler::branchTestSymbol(Condition cond, const ValueOperand& value,
- 
- void MacroAssembler::branchTestBigInt(Condition cond, Register tag,
-                                       Label* label) {
--  branchTestBigIntImpl(cond, tag, label);
-+  MOZ_ASSERT(cond == Equal || cond == NotEqual);
-+  ma_b(tag, ImmTag(JSVAL_TAG_BIGINT), label, cond);
- }
- 
- void MacroAssembler::branchTestBigInt(Condition cond, const BaseIndex& address,
-                                       Label* label) {
-   SecondScratchRegisterScope scratch2(*this);
--  splitTag(value, scratch2);
-+  computeEffectiveAddress(address, scratch2);
-   branchTestBigInt(cond, scratch2, label);
- }
- 
- void MacroAssembler::branchTestBigInt(Condition cond, const ValueOperand& value,
-                                       Label* label) {
--  branchTestBigInt(cond, value.typeReg(), label);
-+  SecondScratchRegisterScope scratch2(*this);
-+  branchTestBigInt(cond, scratch2, label);
- }
- 
- void MacroAssembler::branchTestBigIntTruthy(bool b, const ValueOperand& value,
diff --git a/srcpkgs/mozjs68/patches/009-fix-mips-sgidefs_h.patch b/srcpkgs/mozjs68/patches/009-fix-mips-sgidefs_h.patch
deleted file mode 100644
index abb140233a0..00000000000
--- a/srcpkgs/mozjs68/patches/009-fix-mips-sgidefs_h.patch
+++ /dev/null
@@ -1,11 +0,0 @@
---- a/mfbt/RandomNum.cpp	2020-04-29 23:49:40.000000000 +0200
-+++ b/mfbt/RandomNum.cpp	2020-08-04 19:29:36.127471301 +0200
-@@ -52,7 +52,7 @@
- #  elif defined(__s390__)
- #    define GETRANDOM_NR 349
- #  elif defined(__mips__)
--#    include <sgidefs.h>
-+#    include <asm/sgidefs.h>
- #    if _MIPS_SIM == _MIPS_SIM_ABI32
- #      define GETRANDOM_NR 4353
- #    elif _MIPS_SIM == _MIPS_SIM_ABI64
diff --git a/srcpkgs/mozjs68/template b/srcpkgs/mozjs68/template
deleted file mode 100644
index 80345a9ea9e..00000000000
--- a/srcpkgs/mozjs68/template
+++ /dev/null
@@ -1,71 +0,0 @@
-# Template file for 'mozjs68'
-pkgname=mozjs68
-version=68.11.0
-revision=1
-wrksrc="firefox-${version}"
-build_wrksrc=js/src
-build_style=gnu-configure
-hostmakedepends="perl python pkg-config automake autoconf213 autoconf-archive
- which python3"
-makedepends="icu-devel libffi-devel nspr-devel python-devel readline-devel zlib-devel
- python3-devel"
-depends="nspr>=4.19"
-short_desc="Mozilla JavaScript interpreter and library (68.x series)"
-maintainer="Enno Boland <gottox@voidlinux.org>"
-license="MPL-2.0"
-homepage="https://www.mozilla.org/js/"
-distfiles="${MOZILLA_SITE}/firefox/releases/${version}esr/source/firefox-${version}esr.source.tar.xz"
-checksum=91c1f7caaf1ba785b74799865227456bf784ba614d17cf5f0f41a5f25d6d2160
-patch_args="-Np1"
-CXXFLAGS="-Wno-class-memaccess"
-LDFLAGS+=" -Wl,-z,stack-size=1048576"
-
-if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
-	makedepends+=" libatomic-devel"
-	LDFLAGS+=" -latomic"
-fi
-
-do_configure() {
-	local _args
-
-	if [ "$CROSS_BUILD" ]; then
-		export HOST_CC=cc
-		export TARGET_CC="${CC}"
-		export HOST_CFLAGS="-Os"
-		export HOST_CXXFLAGS="-Os"
-		_args+=" --target=$XBPS_CROSS_TRIPLET --enable-linker=bfd"
-	fi
-
-	autoconf-2.13 old-configure.in > old-configure
-
-	touch ${wrksrc}/js/src/configure
-	touch ${wrksrc}/js/src/old-configure
-	SHELL=/bin/bash PYTHON=/usr/bin/python2 ./configure --prefix=/usr \
-		--disable-jemalloc --disable-optimize --enable-ctypes \
-		--enable-readline --enable-shared-js --enable-system-ffi \
-		--enable-tests --with-intl-api --with-system-icu --with-system-nspr \
-		--enable-unaligned-private-values  --enable-hardening \
-		--enable-release --with-system-zlib --target=${XBPS_TRIPLET} \
-		--host=${XBPS_TRIPLET} \
-		${_args}
-}
-
-do_check() {
-	dist/bin/jsapi-tests --format=none --exclude-random basic
-}
-
-post_install() {
-	# Remove unneeded static library
-	rm -f "${DESTDIR}"/usr/lib/*.ajs
-}
-
-mozjs68-devel_package() {
-	depends="nspr-devel ${sourcepkg}>=${version}_${revision}"
-	short_desc+=" - development files"
-	pkg_install() {
-		vmove usr/bin/js68-config
-		vmove usr/include
-		vmove "usr/lib/*.so"
-		vmove usr/lib/pkgconfig
-	}
-}
diff --git a/srcpkgs/mozjs68/update b/srcpkgs/mozjs68/update
deleted file mode 100644
index 1947e19217f..00000000000
--- a/srcpkgs/mozjs68/update
+++ /dev/null
@@ -1 +0,0 @@
-pkgname='mozjs'
diff --git a/srcpkgs/removed-packages/template b/srcpkgs/removed-packages/template
index 3573d109529..dd1e5cadb97 100644
--- a/srcpkgs/removed-packages/template
+++ b/srcpkgs/removed-packages/template
@@ -55,6 +55,7 @@ replaces="
  mirrorbits<=0.5.1_1
  mongroup<=0.4.1_2
  mozjs52<=52.9.0_7
+ mozjs68<=68.11.0_1
  phonon-backend-gstreamer<=4.9.0_2
  phonon-backend-vlc<=0.9.1_3
  polkit-qt<=0.112.0_5

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

* Re: Remove js (mozjs185), mozjs68 and couchdb
  2021-01-24 21:50 [PR PATCH] Remove js (mozjs185), mozjs68 and couchdb ericonr
  2021-01-25 13:36 ` [PR PATCH] [Updated] " ericonr
@ 2021-01-27 18:17 ` arete
  2021-01-27 18:30 ` ericonr
  2021-01-27 18:30 ` [PR PATCH] [Merged]: " ericonr
  3 siblings, 0 replies; 5+ messages in thread
From: arete @ 2021-01-27 18:17 UTC (permalink / raw)
  To: ml

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

New comment by arete on void-packages repository

https://github.com/void-linux/void-packages/pull/28201#issuecomment-768477400

Comment:
hi, i approve this pull request, for now not have an working update for
this package.
regards

Il Dom 24 Gen 2021, 22:50 Érico Nogueira Rolim <notifications@github.com>
ha scritto:

> couchdb has been broken for a long time and is on an old version. I don't
> think keeping js because of it makes sense, so removinf the entire
> package.
>
> @arete <https://github.com/arete> if you want to fix the package, feel
> free to make a PR, then I will remove the removal from here.
> ------------------------------
> You can view, comment on, or merge this pull request online at:
>
>   https://github.com/void-linux/void-packages/pull/28201
> Commit Summary
>
>    - couchdb: remove package.
>    - js: remove package.
>    - mozjs68: remove package.
>
> File Changes
>
>    - *M* common/shlibs
>    <https://github.com/void-linux/void-packages/pull/28201/files#diff-f912b4c5a3d820d164f4a52e610d0287d7b0afdf40b5810d722908c10f14dc56>
>    (2)
>    - *D* srcpkgs/couchdb/INSTALL
>    <https://github.com/void-linux/void-packages/pull/28201/files#diff-68041831e385e09fd5c7705a53f821dd4d2093bd54e4df6d7a2d8ac4aff9841a>
>    (6)
>    - *D* srcpkgs/couchdb/files/couchdb/run
>    <https://github.com/void-linux/void-packages/pull/28201/files#diff-0c606a2aa8d4625efbc83d0c519af28217f35cda64dcf39e420c9d74c2ed821f>
>    (6)
>    - *D* srcpkgs/couchdb/template
>    <https://github.com/void-linux/void-packages/pull/28201/files#diff-b03b51ade22c278f86389e4ee3c4c9708d333bebdd6af80e7eb09f6f74049410>
>    (40)
>    - *D* srcpkgs/couchdb/update
>    <https://github.com/void-linux/void-packages/pull/28201/files#diff-a56b856d6d01da4852283d4c498bb92943be344dfdc27f931d9947d21b2fed32>
>    (1)
>    - *D* srcpkgs/js-devel
>    <https://github.com/void-linux/void-packages/pull/28201/files#diff-d41833b5d2f793fb3975987f510d1817bf3d2ffedf7aca9403259eae304d1e12>
>    (1)
>    - *D* srcpkgs/js/patches/js185-destdir.patch
>    <https://github.com/void-linux/void-packages/pull/28201/files#diff-938cecd0b50c10fb2fabe7596ba819ba272565fd12cca459265eeb7abc17b730>
>    (15)
>    - *D* srcpkgs/js/patches/js185-gcc6.patch
>    <https://github.com/void-linux/void-packages/pull/28201/files#diff-3288d6abe22d6251acec1108b1364a4a58781ea97086eb54de71b26fd7d3bdae>
>    (135)
>    - *D* srcpkgs/js/template
>    <https://github.com/void-linux/void-packages/pull/28201/files#diff-c1bf911469d3cb339e066d12e98087d5c1d65dd8880a261ab4e10aade54ae6df>
>    (57)
>    - *D* srcpkgs/js/update
>    <https://github.com/void-linux/void-packages/pull/28201/files#diff-5b37f3aff44cf8f306c4ee833b195339671684bce6ee1d82a05e95c83a3fb17c>
>    (1)
>    - *D* srcpkgs/mozjs68-devel
>    <https://github.com/void-linux/void-packages/pull/28201/files#diff-41a9513143947502c8b4e097e7e0d78fb1e9376b9e79507808d81d5fb870036c>
>    (1)
>    - *D* srcpkgs/mozjs68/patches/001-silence-sandbox-violations.patch
>    <https://github.com/void-linux/void-packages/pull/28201/files#diff-e166d40dfba69a915bd2e7f03611cdd5e47c1a4dc9927ac443a2c4256332ebfc>
>    (27)
>    - *D* srcpkgs/mozjs68/patches/002-fix-soname.patch
>    <https://github.com/void-linux/void-packages/pull/28201/files#diff-f578c7c8190f9f0dfad76a6045684d2666acecda8020ebea1ae78edf1ecd0b5b>
>    (22)
>    - *D* srcpkgs/mozjs68/patches/003-fix-wasm-arm.patch
>    <https://github.com/void-linux/void-packages/pull/28201/files#diff-44881677e82282472a70d6ac8d65ece65708bf654e7e004db1686b8e068dbd97>
>    (16)
>    - *D* srcpkgs/mozjs68/patches/004-fix-musl-build.patch
>    <https://github.com/void-linux/void-packages/pull/28201/files#diff-ecb14be5c072d3d00a1e4ac31fd5d5a6c5b347778ee60c31aab8fbb97833cde8>
>    (17)
>    - *D* srcpkgs/mozjs68/patches/005-spidermonkey-checks-disable.patch
>    <https://github.com/void-linux/void-packages/pull/28201/files#diff-6d16d49a9e19b2fd3bb902161737a1b4f552b7a848ae0bea65caa2ba54d47656>
>    (12)
>    - *D* srcpkgs/mozjs68/patches/006-mozjs68.pc-honor-sysroot.patch
>    <https://github.com/void-linux/void-packages/pull/28201/files#diff-d57efb22650833b201765d9680a22bf95fa5c98c019a68e5be75b10ac2d73d8b>
>    (10)
>    - *D*
>    srcpkgs/mozjs68/patches/007-Remove-unused-LLVM-and-Rust-build-dependencies.patch
>    <https://github.com/void-linux/void-packages/pull/28201/files#diff-643f50ae843f259443a33c8c73cc989e8d443a99703424b44cf516b59f016f7d>
>    (74)
>    - *D* srcpkgs/mozjs68/patches/008-fix-mips32-inl.patch
>    <https://github.com/void-linux/void-packages/pull/28201/files#diff-e3c4e8c619acc8c6965ee2702714d6a4022ee933daceb658f0bec920a59b42cf>
>    (53)
>    - *D* srcpkgs/mozjs68/patches/009-fix-mips-sgidefs_h.patch
>    <https://github.com/void-linux/void-packages/pull/28201/files#diff-7b92c3ebee8f512a470279ca20b9d73174ca871baa6ace23dc8cccf02492e6ad>
>    (11)
>    - *D* srcpkgs/mozjs68/template
>    <https://github.com/void-linux/void-packages/pull/28201/files#diff-f761c5e111ec868261f80252ffca247500a3b5286adea976e88d5f8d8cb59e5c>
>    (71)
>    - *D* srcpkgs/mozjs68/update
>    <https://github.com/void-linux/void-packages/pull/28201/files#diff-b887cee73c647f59425cc73c700088da12ac6dbe82968d43f41ded08868c90ec>
>    (1)
>    - *M* srcpkgs/removed-packages/template
>    <https://github.com/void-linux/void-packages/pull/28201/files#diff-7786ff29547b282d75c6f9dc830a8af689bd57c8a2083a9de06c98bc0b6a7b01>
>    (3)
>
> Patch Links:
>
>    - https://github.com/void-linux/void-packages/pull/28201.patch
>    - https://github.com/void-linux/void-packages/pull/28201.diff
>
> —
> You are receiving this because you were mentioned.
> Reply to this email directly, view it on GitHub
> <https://github.com/void-linux/void-packages/pull/28201>, or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AAAAY7LRNAOVJMHKJ2FPQ7DS3SI2HANCNFSM4WQ3U4RQ>
> .
>


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

* Re: Remove js (mozjs185), mozjs68 and couchdb
  2021-01-24 21:50 [PR PATCH] Remove js (mozjs185), mozjs68 and couchdb ericonr
  2021-01-25 13:36 ` [PR PATCH] [Updated] " ericonr
  2021-01-27 18:17 ` arete
@ 2021-01-27 18:30 ` ericonr
  2021-01-27 18:30 ` [PR PATCH] [Merged]: " ericonr
  3 siblings, 0 replies; 5+ messages in thread
From: ericonr @ 2021-01-27 18:30 UTC (permalink / raw)
  To: ml

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

New comment by ericonr on void-packages repository

https://github.com/void-linux/void-packages/pull/28201#issuecomment-768484909

Comment:
Thansks

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

* Re: [PR PATCH] [Merged]: Remove js (mozjs185), mozjs68 and couchdb
  2021-01-24 21:50 [PR PATCH] Remove js (mozjs185), mozjs68 and couchdb ericonr
                   ` (2 preceding siblings ...)
  2021-01-27 18:30 ` ericonr
@ 2021-01-27 18:30 ` ericonr
  3 siblings, 0 replies; 5+ messages in thread
From: ericonr @ 2021-01-27 18:30 UTC (permalink / raw)
  To: ml

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

There's a merged pull request on the void-packages repository

Remove js (mozjs185), mozjs68 and couchdb
https://github.com/void-linux/void-packages/pull/28201

Description:
<!-- Mark items with [x] where applicable -->

couchdb has been broken for a long time and is on an old version. I don't think keeping `js` because of it makes sense, so removinf the entire package.

@arete if you want to fix the package, feel free to make a PR, then I will remove the removal from here.

<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!-- 
#### Does it build and run successfully? 
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
  - [ ] aarch64-musl
  - [ ] armv7l
  - [ ] armv6l-musl
-->


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

end of thread, other threads:[~2021-01-27 18:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-24 21:50 [PR PATCH] Remove js (mozjs185), mozjs68 and couchdb ericonr
2021-01-25 13:36 ` [PR PATCH] [Updated] " ericonr
2021-01-27 18:17 ` arete
2021-01-27 18:30 ` ericonr
2021-01-27 18:30 ` [PR PATCH] [Merged]: " ericonr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).