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

pistache 0.4.26 (new formula) #202108

Merged
merged 2 commits into from
Dec 25, 2024
Merged

pistache 0.4.26 (new formula) #202108

merged 2 commits into from
Dec 25, 2024

Conversation

dgreatwood
Copy link
Contributor

Adding Pistache to homebrew-core for the first time.

Pistache is a modern, fast, elegant HTTP + REST C++17 framework with a pleasant API. It supports Linux (including via Debian - https://packages.debian.org/sid/libpistache-dev), macOS, Windows and BSD.

  • Have you followed the guidelines for contributing?
  • Have you ensured that your commits follow the commit style guide?
  • Have you checked that there aren't other open pull requests for the same formula update/change?
  • Have you built your formula locally with HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>, where <formula> is the name of the formula you're submitting?
  • Is your test running fine brew test <formula>, where <formula> is the name of the formula you're submitting?
  • Does your build pass brew audit --strict <formula> (after doing HOMEBREW_NO_INSTALL_FROM_API=1 brew install --build-from-source <formula>)? If this is a new formula, does it pass brew audit --new <formula>?

@github-actions github-actions bot added the new formula PR adds a new formula to Homebrew/homebrew-core label Dec 22, 2024
Copy link
Contributor

Thanks for contributing to Homebrew! 🎉 It looks like you're having trouble with a CI failure. See our contribution guide for help. You may be most interested in the section on dealing with CI failures. You can find the CI logs in the Checks tab of your pull request.

@dgreatwood
Copy link
Contributor Author

Looks like there is an error in linuxbrew case, missing libcurl dependency, I'll address and retest. Please standby for now. Thx.

Formula/p/pistache.rb Outdated Show resolved Hide resolved
@chenrui333
Copy link
Member

Looks like there is an error in linuxbrew case, missing libcurl dependency, I'll address and retest. Please standby for now. Thx.

you can add uses_from_macos "curl"

Formula/p/pistache.rb Outdated Show resolved Hide resolved
@dgreatwood dgreatwood force-pushed the pistache branch 2 times, most recently from 71e3a59 to ab31d7d Compare December 23, 2024 19:17
@dgreatwood dgreatwood changed the title pistache 0.4.25 (new formula) pistache 0.4.26 (new formula) Dec 23, 2024
@dgreatwood
Copy link
Contributor Author

Now passes homebrew CI on Linux and macOS. Made a number of updates as follows:

  • As suggested by @chenrui333, added libcurl as a dependency with "uses_from_macos"
  • As suggested by @chenrui333, removed SPDX copyright+license message
  • As suggested by @SMillerDev, removed redundant "--buildtype=release"
  • Updated formula to Pistache release 0.4.26 to support "--wrap-mode=nofallback" option in Linux (was already supported for macOS in Pistache 0.4.25)
  • Corrected formula to specify whether each dependency is/is not build only

Formula/p/pistache.rb Outdated Show resolved Hide resolved
Formula/p/pistache.rb Outdated Show resolved Hide resolved
Formula/p/pistache.rb Outdated Show resolved Hide resolved
Formula/p/pistache.rb Outdated Show resolved Hide resolved
@chenrui333
Copy link
Member

thanks for the work, left couple of comments. 👍

@dgreatwood dgreatwood force-pushed the pistache branch 2 times, most recently from 30c1fd4 to de99323 Compare December 23, 2024 22:13
@dgreatwood
Copy link
Contributor Author

@chenrui333, thanks for your review. As you've seen, additional changes made per your comments:

  • Changed / removed formula-file comments as suggested
  • Made rapidjson and howard-hinnant-date into build-only dependencies
  • Added zlib as a Linux dependency with uses_from_macos

@chenrui333 chenrui333 added the ready to merge PR can be merged once CI is green label Dec 24, 2024
Formula/p/pistache.rb Outdated Show resolved Hide resolved
Adding Pistache to homebrew-core for the first time. Pistache is a
modern, fast, elegant HTTP and REST C++17 framework with a pleasant
API. It supports Linux (including via Debian -
https://packages.debian.org/sid/libpistache-dev), macOS, Windows and
BSD.
Also: Added libcurl and zlib as dependencies for Linux Pistache brew
formula (come pre-installed in macOS). Removed SPDX copyright+license
message from Pistache brew formula. Updated Pistache brew formula to
Pistache release 0.4.26 to support "--wrap-mode=nofallback" option in
Linux (was already supported for macOS). In the Pistache brew formula,
correctly specify whether each dependency is/is not build only. Do not
build Pistache's unit tests or examples.
Copy link
Member

@carlocab carlocab left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Contributor

@chenrui333
Copy link
Member

chenrui333 commented Dec 25, 2024

@dgreatwood, thanks for your first contribution to homebrew-core! Appreciate your efforts in here. 💯 ❤️

@github-actions github-actions bot added the CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. label Dec 25, 2024
@BrewTestBot BrewTestBot added this pull request to the merge queue Dec 25, 2024
Merged via the queue into Homebrew:master with commit 3816e1b Dec 25, 2024
15 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI-published-bottle-commits The commits for the built bottles have been pushed to the PR branch. new formula PR adds a new formula to Homebrew/homebrew-core ready to merge PR can be merged once CI is green
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants