Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 703882 - x11-misc/kdocker-5.2 : /.../qactiongroup.h:64:9: error: expected identifier before numeric constant
Summary: x11-misc/kdocker-5.2 : /.../qactiongroup.h:64:9: error: expected identifier b...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Nikos Chantziaras
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2019-12-26 21:17 UTC by Toralf Förster
Modified: 2020-01-01 07:55 UTC (History)
1 user (show)

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


Attachments
emerge-info.txt (emerge-info.txt,16.70 KB, text/plain)
2019-12-26 21:17 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,169.50 KB, text/plain)
2019-12-26 21:17 UTC, Toralf Förster
Details
environment (environment,94.64 KB, text/plain)
2019-12-26 21:17 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.82 KB, application/x-bzip)
2019-12-26 21:17 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,24.19 KB, application/x-bzip)
2019-12-26 21:17 UTC, Toralf Förster
Details
x11-misc:kdocker-5.2:20191223-204408.log (x11-misc:kdocker-5.2:20191223-204408.log,14.30 KB, text/plain)
2019-12-26 21:17 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2019-12-26 21:17:38 UTC
                 from /usr/include/X11/xpm.h:76,
                 from src/trayitem.cpp:31:
/usr/include/qt5/QtWidgets/qactiongroup.h:64:9: error: expected identifier before numeric constant
   64 |         None,
      |         ^~~~
/usr/include/qt5/QtWidgets/qactiongroup.h:64:9: error: expected ‘}’ before numeric constant

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_developer-libressl-20191219-151520

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.2.0 *

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

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Mon, 23 Dec 2019 20:06:54 +0000

emerge -qpvO x11-misc/kdocker
[ebuild  N    ] x11-misc/kdocker-5.2
Comment 1 Toralf Förster gentoo-dev 2019-12-26 21:17:41 UTC
Created attachment 600664 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2019-12-26 21:17:44 UTC
Created attachment 600666 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2019-12-26 21:17:47 UTC
Created attachment 600668 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2019-12-26 21:17:50 UTC
Created attachment 600670 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2019-12-26 21:17:53 UTC
Created attachment 600672 [details]
temp.tbz2
Comment 6 Toralf Förster gentoo-dev 2019-12-26 21:17:55 UTC
Created attachment 600674 [details]
x11-misc:kdocker-5.2:20191223-204408.log
Comment 7 Nikos Chantziaras 2019-12-30 14:40:54 UTC
This is a conflict between /usr/include/X11/X.h and /usr/include/qt5/QtWidgets/qactiongroup.h. X.h defines 'None' as a macro:

  #ifndef None
  #define None                 0L>/* universal null resource or null atom */
  #endif

and as a result this breaks qactiongroup.h:

  enum class ExclusionPolicy {
      None,
      Exclusive,
      ExclusiveOptional
  };

This enum didn't exist before Qt 5.14.

Opened a github PR with a patch. Also sent the patch upstream:

https://github.com/user-none/KDocker/pull/60
Comment 8 Larry the Git Cow gentoo-dev 2020-01-01 07:55:38 UTC
The bug has been closed via the following commit(s):

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

commit a3976f8b771939a59857f3f6e5f7557aa49cb65f
Author:     Nikos Chantziaras <realnc@gmail.com>
AuthorDate: 2019-12-30 14:22:51 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2020-01-01 07:55:09 +0000

    x11-misc/kdocker: fix Qt 5.14 build, EAPI 7
    
    Closes: https://bugs.gentoo.org/703882
    Package-Manager: Portage-2.3.84, Repoman-2.3.20
    Signed-off-by: Nikos Chantziaras <realnc@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/14181
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 x11-misc/kdocker/files/qt-5.14.patch | 38 ++++++++++++++++++++++++++++++++++++
 x11-misc/kdocker/kdocker-5.2.ebuild  | 18 +++++++----------
 2 files changed, 45 insertions(+), 11 deletions(-)