commit:     728b130421c9675133d8a3d6c408ab0fb71e8313
Author:     Paul Zander <negril.nx+gentoo <AT> gmail <DOT> com>
AuthorDate: Sat Aug  9 13:37:55 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Oct 19 18:02:21 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=728b1304

media-libs/x265: fix hardcoded vmaf model path

Signed-off-by: Paul Zander <negril.nx+gentoo <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/44229
Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-libs/x265/x265-4.1.ebuild  | 4 ++++
 media-libs/x265/x265-9999.ebuild | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/media-libs/x265/x265-4.1.ebuild b/media-libs/x265/x265-4.1.ebuild
index 8f1f70665bd7..902e0753e0c4 100644
--- a/media-libs/x265/x265-4.1.ebuild
+++ b/media-libs/x265/x265-4.1.ebuild
@@ -71,6 +71,10 @@ src_prepare() {
 
        sed -r -e 's/(set\(ARM_ARGS -O3)/# \1/g' -i CMakeLists.txt || die
 
+       # fix hardcoded path
+       # libvmaf ERROR could not read model from path: 
"/usr/local/share/model/vmaf_v0.6.1.json"
+       sed -e "s#/usr/local/share/model/#${EPREFIX}/usr/share/vmaf/model/#g" 
-i x265.h || die
+
        # TODO check so_name via
        # X265_BUILD 215
 }

diff --git a/media-libs/x265/x265-9999.ebuild b/media-libs/x265/x265-9999.ebuild
index 8926fe9b9ec9..961e78ee122b 100644
--- a/media-libs/x265/x265-9999.ebuild
+++ b/media-libs/x265/x265-9999.ebuild
@@ -68,6 +68,10 @@ src_prepare() {
 
        sed -r -e 's/(set\(ARM_ARGS -O3)/# \1/g' -i CMakeLists.txt || die
 
+       # fix hardcoded path
+       # libvmaf ERROR could not read model from path: 
"/usr/local/share/model/vmaf_v0.6.1.json"
+       sed -e "s#/usr/local/share/model/#${EPREFIX}/usr/share/vmaf/model/#g" 
-i x265.h || die
+
        # TODO check so_name via
        # X265_BUILD 215
 }

Reply via email to