Opened 13 months ago

Closed 8 months ago

#68505 closed defect (fixed)

gFTL-shared @1.6.1: Could not find a package configuration file provided by "gFTL"

Reported by: ryandesign (Ryan Carsten Schmidt) Owned by: barracuda156
Priority: Normal Milestone:
Component: ports Version: 2.8.1
Keywords: Cc:
Port: gFTL-shared

Description

https://build.macports.org/builders/ports-13_arm64-builder/builds/39053/steps/install-port/logs/stdio

CMake Error at CMakeLists.txt:38 (find_package):
  By not providing "FindgFTL.cmake" in CMAKE_MODULE_PATH this project has
  asked CMake to find a package configuration file provided by "gFTL", but
  CMake did not find one.

  Could not find a package configuration file provided by "gFTL" with any of
  the following names:

    gFTLConfig.cmake
    gftl-config.cmake

  Add the installation prefix of "gFTL" to CMAKE_PREFIX_PATH or set
  "gFTL_DIR" to a directory containing one of the above files.  If "gFTL"
  provides a separate development package or SDK, be sure it has been
  installed.


-- Configuring incomplete, errors occurred!

Change History (6)

comment:1 Changed 13 months ago by barracuda156

Hmm, wonder why it passed all CI then. Anyway, I will look into this and hopefully fix it today.

comment:2 in reply to:  description Changed 13 months ago by barracuda156

Replying to ryandesign:

Just tried building on Sonoma, and it installs with no issues:

svacchanda@Sergeys-MacBook-Air ~ % port -v installed |grep gFTL
  gFTL @1.10.0_1+gfortran (active) requested_variants='' platform='darwin 23' archs='arm64' date='2023-10-19T20:00:30+0800'
  gFTL-shared @1.6.1_0+gfortran (active) requested_variants='' platform='darwin 23' archs='arm64' date='2023-10-19T20:00:58+0800'

Unmodified portfiles.

comment:3 Changed 13 months ago by barracuda156

Ah, maybe it is again case-sensitive OS issue? Installation has names capitalized in paths, like GFTL, GFTL_SHARED.

Opened an issue: https://github.com/Goddard-Fortran-Ecosystem/gFTL/issues/202

Last edited 13 months ago by barracuda156 (previous) (diff)

comment:4 Changed 8 months ago by ryandesign (Ryan Carsten Schmidt)

Still fails.

Are you sure it's an upstream issue and not caused by the extensive patches you're making to their CMakeLists.txt? For example, the developer said:

the correct find command is find_package(GFTL).

but your patch uses find_package(gFTL REQUIRED).

comment:5 in reply to:  4 Changed 8 months ago by barracuda156

Replying to ryandesign:

Still fails.

Are you sure it's an upstream issue and not caused by the extensive patches you're making to their CMakeLists.txt? For example, the developer said:

the correct find command is find_package(GFTL).

but your patch uses find_package(gFTL REQUIRED).

I tried that and it failed for me.

Will review the issue again when get time for it.

comment:6 Changed 8 months ago by barracuda156

Resolution: fixed
Status: assignedclosed

In 2b1fc8d82cce572e581f1b348e14af10cc523681/macports-ports (master):

gFTL-shared: fix linking to gFTL on case-sensitive systems

Fixes: #68505

Note: See TracTickets for help on using tickets.