Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 802240 - dev-util/spirv-tools: fails to build for gentoo prefix
Summary: dev-util/spirv-tools: fails to build for gentoo prefix
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2021-07-15 08:00 UTC by Yiyang Wu
Modified: 2021-07-17 18:09 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,5.25 KB, text/plain)
2021-07-15 08:01 UTC, Yiyang Wu
Details
emerge --info output (emerge-info.txt,5.85 KB, text/plain)
2021-07-15 08:01 UTC, Yiyang Wu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Yiyang Wu 2021-07-15 08:00:26 UTC
/usr/include/spirv/unified1/spirv.core.grammar.json is needed when running ninja during the ebuild compile phase, but in gentoo prefix this file is not in the prefix causing ninja throws dependency error. The absolute path should be prefixified.

Reproducible: Always

Steps to Reproduce:
1. Enter a gentoo prefix
2. emerge '=dev-util/spirv-tools-2021.1'
3.
Comment 1 Yiyang Wu 2021-07-15 08:01:17 UTC
Created attachment 723952 [details]
build.log
Comment 2 Yiyang Wu 2021-07-15 08:01:58 UTC
Created attachment 723955 [details]
emerge --info output
Comment 3 Larry the Git Cow gentoo-dev 2021-07-17 18:09:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ed46712fd16a9d3634df32395f19324d892e0dfc

commit ed46712fd16a9d3634df32395f19324d892e0dfc
Author:     YiyangWu <xgreenlandforwyy@gmail.com>
AuthorDate: 2021-07-15 14:02:03 +0000
Commit:     Nick Sarnie <sarnex@gentoo.org>
CommitDate: 2021-07-17 18:09:24 +0000

    dev-util/spirv-tools: fix gentoo prefix cmake configure issue
    
    during cmake configuration, SPIRV-Headers_SOURCE_DIR sets to /usr
    causing cmake cannot find /usr/include/spirv/unified1/spirv.core.grammar.json
    
    Closes: https://bugs.gentoo.org/802240
    Package-Manager: Portage-3.0.20, Repoman-3.0.3
    Signed-off-by: Yiyang Wu <xgreenlandforwyy@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/21652
    Signed-off-by: Nick Sarnie <sarnex@gentoo.org>

 dev-util/spirv-tools/spirv-tools-2021.1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)