Skip to content

Conversation

@sudipm-mukherjee
Copy link
Contributor

A minimum build enironments might not have git installed and the build fails.
Mark 'git' as optional so that bpfilter can be built from a tarball.

@meta-cla
Copy link

meta-cla bot commented Sep 1, 2025

Hi @sudipm-mukherjee!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

@qdeslandes
Copy link
Contributor

qdeslandes commented Sep 2, 2025

Hi @sudipm-mukherjee , thanks for doing this. Could you add a check after find_package(Git) and print a log (e.g. "git not found, using default project version ${DEFAULT_PROJECT_VERSION}") before returning if git is not found? Otherwise, the default 0.0.0 version could be confusing. Additionally, -DDEFAULT_PROJECT_VERSION=x.y.z can be used when running CMake to build without Git but with a valid version number (see bpfilter.spec).

@meta-cla meta-cla bot added the cla signed label Sep 2, 2025
@meta-cla
Copy link

meta-cla bot commented Sep 2, 2025

Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks!

A minimum build enironments might not have git installed and the build
fails. Mark 'git' as optional so that bpfilter can be built from a
tarball.

Signed-off-by: Sudip Mukherjee <sudipm.mukherjee@gmail.com>
@sudipm-mukherjee
Copy link
Contributor Author

Hi @sudipm-mukherjee , thanks for doing this. Could you add a check after find_package(Git) and print a log (e.g. "git not found, using default project version ${DEFAULT_PROJECT_VERSION}") before returning if git is not found? Otherwise, the default 0.0.0 version could be confusing. Additionally, -DDEFAULT_PROJECT_VERSION=x.y.z can be used when running CMake to build without Git but with a valid version number (see bpfilter.spec).

Thanks for checking. Changes done.
yeah, I noticed DEFAULT_PROJECT_VERSION after making other changes to set the version. :)

@qdeslandes
Copy link
Contributor

LGTM, thanks for working on this! :D

@qdeslandes qdeslandes merged commit decb6c9 into facebook:main Sep 8, 2025
27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants