Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 118178 - kdelibs 3.5.0-r1 & avahi + USE="mdnsresponder-compat"
Summary: kdelibs 3.5.0-r1 & avahi + USE="mdnsresponder-compat"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-07 05:55 UTC by Tiziano Müller (RETIRED)
Modified: 2006-11-17 20:23 UTC (History)
7 users (show)

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


Attachments
kdnssd-avahi-0.1.2.ebuild (kdnssd-avahi-0.1.2.ebuild,620 bytes, text/plain)
2006-01-08 05:58 UTC, Tiziano Müller (RETIRED)
Details
kdnssd-avahi-0.1.2.ebuild (kdnssd-avahi-0.1.2.ebuild.txt,620 bytes, text/plain)
2006-03-04 16:33 UTC, Robin Perkins
Details
kdnssd-avahi-0.1.2.ebuild (kdnssd-avahi-0.1.2.ebuild,773 bytes, text/plain)
2006-04-23 23:42 UTC, Nathan Caldwell
Details
kdelibs-3.5.2-r4.ebuild_kdnssd-avahi.diff (kdelibs-3.5.2-r4.ebuild.diff,1.54 KB, patch)
2006-04-23 23:45 UTC, Nathan Caldwell
Details | Diff
kdnssd-avahi-0.1.2.ebuild (kdnssd-avahi-0.1.2-r1.ebuild,837 bytes, text/plain)
2006-04-24 01:07 UTC, Nathan Caldwell
Details
kdelibs-3.5.2-r6_kdnssd-avahi.patch (kdelibs-3.5.2-r6_kdnssd-avahi.patch,1.61 KB, patch)
2006-05-28 18:57 UTC, Nathan Caldwell
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tiziano Müller (RETIRED) gentoo-dev 2006-01-07 05:55:05 UTC
Today I compiled kdelibs using avahi-0.6.2 with the mdnsresponder-compat use-flag set instead of the mDNSResponder ebuild.
It compiled and linked without problems.
If upstream doesn't include direct support for avahi in future versions, it would be nice to have the dependency on mDSNResponder in kdelibs changed in the way avahi could be used.
What do you think?
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-01-07 06:06:08 UTC
That it does not work, already tried.
Comment 2 Tiziano Müller (RETIRED) gentoo-dev 2006-01-07 13:12:36 UTC
You're right. It doesn't work out of the box.
The kdnssd-avahi package from http://helios.et.put.poznan.pl/~jstachow/pub/ is needed. Compilation was a bit of a problem (usual qt/3 problems), but it works or at least "zeroconf:/" in konqueror works.
Comment 3 Tiziano Müller (RETIRED) gentoo-dev 2006-01-08 05:56:36 UTC
I hope I do not get on your nerves, but I tried it and also made an ebuild for kdnssd-avahi and it seems to work perfectly.
What was the problem, when you tried it?
Comment 4 Tiziano Müller (RETIRED) gentoo-dev 2006-01-08 05:58:13 UTC
Created attachment 76520 [details]
kdnssd-avahi-0.1.2.ebuild

This is the ebuild for kdnssd-avahi, which replaces mDNSResponder with avahi support in kde.
Comment 5 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-01-08 06:02:54 UTC
Okay it might work with the other package then :)
For sure, it wasn't working out of the box.
But I'd rather wait to see what upstream says, kdnssd-avahi is in playground, that means "no support from upstream".
Comment 6 Robin Perkins 2006-03-04 16:33:51 UTC
Created attachment 81356 [details]
kdnssd-avahi-0.1.2.ebuild

'need-kde 3.5' needs to be inside the function src_compile() otherwise emerge looks for kde v0.1.2 and not kde v3.5
Comment 7 Robin Perkins 2006-03-12 03:37:47 UTC
Comment on attachment 81356 [details]
kdnssd-avahi-0.1.2.ebuild

My patch doesn't work either. There is an issue with the need-kde command. Outside the src_compile function (as in the original ebuild) I get the error:
emerge: there are no ebuilds to satisfy "~kde-base/kdelibs-0.1.2".
(dependency required by "kde-base/kdnssd-avahi-0.1.2" [ebuild])

With it inside the src_compile function (as with my patch) I get the error:
+ make install DESTDIR=/var/tmp/portage/kdnssd-avahi-0.1.2/image/ destdir=/var/tmp/portage/kdnssd-avahi-0.1.2/image/
make: *** No rule to make target 'install'. Stop.
...
!!! died running make install, kde_src_install:make
!!! if you need support, post the topmost build error, and the call stack if relevant.

If i remove 'need-kde 3.5' all together then the libraries get installed to /usr/lib instead of the required /usr/kde/3.5/lib/

(a manual copy seems to fix everything)
Comment 8 Nathan Caldwell 2006-04-23 23:42:25 UTC
Created attachment 85330 [details]
kdnssd-avahi-0.1.2.ebuild

Fixed the ebuild, hopefully someone that knows the kde eclass better than me can make this prettier, but it works now.
Comment 9 Nathan Caldwell 2006-04-23 23:45:22 UTC
Created attachment 85331 [details, diff]
kdelibs-3.5.2-r4.ebuild_kdnssd-avahi.diff

Here's a patch to the kdelibs-3.5.2-r4 ebuild that has the proper dependencies for kdnssd-avahi.
Comment 10 Nathan Caldwell 2006-04-24 01:07:10 UTC
Created attachment 85337 [details]
kdnssd-avahi-0.1.2.ebuild

Forgot to handle the arts and kdeenablefinal USE flags.
Comment 11 Robin Perkins 2006-05-13 20:25:35 UTC
(In reply to comment #9)
> Created an attachment (id=85331) [edit]
> kdelibs-3.5.2-r4.ebuild_kdnssd-avahi.diff
> 
> Here's a patch to the kdelibs-3.5.2-r4 ebuild that has the proper dependencies
> for kdnssd-avahi.
> 

Should the last part of that  patch read:

if (use zeroconf || use avahi); then
     myconf="${myconf} --enable-dnssd"
else
     myconf="${myconf} --disable-dnssd"
fi
Comment 12 Nathan Caldwell 2006-05-14 23:05:57 UTC
(In reply to comment #11)
> Should the last part of that  patch read:
> 
> if (use zeroconf || use avahi); then
>      myconf="${myconf} --enable-dnssd"
> else
>      myconf="${myconf} --disable-dnssd"
> fi
> 

No, because that would use the zeroconf support built into kdelibs instead of the avahi support the new kdnssd-avahi package provides.
Comment 13 Nathan Caldwell 2006-05-28 18:57:07 UTC
Created attachment 87773 [details, diff]
kdelibs-3.5.2-r6_kdnssd-avahi.patch

Patch against the kdelibs-3.5.2-r6 ebuild to support kdnssd-avahi
Comment 14 Malte S. Stretz 2006-09-29 05:31:02 UTC
Is there any chance to get Avahi support integrated into the 3.5.4 ebuils?  As the KDE team is concentrating on KDE4 now, chances that kdnssd-avahi will be included in kdelibs3 or whatever are IMO pretty low.

Updated DEPENDs to allow avahi would be cool, I'd test the avahi-enabled ebuilds :)

I'm not sure, but I think this <http://bugs.kde.org/show_bug.cgi?id=134212> patch will be needed.
Comment 15 Stuart Longland (RETIRED) gentoo-dev 2006-11-04 23:03:04 UTC
I've found that USE=mdnsresponder-compat makes little difference to KDE's use of Avahi, it seems to ignore it regardless.

That said, with the kdnssd-avahi package, all is happy.  Is it worth poking upstream again on this?  I run a dual-stack IPv4/IPv6 network, and as long as mDNSResponder lacks IPv6 support, I cannot use it on my network.
Comment 16 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-11-05 02:19:31 UTC
I'll be taking care of this as soon as I have time, but right now is likely to be next week..
Comment 17 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-11-17 09:42:38 UTC
Will take care of it now, although the kdnssd-avahi ebuild I rewrote for the most part.
Comment 18 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-11-17 10:42:56 UTC
Thanks Nathan, all in portage now :)
Comment 19 Nathan Caldwell 2006-11-17 20:23:23 UTC
(In reply to comment #18)
> Thanks Nathan, all in portage now :)
> 

So that's the correct way to do that. Much simpler :)
Good to see this is in portage now!