Re: [gentoo-dev] TeX Live 2023 stabilization imminent
On 2024-06-09 13:00, Florian Schmaus wrote: After many months of work, the stabilization of TeX Live 2023 is imminent. I would first like to thank everyone who contributed, reported bugs, and helped to make this happen. Special thanks goes to negril for providing the initial prototype ebuilds that helped to get this going. TeX Live 2023 got a major overhaul and new tooling. User-facing highlights include - all binlinks and binscripts are now properly installed and in PATH - all manpages are now installed (due to upstream's design, only if USE=doc) - tlmgr is now available (but forced into user mode, as done by other distributions) - the tlpdb is dynamically created, texdoc works (if USE=doc) While I do not have any reason to believe that there are remaining issues lurking in TeX Live 2023, I would like to use this as opportunity to encourage advanced users to switch to TeX Live 2023 right now. Please report issues that come up. The re-keywording of TeX Live 2023 is ongoing in https://bugs.gentoo.org/932752. Unfortunately two stable arches are lacking: arm and hppa. It would be great If the respective arch teams could prioritize the keywording. Otherwise, the arches may missing out on the upcoming stabilization request. - Flow Hi Flow, I went ahead and started reviewing this bug for the remaining arches. However when I ran it, I discovered that tests do not seem to run on the 2023 version, where they were previously being run on the 2021 version. In particular, I was trying to identify if https://bugs.gentoo.org/802672 was still present or not. Are there any extra steps needed in order to get tests to run on the 2023 version? If this could be looked at I can definitely get the remaining arches keyworded.
Re: [gentoo-dev] media-video/mpv removed USE flag
On 2023-11-21 18:33, stefan1@shitposting.expert wrote: I've noticed that on my last @world update, mpv's libplacebo USE flag got removed and portage pulled in libplacebo. Was there any reason behind this change? Mpv has been working perfectly fine so far without libplacebo. libplacebo was made nonoptional by upstream mpv in 0.37.0. The ebuild reflects this. https://github.com/mpv-player/mpv/commit/f5ca11e12bc55d14bd6895b619c4abfd470c6452
[gentoo-dev] [PATCH] toolchain-funcs.eclass: add detection for arc
https://github.com/gentoo/gentoo/pull/33554 ARC is bi-endian. Assumes ARCH=arc. No plans to add profiles or keywords to official tree. Signed-off-by: Matoro Mahri --- eclass/toolchain-funcs.eclass | 3 +++ 1 file changed, 3 insertions(+) diff --git a/eclass/toolchain-funcs.eclass b/eclass/toolchain-funcs.eclass index 8398ee004a7d..4559894ca04a 100644 --- a/eclass/toolchain-funcs.eclass +++ b/eclass/toolchain-funcs.eclass @@ -648,6 +648,7 @@ tc-ninja_magic_to_arch() { case ${host} in aarch64*) echo arm64;; alpha*) echo alpha;; + arc*) echo arc;; arm*) echo arm;; avr*) _tc_echo_kernel_alias avr32 avr;; bfin*) _tc_echo_kernel_alias blackfin bfin;; @@ -736,6 +737,8 @@ tc-endian() { aarch64*be) echo big;; aarch64)echo little;; alpha*) echo little;; + arc*b*) echo big;; + arc*) echo little;; arm*b*) echo big;; arm*) echo little;; cris*) echo little;; -- 2.42.0
[gentoo-dev] [PATCH] perl-module.eclass: extend DIST_TEST="do" to cover make-based tests
For packages using make to run tests rather than Test::Harness, DIST_TEST="do" is ineffective at disabling parallelization. This forces -j1 on these packages when set. Bug: https://bugs.gentoo.org/909051 Signed-off-by: Matoro Mahri --- eclass/perl-module.eclass | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/eclass/perl-module.eclass b/eclass/perl-module.eclass index 32cd603c7be5..7bb02abed8c5 100644 --- a/eclass/perl-module.eclass +++ b/eclass/perl-module.eclass @@ -335,6 +335,7 @@ perl-module_src_test() { local my_test_control local my_test_verbose + local my_test_makeopts [[ -n "${DIST_TEST_OVERRIDE}" ]] && ewarn "DIST_TEST_OVERRIDE is set to ${DIST_TEST_OVERRIDE}" my_test_control=${DIST_TEST_OVERRIDE:-${DIST_TEST:-do parallel}} @@ -344,6 +345,10 @@ perl-module_src_test() { return 0 fi + if has 'do' ${my_test_control} && ! has 'parallel' ${my_test_control} ; then + my_test_makeopts="-j1" + fi + if has verbose ${my_test_control} ; then my_test_verbose=1 else @@ -383,7 +388,7 @@ perl-module_src_test() { if [[ -f Build ]] ; then ./Build test verbose=${my_test_verbose} || die "test failed" elif [[ -f Makefile ]] ; then - emake test TEST_VERBOSE=${my_test_verbose} + emake ${my_test_makeopts} test TEST_VERBOSE=${my_test_verbose} fi } -- 2.42.0
[gentoo-dev] [PATCH 2/3 v2] tree-sitter-grammar.eclass: Add src_test implementation
These packages have a standard way of implementing a test corpus that can be invoked by "tree-sitter test" from dev-util/tree-sitter-cli. Some have additional platform-specific tests that are invoked in a custom manner, but these are on top of the basic test corpus. See: https://tree-sitter.github.io/tree-sitter/creating-parsers#command-test Bug: https://bugs.gentoo.org/844223 Closes: https://github.com/gentoo/gentoo/pull/28529 Signed-off-by: Matoro Mahri --- eclass/tree-sitter-grammar.eclass | 16 +++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/eclass/tree-sitter-grammar.eclass b/eclass/tree-sitter-grammar.eclass index acdb8a7ad73..c607ea9ddfb 100644 --- a/eclass/tree-sitter-grammar.eclass +++ b/eclass/tree-sitter-grammar.eclass @@ -29,7 +29,11 @@ S="${WORKDIR}"/${PN}-${TS_PV:-${PV}}/src # Needed for tree_sitter/parser.h DEPEND="dev-libs/tree-sitter" -EXPORT_FUNCTIONS src_compile src_install +BDEPEND+=" test? ( dev-util/tree-sitter-cli )" +IUSE+=" test" +RESTRICT+=" !test? ( test )" + +EXPORT_FUNCTIONS src_compile src_test src_install # @ECLASS_VARIABLE: TS_PV # @PRE_INHERIT @@ -89,6 +93,16 @@ tree-sitter-grammar_src_compile() { -o "${WORKDIR}"/${soname} } +# @FUNCTION: tree-sitter-grammar_src_test +# @DESCRIPTION: +# Runs the Tree Sitter parser's test suite. +# See: https://tree-sitter.github.io/tree-sitter/creating-parsers#command-test +tree-sitter-grammar_src_test() { + debug-print-function ${FUNCNAME} "${@}" + + (cd .. && tree-sitter test) || die "Test suite failed" +} + # @FUNCTION: tree-sitter-grammar_src_install # @DESCRIPTION: # Installs the Tree Sitter parser library. -- 2.38.1
[gentoo-dev] [PATCH 3/3] dev-libs/tree-sitter-cpp: restrict tests
Requires sample files from tree-sitter-c to be available, but these files are not installed with dev-libs/tree-sitter-c, and are instead expected to be pulled down via making the tree-sitter-c javascript wrapper package a dependency in package.json. However since we invoke "tree-sitter test" directly rather than via "npm test" the source package for tree-sitter-c will not be available. Bug: https://bugs.gentoo.org/844223 See: https://github.com/gentoo/gentoo/pull/28529 Signed-off-by: Matoro Mahri --- dev-libs/tree-sitter-cpp/tree-sitter-cpp-0.20.0.ebuild | 3 +++ 1 file changed, 3 insertions(+) diff --git a/dev-libs/tree-sitter-cpp/tree-sitter-cpp-0.20.0.ebuild b/dev-libs/tree-sitter-cpp/tree-sitter-cpp-0.20.0.ebuild index dd304585137..654df3497df 100644 --- a/dev-libs/tree-sitter-cpp/tree-sitter-cpp-0.20.0.ebuild +++ b/dev-libs/tree-sitter-cpp/tree-sitter-cpp-0.20.0.ebuild @@ -11,3 +11,6 @@ HOMEPAGE="https://github.com/tree-sitter/tree-sitter-cpp; LICENSE="MIT" SLOT="0" KEYWORDS="amd64" + +# requires test data from tree-sitter-c +RESTRICT="test" -- 2.38.1
[gentoo-dev] [PATCH 2/3] tree-sitter-grammar.eclass: Add src_test implementation
These packages have a standard way of implementing a test corpus that can be invoked by "tree-sitter test" from dev-util/tree-sitter-cli. Some have additional platform-specific tests that are invoked in a custom manner, but these are on top of the basic test corpus. See: https://tree-sitter.github.io/tree-sitter/creating-parsers#command-test Bug: https://bugs.gentoo.org/844223 Closes: https://github.com/gentoo/gentoo/pull/28529 Signed-off-by: Matoro Mahri --- eclass/tree-sitter-grammar.eclass | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/eclass/tree-sitter-grammar.eclass b/eclass/tree-sitter-grammar.eclass index acdb8a7ad73..958b2ce21c7 100644 --- a/eclass/tree-sitter-grammar.eclass +++ b/eclass/tree-sitter-grammar.eclass @@ -29,7 +29,10 @@ S="${WORKDIR}"/${PN}-${TS_PV:-${PV}}/src # Needed for tree_sitter/parser.h DEPEND="dev-libs/tree-sitter" -EXPORT_FUNCTIONS src_compile src_install +BDEPEND+=" test? ( dev-util/tree-sitter-cli )" +IUSE+=" test" + +EXPORT_FUNCTIONS src_compile src_test src_install # @ECLASS_VARIABLE: TS_PV # @PRE_INHERIT @@ -89,6 +92,16 @@ tree-sitter-grammar_src_compile() { -o "${WORKDIR}"/${soname} } +# @FUNCTION: tree-sitter-grammar_src_test +# @DESCRIPTION: +# Runs the Tree Sitter parser's test suite. +# See: https://tree-sitter.github.io/tree-sitter/creating-parsers#command-test +tree-sitter-grammar_src_test() { + debug-print-function ${FUNCNAME} "${@}" + + (cd .. && tree-sitter test) || die "Test suite failed" +} + # @FUNCTION: tree-sitter-grammar_src_install # @DESCRIPTION: # Installs the Tree Sitter parser library. -- 2.38.1
[gentoo-dev] [PATCH 1/3] profiles/features/wd40: mask USE=test tree-sitter-grammar.eclass pkgs
dev-util/tree-sitter-cli will now be a conditional test dep for packages inheriting tree-sitter-grammar.eclass, which is written in rust, so mask it on rustless profiles. Bug: https://bugs.gentoo.org/844223 See: https://github.com/gentoo/gentoo/pull/28529 Signed-off-by: Matoro Mahri --- profiles/features/wd40/package.use.mask | 26 + 1 file changed, 26 insertions(+) diff --git a/profiles/features/wd40/package.use.mask b/profiles/features/wd40/package.use.mask index 4dd5915ab85..c86a7036962 100644 --- a/profiles/features/wd40/package.use.mask +++ b/profiles/features/wd40/package.use.mask @@ -1,6 +1,32 @@ # Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 +# matoro (2022-12-01) +# tree-sitter-grammar.eclass adds dev-util/tree-sitter-cli as test dep +dev-libs/tree-sitter-bash test +dev-libs/tree-sitter-c test +dev-libs/tree-sitter-c-sharp test +dev-libs/tree-sitter-cpp test +dev-libs/tree-sitter-css test +dev-libs/tree-sitter-embedded-template test +dev-libs/tree-sitter-go test +dev-libs/tree-sitter-haskell test +dev-libs/tree-sitter-html test +dev-libs/tree-sitter-java test +dev-libs/tree-sitter-javascript test +dev-libs/tree-sitter-jsdoc test +dev-libs/tree-sitter-json test +dev-libs/tree-sitter-julia test +dev-libs/tree-sitter-ocaml test +dev-libs/tree-sitter-php test +dev-libs/tree-sitter-python test +dev-libs/tree-sitter-ql test +dev-libs/tree-sitter-ruby test +dev-libs/tree-sitter-rust test +dev-libs/tree-sitter-scala test +dev-libs/tree-sitter-tsq test +dev-libs/tree-sitter-typescript test + # Sam James (2022-11-19) # GNOME packages pulling in e.g. gjs which then needs Rust. dev-util/glade gjs -- 2.38.1