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

Bug 762817

Summary: sci-mathematics/gfan-0.6.2-r1: stabilisation (was: sci-mathematics/gfan-0.6.2 fails to compile with cddlib-0.94m-r1)
Product: Gentoo Linux Reporter: Derek Perrin <derek>
Component: StabilizationAssignee: Gentoo Science Mathematics related packages <sci-mathematics>
Status: RESOLVED OBSOLETE    
Severity: normal CC: frp.bissey, ionen, jsmolic, mjo, sam, x86
Priority: Normal Keywords: CC-ARCHES, PATCH, PullRequest
Version: unspecifiedFlags: nattka: sanity-check+
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/19661
https://bugs.gentoo.org/show_bug.cgi?id=792069
Whiteboard:
Package list:
sci-mathematics/gfan-0.6.2-r3
Runtime testing required: ---
Bug Depends on: 818397    
Bug Blocks:    
Attachments:
Description Flags
output none

Description Derek Perrin 2020-12-31 17:21:56 UTC
Created attachment 680467 [details]
output

Trying to emerge sci-mathematics/gfan-0.6.2 fails with:

setoper.h: No such file or directory

This seems to be related to the problem https://github.com/NixOS/nixpkgs/issues/100622. Applying the patch

https://raw.githubusercontent.com/omasanori/nixpkgs/096ef947170de11130edaeeb29b7568b954b92d9/pkgs/applications/science/math/gfan/gfan-0.6.2-cddlib-prefix.patch

and removing the -DNOCDDPREFIX from the ebuild seems to resolve the problem. I've attached my output when trying to emerge without this fix.
Comment 1 Ionen Wolkens gentoo-dev 2020-12-31 17:34:40 UTC
Can reproduce and the proposed solution appears to work.
Comment 2 François Bissey 2021-02-26 01:08:23 UTC
The patch nix is fine and certainly should end up upstream now that a decision on the location of cddlib headers has been made.

However, there is a simpler fix that will work with both cddlib 094j and 094m. Add `-I${EPREFIX}/usr/include/cddlib` to CXXFLAGS. Appending flags to CXXFLAGS can be removed once upstream has a new release.
Comment 3 Larry the Git Cow gentoo-dev 2021-03-03 03:06:56 UTC
The bug has been referenced in the following commit(s):

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

commit 9a29bad46e9208e1ad584d66e27ae2bfafe2f7f2
Author:     François Bissey <frp.bissey@gmail.com>
AuthorDate: 2021-02-26 01:13:26 +0000
Commit:     Michael Orlitzky <mjo@gentoo.org>
CommitDate: 2021-03-03 02:46:15 +0000

    sci-mathematics/gfan: adapt to newer cddlib
    
    Package-Manager: Portage-3.0.13, Repoman-3.0.2
    Closes: https://github.com/gentoo/gentoo/pull/19661
    Bug: https://bugs.gentoo.org/show_bug.cgi?id=762817
    Signed-off-by: François René Pierre Bissey <frp.bissey@gmail.com>
    Signed-off-by: Michael Orlitzky <mjo@gentoo.org>

 sci-mathematics/gfan/gfan-0.6.2-r1.ebuild | 67 +++++++++++++++++++++++++++++++
 1 file changed, 67 insertions(+)
Comment 4 François Bissey 2021-05-29 05:39:10 UTC
This bug should be closed. However now that cddlib-0.94m-r1 is stable and the only version available, the new revision of gfan needs stabilizing too and the old should be dropped since it won't compile.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-29 15:21:25 UTC
amd64 done
Comment 6 NATTkA bot gentoo-dev 2021-06-18 13:16:35 UTC Comment hidden (obsolete)
Comment 7 NATTkA bot gentoo-dev 2021-06-18 13:32:32 UTC
All sanity-check issues have been resolved
Comment 8 Michael Orlitzky gentoo-dev 2022-01-25 13:34:12 UTC
I'll open a new stabilization bug for -r4 in a bit. Something changed with LaTeX and the doc build stopped working in earlier revisions anyway.