Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Bisecting a live package?
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
NilPointer
n00b
n00b


Joined: 02 Feb 2015
Posts: 41

PostPosted: Mon Jan 09, 2017 6:47 pm    Post subject: [SOLVED] Bisecting a live package? Reply with quote

I'm trying to help mesa developers to trace down a regression bug. They asked me to bisect the mesa, if possible. How can I do that in portage-friendly way, using mesa-9999 package? Is there any better way than manually bisecting by setting EGIT_COMMIT?

Last edited by NilPointer on Thu Jan 12, 2017 5:49 pm; edited 1 time in total
Back to top
View user's profile Send private message
toralf
Developer
Developer


Joined: 01 Feb 2004
Posts: 3922
Location: Hamburg

PostPosted: Mon Jan 09, 2017 8:41 pm    Post subject: Re: Bisecting a live package? Reply with quote

NilPointer wrote:
I'm trying to help mesa developers to trace down a regression bug. They asked me to bisect the mesa, if possible. How can I do that in portage-friendly way, using mesa-9999 package? Is there any better way than manually bisecting by setting EGIT_COMMIT?

What's about :
1. clone the mesa repo
2. start git bisecting using a script which does the following:
2a. create a archive file with "git archive"
2b. run "ebuild ... manifest"
2c. emerge -1O mesa
2d. exits with the return code of emerge

?
Back to top
View user's profile Send private message
Ant P.
Watchman
Watchman


Joined: 18 Apr 2009
Posts: 6920

PostPosted: Wed Jan 11, 2017 10:29 pm    Post subject: Reply with quote

Start a bisect on the git repository in $PORTDIR/git3-src/mesa_mesa.git directly, and use `git bisect run` with a script that sets EVCS_OFFLINE=1 (and maybe EGIT_COMMIT="$(git describe --tags)").
Back to top
View user's profile Send private message
NilPointer
n00b
n00b


Joined: 02 Feb 2015
Posts: 41

PostPosted: Thu Jan 12, 2017 5:48 pm    Post subject: Reply with quote

Yes, Ant P., that sounds like most straightforward way. Thanks!
Back to top
View user's profile Send private message
shoober420
Apprentice
Apprentice


Joined: 22 May 2017
Posts: 223

PostPosted: Mon May 31, 2021 8:14 am    Post subject: Reply with quote

I don’t mean to necrobump, but this post is the first result when googling “gentoo bisect 9999”.

You can also add “EGIT_COMMIT=[SHA1HASH]” to the foo-9999.ebuild, put it in your localrepo, create the manifest, and bisect that way as well.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21595

PostPosted: Mon May 31, 2021 4:17 pm    Post subject: Reply with quote

You can, but that seems like a lot more trouble and less flexible than the mechanism that Ant P. proposed. If you put the candidate commit in the ebuild, you need to re-manifest the ebuild at every step. Are there advantages to setting it this way, rather than doing as Ant P. described?
Back to top
View user's profile Send private message
shoober420
Apprentice
Apprentice


Joined: 22 May 2017
Posts: 223

PostPosted: Mon May 31, 2021 10:40 pm    Post subject: Reply with quote

Yes, I needed to do a manifest after each commit change. There’s no advantage to it, but it is another way if someone doesn’t have any scripts to bisect with.
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