View previous topic :: View next topic |
Author |
Message |
NilPointer n00b
Joined: 02 Feb 2015 Posts: 41
|
Posted: Mon Jan 09, 2017 6:47 pm Post subject: [SOLVED] Bisecting a live package? |
|
|
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 |
|
|
toralf Developer
Joined: 01 Feb 2004 Posts: 3922 Location: Hamburg
|
Posted: Mon Jan 09, 2017 8:41 pm Post subject: Re: Bisecting a live package? |
|
|
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 |
|
|
Ant P. Watchman
Joined: 18 Apr 2009 Posts: 6920
|
Posted: Wed Jan 11, 2017 10:29 pm Post subject: |
|
|
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 |
|
|
NilPointer n00b
Joined: 02 Feb 2015 Posts: 41
|
Posted: Thu Jan 12, 2017 5:48 pm Post subject: |
|
|
Yes, Ant P., that sounds like most straightforward way. Thanks! |
|
Back to top |
|
|
shoober420 Apprentice
Joined: 22 May 2017 Posts: 223
|
Posted: Mon May 31, 2021 8:14 am Post subject: |
|
|
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 |
|
|
Hu Moderator
Joined: 06 Mar 2007 Posts: 21595
|
Posted: Mon May 31, 2021 4:17 pm Post subject: |
|
|
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 |
|
|
shoober420 Apprentice
Joined: 22 May 2017 Posts: 223
|
Posted: Mon May 31, 2021 10:40 pm Post subject: |
|
|
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 |
|
|
|