Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 744247 - sys-devel/dwz-0.13 fails tests
Summary: sys-devel/dwz-0.13 fails tests
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Konstantin Tokarev
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-09-23 06:36 UTC by Agostino Sarubbo
Modified: 2020-09-23 21:54 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,9.77 KB, text/plain)
2020-09-23 06:36 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-09-23 06:36:00 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-devel/dwz-0.13 fails tests.
Discovered on: amd64 (internal ref: ci)

NOTE:
This machine uses GLIBC-2.32. If you think that this issue is strictly related to GLIBC please block bug 736174.
Comment 1 Agostino Sarubbo gentoo-dev 2020-09-23 06:36:02 UTC
Created attachment 662059 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2020-09-23 06:36:03 UTC
Possible context of error(s):

/bin/sh: line 2: runtest: command not found
Comment 3 Konstantin Tokarev 2020-09-23 08:53:09 UTC
You have to install dev-util/dejagnu in order to run "make check"
Comment 4 Konstantin Tokarev 2020-09-23 09:34:37 UTC
I guess this patch might help:

diff --git a/sys-devel/dwz/dwz-0.13.ebuild b/sys-devel/dwz/dwz-0.13.ebuild
index af9d9287c29..f2910b60d37 100644
--- a/sys-devel/dwz/dwz-0.13.ebuild
+++ b/sys-devel/dwz/dwz-0.13.ebuild
@@ -14,8 +14,12 @@ S="${WORKDIR}/${PN}"
 LICENSE="GPL-2+ GPL-3+"
 SLOT="0"
 KEYWORDS="~amd64"
+IUSE="test"
 
-DEPEND="dev-libs/elfutils"
+DEPEND="
+       dev-libs/elfutils
+       test? ( dev-util/dejagnu )
+"
 RDEPEND="${DEPEND}"
 
 src_prepare() {
Comment 5 Conrad Kostecki gentoo-dev 2020-09-23 13:21:59 UTC
(In reply to Konstantin Tokarev from comment #4)
> I guess this patch might help:
> 
> diff --git a/sys-devel/dwz/dwz-0.13.ebuild b/sys-devel/dwz/dwz-0.13.ebuild
> index af9d9287c29..f2910b60d37 100644
> --- a/sys-devel/dwz/dwz-0.13.ebuild
> +++ b/sys-devel/dwz/dwz-0.13.ebuild
> @@ -14,8 +14,12 @@ S="${WORKDIR}/${PN}"
>  LICENSE="GPL-2+ GPL-3+"
>  SLOT="0"
>  KEYWORDS="~amd64"
> +IUSE="test"
>  
> -DEPEND="dev-libs/elfutils"
> +DEPEND="
> +       dev-libs/elfutils
> +       test? ( dev-util/dejagnu )
> +"
>  RDEPEND="${DEPEND}"
>  
>  src_prepare() {

Please test and submit a PR.
Comment 6 Konstantin Tokarev 2020-09-23 13:26:35 UTC
It works here but I have no idea how tinderbox activates these tests
Comment 7 Conrad Kostecki gentoo-dev 2020-09-23 13:37:21 UTC
(In reply to Konstantin Tokarev from comment #6)
> It works here but I have no idea how tinderbox activates these tests

FEATURES="test" USE="test" emerge -av sys-devel/dwz if you want to run them?
Or what do you mean?
Comment 8 Konstantin Tokarev 2020-09-23 13:43:21 UTC
When I run

   FEATURES="test" USE="test" emerge -av sys-devel/dwz 

it doesn't fail even without patch.
Comment 9 Konstantin Tokarev 2020-09-23 13:44:51 UTC
Oops I forgot to remove dejagnu. It fails now.
Comment 10 Konstantin Tokarev 2020-09-23 13:53:50 UTC
https://github.com/gentoo/gentoo/pull/17645
Comment 11 Larry the Git Cow gentoo-dev 2020-09-23 21:54:12 UTC
The bug has been closed via the following commit(s):

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

commit 8f41df9f4d63ad5e668b5615df76926746659158
Author:     Konstantin Tokarev <annulen@yandex.ru>
AuthorDate: 2020-09-23 13:47:04 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2020-09-23 21:53:54 +0000

    sys-devel/dwz: Implement "test" USE flag
    
    Closes: https://github.com/gentoo/gentoo/pull/17645
    Closes: https://bugs.gentoo.org/744247
    Signed-off-by: Konstantin Tokarev <annulen@yandex.ru>
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 sys-devel/dwz/dwz-0.13.ebuild | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)