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

Bug 937454

Summary: media-gfx/maim-5.8.0: error: ‘enable_if’ in namespace ‘std’ does not name a template type
Product: Gentoo Linux Reporter: pva <peter.volkov>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: CONFIRMED ---    
Severity: normal CC: gentoo, parona, peter.volkov
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://github.com/naelstrof/maim/issues/292
See Also: https://bugs.gentoo.org/show_bug.cgi?id=933863
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log.xz
emerge --info
maim-5.8.0.ebuild.patch

Description pva 2024-08-06 13:36:57 UTC
Created attachment 899294 [details]
build.log.xz

media-gfx/maim-5.8.0 fails to build with error:

error: ‘enable_if’ in namespace ‘std’ does not name a template type

==============================================================================
[3/4] /usr/bin/x86_64-pc-linux-gnu-g++ -DCXXOPTS_USE_UNICODE -DMAIM_VERSION=\"v5.8.0\"   -O2 -pipe -march=haswell -mtune=skylake -std=c++11 -MD -MT CMakeFiles/maim.dir/src/main.cpp.o -MF CMakeFiles/maim.dir/src/main.cpp.o.d -o CMakeFiles/maim.dir/src/main.cpp.o -c /var/tmp/portage/portage/media-gfx/maim-5.8.0/work/maim-5.8.0/src/main.cpp
FAILED: CMakeFiles/maim.dir/src/main.cpp.o 
/usr/bin/x86_64-pc-linux-gnu-g++ -DCXXOPTS_USE_UNICODE -DMAIM_VERSION=\"v5.8.0\"   -O2 -pipe -march=haswell -mtune=skylake -std=c++11 -MD -MT CMakeFiles/maim.dir/src/main.cpp.o -MF CMakeFiles/maim.dir/src/main.cpp.o.d -o CMakeFiles/maim.dir/src/main.cpp.o -c /var/tmp/portage/portage/media-gfx/maim-5.8.0/work/maim-5.8.0/src/main.cpp
In file included from /usr/include/unicode/unistr.h:39,
                 from /var/tmp/portage/portage/media-gfx/maim-5.8.0/work/maim-5.8.0/src/cxxopts.hpp:51,
                 from /var/tmp/portage/portage/media-gfx/maim-5.8.0/work/maim-5.8.0/src/main.cpp:11:
/usr/include/unicode/stringpiece.h:133:29: error: ‘enable_if_t’ in namespace ‘std’ does not name a template type
  133 |             typename = std::enable_if_t<
      |                             ^~~~~~~~~~~
/usr/include/unicode/stringpiece.h:133:24: note: ‘std::enable_if_t’ is only available from C++14 onwards
  133 |             typename = std::enable_if_t<
      |                        ^~~
/usr/include/unicode/stringpiece.h:133:40: error: expected ‘>’ before ‘<’ token
  133 |             typename = std::enable_if_t<
      |                                        ^
ninja: build stopped: subcommand failed.
==============================================================================
Comment 1 pva 2024-08-06 13:37:23 UTC
Created attachment 899295 [details]
emerge --info
Comment 2 pva 2024-08-06 13:39:10 UTC
Created attachment 899296 [details, diff]
maim-5.8.0.ebuild.patch

Patch that fixes issue for me.