Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 359575 - net-dns/avahi - avahi-discover: glib.GError: Failed to open file '/usr/share/avahi/interfaces/avahi-discover.ui': No such file or directory
Summary: net-dns/avahi - avahi-discover: glib.GError: Failed to open file '/usr/share/...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal with 2 votes (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-19 23:57 UTC by Randy Tupas
Modified: 2013-05-28 02:22 UTC (History)
8 users (show)

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


Attachments
Output of emerge --info (emerge.info,4.03 KB, text/plain)
2011-03-19 23:59 UTC, Randy Tupas
Details
Patch to disable install of /usr/bin/avahi-discover (disable-avahi-discover.patch,715 bytes, patch)
2012-04-21 22:13 UTC, Matthew Dawson
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Randy Tupas 2011-03-19 23:57:45 UTC
avahi-discover fails to launch. When started from a terminal, I receive the following error:
Traceback (most recent call last):
  File "/usr/bin/avahi-discover", line 288, in <module>
    main()
  File "/usr/bin/avahi-discover", line 284, in main
    main_window = Main_window()
  File "/usr/bin/avahi-discover", line 64, in __init__
    self.ui.add_from_file(path)
glib.GError: Failed to open file '/usr/share/avahi/interfaces/avahi-discover.ui': No such file or directory


Reproducible: Always

Steps to Reproduce:
1.launch avahi-discover from terminal or application icon
2.fails silently unless started from terminal
3.


Expected Results:  
start the avahi-discover gui

running unstable gnome from overlay
Comment 1 Randy Tupas 2011-03-19 23:59:45 UTC
Created attachment 266573 [details]
Output of emerge --info
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2011-03-21 23:10:25 UTC
Which version of net-dns/avahi is that?
Comment 3 Randy Tupas 2011-03-23 01:17:30 UTC
(In reply to comment #2)
> Which version of net-dns/avahi is that?

net-dns/avahi-0.6.28-r300 or net-dns/avahi-0.6.29-r300
Comment 4 Priit Laes (IRC: plaes) 2011-09-16 11:02:20 UTC
(In reply to comment #3)
> (In reply to comment #2)
> > Which version of net-dns/avahi is that?
> 
> net-dns/avahi-0.6.28-r300 or net-dns/avahi-0.6.29-r300

Apparently this is from gnome-overlay ^^

But I am also getting the same issue with currentl avahi-0.6.30-r1 in gx86.
Comment 5 the_mgt 2011-11-14 10:33:10 UTC
I got this too, the file /usr/share/avahi/interfaces/avahi-discover.ui is only installed if you enable the "utils" useflags. It should be installed by the same flag combination that gets avahi-discover installed. Please fix this.

Also, fix 0.6.28-r1 which doesnt install/build with gtk useflag for about a month now. (I know, wrong bug, but possibly same team.)
Comment 6 nm (RETIRED) gentoo-dev 2011-12-06 20:09:32 UTC
still a problem with 0.6.30-r1. need to fix the "utils" flag; just "python" and "gtk" aren't enough to get the graphical browser.
Comment 7 Ian Abbott 2011-12-21 16:39:23 UTC
The description of the local "utils" USE flag is "Install the avahi gtk+ utils avahi-discover, bssh, and bvnc", so I guess /usr/bin/avahi-discover and /usr/share/applications/avahi-discover.desktop ought not be installed unless this USE flag is set.
Comment 8 Markus Rathgeb 2012-03-13 09:35:35 UTC
I can confirm this bug.

I build avahi with the following USE flags:

net-dns/avahi-0.6.30-r3  USE="(autoipd) dbus gdbm gtk (gtk3) howl-compat introspection ipv6 mdnsresponder-compat mono python qt4 -bookmarks -doc -test -utils"

and again with the same USE flags but enabled utils flag.

The following files are additions if (in this combination: e.g. enabled gtk, enabled bython) USE flag utils is (also) enabled

+/usr/bin/avahi-discover-standalone
+/usr/bin/bshell
+/usr/bin/bssh
+/usr/bin/bvnc
+/usr/lib/debug/usr/bin/avahi-discover-standalone.debug
+/usr/lib/debug/usr/bin/bssh.debug
+/usr/share/applications/bssh.desktop
+/usr/share/applications/bvnc.desktop
+/usr/share/avahi/interfaces/avahi-discover.ui

The python avahi-discover needs the avahi-discover.ui, so it does not make any sense to install the one without the other.
Comment 9 Matthew Dawson 2012-04-21 22:13:00 UTC
Created attachment 309761 [details, diff]
Patch to disable install of /usr/bin/avahi-discover

This patch disables installing /usr/bin/avahi-discover when the appropriate use flags are disabled.  It basically disables the install of any relevant files in the same way avahi-discover-standalone is disabled.  The man page/desktop file is also disabled.
Comment 10 Anthony Basile gentoo-dev 2013-05-28 02:22:02 UTC
(In reply to Matthew Dawson from comment #9)
> Created attachment 309761 [details, diff] [details, diff]
> Patch to disable install of /usr/bin/avahi-discover
> 
> This patch disables installing /usr/bin/avahi-discover when the appropriate
> use flags are disabled.  It basically disables the install of any relevant
> files in the same way avahi-discover-standalone is disabled.  The man
> page/desktop file is also disabled.

This should be fixed in avahi-0.6.31-r2.  Please test and reopen this bug if there's still a problem.