Dale,

On Monday, 2023-05-15 11:35:33 -0500, you wrote:

> ...
> If you got a minute, what is the reason for split-log?  What exactly
> does it split?  I'm guessing this is new since I don't recall reading
> about it. 

Under Gentoo each package has a name consisting of two parts: "category/
name".  But since under Unix/Linux the "/" is used to separate path com-
ponents,  the build logs in "/var/log/portage/" have sort of ugly names:
"category:name-version:YYYYMMDD:HHMMSS.log"  with a colon  rather than a
slash between category and name.  The "split-log" feature now splits the
category to a sub-directory name under "/var/log/portage/build/" and us-
es name, version and time stamp as the log file name.   This enables you
to simply use the full Gentoo package name in scripts as in

   $ pkg=media-gfx/gimp
   $ ls /var/log/portage/build/$pkg-*.log | sort -t : -rk 2,3 | head -1

to get the path to the most recent log file  without first having to re-
place the slash with a colon.

This is probably only relevant if you write your own scripts to get your
tasks done.   And I don't have any idea whether or not it's new,  I just
found it by pure chance when looking for something else ... :-)

Sincerely,
  Rainer

Reply via email to