Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 747448 - dev-libs/libusb-1.0.23: use BDEPEND with EAPI 7
Summary: dev-libs/libusb-1.0.23: use BDEPEND with EAPI 7
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2020-10-09 13:52 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-10-09 13:52:52 UTC
The latest libusb version uses EAPI 7, but it was not updated to use correct dependencies.  It fails when building documentation since doxygen gets cross-compiled from being incorrectly declared in DEPEND.

Reproducible: Always

Steps to Reproduce:
1. ACCEPT_KEYWORDS=~* USE=doc cross-emerge -v dev-libs/libusb

Actual Results:  
make -j12 -C doc docs 
make: Entering directory '/var/tmp/portage/dev-libs/libusb-1.0.23-r1/work/libusb-1.0.23-.ppc/doc'
doxygen doxygen.cfg
make: doxygen: Command not found
make: *** [Makefile:453: docs] Error 127

Expected Results:  
It should build and install.

--- dev-libs/libusb/libusb-1.0.23-r1.ebuild
+++ dev-libs/libusb/libusb-1.0.23-r1.ebuild
@@ -16,8 +16,8 @@
 
 RDEPEND="udev? ( >=virtual/libudev-208:=[${MULTILIB_USEDEP},static-libs(-)?] )"
 DEPEND="${RDEPEND}
-	doc? ( app-doc/doxygen )
 	!udev? ( virtual/os-headers )"
+BDEPEND="doc? ( app-doc/doxygen )"
 
 multilib_src_configure() {
 	local myeconfargs=(
Comment 1 Larry the Git Cow gentoo-dev 2020-10-19 16:53:33 UTC
The bug has been closed via the following commit(s):

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

commit 221bd8687b82cccf6311b6b6d0d7f771e30d5196
Author:     David Michael <fedora.dm0@gmail.com>
AuthorDate: 2020-10-15 13:45:52 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2020-10-19 16:53:12 +0000

    dev-libs/libusb: use BDEPEND with EAPI 7
    
    Closes: https://bugs.gentoo.org/747448
    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>

 dev-libs/libusb/libusb-1.0.23-r1.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)