-
Notifications
You must be signed in to change notification settings - Fork 35
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
Include the patched version of aws-nitro-enclaves-cose in the repo and packit enhancements #704
base: main
Are you sure you want to change the base?
Conversation
60880b7
to
20de0d6
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
devskim found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
2901f7e
to
ec9f9bb
Compare
niiiice 😃 let's make this work! |
Add a copy of the original `aws-nitro-enclaves-cose` crate to the repository. The copied version is the one required by FDO to operate until we migrate to `coset` or any other crate that provides COSE implementation. Signed-off-by: Miguel Martín <[email protected]>
ec9f9bb
to
3948303
Compare
c00621c
to
dd70bf7
Compare
Prevent `direct implementation of ToString` clippy errors and backport [1] [1]awslabs/aws-nitro-enclaves-cose#66 Signed-off-by: Miguel Martín <[email protected]>
dd70bf7
to
e922191
Compare
938021b
to
6091fc2
Compare
5b885af
to
3175e22
Compare
3175e22
to
0484bb1
Compare
12b1fb2
to
803b878
Compare
@@ -23,9 +25,45 @@ help: | |||
@echo "The following targets are available:" | |||
@echo | |||
@echo " help: Print this usage information." | |||
@echo " source: Generate source tar file in the current directory." | |||
@echo " vendor: Generate vendor tar file in the current directory." |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess we can update the SOP document to use these commands too - like git checkout v0.5.2
and then make source && make vendor
and then git checkout c10s && centpkg updload file.tar.gz
etc etc (maybe for another PR of course)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't the propose-downstream
also work for centos? (except for the corresponding Jira ticket creation)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, but you still have to upload the sources (this is how I read the page on the packit guide as it's not yet implemented to upload sources to the lookaside cache) - also, building isn't taken care of as far as I can tell
maybe I'm wrong :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I think you are right, It looks like the automation will not do it for us but there's the option of using the cli according to the warning note.
Mabye something like (after filing the corresponding Jira ticket: RHEL-XXXXX):
git checkout v0.5.2
packit propose-downstream --pr \
--dist-git-branch c10s \
--resolve-bug RHEL-XXXXX
--package fido-device-onboard-centos
Remove the uneeded patches from spec file and assume fedora by default Signed-off-by: Miguel Martín <[email protected]>
Signed-off-by: Miguel Martín <[email protected]>
b74733c
to
84690cf
Compare
Add additional Makefile targets: - source: to generate source tar file - vendor: to generate vendor tar file - packit-create-archive: to generate the source code and vendor tarballs in packit.
Use the new Makefile target in packit actions. Signed-off-by: Miguel Martín <[email protected]>
Signed-off-by: Miguel Martín <[email protected]>
Skip external crates from spellcheck and DevSkim analisys Signed-off-by: Miguel Martín <[email protected]>
Signed-off-by: Miguel Martín <[email protected]>
Add the generated source and vendor tar files to .gitignore Signed-off-by: Miguel Martín <[email protected]>
- Elide explicit lifetimes pointed out by clippy. - Allow `clippy::elided-named-lifetimes` lint warning until a final fix. - Allow `clippy::zombie_processes` until a final fix. - Bump `num-derive` to 0.4 in data-formats. Signed-off-by: Miguel Martín <[email protected]>
84690cf
to
11e8927
Compare
The purpose of this patch is to incorporate the external an patched version of aws-nitro-enclaves-cose into the project's source code to avoid all the hacks of patching and unpatching the spec files, the Cargo.toml and the vendored sources back an forth when packaging as it has been shown to be fragile and is causing (and will cause) problems with dependantbot.
This patch also tries to centralize all the build logic in one file (the Makefile) and simplify the packit configuration.
The summary of changes woud be: