Skip to content

shapelib: add tests variant - #6093

Open
mathomp4 wants to merge 1 commit into
spack:developfrom
mathomp4:shapelib-tests-variant
Open

shapelib: add tests variant#6093
mathomp4 wants to merge 1 commit into
spack:developfrom
mathomp4:shapelib-tests-variant

Conversation

@mathomp4

Copy link
Copy Markdown
Contributor

In doing a build test on an air-gapped node where I'd pre-fetched my sources, I found I couldn't build shapelib. By default, their CMake seems to enable testing as long as bash can be found (see https://github.com/OSGeo/shapelib/blob/6e3ac42088274d3a68c0c35aa42e0ddf7f80104e/CMakeLists.txt#L207-L213).

This then triggers a FetchContent call to download Google benchmark and GoogleTest which weren't prefetched and crash.

So this PR adds a tests variant which defaults to False.

@spackbot-triage spackbot-triage Bot added update-package Modifications to packages in the repository new-variant Modifications to packages' `variant()` directives labels Aug 14, 2026
@mathomp4

mathomp4 commented Aug 14, 2026

Copy link
Copy Markdown
Contributor Author

Hmm. No maintainer. I'm going to mention @rouault to see if he has objections.

I also request review from @haampie since, well, GitHub recommended it. 😄

@mathomp4
mathomp4 requested a review from haampie August 14, 2026 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new-variant Modifications to packages' `variant()` directives update-package Modifications to packages in the repository

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant