Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 787341 - sci-libs/sundials-5.7.0: ERROR: Could not find HYPRE. Please check the variables: HYPRE_INCLUDE_DIR and HYPRE_LIBRARY_DIR
Summary: sci-libs/sundials-5.7.0: ERROR: Could not find HYPRE. Please check the varia...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2021-05-01 10:38 UTC by Bernd
Modified: 2021-10-04 19:33 UTC (History)
3 users (show)

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


Attachments
sundials-5.7.0:20210429-204446.log (sundials-5.7.0:20210429-204446.log,9.29 KB, text/plain)
2021-05-01 10:39 UTC, Bernd
Details
emerge-info-sundials-5.7.0.txt (emerge-info-sundials-5.7.0.txt,14.48 KB, text/plain)
2021-05-01 10:40 UTC, Bernd
Details
sundials-5.7.0-r1.ebuild (sundials-5.7.0-r1.ebuild,2.63 KB, text/plain)
2021-05-01 10:42 UTC, Bernd
Details
sundials-5.7.0-fix-license-install-path.patch (sundials-5.7.0-fix-license-install-path.patch,875 bytes, text/plain)
2021-05-01 10:42 UTC, Bernd
Details
sundials-5.7.0_5.7.0-r1.patch (sundials-5.7.0_5.7.0-r1.patch,2.95 KB, patch)
2021-05-01 10:45 UTC, Bernd
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Bernd 2021-05-01 10:38:54 UTC
Packages fails during src_configure phase with error:

CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  ************************************************************************

  ERROR: Could not find HYPRE.  Please check the variables:

         HYPRE_INCLUDE_DIR and HYPRE_LIBRARY_DIR

  ************************************************************************
  (missing: HYPRE_LIBRARY)
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  cmake/tpl/FindHYPRE.cmake:70 (find_package_handle_standard_args)
  cmake/tpl/SundialsHypre.cmake:48 (find_package)
  cmake/SundialsSetupTPLs.cmake:103 (include)
  CMakeLists.txt:167 (include)


-- Configuring incomplete, errors occurred!


Reproducible: Always




As there are also many warnings for deprecated options, I looked into the ebuild and found several other issues:
* F77 support needs static-libs enabled, which causes a RequiredUseDefaults issue on pkgcheck with the x32 profile on amd64
* issues, where mpi and fortran USE flags where not passed to dependencies accordingly
* cxx support is now mandatory, USE flag has become obsolete

I've compiled an updated ebuild with corrected variables and added F2003 support, attached here, and also an improved patch for the license and notice files, which uses the GNUInstallDirs variables, instead of hardcoded paths.

If F77 support isn't strictly needed for any revdep, maybe we can think of removing support for F77 to remove the now default enabled static-libs USE flag.

I have a PR ready, if you're happy with the changes.

The location of the compiled F2003 modules is unknown to me. I've decided to put the mod files into /usr/$(get_libdir)/fortran. Feel free to ping me, if there's a dedicated location for those files.

Output of emerge --info attached as file, due to comment size limit.
Comment 1 Bernd 2021-05-01 10:39:49 UTC
Created attachment 704943 [details]
sundials-5.7.0:20210429-204446.log

build log
Comment 2 Bernd 2021-05-01 10:40:52 UTC
Created attachment 704946 [details]
emerge-info-sundials-5.7.0.txt

output of emerge --info sundials
Comment 3 Bernd 2021-05-01 10:42:05 UTC
Created attachment 704949 [details]
sundials-5.7.0-r1.ebuild

updated ebuild
Comment 4 Bernd 2021-05-01 10:42:36 UTC
Created attachment 704952 [details]
sundials-5.7.0-fix-license-install-path.patch

updated patch
Comment 5 Bernd 2021-05-01 10:45:24 UTC
Created attachment 704955 [details, diff]
sundials-5.7.0_5.7.0-r1.patch

patch with diff of sundials-5.7.0.ebuild and sundials-5.7.0-r1.ebuild
Comment 6 Bernd 2021-05-01 10:48:29 UTC
The package currently has several optional dependencies, which are not managed by the ebuild, like e.g. petsc, trilinos and others.
Comment 7 Larry the Git Cow gentoo-dev 2021-10-04 19:33:27 UTC
The bug has been closed via the following commit(s):

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

commit e5c0a08d3cecd7466fbda92233bbbd498e275505
Author:     Bernd Waibel <waebbl-gentoo@posteo.net>
AuthorDate: 2021-10-04 18:56:43 +0000
Commit:     Jakov Smolić <jsmolic@gentoo.org>
CommitDate: 2021-10-04 19:33:18 +0000

    sci-libs/sundials: add 5.8.0
    
    Closes: https://bugs.gentoo.org/787341
    Signed-off-by: Bernd Waibel <waebbl-gentoo@posteo.net>
    Signed-off-by: Jakov Smolić <jsmolic@gentoo.org>

 sci-libs/sundials/Manifest                         |   1 +
 .../sundials-5.8.0-fix-license-install-path.patch  |  29 ++++++
 sci-libs/sundials/sundials-5.8.0.ebuild            | 114 +++++++++++++++++++++
 3 files changed, 144 insertions(+)