On Wed, 25 Jun 2025 13:21:21 +0500
Anna Vyalkova <
[email protected]> wrote:
On 2025-06-24, whiteman808 wrote:
I want to compile gentoo-sources for educational purposes and I
need recommendation how to conveniently track changes at the
.config file in kernel sources directory. If you recommend Git,
what setup in .gitconfig, .gitignore do you recommend?
I build kernel out-of-source from a non-root user: https://wiki.gentoo.org/wiki/Kernel/Building_from_userspace
Then I simply use Git in a build directory to commit changes every
time after running "kmake syncconfig" or after making meaningful
changes.
One minor change: Polluting your home dir with every build of every
package you ever touch is a bad, bad idea -- not the least because
you hopefully do full backups of your home dir and have no reason
whatever to back up all of the brew-ish cruft.
You'll find that having a /var/tmp/Build directory for this kind
of thing simplfies life by putting the cruft on a larger volume that
requires no backups -- use git to manage your config changes the
rest can be re-acquired with a few wget/curl statements.
I have a seprate volume /scratch for non-os-manged longer-lived
stuff that doesn't require backups. The /scratch/Build directory
has all of the git-clone-shallow workspaces for building all of
this stuff (including the kerenl) w/ group 'bin' and 02775 mods
(so is /opt). I can build and install it all without all of the
SU risks -- one Perl module used to print "rm -rf /*", tie up the
keyboard, do a File::Find for 5 seconds, then print a message "Why
would you ever run something as root if you didn't know what it
was doing?"
--
Steven Lembark
Workhorse Computing
[email protected]
+1 888 359 3508
--- SoupGate-Win32 v1.05
* Origin: fsxNet Usenet Gateway (21:1/5)