Summary: | sys-apps/portage-2.3.103 fails to properly set XTerm titles for konsole | ||
---|---|---|---|
Product: | Portage Development | Reporter: | rnddim |
Component: | Core - Interface (emerge) | Assignee: | Portage team <dev-portage> |
Status: | RESOLVED FIXED | ||
Severity: | normal | Keywords: | InVCS |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 733180 |
Description
rnddim
2020-06-27 13:31:05 UTC
I had a thought to check if the title updated in other terminals, and it does. I also tried manually changing the title with echo and that worked too. I think the problem comes down to the file /usr/lib/<python-version>/site-packages/portage/output.py , specifically this line: _legal_terms_re = re.compile(r'^(xterm|xterm-color|Eterm|aterm|rxvt|screen|kterm|rxvt-unicode|gnome|interix|tmux|st-256color|alacritty)') I had recently changed my TERM variable in Konsole to more accurately reflect the fact that it isn't quite xterm (konsole doesn't let you modify the terminal's color palette): $ echo $TERM konsole-256color And as you can see, the regex above doesn't check for this TERM value. This seems to me to be the culprit. It's worth noting that Konsole, for whatever unknown reason, has TERM set to xterm-256color by default, which would pass the regex (since it's not anchored at the end, it'll match just by starting with "xterm") and probably explains why nobody's noticed before. I've manually added an alternative to the regex for TERMs starting with "konsole" to my local installation to test this out, and it allows the titles to work again. The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=06c333b65b6dfe59828408c47ca0225f1c182081 commit 06c333b65b6dfe59828408c47ca0225f1c182081 Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2020-06-27 19:42:12 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2020-06-27 19:42:46 +0000 xtermTitle: support konsole Bug: https://bugs.gentoo.org/729852 Reported-by: rnddim@gmail.com Signed-off-by: Zac Medico <zmedico@gentoo.org> lib/portage/output.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) Thanks for the report! The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bb3180edb5d310d5382bb3c0772c06be0b354806 commit bb3180edb5d310d5382bb3c0772c06be0b354806 Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2020-07-19 05:18:41 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2020-07-19 05:37:48 +0000 sys-apps/portage: Bump to version 3.0.0 #703698 Improve repos.conf handling of boolean settings #721516 ecompress complains about compressed files that have been excluded by docompress -x #729852 Set XTerm titles for konsole #731114 Drop support for python2.7 #731246 man ebuild(5) has incorrect example of $P and $PN #732378 Use lru_cache for use_reduce, vercmp, and catpkgsplit #733154 List of ignored warnings in .desktop files should be updated for compatibility with >=desktop-file-utils-0.25 Bug: https://bugs.gentoo.org/733180 Bug: https://bugs.gentoo.org/703698 Bug: https://bugs.gentoo.org/721516 Bug: https://bugs.gentoo.org/729852 Bug: https://bugs.gentoo.org/731114 Bug: https://bugs.gentoo.org/731246 Bug: https://bugs.gentoo.org/732378 Bug: https://bugs.gentoo.org/733154 Package-Manager: Portage-3.0.0, Repoman-2.3.23 Signed-off-by: Zac Medico <zmedico@gentoo.org> sys-apps/portage/Manifest | 1 + sys-apps/portage/portage-3.0.0.ebuild | 263 ++++++++++++++++++++++++++++++++++ 2 files changed, 264 insertions(+) |