Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937454 - media-gfx/maim-5.8.0[icu]: error: ‘enable_if’ in namespace ‘std’ does not name a template type with >=dev-libs/icu-75.1
Summary: media-gfx/maim-5.8.0[icu]: error: ‘enable_if’ in namespace ‘std’ does not nam...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL: https://github.com/naelstrof/maim/iss...
Whiteboard:
Keywords: PATCH
Depends on:
Blocks: icu-75
  Show dependency tree
 
Reported: 2024-08-06 13:36 UTC by pva
Modified: 2024-11-08 18:56 UTC (History)
6 users (show)

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


Attachments
build.log.xz (build.log.xz,2.41 KB, application/x-xz)
2024-08-06 13:36 UTC, pva
Details
emerge --info (emerge--info.txt,9.87 KB, text/plain)
2024-08-06 13:37 UTC, pva
Details
maim-5.8.0.ebuild.patch (maim-5.8.0.ebuild.patch,434 bytes, patch)
2024-08-06 13:39 UTC, pva
Details | Diff
patch (maim-5.8.0-cxxversion.diff,405 bytes, patch)
2024-08-27 09:49 UTC, Emanuele Torre
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.
Comment 3 Emanuele Torre 2024-08-27 09:49:52 UTC
Created attachment 901312 [details, diff]
patch

patch that can be just put in /etc/portage/patches/media-gfx/maim/ to make the package build
Comment 4 pva 2024-08-27 10:24:56 UTC
(In reply to Emanuele Torre from comment #3)
> Created attachment 901312 [details, diff] [details, diff]
> patch
> 
> patch that can be just put in /etc/portage/patches/media-gfx/maim/ to make
> the package build

Thank you. BTW, with sed it's better since you see changes directly in ebuild :)
Comment 5 Larry the Git Cow gentoo-dev 2024-11-08 18:56:14 UTC
The bug has been closed via the following commit(s):

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

commit 8d950fbb236fb5939f8a784fb201165b46720cc7
Author:     Andreas Sturmlechner <asturm@gentoo.org>
AuthorDate: 2024-11-08 18:54:49 +0000
Commit:     Andreas Sturmlechner <asturm@gentoo.org>
CommitDate: 2024-11-08 18:56:03 +0000

    media-gfx/maim: Fix build with ICU-75
    
    Thanks-to: Emanuele Torre
    Thanks-to: pva
    Closes: https://bugs.gentoo.org/937454
    Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>

 media-gfx/maim/files/maim-5.8.0-icu-75.patch | 11 +++++++++++
 media-gfx/maim/maim-5.8.0.ebuild             |  3 +++
 2 files changed, 14 insertions(+)