Skip to content

Conversation

@skottler
Copy link

This fixes the ruby-3.2 build for the version 3.2.2. The current sha256 of this version doesn't match the release version:

$ melange update-cache ruby-3.2.yaml
2023/06/11 10:19:41 fetching artifacts relating to ruby-3.2-3.2.2
2023/06/11 10:19:41 processing fetch node:
2023/06/11 10:19:41   uri: https://cache.ruby-lang.org/pub/ruby/3.2/ruby-${{package.version}}.tar.gz
2023/06/11 10:19:41   evaluated: https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.2.tar.gz
2023/06/11 10:19:43   fetched-as: /tmp/melange-update-3223485716
2023/06/11 10:19:43   actual-sha256: 96c57558871a6748de5bc9f274e93f4b5aad06cd8f37befa0e8d94e7b8a423bc
2023/06/11 10:19:43   actual-sha512: bcc68f3f24c1c8987d9c80b57332e5791f25b935ba38daf5addf60dbfe3a05f9dcaf21909681b88e862c67c6ed103150f73259c6e35c564f13a00f432e3c1e46
Error: sha256 mismatch: 96c57558871a6748de5bc9f274e93f4b5aad06cd8f37befa0e8d94e7b8a423bc != 13d67901660ee3217dbd9dd56059346bd4212ce64a69c306ef52df64935f8dbd
2023/06/11 10:19:43 error during command execution: sha256 mismatch: 96c57558871a6748de5bc9f274e93f4b5aad06cd8f37befa0e8d94e7b8a423bc != 13d67901660ee3217dbd9dd56059346bd4212ce64a69c306ef52df64935f8dbd

This update makes the sha256 checksum match what's on the ruby-lang.org release page and what I get back when downloading the artifact:

image

With this change applied:

melange update-cache ruby-3.2.yaml
2023/06/11 10:22:03 fetching artifacts relating to ruby-3.2-3.2.2
2023/06/11 10:22:03 processing fetch node:
2023/06/11 10:22:03   uri: https://cache.ruby-lang.org/pub/ruby/3.2/ruby-${{package.version}}.tar.gz
2023/06/11 10:22:03   evaluated: https://cache.ruby-lang.org/pub/ruby/3.2/ruby-3.2.2.tar.gz
2023/06/11 10:22:06   fetched-as: /tmp/melange-update-91168631
2023/06/11 10:22:06   actual-sha256: 96c57558871a6748de5bc9f274e93f4b5aad06cd8f37befa0e8d94e7b8a423bc
2023/06/11 10:22:06   actual-sha512: bcc68f3f24c1c8987d9c80b57332e5791f25b935ba38daf5addf60dbfe3a05f9dcaf21909681b88e862c67c6ed103150f73259c6e35c564f13a00f432e3c1e46
2023/06/11 10:22:06   wrote: /var/cache/melange/sha256:96c57558871a6748de5bc9f274e93f4b5aad06cd8f37befa0e8d94e7b8a423bc

@skottler skottler requested a review from a team as a code owner June 11, 2023 14:22
@skottler skottler requested review from jonjohnsonjr and luhring June 11, 2023 14:22
Fix the LDFLAGS for the ruby build by removing noexecheap

Signed-off-by: dlorenc <[email protected]>
@dlorenc
Copy link
Member

dlorenc commented Jun 12, 2023

Thanks for this! We're looking into why we didn't catch the sha mismatch, @ajayk has tracked it down I think.

I pushed a commit to fix the LDFLAGs issue (removing noexecheap seems to fix the build). We'll get this merged, thanks!

Update epoch

Signed-off-by: dlorenc <[email protected]>
@dlorenc dlorenc enabled auto-merge June 12, 2023 14:41
@dlorenc dlorenc added this pull request to the merge queue Jun 12, 2023
Merged via the queue into wolfi-dev:main with commit cff2485 Jun 12, 2023
@skottler skottler deleted the ruby32-sha256 branch June 12, 2023 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants