
That's the way to go. You could define EGIT_COMMIT on the command line but that would give you a checkout at that commit, not revert it. If you're OK with syncing the previous commit, you can use it though.CaptainBlood wrote:I recall having successfully set patches as in /etc/portage/patches for 9999 packages.
Maybe this could help?
Thks 4 ur attention, interest & support.

Code: Select all
EGIT_REPO_URI="https://github.com/X11Libre/xserver.git"
EGIT_COMMIT=4d5e5558ba2002847febfd6ff62e5656e50abf2fMaybe you could ammend src_prepare but to me that looks like going to great lengths just to make it that way.M95D wrote:I know about patches.
So there is no way to somehow do a git revert inside distfiles/git3-src/<package>.git and have portage use the checked out branch as it is?
This is just "patches" with extra steps.M95D wrote:I know about patches.
So there is no way to somehow do a git revert inside distfiles/git3-src/<package>.git and have portage use the checked out branch as it is?
Hello,M95D wrote:I prefer emerge instead of building and installing manually because there is no alternative (that I know of) for "emerge --unmerge" when installing with "make install".
Code: Select all
$ make uninstall 'package'The problem with that is in Gentoo you don't run make install yourself first place. The second problem is the way its written suggests you're considering make a package manager.SCR4MBL3 wrote:Hello,M95D wrote:I prefer emerge instead of building and installing manually because there is no alternative (that I know of) for "emerge --unmerge" when installing with "make install".
Can't you just do?Code: Select all
$ make uninstall 'package'
In the general case, no. Build systems are not obligated to even have an uninstall target, much less have it work correctly. This is one of the major reasons people prefer a package manager, which can collect up all the installed files in a staging area, log where they go, and then clean up later using that machine-readable log.SCR4MBL3 wrote:Hello,M95D wrote:I prefer emerge instead of building and installing manually because there is no alternative (that I know of) for "emerge --unmerge" when installing with "make install".
Can't you just do?Code: Select all
$ make uninstall 'package'
I wrote this a few years ago: https://wiki.gentoo.org/wiki/Bisecting_ ... ve_ebuildsM95D wrote: 2) How about a git bisect? Can I automate a git bisect that runs emerge and a simple bash test command?
It comes from the URL it is cloning from, in this case github.com/openzfs/zfs. The variables to use are all listed when you emerge a package using git-r3.eclass (it tells you what to set and how to override them).M95D wrote: How do I determine the name of the variables then? How do I know what <something> I should use? It's not the name of the package, it's not the repo name, it's not the branch, what is it then? That "OPENZFS_ZFS" looks like it's completely unrelated to anything.
Where are these variables documented? What do they do? What does "mirror" mean in "EGIT_CLONE_TYPE=mirror"?
I think you could phrase that in a way which is less antagonistic. I wrote that article specifically as a guide for somebody who wanted help with bisecting ZFS, and then tried to make it a bit more general. It could be better, though it could be made better by anybody (certainly doesn't have to be me). I'm sorry that didn't meet your expectations.M95D wrote: Could you (gentoo devs) please stop using examples as documentation and start writing proper documentation, please? Thank you!
It's a function defined a few lines above in the same script.M95D wrote: What does "fatal" in "USE="-pgo" fatal ebuild /var/db/repos/gentoo/sys-devel/binutils/binutils-2.40.ebuild clean compile install" do? I don't have that command installed and I can't find that command anyhere on the internet.
You could have at least write this information under the first example, no? Didn't you think it was relevant?sam_ wrote:The variables to use are all listed when you emerge a package using git-r3.eclass (it tells you what to set and how to override them).
Well, I'm sorry. I find it very annoying. Gives examples of features but no expanation, no nothing. Completely unusable for someone who didn't study that "eclassdoc for git-r3" you're talking about. I don't even know what it is.sam_ wrote: I think you could phrase that in a way which is less antagonistic. I wrote that article specifically as a guide for somebody who wanted help with bisecting ZFS, and then tried to make it a bit more general. It could be better, though it could be made better by anybody (certainly doesn't have to be me). I'm sorry that didn't meet your expectations.
Yeah, I completely missed it. I got so frustrated by the time I got to that part I simply skipped to the end.sam_ wrote:It's a function defined a few lines above in the same script.M95D wrote: What does "fatal" in "USE="-pgo" fatal ebuild /var/db/repos/gentoo/sys-devel/binutils/binutils-2.40.ebuild clean compile install" do? I don't have that command installed and I can't find that command anyhere on the internet.
As a Wiki article, anyone who chooses to create a Wiki account can edit it and improve it. While you may not have the expertise today to improve it, there are no procedural barriers to you being the person to improve it after you study the relevant documentation and become more proficient with the feature. This is distinct from other parts of the Gentoo project, where only someone who has been explicitly granted commit permission can change those parts.M95D wrote:No, the article can't be improved by anyone. Only by those who know how it works, which I suspect is just you + 2-5 other people.