Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 729078 - media-libs/opus USE=doc should use BDEPEND instead of DEPEND with EAPI 7
Summary: media-libs/opus USE=doc should use BDEPEND instead of DEPEND with EAPI 7
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords: PATCH, PullRequest
Depends on:
Blocks:
 
Reported: 2020-06-22 03:13 UTC by David Michael
Modified: 2020-10-19 16:53 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Michael 2020-06-22 03:13:07 UTC
The opus ebuild is using EAPI 7, but it does not define BDEPEND.  That makes it cross-compile documentation commands that need to be executed natively.

Reproducible: Always

Steps to Reproduce:
1. USE=doc emerge -v media-libs/opus  # with a sysroot profile
Actual Results:  
It cross-compiles documentation commands.

Expected Results:  
That stuff should be used in /.

This fixes it:

--- a/media-libs/opus/opus-1.3.1-r1.ebuild
+++ b/media-libs/opus/opus-1.3.1-r1.ebuild
@@ -15,7 +15,7 @@
 INTRINSIC_FLAGS="cpu_flags_x86_sse cpu_flags_arm_neon"
 IUSE="custom-modes doc static-libs ${INTRINSIC_FLAGS}"
 
-DEPEND="doc? (
+BDEPEND="doc? (
 		app-doc/doxygen
 		media-gfx/graphviz
 	)"
Comment 1 Larry the Git Cow gentoo-dev 2020-10-19 16:53:36 UTC
The bug has been closed via the following commit(s):

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

commit 0bbb7718e73735f35fbc5e86e679960953a819c9
Author:     David Michael <fedora.dm0@gmail.com>
AuthorDate: 2020-10-15 13:55:06 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2020-10-19 16:53:17 +0000

    media-libs/opus: use BDEPEND with EAPI 7
    
    Closes: https://bugs.gentoo.org/729078
    Package-Manager: Portage-3.0.8, Repoman-3.0.1
    Signed-off-by: David Michael <fedora.dm0@gmail.com>
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>
    Closes: https://github.com/gentoo/gentoo/pull/17936

 media-libs/opus/opus-1.3.1-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)