Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 781134 - dev-util/cmake: two level lib path support (support ARCH=riscv)
Summary: dev-util/cmake: two level lib path support (support ARCH=riscv)
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: riscv Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: 780846
  Show dependency tree
 
Reported: 2021-04-08 14:07 UTC by Yixun Lan
Modified: 2021-08-22 15:09 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patch: support two level path of libdir (cmake-3.20.0-riscv.patch,1.41 KB, patch)
2021-04-08 14:58 UTC, Yixun Lan
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yixun Lan archtester gentoo-dev 2021-04-08 14:07:04 UTC
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
Comment 1 Yixun Lan archtester gentoo-dev 2021-04-08 14:58:47 UTC
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
Comment 2 Andreas Sturmlechner gentoo-dev 2021-04-08 15:11:33 UTC
Please try and get this change upstream.
Comment 3 Andreas Sturmlechner gentoo-dev 2021-08-22 15:09:52 UTC
Feel free to correct me if I'm wrong.