Synergy compiles properly without any special configuration even without avahi. I suggest the dependence on avahi is made conditional based on avahi USE flag.
Steps to Reproduce:
1. On system without avahi, run the following command
USE="-avahi" emerge -p "=x11-misc/synergy-1.6.1"
Portage wants to install net-dns/avahi
Portage doesn't want to install net-dns/avahi
Synergy added support for zero configuration based on avahi in version 1.6.0, synergy-1.6.1 is the first ebuild one that requires avahi as a dependency.
Agreed; synergy ebuild does not respect USE settings.
$ egrep 'avahi|zeroconf' /etc/portage/package* /etc/portage/*conf
/etc/portage/make.conf:aac alsa -avahi \
USE flags supported:
# equery uses synergy
[ Legend : U - final flag setting for installation]
[ : I - package is installed with flag ]
[ Colors : set, unset ]
* Found these USE flags for x11-misc/synergy-1.6.1:
+ + qt4 : Add support for the Qt GUI/Application Toolkit version 4.x
- - test : Workaround to pull in packages needed to run with FEATURES=test. Portage-2.1.2 handles this internally, so don't set it in make.conf/package.use anymore
# emerge -puDN world
These are the packages that would be merged, in order:
Calculating dependencies... done!
!!! The following update has been skipped due to unsatisfied dependencies:
!!! All ebuilds that could satisfy "net-dns/avahi[mdnsresponder-compat]" have been masked.
!!! One of the following masked packages is required to complete your request:
- net-dns/avahi-0.6.31-r6::gentoo (masked by: package.mask)
- net-dns/avahi-0.6.31-r5::gentoo (masked by: package.mask, ~amd64 keyword)
- net-dns/avahi-0.6.31-r2::gentoo (masked by: package.mask)
- net-dns/avahi-0.6.30-r3::gentoo (masked by: package.mask)
(dependency required by "x11-misc/synergy-1.6.1" [ebuild])
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
I am working around this by masking 1.6 and above.
(In reply to Martin Kletzander from comment #0)
> Synergy compiles properly without any special configuration even without
x86_64-pc-linux-gnu-g++ -c -frecord-gcc-switches -g -pipe -O2 -Wall -Wformat-security -march=core2 -Wall -W -D_REENTRANT -DQT_NO_DEBUG -DQT_GUI_LIB -DQT_NETWORK_LIB -DQT_CORE_LIB -DQT_SHARED -I/usr/share/qt4/mkspecs/linux-g++ -I. -I/usr/include/qt4/QtCore -I/usr/include/qt4/QtNetwork -I/usr/include/qt4/QtGui -I/usr/include/qt4 -I. -Isrc -Itmp/release -I. -o tmp/release/ZeroconfRegister.o src/ZeroconfRegister.cpp
In file included from src/ZeroconfRegister.cpp:18:0:
src/ZeroconfRegister.h:32:20: fatal error: dns_sd.h: No such file or directory
Ah yes, this is with USE=qt4.
+ 11 Nov 2014; Jeroen Roovers <email@example.com> synergy-1.6.1.ebuild:
+ net-dns/avahi is only required with USE=qt4 (bug #528818 by Martin