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

build(cmake/modules): avoid gRCP files to be installed into packages #1662

Closed
wants to merge 2 commits into from

Conversation

leogr
Copy link
Member

@leogr leogr commented Jun 1, 2021

What type of PR is this?

/kind bug

Any specific area of the project related to this PR?

/area build

What this PR does / why we need it:

This patch is to be intended as a temporary workaround.
The root issue needs to be addressed in falcosecurity/libs.
A definite solution will be implemented later.

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:
This is a hotfix to unblock the current release.
It addresses the issue described in #1653 (comment)

/milestone 0.28.2

Does this PR introduce a user-facing change?:

NONE

This patch is to be intended as a temporary workaround.
The root issue needs to be addressed in `falcosecurity/libs`.
A definite solution will be implemented later.

Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
@poiana
Copy link
Contributor

poiana commented Jun 1, 2021

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
To complete the pull request process, please ask for approval from leogr after the PR has been reviewed.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@poiana poiana added the size/S label Jun 1, 2021
-DZLIB_ROOT:STRING=${ZLIB_SRC}
BUILD_IN_SOURCE 1
BUILD_BYPRODUCTS ${GRPC_LIB} ${GRPCPP_LIB} ${GPR_LIB} ${GRPC_LIBRARIES}
+ INSTALL_COMMAND DESTDIR=/ make install
Copy link
Member Author

@leogr leogr Jun 1, 2021

Choose a reason for hiding this comment

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

N.B. for reviewers:
the resulting installation directory is computed by DESTDIR + CMAKE_INSTALL_PREFIX.
Basically, it forces gRPC installation files to be always installed into the path specified by CMAKE_INSTALL_PREFIX that's set to ${GRPC_SRC}/target (see here).

See also:

@leogr leogr changed the title fix(cmake/modules): avoid gRCP files to be installed into packages build(cmake/modules): avoid gRCP files to be installed into packages Jun 1, 2021
Signed-off-by: Leonardo Grasso <me@leonardograsso.com>
@leogr leogr marked this pull request as ready for review June 1, 2021 08:51
@leogr leogr mentioned this pull request Jun 1, 2021
12 tasks
Copy link
Member

@leodido leodido left a comment

Choose a reason for hiding this comment

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

I see your point in patching this here to complete the hotfix release of Falco 0.28 line.

But, wouldn't be simpler and more straightforward to fix the thing where it really belongs to (falcosecurity/libs) and cancel this hotfix release since Falco 0.29 is due in 7 days as per milestones?

Yes, a new driver version would be required and 13ec67e (that in this case never made part of an official Falco version) removed... But to me, it would sound all more correct.

Just my 2 cents

@leogr leogr modified the milestones: 0.28.2, 0.29.0 Jun 1, 2021
@leogr
Copy link
Member Author

leogr commented Jun 1, 2021

As we all agree on releasing 0.29.0 directly, I'm closing this and moving the fix to libs directly.
👍

@leogr leogr closed this Jun 1, 2021
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.

3 participants