Summary: | [guru] media-sound/musikcube-3.0.1 one or more CMake variables were not used by the project | ||
---|---|---|---|
Product: | GURU | Reporter: | Agostino Sarubbo <ago> |
Component: | Package issues | Assignee: | YiFei Zhu <zhuyifei1999> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | guru-bugs, nowa |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 785607 | ||
Attachments: | build.log |
Description
Agostino Sarubbo
![]() Created attachment 863724 [details]
build.log
build log and emerge --info
Man, making an ebuild for this package has been hard. The upstream cmake looks like if (USE_ELOGIND MATCHES "true") set(SDBUS "libelogind >= 239.3") elseif (USE_BASU MATCHES "true") set(SDBUS "basu") else() set(SDBUS "libsystemd") endif() What's the best way to approach this? Only provide the cmake flag when the USE flag is set? i.e. Instead of mycmakeargs+=( -DUSE_ELOGIND=$(usex elogind true false) -DUSE_BASU=$(usex basu true false) ) do mycmakeargs+=( $(usex elogind '' -DUSE_ELOGIND=true) $(usex basu '' -DUSE_BASU=true) ) (In reply to YiFei Zhu from comment #2) > mycmakeargs+=( > $(usex elogind '' -DUSE_ELOGIND=true) > $(usex basu '' -DUSE_BASU=true) > ) This is simpler: if use elogind; then mycmakeargs+=( -DUSE_ELOGIND=ON ) fi etc (In reply to Andrew Ammerlaan from comment #3) > (In reply to YiFei Zhu from comment #2) > > mycmakeargs+=( > > $(usex elogind '' -DUSE_ELOGIND=true) > > $(usex basu '' -DUSE_BASU=true) > > ) > > This is simpler: > if use elogind; then > mycmakeargs+=( -DUSE_ELOGIND=ON ) > fi > etc Ok, applied. Thanks! The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6b6874185544be61b7dbadf06313eb32ad822e63 commit 6b6874185544be61b7dbadf06313eb32ad822e63 Author: YiFei Zhu <zhuyifei1999@gmail.com> AuthorDate: 2023-06-13 09:10:56 +0000 Commit: YiFei Zhu <zhuyifei1999@gmail.com> CommitDate: 2023-06-13 09:12:10 +0000 media-sound/musikcube: Fix some CMake variables being unused Closes: https://bugs.gentoo.org/908391 Signed-off-by: YiFei Zhu <zhuyifei1999@gmail.com> media-sound/musikcube/musikcube-3.0.1.ebuild | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) |