Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 851912 - sci-mathematics/cgal-{5.4.1,5.5} does not install the shared libs with USE="shared"
Summary: sci-mathematics/cgal-{5.4.1,5.5} does not install the shared libs with USE="s...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Science Mathematics related packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-06-14 13:03 UTC by Toralf Förster
Modified: 2022-07-22 20:40 UTC (History)
5 users (show)

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


Attachments
emerge-info.txt (emerge-info.txt,19.71 KB, text/plain)
2022-06-14 13:03 UTC, Toralf Förster
Details
emerge-history.txt.bz2 (emerge-history.txt.bz2,64.37 KB, application/x-bzip)
2022-06-14 13:03 UTC, Toralf Förster
Details
environment (environment,95.81 KB, text/plain)
2022-06-14 13:03 UTC, Toralf Förster
Details
etc.portage.tar.bz2 (etc.portage.tar.bz2,37.47 KB, application/x-bzip)
2022-06-14 13:03 UTC, Toralf Förster
Details
logs.tar.bz2 (logs.tar.bz2,6.53 KB, application/x-bzip)
2022-06-14 13:03 UTC, Toralf Förster
Details
sci-physics:fastjet-3.0.6-r3:20220614-095837.log (sci-physics:fastjet-3.0.6-r3:20220614-095837.log,6.61 KB, text/plain)
2022-06-14 13:03 UTC, Toralf Förster
Details
temp.tar.bz2 (temp.tar.bz2,28.09 KB, application/x-bzip)
2022-06-14 13:03 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-06-14 13:03:25 UTC
checking whether C++ compiler accepts -frounding-math... yes
checking for CGAL/Exact_predicates_inexact_constructions_kernel.h... yes
checking for main in -lCGAL... no
checking CGAL... no
configure: error: CGAL explicitly requested and not found or not functional

!!! Please attach the following file when seeking support:

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

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

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

gcc-config -l:
 [1] x86_64-pc-linux-gnu-9.3.1
 [2] x86_64-pc-linux-gnu-12.1.1 *
clang/llvm (if any):
/usr/lib/llvm/14
14.0.5
Python 3.9.13
Available Ruby profiles:
  (none found)
Available Rust versions:
  [1]   rust-1.61.0 *
The following VMs are available for generation-2:
1)	Eclipse Temurin JDK 11.0.15_p10 [openjdk-bin-11]
2)	Eclipse Temurin JDK 17.0.3_p7 [openjdk-bin-17]
*)	Eclipse Temurin JDK 8.332_p09 [openjdk-bin-8]
Available Java Virtual Machines:
  [1]   openjdk-bin-8  system-vm
  [2]   openjdk-bin-11 
  [3]   openjdk-bin-17 

The Glorious Glasgow Haskell Compilation System, version 8.10.4
php cli:

  HEAD of ::gentoo
commit 915a0f90772b114cbf0e032ad21f7202c58674c6
Author: Repository mirror & CI <repomirrorci@gentoo.org>
Date:   Tue Jun 14 09:18:23 2022 +0000

    2022-06-14 09:18:23 UTC

emerge -qpvO sci-physics/fastjet
[ebuild  N    ] sci-physics/fastjet-3.0.6-r3  USE="cgal plugins -doc -examples"
Comment 1 Toralf Förster gentoo-dev 2022-06-14 13:03:26 UTC
Created attachment 784916 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2022-06-14 13:03:28 UTC
Created attachment 784919 [details]
emerge-history.txt.bz2
Comment 3 Toralf Förster gentoo-dev 2022-06-14 13:03:29 UTC
Created attachment 784922 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2022-06-14 13:03:30 UTC
Created attachment 784925 [details]
etc.portage.tar.bz2
Comment 5 Toralf Förster gentoo-dev 2022-06-14 13:03:31 UTC
Created attachment 784928 [details]
logs.tar.bz2
Comment 6 Toralf Förster gentoo-dev 2022-06-14 13:03:32 UTC
Created attachment 784931 [details]
sci-physics:fastjet-3.0.6-r3:20220614-095837.log
Comment 7 Toralf Förster gentoo-dev 2022-06-14 13:03:33 UTC
Created attachment 784934 [details]
temp.tar.bz2
Comment 8 Toralf Förster gentoo-dev 2022-06-14 13:03:47 UTC
not fixed by bug 791811
Comment 9 Larry the Git Cow gentoo-dev 2022-07-22 09:42:53 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03033a9c9ffc67e6722c715340e678efed3b0828

commit 03033a9c9ffc67e6722c715340e678efed3b0828
Author:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
AuthorDate: 2022-07-22 09:41:08 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
CommitDate: 2022-07-22 09:42:45 +0000

    sci-physics/fastjet: depend on cgal<5.3
    
    cgal versions newer then 5.2 do not install the shared
    libraries that this package looks for in the configure phase
    even with USE="shared"
    
    Bug: https://bugs.gentoo.org/851912
    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>

 sci-physics/fastjet/fastjet-3.0.6-r3.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

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

commit f63c083c1a08e065b311a042f1ee273e9c30eda9
Author:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
AuthorDate: 2022-07-22 09:38:07 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
CommitDate: 2022-07-22 09:42:43 +0000

    sci-physics/fastjet: add 3.4.0
    
    Closes: https://github.com/gentoo/sci/pull/1158
    Bug: https://bugs.gentoo.org/851912
    Co-authored-by: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de>
    Signed-off-by: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de>
    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>

 sci-physics/fastjet/Manifest                       |  1 +
 sci-physics/fastjet/fastjet-3.4.0.ebuild           | 75 ++++++++++++++++++++++
 .../fastjet/files/fastjet-3.4.0-gfortran.patch     | 11 ++++
 .../files/fastjet-3.4.0-system-siscone.patch       | 75 ++++++++++++++++++++++
 4 files changed, 162 insertions(+)
Comment 10 Nowa Ammerlaan gentoo-dev 2022-07-22 10:08:23 UTC
The root of the problem here is that cgal versions newer then 5.2 do not install the shared libs that fastjet looks for in the configure phase, even with USE="shared" enabled. CC'ing previous committers to the cgal package.

For now I adjusted fastjet to depend on cgal-5.2, the only version it compiles with.
Comment 11 Matthias Maier gentoo-dev 2022-07-22 20:01:22 UTC
(In reply to Andrew Ammerlaan from comment #10)
> The root of the problem here is that cgal versions newer then 5.2 do not
> install the shared libs that fastjet looks for in the configure phase, even
> with USE="shared" enabled. CC'ing previous committers to the cgal package.

Actually newer cgal versions seem to not ship any shared (or static) libraries at all any more. A quick glance at the build system suggests this as well.

cgal is now a header only template library.

Sam kindly enough removed the "shared" use flag for the latest version bump to 5.5

Thus, the sci-physics/fastjet build system will have to be modified to work with newer header-only cgal installations
Comment 12 APN-Pucky 2022-07-22 20:07:09 UTC
Thank you for looking into this. 
Indeed, in the latest documentation of fastjet fastjet.fr/repo/fastjet-doc-3.4.0.pdf. 
Page 58 has a footnote explaining this:

> Since version 4.9, CGAL can be used as a header-only library (this is the default from version 5.0 of CGAL). 
> In this case, FastJet requires an installed version of CGAL as well as the --enable-cgal-header-only configure argument, see e.g. section 4 of the CGAL manual.
Comment 13 Larry the Git Cow gentoo-dev 2022-07-22 20:37:59 UTC
The bug has been closed via the following commit(s):

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

commit b2d04b525de8e18083fd96d02b3ca700b1e64e76
Author:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
AuthorDate: 2022-07-22 20:36:21 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan@gentoo.org>
CommitDate: 2022-07-22 20:37:50 +0000

    sci-physics/fastjet: fix USE="cgal" with versions 5.4 and up
    
    Closes: https://bugs.gentoo.org/851912
    Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org>

 sci-physics/fastjet/fastjet-3.4.0-r1.ebuild | 77 +++++++++++++++++++++++++++++
 1 file changed, 77 insertions(+)
Comment 14 Nowa Ammerlaan gentoo-dev 2022-07-22 20:40:28 UTC
Great, fixed! Replacing --enable-cgal with --enable-cgal-header-only was indeed the solution. Thanks for your help.