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

Bug 933711

Summary: media-gfx/inkscape-1.3.2-r2: fails to compile with clang-18 on llvm profile (3rdparty/2geom/include/2geom/path.h:846:20: error: no member named 'unique' in 'std::shared_ptr<Geom::PathInternal::PathData>')
Product: Gentoo Linux Reporter: Liu Yujie <2073201758GD>
Component: Current packagesAssignee: Andreas K. Hüttel <dilfridge>
Status: UNCONFIRMED ---    
Severity: normal CC: 2073201758GD, leohdz172, yamadharma
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: AMD64   
OS: Linux   
URL: https://gitlab.com/inkscape/lib2geom/-/issues/74
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
build.log
Avoid-std-shared_ptr-T-unique.patch

Description Liu Yujie 2024-06-07 00:49:16 UTC
When trying to emerge media-gfx/inkscape-1.3.2-r2 on llvm profile with clang-18:
/tmp/portage/media-gfx/inkscape-1.3.2-r2/work/inkscape-1.3.2/src/3rdparty/2geom/include/2geom/path.h:846:20: error: no member named 'unique' in 'std::shared_ptr<Geom::PathInternal::PathData>'
  846 |         if (!_data.unique()) {
      |              ~~~~~ ^


there is already an upstream issue and exists possible fix 
https://gitlab.com/inkscape/lib2geom/-/issues/74
https://gitlab.com/inkscape/lib2geom/-/commit/9b1ff56ae90db7fbbceebaac3ccf521f6ceb32f4

Reproducible: Always
Comment 1 Liu Yujie 2024-06-07 00:49:45 UTC
Created attachment 895280 [details]
emerge --info
Comment 2 Liu Yujie 2024-06-07 00:50:41 UTC
Created attachment 895281 [details]
build.log
Comment 3 Liu Yujie 2024-06-07 00:58:44 UTC
Created attachment 895282 [details, diff]
Avoid-std-shared_ptr-T-unique.patch