Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 722382 - app-i18n/kcm-fcitx-0.5.5 : /.../skinpage.cpp: error: narrowing conversion of Fcitx::SkinPage::Private::PathRole from unsigned int
Summary: app-i18n/kcm-fcitx-0.5.5 : /.../skinpage.cpp: error: narrowing conversion of ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Arfrever Frehtes Taifersar Arahesis
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: gcc-10
  Show dependency tree
 
Reported: 2020-05-11 07:28 UTC by Toralf Förster
Modified: 2020-11-16 19:51 UTC (History)
3 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,15.99 KB, text/plain)
2020-05-11 07:28 UTC, Toralf Förster
Details
app-i18n:kcm-fcitx-0.5.5:20200511-041221.log (app-i18n:kcm-fcitx-0.5.5:20200511-041221.log,154.96 KB, text/plain)
2020-05-11 07:28 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,200.00 KB, text/plain)
2020-05-11 07:28 UTC, Toralf Förster
Details
environment (environment,111.64 KB, text/plain)
2020-05-11 07:28 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,13.39 KB, application/x-bzip)
2020-05-11 07:28 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,6.24 KB, application/x-bzip)
2020-05-11 07:28 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,34.42 KB, application/x-bzip)
2020-05-11 07:28 UTC, Toralf Förster
Details
build fix patch (kcm-fcitx-0.5.5-gcc10.patch,305 bytes, patch)
2020-05-30 11:10 UTC, Hector Martin
Details | Diff
additional patch to fix build with qt5.15 (kcm-fcitx-0.5.5-qt5.15.patch,332 bytes, patch)
2020-05-30 11:12 UTC, Hector Martin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-05-11 07:28:30 UTC
      |                   ^~~~~~~~
/var/tmp/portage/app-i18n/kcm-fcitx-0.5.5/work/kcm-fcitx-0.5.5/src/skinpage.cpp: In member function virtual QVariant Fcitx::SkinPage::Private::SkinModel::data(const QModelIndex&, int) const:
/var/tmp/portage/app-i18n/kcm-fcitx-0.5.5/work/kcm-fcitx-0.5.5/src/skinpage.cpp:134:10: error: narrowing conversion of Fcitx::SkinPage::Private::PathRole from unsigned int to int [-Wnarrowing]
  134 |     case PathRole:
      |          ^~~~~~~~
/var/tmp/portage/app-i18n/kcm-fcitx-0.5.5/work/kcm-fcitx-0.5.5/src/skinpage.cpp: In member function void Fcitx::SkinPage::Private::SkinModel::setSkinList(const QStringList&):

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop-abi32+64-20200505-162645

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-10.1.0 *
clang version 10.0.0 
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.7
  [2]   python3.6
  [3]   python3.8 (fallback)
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.43.1 *
The following VMs are available for generation-2:
*)	IcedTea JDK 3.15.0 [icedtea-bin-8]
Available Java Virtual Machines:
  [1]   icedtea-bin-8  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.0.2

  timestamp(s) of HEAD at this tinderbox image:
/var/db/repos/gentoo	Mon 11 May 2020 12:40:09 AM UTC

emerge -qpvO app-i18n/kcm-fcitx
[ebuild  N    ] app-i18n/kcm-fcitx-0.5.5
Comment 1 Toralf Förster gentoo-dev 2020-05-11 07:28:33 UTC
Created attachment 637968 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-05-11 07:28:36 UTC
Created attachment 637970 [details]
app-i18n:kcm-fcitx-0.5.5:20200511-041221.log
Comment 3 Toralf Förster gentoo-dev 2020-05-11 07:28:39 UTC
Created attachment 637972 [details]
emerge-history.txt
Comment 4 Toralf Förster gentoo-dev 2020-05-11 07:28:42 UTC
Created attachment 637974 [details]
environment
Comment 5 Toralf Förster gentoo-dev 2020-05-11 07:28:45 UTC
Created attachment 637976 [details]
etc.portage.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-05-11 07:28:48 UTC
Created attachment 637978 [details]
logs.tbz2
Comment 7 Toralf Förster gentoo-dev 2020-05-11 07:28:51 UTC
Created attachment 637980 [details]
temp.tbz2
Comment 8 Hector Martin 2020-05-30 11:10:07 UTC
Created attachment 642670 [details, diff]
build fix patch

Here's a patch to fix issue.
Comment 9 Hector Martin 2020-05-30 11:12:00 UTC
Created attachment 642672 [details, diff]
additional patch to fix build with qt5.15

Another related patch (I think this one is not due to gcc10, but it might as well be added at the same time).
Comment 10 gentoo@imrebuild.com 2020-05-30 17:03:09 UTC
(In reply to Hector Martin from comment #8)
> Created attachment 642670 [details, diff] [details, diff]
> build fix patch
> 
> Here's a patch to fix issue.

Upstream changed PathRole from 0x8F213873 to 0x3F213873 (https://github.com/fcitx/kcm-fcitx/commit/a1b2ccdffd9e4d16c47f7f2a596df437ee834c41#diff-e4cd64f9bbfa33831acf31866bec82b2). Maybe we can follow this.
Comment 11 Arfrever Frehtes Taifersar Arahesis 2020-06-01 20:26:41 UTC
(In reply to Hector Martin from comment #9)
> Attachment 642672 [details, diff]
> additional patch to fix build with qt5.15

https://github.com/fcitx/kcm-fcitx/issues/17
Comment 12 gentoo@imrebuild.com 2020-06-01 21:12:50 UTC
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #11)
> (In reply to Hector Martin from comment #9)
> > Attachment 642672 [details, diff] [details, diff]
> > additional patch to fix build with qt5.15
> 
> https://github.com/fcitx/kcm-fcitx/issues/17

It is opened by me but I get no response from upstream yet. I think we can add these patches for version 0.5.5 and remove them if there are new release from upstream.
Comment 13 gentoo@imrebuild.com 2020-06-01 21:59:49 UTC
(In reply to gentoo@imrebuild.com from comment #12)
> (In reply to Arfrever Frehtes Taifersar Arahesis from comment #11)
> > (In reply to Hector Martin from comment #9)
> > > Attachment 642672 [details, diff] [details, diff] [details, diff]
> > > additional patch to fix build with qt5.15
> > 
> > https://github.com/fcitx/kcm-fcitx/issues/17
> 
> It is opened by me but I get no response from upstream yet. I think we can
> add these patches for version 0.5.5 and remove them if there are new release
> from upstream.

Upstream released 0.5.6.
Comment 14 Larry the Git Cow gentoo-dev 2020-11-16 19:51:37 UTC
The bug has been closed via the following commit(s):

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

commit 691df99598a45a565b119333318e923879b23ae3
Author:     Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
AuthorDate: 2020-11-13 04:00:00 +0000
Commit:     Mike Gilbert <floppym@gentoo.org>
CommitDate: 2020-11-16 19:51:16 +0000

    app-i18n/kcm-fcitx: Version bump (0.5.6).
    
    Closes: https://bugs.gentoo.org/722382
    Closes: https://bugs.gentoo.org/746260
    Closes: https://bugs.gentoo.org/751730
    Signed-off-by: Arfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
    Signed-off-by: Mike Gilbert <floppym@gentoo.org>

 app-i18n/kcm-fcitx/Manifest               |  1 +
 app-i18n/kcm-fcitx/kcm-fcitx-0.5.6.ebuild | 58 +++++++++++++++++++++++++++++++
 2 files changed, 59 insertions(+)