mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-08 14:43:27 -04:00
dev-lang/quickjs: drop 2024.01.13-r1 (security)
Fixes the following CVEs: CVE-2025-46688 CVE-2025-62490 CVE-2025-62491 CVE-2025-62492 CVE-2025-62493 CVE-2025-62494 CVE-2025-62495 CVE-2025-62496 CVE List found via https://repology.org/project/quickjs/cves?version=2024.01.13 Signed-off-by: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST quickjs-2024-01-13.tar.xz 765800 BLAKE2B 6d65d9ae19ef816a7e4784821d138d2be9965bbbea42c11f13adc0560dc6d67db9cd75c367680a5caec34182a320819127fc0d0c95c10fcf441161ca7880d5aa SHA512 9f426404e4dc1e2a41fcc235b72e58708041aed24eadd5fb9e82f62435501003d3a6b04831f307b04852551d2fd265b94cd400b3293ec0810465f52de8a6c057
|
||||
DIST quickjs-2025-09-13-2.tar.xz 596244 BLAKE2B da4bdb04e87a3f6086287e352e878e9f5b78034feda5687f7e191a549a4e2e7a0aa54ce89dd25b99eb685ff83db5898021a314f05ca20830c99f59379c413c3e SHA512 ea20d9ce8b6e09e58f1c3dc51086cd23c1ca18de7b5711bbd88e86dbbba2589b950acd22003e33fbed94dd4ec3e1828e6af5342ea9c62024cce7ca11eca1029c
|
||||
|
||||
@@ -1,54 +0,0 @@
|
||||
# Copyright 2021-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
inherit toolchain-funcs
|
||||
|
||||
MY_P="${PN}-${PV//./-}"
|
||||
|
||||
DESCRIPTION="Small embeddable Javascript engine"
|
||||
HOMEPAGE="https://bellard.org/quickjs/"
|
||||
SRC_URI="https://bellard.org/quickjs/${MY_P}.tar.xz"
|
||||
S="${WORKDIR}/${MY_P}"
|
||||
LICENSE="MIT"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="lto static-libs"
|
||||
|
||||
PATCHES=(
|
||||
"${FILESDIR}/quickjs-2020.11.08_Remove-TTY-check-in-test.patch"
|
||||
"${FILESDIR}/quickjs-2024-01-13-sharedlib.patch"
|
||||
"${FILESDIR}/quickjs-2024-01-13-respect-env.patch"
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
# Changed in master
|
||||
sed -i '/^CONFIG_LTO=/s;^;#;' Makefile || die
|
||||
|
||||
default
|
||||
|
||||
sed -i '/$(STRIP) .*/d' Makefile || die "Failed removing STRIP call"
|
||||
|
||||
sed -Ei '/^\s*(CC|AR)=/d' Makefile \
|
||||
|| die "Failed to remove hard-coded tools."
|
||||
|
||||
sed -i 's;$(PREFIX)/lib;$(LIBDIR);' Makefile || die "Failed fixing libdir"
|
||||
|
||||
if ! use static-libs; then
|
||||
sed -i '/install -m644 libquickjs.a "$(DESTDIR)$(LIBDIR)\/quickjs"/d' Makefile || die "Failed fixing static-libs"
|
||||
fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
export CC="$(tc-getCC)"
|
||||
export AR="$(tc-getAR)"
|
||||
|
||||
export PREFIX=/usr
|
||||
export LIBDIR="/usr/$(get_libdir)"
|
||||
|
||||
export CONFIG_LTO=$(use lto)
|
||||
if ! use static-libs; then
|
||||
export CONFIG_SHARED=y
|
||||
fi
|
||||
}
|
||||
Reference in New Issue
Block a user