Skip to content
This repository was archived by the owner on Sep 20, 2026. It is now read-only.

formula: s-yata/marisa-trie - #505

Open
MeteorsLiu wants to merge 3 commits into
xgo-dev:mainfrom
MeteorsLiu:issue/252-marisa-luna
Open

MeteorsLiu wants to merge 3 commits into
xgo-dev:mainfrom
MeteorsLiu:issue/252-marisa-luna

Conversation

@MeteorsLiu

Copy link
Copy Markdown
Collaborator

Summary

  • add the s-yata/marisa-trie LLAR Formula from the pinned Conan Center recipe
  • preserve shared, fPIC, and tools options with relocatable pkg-config metadata
  • apply the verified Conan CMake patch only to pre-CMake upstream tags

Validation

  • LLAR main 9c062aa5c4b1724bfd30cb72f7e0bda136f9c078
  • Darwin arm64: v0.2.6, v0.2.7, v0.3.0, v0.3.1, latest/default, cache hit, and retained option matrices
  • v0.2.5 correctly rejected below fromVer

Closes #252

@fennoai fennoai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The formula's build/install paths and the pre-CMake patch were reviewed across the declared version range. The consumer test is not compatible with the claimed v0.3.x range: those headers use std::string_view, so the current C++11 test command fails before the consumer can be linked. I verified the failure against upstream v0.3.0; the same test should use at least C++17 (which remains compatible with the older tags).

os.writeFile(flagsFile, []byte(pkgconfig.lookup("marisa")!), 0o644)!

binary := filepath.join(testDir, "consumer")
exec! "c++", "-std=c++11", consumer, "-o", binary, "@"+flagsFile

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

[P1] Compile the consumer with C++17 for v0.3.x

The formula applies to v0.3.0 and newer tags, whose installed public headers declare std::string_view; compiling this consumer with -std=c++11 therefore fails with std::string_view has not been declared on those versions. As a result, the advertised v0.3.x validation and every non-cache build's onTest fail even though the library itself builds. Raise the test standard to at least C++17 (or select it by version); C++17 also accepts the v0.2.x headers.

This branch has not been deployed

No deployments
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Translate Conan Center marisa recipe to LLAR

1 participant