Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 894616

Summary: lxqt-base/lxqt-config-1.2.0 - /.../config.h: error: std::optional has not been declared
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: LxQt maintainers <lxqt>
Status: RESOLVED DUPLICATE    
Severity: normal CC: uleysky
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge-info.txt
emerge-history.txt.bz2
environment
etc.clang.tar.bz2
etc.portage.tar.bz2
logs.tar.bz2
lxqt-base:lxqt-config-1.2.0:20230215-042808.log.bz2
temp.tar.bz2
Fix compilation with kscreen

Description Toralf Förster gentoo-dev 2023-02-15 18:29:39 UTC
too long lines were shrinked:

[328/438] /usr/bin/x86_64-pc-linux-gnu-g++ -DLXQT_CONFIG_VERSION=\"1.2.0\" -DLXQT_DATA_DIR=\"/usr/share\" -DLXQT_ETC_XDG_DIR=\"/etc/xdg\" -DLXQT_GRAPHICS_DIR=\"/usr/share/lxqt/graphics\" -DLXQT_MAJOR_VERSION=\"1\" -DLXQT_MINOR_VERSION=\"2\" -DLXQT_PATCH_VERSION=\"0\" -DLXQT_RELATIVE_SHARE_DIR=\"lxqt
FAILED: lxqt-config-monitor/CMakeFiles/lxqt-config-monitor.dir/monitorsettingsdialog.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DLXQT_CONFIG_VERSION=\"1.2.0\" -DLXQT_DATA_DIR=\"/usr/share\" -DLXQT_ETC_XDG_DIR=\"/etc/xdg\" -DLXQT_GRAPHICS_DIR=\"/usr/share/lxqt/graphics\" -DLXQT_MAJOR_VERSION=\"1\" -DLXQT_MINOR_VERSION=\"2\" -DLXQT_PATCH_VERSION=\"0\" -DLXQT_RELATIVE_SHARE_DIR=\"lxqt\" -DLXQT_
In file included from /usr/include/KF5/KScreen/KScreen/Config:1,
                 from /var/tmp/portage/lxqt-base/lxqt-config-1.2.0/work/lxqt-config-1.2.0/lxqt-config-monitor/monitorwidget.h:29,
                 from /var/tmp/portage/lxqt-base/lxqt-config-1.2.0/work/lxqt-config-1.2.0/lxqt-config-monitor/monitorsettingsdialog.cpp:22:
/usr/include/KF5/KScreen/kscreen/config.h:197:32: error: std::optional has not been declared
  197 |     void adjustPriorities(std::optional<OutputPtr> keep = std::nullopt);
      |                                ^~~~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_gnome-j4-20230211-230027

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

GNUMAKEFLAGS="$GNUMAKEFLAGS --jobserver-style=pipe"
GNUMAKEFLAGS="$GNUMAKEFLAGS --shuffle"
gcc-config -l:
 [1] x86_64-pc-linux-gnu-12 *
clang/llvm (if any):
clang version 15.0.7
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/15/bin
Configuration file: /etc/clang/clang.cfg
/usr/lib/llvm/15
15.0.7
Python 3.10.10
Available Ruby profiles:
  [1]   ruby27 (with Rubygems)
  [2]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-bin-1.67.1
  [2]   rust-1.67.1 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.18_p10 [openjdk-bin-11]
*)	Eclipse Temurin JDK 17.0.6_p10 [openjdk-bin-17]
3)	Eclipse Temurin JDK 8.362_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8 
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17  system-vm

The Glorious Glasgow Haskell Compilation System, version 9.0.2
php cli (if any):

  HEAD of ::gentoo
commit b2c05952d5155e0450872dfae5dc1af68e95071f
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Wed Feb 15 03:02:01 2023 +0000

    2023-02-15 03:02:01 UTC

emerge -qpvO lxqt-base/lxqt-config
[ebuild   R   ] lxqt-base/lxqt-config-1.2.0  USE="monitor touchpad"
Comment 1 Toralf Förster gentoo-dev 2023-02-15 18:29:40 UTC
Created attachment 851308 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2023-02-15 18:29:42 UTC
Created attachment 851310 [details]
emerge-history.txt.bz2
Comment 3 Toralf Förster gentoo-dev 2023-02-15 18:29:43 UTC
Created attachment 851312 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2023-02-15 18:29:44 UTC
Created attachment 851314 [details]
etc.clang.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2023-02-15 18:29:45 UTC
Created attachment 851316 [details]
etc.portage.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2023-02-15 18:29:46 UTC
Created attachment 851318 [details]
logs.tar.bz2
Comment 7 Toralf Förster gentoo-dev 2023-02-15 18:29:47 UTC
Created attachment 851320 [details]
lxqt-base:lxqt-config-1.2.0:20230215-042808.log.bz2
Comment 8 Toralf Förster gentoo-dev 2023-02-15 18:29:49 UTC
Created attachment 851322 [details]
temp.tar.bz2
Comment 9 Michael Uleysky 2023-02-16 04:07:13 UTC
Created attachment 851504 [details, diff]
Fix compilation with kscreen

Hopefully bug https://bugs.gentoo.org/894468 will also be fixed
Comment 10 Chiitoo gentoo-dev 2023-02-16 07:18:22 UTC
(In reply to Michael Uleysky from comment #9)
> Created attachment 851504 [details, diff] [details, diff]
> Fix compilation with kscreen
> 
> Hopefully bug https://bugs.gentoo.org/894468 will also be fixed

It will be, hopefully today after work or during a break when I have some time.  :]

Also your patch seems to be for the missing includes, which I remembered that bug to be about, but looking at it again it seems to be about this one as well.  It's slightly older, so I'll mark this one as a duplicate.

This issue is caused by the C++ compatibility level.

There's already a pull request as well, that handles both issues:

https://github.com/gentoo/gentoo/pull/29587

Thank you!

*** This bug has been marked as a duplicate of bug 894468 ***
Comment 11 Chiitoo gentoo-dev 2023-02-16 18:45:51 UTC
(In reply to Chiitoo from comment #10)
> (In reply to Michael Uleysky from comment #9)
> > Created attachment 851504 [details, diff] [details, diff] [details, diff]
> > Fix compilation with kscreen
> > 
> > Hopefully bug https://bugs.gentoo.org/894468 will also be fixed
> 

[...]

> Also your patch seems to be for the missing includes, which I remembered
> that bug to be about, but looking at it again it seems to be about this one
> as well.  It's slightly older, so I'll mark this one as a duplicate.

[...]

Actually it does show a part of the kscreen include issue as well in the build log, so I'll make a note of that there as well!