Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 722962 - dev-libs/cyberjack-3.99.5_p13: ntstatus.h: error: narrowing conversion of ‘XXXXXXXXXX’ from ‘uint32_t’ {aka ‘unsigned int’} to ‘int’
Summary: dev-libs/cyberjack-3.99.5_p13: ntstatus.h: error: narrowing conversion of ‘XX...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Conrad Kostecki
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-14 08:42 UTC by Agostino Sarubbo
Modified: 2020-09-25 07:36 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,141.46 KB, text/plain)
2020-05-14 08:42 UTC, Agostino Sarubbo
Details
cyberjack-3.99.5_p14-narrowing-cast.patch (cyberjack-3.99.5_p14-narrowing-cast.patch,313 bytes, patch)
2020-06-14 00:34 UTC, Peter Levine
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2020-05-14 08:42:19 UTC
This is an auto-filled bug because dev-libs/cyberjack fails to compile.
The issue was originally discovered on amd64, but it may be reproducible on other arches as well.
If you think that a different summary clarifies the issue better, feel free to change it.
Attached build log and emerge --info.

NOTE:
If you need further logs, feel free to ask..
Comment 1 Agostino Sarubbo gentoo-dev 2020-05-14 08:42:26 UTC
Created attachment 638830 [details]
build.log

build log and emerge --info
Comment 2 Larry the Git Cow gentoo-dev 2020-05-14 22:10:04 UTC
The bug has been referenced in the following commit(s):

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

commit d46a4b603f00c950de55b62c12c09dd4414652f3
Author:     Conrad Kostecki <conikost@gentoo.org>
AuthorDate: 2020-05-14 22:08:28 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2020-05-14 22:09:53 +0000

    dev-libs/cyberjack: add workaround for gcc10
    
    Add workaround for GCC-10, by defining narrowing as warning like GCC-9 did.
    Upstream is informed, so hopefully there will be a proper fix in future.
    
    Bug: https://bugs.gentoo.org/722962
    Package-Manager: Portage-2.3.99, Repoman-2.3.22
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 dev-libs/cyberjack/cyberjack-3.99.5_p13.ebuild | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
Comment 3 Peter Levine 2020-06-14 00:34:53 UTC
Created attachment 644614 [details, diff]
cyberjack-3.99.5_p14-narrowing-cast.patch

Casts the switch value to the underlying type of its case values.
Comment 4 Conrad Kostecki gentoo-dev 2020-06-19 21:50:39 UTC
Thanks. Looks good to me and works for me. Will merge it.
Comment 5 Larry the Git Cow gentoo-dev 2020-06-19 21:58:52 UTC
The bug has been closed via the following commit(s):

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

commit 29b4ca712f67c29c464c3f62922e7532d1b1df29
Author:     Conrad Kostecki <conikost@gentoo.org>
AuthorDate: 2020-06-19 21:55:51 +0000
Commit:     Conrad Kostecki <conikost@gentoo.org>
CommitDate: 2020-06-19 21:55:51 +0000

    dev-libs/cyberjack: add patch for gcc10
    
    Add a proper patch for compiling with gcc10.
    
    Closes: https://bugs.gentoo.org/722962
    Package-Manager: Portage-2.3.101, Repoman-2.3.22
    Signed-off-by: Conrad Kostecki <conikost@gentoo.org>

 dev-libs/cyberjack/cyberjack-3.99.5_p14.ebuild            |  8 +-------
 dev-libs/cyberjack/files/cyberjack-3.99.5_p14-gcc10.patch | 13 +++++++++++++
 2 files changed, 14 insertions(+), 7 deletions(-)