media-sound/rmpc: update 9999

update 9999 like the previous commit

also add the fix for aws-lc-sys

the -sys crate part was generated by
https://codeberg.org/ingenarel-NeoJesus/apply-crates-fixes/src/commit/f9fe0341f3a3101944df500997e8024cd95c12b9

Signed-off-by: ingenarel (NeoJesus) <ingenarel_neojesus@disroot.org>
Part-of: https://codeberg.org/gentoo/guru/pulls/20
Merges: https://codeberg.org/gentoo/guru/pulls/20
This commit is contained in:
ingenarel (NeoJesus) committed 2026-06-16 09:14:24 +06:00
1 parent 651247c1b6
commit e7433d5cd4
1 file changed
+31 -4
+31 -4
View File
@@ -1,4 +1,4 @@
# Copyright 2025 Gentoo Authors
# Copyright 2025-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Autogenerated by pycargoebuild 0.15.0
@@ -7,8 +7,14 @@ EAPI=8
RUST_MIN_VER="1.88.0"
# apply-crates-fixes start
LLVM_COMPAT=( {19..22} )
# apply-crates-fixes end
CRATES=" "
# apply-crates-fixes start
inherit llvm-r2
# apply-crates-fixes end
inherit cargo shell-completion
DESCRIPTION="A beautiful and configurable TUI client for MPD"
@@ -17,8 +23,8 @@ LICENSE="BSD"
# Dependent crate licenses
LICENSE+="
Apache-2.0 Apache-2.0-with-LLVM-exceptions BSD-2 BSD CC0-1.0 ISC
LGPL-3+ MIT UoI-NCSA Unicode-3.0 ZLIB
Apache-2.0 BSD-2 BSD CC0-1.0 CDLA-Permissive-2.0 ISC LGPL-3+ MIT
UoI-NCSA openssl Unicode-3.0 Unicode-DFS-2016 WTFPL-2 ZLIB
"
if [[ "${PV}" == *9999* ]]; then
@@ -32,17 +38,38 @@ else
fi
SLOT="0"
# apply-crates-fixes start
DEPEND="
$(llvm_gen_dep 'llvm-core/clang:${LLVM_SLOT}')
"
BDEPEND="
virtual/pkgconfig
"
# apply-crates-fixes end
DOCS=( README.md CHANGELOG.md )
src_unpack() {
if [[ "$PV" == *9999* ]];then
if [[ "${PV}" == *9999* ]];then
git-r3_src_unpack
cargo_live_src_unpack
else
cargo_src_unpack
fi
}
# apply-crates-fixes start
src_compile(){
CUSTOM_LIBFUZZER_PATH="$(clang --print-file-name "libclang_rt.fuzzer-${CHOST%%-*}.a" )"
[[ -f "${CUSTOM_LIBFUZZER_PATH}" ]] || die "trying to set CUSTOM_LIBFUZZER_PATH failed"
export CUSTOM_LIBFUZZER_PATH
export AWS_LC_SYS_CFLAGS="${CFLAGS} -O0"
# aws-lc-sys bundles aws-lc, which bundles quite a lot of dependencies, jitterentropy among them
# https://github.com/aws/aws-lc-rs/issues/936 -> "Please add support to use system-provided aws-lc library"
# jitterentropy can not be built without -O0, the script does not have the logic to unbundle dependencies right now
# but what it can do is use set the AWS_LC_SYS_CFLAGS var to override CFLAGS
cargo_src_compile
}
# apply-crates-fixes end
src_install() {
cargo_src_install