Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 166523 - app-portage/cfg-update-1.8.0-r6 needs xhost
Summary: app-portage/cfg-update-1.8.0-r6 needs xhost
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Harald van Dijk (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-02-12 16:47 UTC by Jeroen Roos
Modified: 2007-02-12 17:21 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeroen Roos 2007-02-12 16:47:07 UTC
After a recent update, cfg-update stopped working; even though $DISPLAY was set correctly, xxdiff was found in the correct location, etc. it still complained with the following error:

* GUI not available, unable to run the mergetool set in /etc/cfg-update.conf!
  Run cfg-update from within an X-terminal if you want to use a GUI mergetool.
  If you are getting this from within an X-terminal, you should try running
  "xhost +localhost" as the user who started the X-server.
  If you use this script on a system without an X-server you should permanently
  set the MERGETOOL variable in /etc/cfg-update.conf to vimdiff or sdiff.
  I recommend the more advanced vimdiff on systems without an X-server.
  See http://people.zeelandnet.nl/xentric for vimdiff usage instructions.

After searching for explanations for some time, I used strace -f on it and found the following:

[...]
[pid  3848] write(2, "sh: xhost: command not found\n", 29) = 29
[...]

And indeed, after emerging xhost, everything works fine. I think it should be in the dependancies for cfg-update (not xxdiff, I assume, as that does work without it).




Reproducible: Always

Steps to Reproduce:
1.ssh to a remote system
2.set $DISPLAY correctly
3.Remove xhost, if present
4.Run xxdiff (works)
5.Run cfg-update -u (fails)
6.emerge xhost
7.Run cfg-update -u (works)



Expected Results:  
Either xhost should be in the deps for cfg-update, but that may be overkill as it is only needed if run from a remote system, or it should clearly display an error that it couldn't find xhost.
Comment 1 Harald van Dijk (RETIRED) gentoo-dev 2007-02-12 17:21:20 UTC
Thanks, I've added xhost to the dependency list.