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

Fix: Enable use of subproject httplib in macOS despite nofallback #1270

Merged
merged 1 commit into from
Dec 13, 2024

Conversation

dgreatwood
Copy link
Collaborator

On macOS, meson doesn't seem to find cpp-httplib even when cpp-httplib has been installed in the system (i.e. even when cpp-httplib has been installed with brew). This causes a particular issue with Pistache's brew formula, since brew's "std_meson_args", used by the formula, includes "--wrap-mode=nofallback", preventing meson from using our httplib subproject as a fallback (brew wants us to use brew to install each dependency, in preference to using a subproject). We workaround the issue in tests/meson.build by effectively doing the fallback to the cpp-httplib subproject without using meson dependency's "fallback:" option.

bldscripts/nfbmesbuild.sh: Added convenience script to build with the "--wrap-mode=nofallback" option.

On macOS, meson doesn't seem to find cpp-httplib even when cpp-httplib
has been installed in the system (i.e. even when cpp-httplib has been
installed with brew). This causes a particular issue with Pistache's
brew formula, since brew's "std_meson_args", used by the formula,
includes "--wrap-mode=nofallback", preventing meson from using our
httplib subproject as a fallback (brew wants us to use brew to install
each dependency, in preference to using a subproject). We workaround
the issue in tests/meson.build by effectively doing the fallback to
the cpp-httplib subproject without using meson dependency's
"fallback:" option.

bldscripts/nfbmesbuild.sh: Added convenience script to build with the
"--wrap-mode=nofallback" option.
@kiplingw kiplingw self-requested a review December 13, 2024 02:41
@kiplingw kiplingw added bug portability dependencies Pull requests that update a dependency file labels Dec 13, 2024
@kiplingw kiplingw merged commit c7c0548 into pistacheio:master Dec 13, 2024
130 of 132 checks passed
dgreatwood added a commit to dgreatwood/pistachefork that referenced this pull request Dec 22, 2024
As per PR pistacheio#1270, "Enable use of subproject httplib in macOS despite
nofallback", the same workaround is now applied in Linux also, so
Homebrew in Linux (aka Linuxbrew) can build Pistache.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug dependencies Pull requests that update a dependency file portability
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants