public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-lang/mujs/
Date: Sat, 24 Dec 2022 07:42:49 +0000 (UTC)	[thread overview]
Message-ID: <1671867696.a16e4047b368d6f7f61b9551290192af202aa846.sam@gentoo> (raw)

commit:     a16e4047b368d6f7f61b9551290192af202aa846
Author:     Philipp Rösner <rndxelement <AT> protonmail <DOT> com>
AuthorDate: Thu Dec 15 22:27:01 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> 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 <rndxelement <AT> protonmail.com>
Closes: https://github.com/gentoo/gentoo/pull/28677
Signed-off-by: Sam James <sam <AT> 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})
+}


             reply	other threads:[~2022-12-24  7:42 UTC|newest]

Thread overview: 155+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-24  7:42 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-08-30  7:59 [gentoo-commits] repo/gentoo:master commit in: dev-lang/mujs/ Sam James
2024-08-20  5:08 Joonas Niilola
2024-08-20  5:08 Joonas Niilola
2024-08-19 19:23 Sam James
2024-08-19 19:23 Sam James
2024-08-19 19:22 Sam James
2024-08-19 19:22 Sam James
2024-07-20  6:42 Joonas Niilola
2024-07-20  6:42 Joonas Niilola
2024-03-13  6:26 Arthur Zamarin
2024-03-12 21:13 Arthur Zamarin
2024-03-12 20:42 Arthur Zamarin
2024-03-12 19:29 Arthur Zamarin
2024-03-12 19:29 Arthur Zamarin
2024-03-12 19:29 Arthur Zamarin
2024-03-12 19:29 Arthur Zamarin
2024-01-20 12:04 Sam James
2023-05-29 20:34 Sam James
2023-05-29 17:49 Arthur Zamarin
2023-05-29 14:28 Sam James
2023-05-29 14:28 Sam James
2023-05-29 14:28 Sam James
2023-05-29 14:28 Sam James
2023-05-29 14:22 Sam James
2023-03-19 17:36 Arthur Zamarin
2023-01-09 12:51 Joonas Niilola
2023-01-06 22:23 Sam James
2023-01-06 22:23 Sam James
2023-01-06 21:51 Sam James
2023-01-06 21:51 Sam James
2023-01-06 21:51 Sam James
2023-01-06 21:51 Sam James
2023-01-06 21:51 Sam James
2022-11-12  6:12 WANG Xuerui
2022-11-03  2:05 WANG Xuerui
2022-11-02 14:24 Joonas Niilola
2022-11-02 14:24 Joonas Niilola
2022-01-28 19:13 Arthur Zamarin
2022-01-28 18:45 Arthur Zamarin
2022-01-28  9:34 Agostino Sarubbo
2022-01-28  9:33 Agostino Sarubbo
2022-01-28  9:30 Agostino Sarubbo
2022-01-28  2:34 Sam James
2022-01-28  2:34 Sam James
2021-12-29  1:59 Sam James
2021-12-29  1:58 Sam James
2021-12-25 19:48 Sam James
2021-12-25 19:48 Sam James
2021-12-17  0:40 Sam James
2021-07-19 14:24 Yixun Lan
2021-07-16 21:44 Sam James
2021-07-13 20:05 Sam James
2021-07-13 20:05 Sam James
2021-07-13  6:28 Agostino Sarubbo
2021-07-13  0:05 Sam James
2021-07-13  0:05 Sam James
2021-07-13  0:05 Sam James
2021-06-10 19:23 Sam James
2021-05-31 11:40 Sam James
2021-05-29  8:53 Agostino Sarubbo
2021-05-29  8:43 Agostino Sarubbo
2021-05-29  8:41 Agostino Sarubbo
2021-05-29  6:13 Sam James
2021-05-29  6:13 Sam James
2021-05-29  6:13 Sam James
2021-05-03 20:20 Sam James
2021-04-28 18:47 Sam James
2021-04-20 15:02 Sam James
2021-04-20 15:02 Sam James
2021-04-14 22:03 Sam James
2021-03-28 12:52 Sam James
2021-03-26 11:50 Agostino Sarubbo
2021-03-25 21:29 Sam James
2021-03-25 16:27 Agostino Sarubbo
2021-03-24 19:42 Sam James
2021-03-23  4:53 Sam James
2021-03-23  4:04 Sam James
2021-03-23  4:04 Sam James
2021-03-23  4:04 Sam James
2021-03-17  1:44 Sam James
2021-02-05 10:37 Sam James
2020-12-21 22:41 Sam James
2020-12-20  6:29 Sam James
2020-11-17 19:05 Agostino Sarubbo
2020-11-01 14:22 Sam James
2020-10-28 22:34 Sam James
2020-10-26  7:29 Sergei Trofimovich
2020-10-25 23:24 Sam James
2020-10-25 23:08 Thomas Deutschmann
2020-10-25 22:13 Sam James
2020-10-24 17:46 Sergei Trofimovich
2020-10-24 11:08 Sergei Trofimovich
2020-10-24 11:03 Sergei Trofimovich
2020-10-13 23:21 Sam James
2020-09-04 15:55 Sam James
2020-09-01 20:54 Sam James
2020-08-29 17:57 Thomas Deutschmann
2020-08-28 22:21 Sergei Trofimovich
2020-08-25 12:56 Sam James
2020-08-25  0:41 Sam James
2020-06-26 20:45 Thomas Deutschmann
2020-06-26 20:45 Thomas Deutschmann
2020-06-26 20:45 Thomas Deutschmann
2020-04-27 17:08 Sergei Trofimovich
2020-04-26 15:33 Agostino Sarubbo
2020-04-26 15:32 Agostino Sarubbo
2020-04-26 15:31 Agostino Sarubbo
2020-04-26 15:30 Agostino Sarubbo
2020-04-26 15:29 Agostino Sarubbo
2020-04-26 14:19 Agostino Sarubbo
2020-04-26 14:16 Agostino Sarubbo
2019-08-11  9:07 Sergei Trofimovich
2019-07-05 19:05 Virgil Dupras
2019-06-02 11:53 Virgil Dupras
2019-05-17  2:47 Aaron Bauman
2019-02-12 12:12 Mikle Kolyada
2019-02-12 12:12 Mikle Kolyada
2019-01-31 14:23 Tobias Klausmann
2019-01-21  1:19 Virgil Dupras
2019-01-17 22:41 Sergei Trofimovich
2019-01-17  8:29 Sergei Trofimovich
2019-01-17  8:08 Sergei Trofimovich
2019-01-15 22:10 Thomas Deutschmann
2019-01-13  9:43 Sergei Trofimovich
2019-01-12 23:57 Sergei Trofimovich
2019-01-12 14:23 Virgil Dupras
2019-01-12 14:02 Virgil Dupras
2019-01-05 17:19 Mikle Kolyada
2018-11-17 15:08 Mikle Kolyada
2018-10-30  0:11 Virgil Dupras
2018-10-14  9:14 Sergei Trofimovich
2018-10-14  8:59 Sergei Trofimovich
2018-10-13 16:14 Sergei Trofimovich
2018-10-13  6:56 Tobias Klausmann
2018-10-12 19:08 Sergei Trofimovich
2018-10-11 19:51 Agostino Sarubbo
2018-10-09 21:24 Thomas Deutschmann
2018-10-07  2:15 Virgil Dupras
2017-09-16 12:10 Jeroen Roovers
2017-06-30  7:39 Alexis Ballier
2017-05-24 13:27 Michał Górny
2017-05-23 13:36 Tobias Klausmann
2017-02-22 11:45 Michael Weber
2017-02-05 16:57 Markus Meier
2017-01-23  8:24 Michael Weber
2017-01-23  1:25 Michael Weber
2017-01-12  9:30 Jeroen Roovers
2017-01-10 14:56 Agostino Sarubbo
2017-01-04 12:34 David Seifert
2016-10-30  8:17 Pacho Ramos
2016-06-13 20:51 Michael Weber
2016-05-30 20:11 Michael Weber
2016-04-29  5:57 Jeroen Roovers
2016-04-10  8:45 Jeroen Roovers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1671867696.a16e4047b368d6f7f61b9551290192af202aa846.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox