View previous topic :: View next topic |
Author |
Message |
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3310 Location: Rasi, Finland
|
Posted: Thu Mar 22, 2018 1:18 pm Post subject: ebuild - git pull at specific commit + checksum verification |
|
|
I know it's possible to pull "non-live" sources by setting EGIT_COMMIT.
But I've always used github direct links to achieve that since github supports it.
So does source forge, but with an caveat: you first need to load a different page, which seems to trigger source forge server to create the package (tarball, zip...) at the requested commit. After that you can use wget or whatever downloader to download the source package. The package stays in source forge servers' cache for limited time, which after you cannot direct download the package anymore.
So my question is when using EGIT_COMMIT, does portage (via some eclass maybe?) have some kind of way to verify the checksums of each source file retrieved via git? Becuase normally it doesn't and treats it like live-ebuild which skips all the verifications. _________________ ..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
Juippisi Developer
Joined: 30 Sep 2005 Posts: 722 Location: /home
|
Posted: Thu Mar 22, 2018 3:41 pm Post subject: |
|
|
Well you can direct download archives from a specific commit as well, just
https://github.com/user/repo/archive/commit.tar.gz
but as you said, I think there is a danger that the archive's manifest changes every now and then. Never seen it happen but Ive heard it does. You might have to host it yourself to be sure :I |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3310 Location: Rasi, Finland
|
Posted: Thu Mar 22, 2018 4:26 pm Post subject: |
|
|
My problem is with source forge. Github per commit package downloads do work. _________________ ..: Zucca :..
Gentoo IRC channels reside on Libera.Chat.
--
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
|