4

Move packaging logic to osquery-packaging by alessandrogario · Pull Request #692...

 2 years ago
source link: https://github.com/osquery/osquery/pull/6921
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Conversation

Copy link

Member

alessandrogario commented on Jan 25, 2021

edited by theopolis

This migrates this build-from-source packaging logic into a separate repo.

  • The wiki documentation is updated with the new instructions on how to package from source builds.
  • The CI is updated to use the new repo for package testing.

alessandrogario

force-pushed the alessandro/cmake/use-standalone-cpack-packaging

branch from ce0ce7a to b2d7f21 11 months ago

alessandrogario

marked this pull request as ready for review

11 months ago

alessandrogario

force-pushed the alessandro/cmake/use-standalone-cpack-packaging

branch 3 times, most recently from 366da03 to 16ab164 11 months ago

Copy link

Member

theopolis commented on Jan 29, 2021

We definitely need to document why this change is happening. And we need to update the docs with instructions on how to build packages.

alessandrogario

force-pushed the alessandro/cmake/use-standalone-cpack-packaging

branch from 16ab164 to 81a4537 11 months ago

Copy link

Contributor

@directionless directionless left a comment

At least on macOS, this does produce a package_data, which is awesome.

Some nits/suggestions, both of which are not blocking:

  1. This build should leave a VERSION file. The packaging consumer should not need the to find the version
  2. I want to quibble about the structure in package_data -- on macOS, there are 3 directories. control, private, and usr. I'm pretty sure the first is a meta directory, and the latter two are in /. I feel like convention would be to create control and root.

Anyhow, quibbles.

To create a DEB, RPM, or TGZ on Linux, CPack will attempt to auto-detect the appropriate package type.

You may override this with the CMake `PACKAGING_SYSTEM` variable as seen in the example below.

export OSQUERY_VERSION=$(git describe --tags --always)

I suspect this is a a carryover, but I think this would be cleaner if cmake --build . --target install dropped a VERSION file for the packaging to consume later.

Regardless, I think we can improve after merge,

alessandrogario

force-pushed the alessandro/cmake/use-standalone-cpack-packaging

branch from 613281d to 92a8873 9 months ago

Copy link

Member

theopolis commented on Apr 15, 2021

This looks good but heads up it has not updated the build_aarch64 workflows. Those will start to fail after this is merged. Do you want to update them in the same PR or let them break and follow up with another PR.

A good way to test them is to develop in a feature branch on osquery/osquery.

Copy link

Member

Author

alessandrogario commented on Apr 15, 2021

This looks good but heads up it has not updated the build_aarch64 workflows. Those will start to fail after this is merged. Do you want to update them in the same PR or let them break and follow up with another PR.

A good way to test them is to develop in a feature branch on osquery/osquery.

I was wondering how to test this, as I would have preferred to not break the AArch64 workflow; I'll create a new branch and switch my PR to work against it

alessandrogario

changed the base branch from master to feature/cmake/use-standalone-cpack-packaging

9 months ago

alessandrogario

merged commit 10af94a into

osquery:feature/cmake/use-standalone-cpack-packaging on Apr 15, 2021

11 checks passed

alessandrogario

deleted the alessandro/cmake/use-standalone-cpack-packaging branch

9 months ago

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Assignees

No one assigned

Projects

None yet

Milestone

No milestone

Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK