Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ebuild - git pull at specific commit + checksum verification
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3310
Location: Rasi, Finland

PostPosted: Thu Mar 22, 2018 1:18 pm    Post subject: ebuild - git pull at specific commit + checksum verification Reply with quote

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
View user's profile Send private message
Juippisi
Developer
Developer


Joined: 30 Sep 2005
Posts: 722
Location: /home

PostPosted: Thu Mar 22, 2018 3:41 pm    Post subject: Reply with quote

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
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3310
Location: Rasi, Finland

PostPosted: Thu Mar 22, 2018 4:26 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum