Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
-zeroconf remedies my avahi-client sane error [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Fog_Watch
Apprentice
Apprentice


Joined: 24 Jul 2006
Posts: 267
Location: Utility Muffin Research Kitchen

PostPosted: Sat Jun 19, 2021 8:25 am    Post subject: -zeroconf remedies my avahi-client sane error [SOLVED] Reply with quote

Code:
emerge =media-gfx/sane-backends-1.0.31-r2
returns
Quote:
checking for avahi-client >= 0.6.24... no
configure: error: Avahi support requested but not found
.
This is remedied with
Code:
USE=-zeroconf emerge =media-gfx/sane-backends-1.0.31-r2


Last edited by Fog_Watch on Sun Jun 20, 2021 12:23 am; edited 1 time in total
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21633

PostPosted: Sat Jun 19, 2021 3:49 pm    Post subject: Reply with quote

Moved from DT&T to P&P, because this is not documentation. Fog_Watch: USE=zeroconf should work. The config.log should show why it failed to find Avahi support. If this package requires Avahi, Portage should have installed Avahi first. Therefore, either the ebuild lacks the required DEPEND, or your system is in a state that the DEPEND was satisfied, but Avahi still was not usable. Once we know which of those is true, we can move to either adjusting the ebuild or correcting your system's state.
Back to top
View user's profile Send private message
Fog_Watch
Apprentice
Apprentice


Joined: 24 Jul 2006
Posts: 267
Location: Utility Muffin Research Kitchen

PostPosted: Sun Jun 20, 2021 12:23 am    Post subject: Reply with quote

Well done Hu, you smelt a rat, and you found it. My net-dns/avahi needed to be built with dbus.
Back to top
View user's profile Send private message
Hu
Moderator
Moderator


Joined: 06 Mar 2007
Posts: 21633

PostPosted: Sun Jun 20, 2021 12:50 am    Post subject: Reply with quote

Nicely done. Now that you found what needs to be changed, we can examine to see why this was not handled automatically. media-gfx/sane-backends has some DEPEND relations on avahi, but I think with the right combination of USE flags, you could get this error. Dropping the irrelevant parts, we have:
Code:
    sane_backends_escl? (
        || (
            net-dns/avahi[dbus]
            net-dns/avahi[gtk]
        )
        net-dns/avahi[${MULTILIB_USEDEP}]
    )
    zeroconf? ( >=net-dns/avahi-0.6.31-r2[${MULTILIB_USEDEP}] )
This says that Portage would have asked you to install avahi, but would not have asked you to set USE=dbus on it unless you had enabled SANE_BACKENDS=escl. I think that if that last relation is changed as below, Portage would warn on attempting to build a broken configuration.
Code:
@@ -165,7 +165,10 @@
        usb? ( >=virtual/libusb-1-r1:1=[${MULTILIB_USEDEP}] )
        v4l? ( >=media-libs/libv4l-0.9.5[${MULTILIB_USEDEP}] )
        xinetd? ( sys-apps/xinetd )
-       zeroconf? ( >=net-dns/avahi-0.6.31-r2[${MULTILIB_USEDEP}] )
+       zeroconf? (
+               net-dns/avahi[dbus]
+               >=net-dns/avahi-0.6.31-r2[${MULTILIB_USEDEP}]
+       )
 "
 
 DEPEND="${RDEPEND}
Interestingly, this would simplify the earlier expression, since anyone with escl is required to set zeroconf. Therefore, if zeroconf required avahi[dbus], then the escl? ( avahi[dbus] ) part would be unnecessary.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum