the ARCH=riscv design the LIBDIR path as two level directory (lib64/lp64d) and dev-util/cmake should search the /usr/${libdir}/cmake/ directory for find_package() see bug #780846 for more info, which it exactly caused by this problem. # grep -R LIBDIR profiles/arch/riscv/ profiles/arch/riscv/make.defaults:LIBDIR_lp64d="lib64/lp64d" profiles/arch/riscv/make.defaults:LIBDIR_lp64="lib64/lp64" profiles/arch/riscv/make.defaults:LIBDIR_ilp32d="lib32/ilp32d" profiles/arch/riscv/make.defaults:LIBDIR_ilp32="lib32/ilp32" Reproducible: Always
Created attachment 698628 [details, diff] patch: support two level path of libdir with this patch it's capable of search /usr/${libdir} (/usr/lib64/lp64d in riscv) for cmake files, and thus fix the app-text/poppler build issue
Please try and get this change upstream.
Feel free to correct me if I'm wrong.