When I run emerge inside a gnu screen session it fails to "correctly" restore the title of the gnome-terminal on exit. By correctly I mean that the actual title is restored but the text inside the button in the window list panel is not (see attached screenshot). This only happens when emerge is ran from gnu screen. Also, this bug does not exist in sys-apps/portage-2.1.8.3 but does exist in sys-apps/portage-2.1.9.24. Reproducible: Always Steps to Reproduce:
Created attachment 256932 [details] screenshot
The only change that I see for that code between 2.1.8 and 2.1.9 is this commit, and it doesn't seem like it would cause any problems: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=3beb2d432d4fe288b3b1fafefcb702bd524ed4cd
I am trying to do a git bisect to find the commit that causes this problem but I have no idea how to install portage directly from sources. Is there an easy way? Or do I have to use mkrelease.sh and the ebuild?
You can run portage directly from a checkout if you modify the PATH and PYTHONPATH variables as describe here: http://www.gentoo.org/proj/en/portage/doc/testing.xml#doc_chap3
Your guess was correct: 3beb2d432d4fe288b3b1fafefcb702bd524ed4cd is the first bad commit In particular the problem is caused by the line: prompt_command = os.environ.get('PROMPT_COMMAND', '') When I change it to: prompt_command = os.environ.get('PROMPT_COMMAND', None) or revert it to the old version with os.getenv, I get the old behavior.
Thanks, this should fix it: http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=06ea3c8b3e8f9b6a6abd700000a16608f8a6db4f
This is fixed in 2.2.0_alpha8, but I'll leave this bug open until it's in an unmasked release.
This is fixed in 2.1.9.26.