From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 20615158021 for ; Sat, 24 Dec 2022 07:42:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6FC8BE0871; Sat, 24 Dec 2022 07:42:51 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 5981AE0871 for ; Sat, 24 Dec 2022 07:42:51 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8DF0E340E62 for ; Sat, 24 Dec 2022 07:42:50 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 12F367D3 for ; Sat, 24 Dec 2022 07:42:49 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1671867696.a16e4047b368d6f7f61b9551290192af202aa846.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/mujs/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-lang/mujs/Manifest dev-lang/mujs/mujs-1.3.2.ebuild X-VCS-Directories: dev-lang/mujs/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: a16e4047b368d6f7f61b9551290192af202aa846 X-VCS-Branch: master Date: Sat, 24 Dec 2022 07:42:49 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 7570a067-b666-4f4f-9d80-2ac557fd3463 X-Archives-Hash: 936db124eee1459b649b1e8dda7f012d commit: a16e4047b368d6f7f61b9551290192af202aa846 Author: Philipp Rösner protonmail com> AuthorDate: Thu Dec 15 22:27:01 2022 +0000 Commit: Sam James gentoo org> CommitDate: Sat Dec 24 07:41:36 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a16e4047 dev-lang/mujs: add 1.3.2 Add patch release mujs-1.3.2: - fixes UAF bug - fixes iterator bug Bug: https://bugs.gentoo.org/882775 Signed-off-by: Philipp Rösner protonmail.com> Closes: https://github.com/gentoo/gentoo/pull/28677 Signed-off-by: Sam James gentoo.org> dev-lang/mujs/Manifest | 1 + dev-lang/mujs/mujs-1.3.2.ebuild | 61 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) diff --git a/dev-lang/mujs/Manifest b/dev-lang/mujs/Manifest index de14df1ba808..8d5329431ea0 100644 --- a/dev-lang/mujs/Manifest +++ b/dev-lang/mujs/Manifest @@ -1,2 +1,3 @@ DIST mujs-1.2.0.tar.xz 99108 BLAKE2B 3661fb56a3c316f529251e93b50e18ae1835077af10d5fb636e92e77a766fb63410af0f61ffca6e6c12d6c5c984548d4e36ccee03ead44835493c0c28ef610a9 SHA512 04cc246091bf878aadfa2382ef46c8c42cd04924d9459558016f27474ae3ebca7fc7a0fda7b4efee1bd668b8b051030a2e1f9f40722cb547700c7f84857f4071 DIST mujs-1.3.0.tar.gz 127929 BLAKE2B 589dbe16b05b3b0b59a551d162edcc4d3ba7d3623de5646cd87640c6f3ee1b7e2765909c4a0fdc0457022a8575daeeefe8efb4c3c7d2a5d900101e60406362a9 SHA512 1e9590892b1a0b139f8959a64e4255f5695c8e2dca355858155275628345ac3bb4168779dc6115bd6ac62b8615932762d3f348a1c6d0ee8d56cb43a863c4e0c3 +DIST mujs-1.3.2.tar.gz 127899 BLAKE2B 4de5e1e60c5d6af9a20d8bb1fe2612d6c90a6b5557a66524bf81747e893a89a88b4da7e5393325923c6eb0788679da4013f25032cad23e547f15a1d49cf0a738 SHA512 ccffb04171f7ecec2cfa6f0e59859acc911836370a648e4c6703db174631ce316413a64ebf4b32eea3d3b09221ff01861cda91f4b1b9bebf495168f26f90daf5 diff --git a/dev-lang/mujs/mujs-1.3.2.ebuild b/dev-lang/mujs/mujs-1.3.2.ebuild new file mode 100644 index 000000000000..267cf273a319 --- /dev/null +++ b/dev-lang/mujs/mujs-1.3.2.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic multilib toolchain-funcs + +DESCRIPTION="An embeddable JavaScript interpreter written in C" +HOMEPAGE="https://mujs.com/ https://github.com/ccxvii/mujs" +SRC_URI="https://mujs.com/downloads/${P}.tar.gz" + +LICENSE="ISC" +# The subslot matches the SONAME +SLOT="0/${PV}" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos" + +RDEPEND="sys-libs/readline:=" +DEPEND="${RDEPEND}" + +PATCHES=( + "${FILESDIR}"/${PN}-1.1.1-flags.patch +) + +src_prepare() { + default + + tc-export AR CC + + append-cflags -fPIC + + # The library's ABI (and API) might change in new releases + # Diff 'usr/include/mujs.h' across releases to validate + if [[ ${CHOST} == *-darwin* ]] ; then + append-cflags -Wl,-install_name,"${EPREFIX}"/usr/$(get_libdir)/lib${PN}.${PV}.dylib + else + append-cflags -Wl,-soname=lib${PN}.so.${PV} + fi +} + +src_compile() { + # We need to use ${PV} for the pkgconfig file, see: #784461 + emake \ + VERSION=${PV} \ + XCFLAGS="${CFLAGS}" \ + XCPPFLAGS="${CPPFLAGS}" \ + prefix=/usr \ + shell shared +} + +src_install() { + emake \ + DESTDIR="${ED}" \ + VERSION=${PV} \ + libdir="/usr/$(get_libdir)" \ + prefix=/usr \ + install-shared + + mv -v "${ED}"/usr/$(get_libdir)/lib${PN}$(get_libname) "${ED}"/usr/$(get_libdir)/lib${PN}$(get_libname ${PV}) || die "Failed adding version suffix to mujs shared library" + dosym lib${PN}$(get_libname ${PV}) /usr/$(get_libdir)/lib${PN}$(get_libname) + dosym lib${PN}$(get_libname ${PV}) /usr/$(get_libdir)/lib${PN}$(get_libname ${PV:0:1}) +}