Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 756358 - sys-apps/portage: Document $HOSTNAME in man page
Summary: sys-apps/portage: Document $HOSTNAME in man page
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Documentation (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-11-24 16:20 UTC by John Hardin
Modified: 2021-11-26 18:00 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Potential minimal fix (portage_emerge_status_with_hostname.patch,807 bytes, patch)
2020-11-24 16:21 UTC, John Hardin
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description John Hardin 2020-11-24 16:20:27 UTC
I have a handful of Gentoo boxes that I maintain, and I regularly find myself running emerges on some or all of them via ssh at the same time (e.g. for weekly updates) in a tabbed gnome-terminal window.

It gets a bit confusing because all of the sessions' titles look much the same.

It would be nice if the terminal window title text displayed while emerge was running included the hostname - for example, instead of:

  Jobs: 20 of 21 complete, 1 running Load avg: 5.98, 6.65, 6.74

it was:

  Jobs@athena: 20 of 21 complete, 1 running Load avg: 5.98, 6.65, 6.74

...where "athena" is the hostname.

This could potentially be put behind a command-line option vs. being default behavior.

Potential simple fix attached.

Reproducible: Always

Steps to Reproduce:
1. Open sessions to three different Gentoo boxes in a tabbed terminal window
2. Merge lots of stuff on all three boxes simultaneously
3. Look at the tab labels in the terminal window - which machine is which?
Comment 1 John Hardin 2020-11-24 16:21:14 UTC
Created attachment 674743 [details, diff]
Potential minimal fix
Comment 2 John Hardin 2020-11-24 16:48:52 UTC
I was just informed of the existing $HOSTNAME behavior. That's sufficient, but it should be documented on the emerge man page...