Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 401389 - x11-libs/vte no longer updates utmp/wtmp (since using “--disable-gnome-pty-helper”)
Summary: x11-libs/vte no longer updates utmp/wtmp (since using “--disable-gnome-pty-he...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Low normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-29 18:57 UTC by زياد بن عبدالعزيز الباتلي
Modified: 2014-11-03 17:11 UTC (History)
1 user (show)

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


Attachments
Diff against x11-libs/vte-0.28.2-r206 (vte-ebuild.diff.patch,845 bytes, patch)
2014-11-03 17:07 UTC, Olof Kindgren
Details | Diff
Allow building gnome-pty-helper externally (vte-0.28.2-enable-external-pty-helper.patch,339 bytes, patch)
2014-11-03 17:08 UTC, Olof Kindgren
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description زياد بن عبدالعزيز الباتلي 2012-01-29 18:57:32 UTC
As the subject says: Since disabling internal “gnome-pty-helper” and depending on “x11-libs/gnome-pty-helper”, x11-terms/terminal no longer updates utmp/wtmp records (only “real” shell entries displayed when issuing “who” or “w” commands within it).  (And the same problem seems to exists in x11-terms/gnome-terminal from what I see in the forums: http://forums.gentoo.org/viewtopic-t-884434.html)

Reproducible: Always

Steps to Reproduce:
1. emerge x11-terms/terminal
2. Start /usr/bin/Terminal
3. Issue either “w” and/or “who” commands.
Actual Results:  
List only session in “real” terminals, but not those inside an emulated terminal application.

Expected Results:  
List all terminal session, both from “real” terminals (i.e. CLI/no X) AND virtual ones (those inside XFCE’s Terminal and GNOME’s terminal and probably other terminal emulators).

I was about to set Severity to “Minor”, except there’s no work around that I found.  Sorry!

Thank you for your hard work.
Comment 1 Alexandre Rostovtsev (RETIRED) gentoo-dev 2012-01-30 17:27:48 UTC
You are right, configuring vte with --disable-gnome-pty-helper prevents vte from using /usr/libexec/gnome-pty-helper even when it is already installed by another package (x11-libs/gnome-pty-helper). Fixed, thanks for reporting.

>*vte-0.30.1-r3 (30 Jan 2012)
>*vte-0.28.2-r301 (30 Jan 2012)
>*vte-0.28.2-r203 (30 Jan 2012)
>
>  30 Jan 2012; Alexandre Rostovtsev <tetromino@gentoo.org>
>  +vte-0.28.2-r203.ebuild, +vte-0.28.2-r301.ebuild, +vte-0.30.1-r3.ebuild:
>  Ensure that vte properly uses gnome-pty-helper (bug #401389, thanks to
>  زياد بن عبدالعزيز الباتلي for reporting).
Comment 2 Olof Kindgren 2014-11-03 17:07:17 UTC
Created attachment 388452 [details, diff]
Diff against x11-libs/vte-0.28.2-r206
Comment 3 Olof Kindgren 2014-11-03 17:08:23 UTC
Created attachment 388454 [details, diff]
Allow building gnome-pty-helper externally
Comment 4 Olof Kindgren 2014-11-03 17:11:06 UTC
Not sure if you're interested in reopening this old bug, but I have attached what I believe is a more proper fix for this bug. Instead of building gnome-pty-helper and removing the output files, this defines VTE_USE_GNOME_PTY_HELPER even if gnome-pty-helper is built as another package.

This has been tested against vte-0.28.2-r206, but the same principle will probably work for the other versions as well. Feel free to use it if you think it's a good idea, or leave the bug closed otherwise