Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug fix for mapl when environment variable BASEDIR is set #229

Conversation

climbfuji
Copy link
Collaborator

@climbfuji climbfuji commented Feb 16, 2023

Description

Fixes a problem with mapl where the presence of the environment variable BASEDIR wrecks havoc for the build of the package. This environment variable isn't needed when using spack to build mapl and other GEOS packages. It's only needed when using the old baselibs system developed by NASA.

Tested with JCSDA/spack-stack#476.

# for an environment variable with the same name. This
# name is common and used all over the place, and if
# it is set it breaks the mapl build. Unset it here ...
env.unset("BASEDIR")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops. Sorry about this, @climbfuji. I added that code because users here didn't want to always pass in -DBASEDIR on the CMake line. I don't mind doing it, but users liked being able to do cmake -B build and all works.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not a problem at all, just wondering if we could use a safer name going forward, for example GEOS_BASEDIR or something like that?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well, if/when we go to Spack, we won't need it, so that's nice. Unfortunately, BASEDIR is pretty much embedded into the foundations of GEOS. Build system, run script, etc.

@climbfuji climbfuji changed the title DRAFT/WIP mapl bug fix etc Bug fix for mapl when environment variable BASEDIR is set Feb 23, 2023
@climbfuji climbfuji marked this pull request as ready for review February 23, 2023 22:56
Copy link
Collaborator

@AlexanderRichert-NOAA AlexanderRichert-NOAA left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Tested with ufs-weather-model-static on hera just to be safe.

@climbfuji climbfuji merged commit 6df7bb3 into JCSDA:jcsda_emc_spack_stack Feb 25, 2023
@climbfuji climbfuji deleted the feature/mapl_basedir_buildcache_macos branch February 25, 2023 02:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants