Open jakirkham opened 5 years ago
A lot of the RPM stuff parses xml with code developed through trial and error. I wonder if using dnf would be better in some ways. I did look at this once though and it looked like a lot of work!
AIUI source RPMs don't actually have verified checksums in the repo. So we would be generating these ourselves by downloading the RPM and computing a checksum. This is a bit kludgy, but I guess we can do that. Or is there a better option that I'm missing?
Is there a way for the skeleton to generate the checksum for you?
Not currently no. We would need to add this. It's important to note this checksum would not be externally validated.
Assuming external validation doesn't matter, here are the rough things we would need to do. We would need to change this line to keep the checksum. Then we'd need to update the template and what gets filled in there. There's probably also some work to pass the checksum around to get it into the template.
@jakirkham, you can also do what R folks do and have a script that updates the recipe that the conda skeleton gives you.
I'd rather just get the intended behavior into conda-build.
For now, I've proposed dropping source RPMs until we have solved this issue (especially given they do not appear to be used) ( https://github.com/conda/conda-build/pull/3580 ).
Though there may be cases where we want them like packaging license files ( https://github.com/conda/conda-build/issues/3568 ). So we still will want to solve this issue.
Hi there, thank you for your contribution!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed automatically if no further activity occurs.
If you would like this issue to remain open please:
NOTE: If this issue was closed prematurely, please leave a comment.
Thanks!
Let's keep this open. Also there is a PR linked above that could use a review (when someone has a moment)
It looks like the CDT template ignores source RPMs' checksums. Based on the note it sounds like we lack verified checksums to use here. Raising to see if there is any other way we might be able to add a checksum for the source RPMs.
cc @mingwandroid