Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 834692 - dev-cpp/ms-gsl installs to /usr/include/gsl owned by sci-libs/gsl, breaking (at least) build of media-gfx/mandelbulber-2.26-r1 - /.../algorithm: error: copy_n is not a member of std (sci-libs/gsl bug?)
Summary: dev-cpp/ms-gsl installs to /usr/include/gsl owned by sci-libs/gsl, breaking (...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Jan Henke
URL:
Whiteboard:
Keywords:
: 947345 953894 (view as bug list)
Depends on:
Blocks: 884625
  Show dependency tree
 
Reported: 2022-03-06 20:17 UTC by Toralf Förster
Modified: 2025-04-16 14:38 UTC (History)
9 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,18.08 KB, text/plain)
2022-03-06 20:17 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,90.21 KB, application/x-bzip)
2022-03-06 20:17 UTC, Toralf Förster
Details
environment (environment,73.05 KB, text/plain)
2022-03-06 20:17 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,20.57 KB, application/x-bzip)
2022-03-06 20:17 UTC, Toralf Förster
Details
media-gfx:mandelbulber-2.26-r1:20220306-200023.log (media-gfx:mandelbulber-2.26-r1:20220306-200023.log,16.45 KB, text/plain)
2022-03-06 20:17 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,19.89 KB, application/x-bzip)
2022-03-06 20:17 UTC, Toralf Förster
Details
emerge-info.txt (emerge-info.txt,20.76 KB, text/plain)
2022-07-18 19:11 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,98.89 KB, application/x-bzip)
2022-07-18 19:11 UTC, Toralf Förster
Details
environment (environment,76.96 KB, text/plain)
2022-07-18 19:11 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,47.84 KB, application/x-bzip)
2022-07-18 19:11 UTC, Toralf Förster
Details
media-gfx:mandelbulber-2.28:20220718-190520.log (media-gfx:mandelbulber-2.28:20220718-190520.log,13.46 KB, text/plain)
2022-07-18 19:11 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,20.72 KB, application/x-bzip)
2022-07-18 19:11 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 2022-03-06 20:17:12 UTC
                 from /usr/include/qt5/QtCore/QString:1,
                 from src/algebra.hpp:50,
                 from src/algebra.cpp:40:
/usr/include/gsl/algorithm: In function void gsl::copy(gsl::span<ElementType, FirstExtent>, gsl::span<DestElementType, DestExtent>)’:
/usr/include/gsl/algorithm:54:10: error: copy_n’ is not a member of std’; did you mean copy’?
   54 |     std::copy_n(src.data(), src.size(), dest.data());
      |          ^~~~~~

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

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.1_desktop_plasma_systemd-j4-20220228-020016

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-11.2.1 *
clang/llvm (if any):
/usr/lib/llvm/13
13.0.1
Python 3.9.10
Available Ruby profiles:
  [1]   ruby26 (with Rubygems)
  [2]   ruby27 (with Rubygems)
  [3]   ruby30 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.59.0 *
The following VMs are available for generation-2:
1)	OpenJDK 11.0.14_p9 [openjdk-11]
2)	OpenJDK 8.322_p06 [openjdk-8]
*)	Eclipse Temurin JDK 11.0.14_p9 [openjdk-bin-11]
4)	Eclipse Temurin JDK 8.322_p06 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-8 
  [2]   openjdk-11 
  [3]   openjdk-bin-8 
  [4]   openjdk-bin-11  system-vm

The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:
  [1]   php7.4
  [2]   php8.0
  [3]   php8.1 *

  HEAD of ::gentoo
commit 930b4ff741b104475d7ce0f05c9228d121f24f7e
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Sun Mar 6 18:52:02 2022 +0000

    2022-03-06 18:52:01 UTC

emerge -qpvO media-gfx/mandelbulber
[ebuild  N    ] media-gfx/mandelbulber-2.26-r1  USE="tiff -joystick -opencl -openexr -sndfile"
Comment 1 Toralf Förster gentoo-dev 2022-03-06 20:17:16 UTC
Created attachment 766443 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-03-06 20:17:17 UTC
Created attachment 766444 [details]
emerge-history.txt.bz2
Comment 3 Toralf Förster gentoo-dev 2022-03-06 20:17:19 UTC
Created attachment 766445 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-03-06 20:17:20 UTC
Created attachment 766446 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-03-06 20:17:20 UTC
Created attachment 766447 [details]
media-gfx:mandelbulber-2.26-r1:20220306-200023.log
Comment 6 Toralf Förster gentoo-dev 2022-03-06 20:17:21 UTC
Created attachment 766448 [details]
temp.tar.bz2
Comment 7 Larry the Git Cow gentoo-dev 2022-07-18 13:19:28 UTC
The bug has been closed via the following commit(s):

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

commit 0f9fd60f9f15ecd35f34415c3710c2dc5a46aa89
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-07-18 13:17:56 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-07-18 13:17:56 +0000

    media-gfx/mandelbulber: add 2.28
    
    Closes: https://bugs.gentoo.org/841179
    Closes: https://bugs.gentoo.org/834692
    Signed-off-by: Sam James <sam@gentoo.org>

 media-gfx/mandelbulber/Manifest                 |  1 +
 media-gfx/mandelbulber/mandelbulber-2.28.ebuild | 82 +++++++++++++++++++++++++
 2 files changed, 83 insertions(+)
Comment 8 Toralf Förster gentoo-dev 2022-07-18 19:11:41 UTC
appeared recently at the tinderbox image 17.1_desktop_gnome_systemd-j4-20220712-120004
Comment 9 Toralf Förster gentoo-dev 2022-07-18 19:11:42 UTC
Created attachment 792182 [details]
emerge-info.txt
Comment 10 Toralf Förster gentoo-dev 2022-07-18 19:11:43 UTC
Created attachment 792185 [details]
emerge-history.txt.bz2
Comment 11 Toralf Förster gentoo-dev 2022-07-18 19:11:45 UTC
Created attachment 792188 [details]
environment
Comment 12 Toralf Förster gentoo-dev 2022-07-18 19:11:46 UTC
Created attachment 792191 [details]
etc.portage.tar.bz2
Comment 13 Toralf Förster gentoo-dev 2022-07-18 19:11:47 UTC
Created attachment 792194 [details]
media-gfx:mandelbulber-2.28:20220718-190520.log
Comment 14 Toralf Förster gentoo-dev 2022-07-18 19:11:48 UTC
Created attachment 792197 [details]
temp.tar.bz2
Comment 15 Leonid Kopylov 2023-05-10 17:43:52 UTC
seems problem solved:
# emerge media-gfx/mandelbulber -pvq
[ebuild   R   ] media-gfx/mandelbulber-2.28-r1  USE="joystick opencl openexr sndfile tiff"
Comment 16 Alfred Wingate 2023-11-16 18:09:53 UTC
Its not fixed, still reproducible with sci-libs/gsl and dev-cpp/ms-gsl installed. Similar to https://bugs.gentoo.org/884625#c10

https://github.com/buddhi1980/mandelbulber2/blob/710c70081da246672410fd369dab1df5e5d27379/mandelbulber2/qmake/common.pri#L125

Qmake hardcodes the include, using cmake *may* be better like with calligra where the issue stemmed from a bad cmake find module.

So use cmake and make sure the system cmake find module is used.
Comment 17 Samuel Bauer 2025-02-14 23:39:58 UTC
(In reply to Alfred Wingate from comment #16)

> So use cmake and make sure the system cmake find module is used.

Their cmakelist is still intended for qt5
Got to tweak it use qt6, would be sad


maybe ms-gsl should install includes to other place like /usr/include/ms-gsl
/usr/include/gsl seems taken by an old open source project
Comment 18 Jan Henke 2025-04-15 17:35:20 UTC
This is very much an upstream issue. Unfortunately both projects claim this installation directory for their own header files.

Renaming either package's installation directory leads to us having to patch every consumer too. Since there is other software out there, which expects either of these libs to install their header files there.

Ideally both upstream should resolve this name clash together, but I am not really seeing any effort on either side to work on that.

There is no realy "ownership" of paths under /user/include, therefore, there is also no real owner here.
Comment 19 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2025-04-15 20:59:09 UTC
*** Bug 953894 has been marked as a duplicate of this bug. ***
Comment 20 Andreas Sturmlechner gentoo-dev 2025-04-15 21:58:58 UTC
You'd think the younger project would have a slightly bigger obligation to adapt.
Comment 21 Larry the Git Cow gentoo-dev 2025-04-15 22:08:25 UTC
The bug has been closed via the following commit(s):

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

commit 6e25dc1d7ed57c393af79dd773144323c5a213cb
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-04-15 22:02:51 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-15 22:07:56 +0000

    media-gfx/mandelbulber: fix build when dev-cpp/ms-gsl is installed
    
    By injecting -I/usr/include/gsl, `#include <algorithm>` starts to mean
    "use ms-gsl's algorithm" rather than the C++ stdlib one. But all of the
    includes for ms-gsl here are properly namespaced, e.g. <gsl/foo.h>, so
    we can drop the explicit -I*.
    
    Closes: https://bugs.gentoo.org/834692
    Signed-off-by: Sam James <sam@gentoo.org>

 .../mandelbulber/files/mandelbulber-2.33-gsl.patch     | 18 ++++++++++++++++++
 media-gfx/mandelbulber/mandelbulber-2.33.ebuild        |  4 ++++
 2 files changed, 22 insertions(+)
Comment 22 Andreas Sturmlechner gentoo-dev 2025-04-16 14:38:58 UTC
*** Bug 947345 has been marked as a duplicate of this bug. ***