Opened 18 years ago

Closed 14 years ago

Last modified 7 years ago

#1992 closed enhancement (fixed)

New Package: Avahi

Reported by: Randy McMurchy Owned by: Wayne Blaszczyk
Priority: low Milestone: x-future
Component: BOOK Version: SVN
Severity: normal Keywords: Avahi
Cc:

Description

The Avahi package (http://www.avahi.org/) would make a nice addition to BLFS. There are many reasons to add it. See: http://linuxfromscratch.org/pipermail/blfs-dev/2006-May/015268.html

Attachments (13)

avahi-lfs-initscript-fixes.patch (2.9 KB ) - added by willimm 14 years ago.
Updated version of the LFS initscript patch.
avahidaemon.in (904 bytes ) - added by Robert L. Inglis 14 years ago.
avahidaemon
avahidnsconfd.in (1.0 KB ) - added by Robert L. Inglis 14 years ago.
avahidnsconfd
Makefile.am (1.1 KB ) - added by Robert L. Inglis 14 years ago.
Makefile.in (14.7 KB ) - added by Robert L. Inglis 14 years ago.
avahidnsconfd.2.in (1.0 KB ) - added by Robert L. Inglis 14 years ago.
avahi-0.6.25-lfs_initscript_fixes-1.patch (3.9 KB ) - added by willimm 14 years ago.
New version of the Avahi LFS Initscripts patch. Please use, it also includes part of Ringlis' fixes. Run autoreconf -i -v right after applying this patch.
Makefile.2.in (14.8 KB ) - added by Robert L. Inglis 14 years ago.
Makefile.2.am (1.2 KB ) - added by Robert L. Inglis 14 years ago.
avahiautoipd.in (945 bytes ) - added by Robert L. Inglis 14 years ago.
avahidaemon.2.in (904 bytes ) - added by Robert L. Inglis 14 years ago.
avahidnsconfd.3.in (1.0 KB ) - added by Robert L. Inglis 14 years ago.
avahi-config (404 bytes ) - added by Robert L. Inglis 14 years ago.

Download all attachments as: .zip

Change History (36)

comment:1 by Randy McMurchy, 18 years ago

Status: newassigned

comment:2 by Randy McMurchy, 18 years ago

Milestone: 6.2future

comment:3 by Luca, 18 years ago

KControl from KDE-3.5.4 crashes on the peripherals/camera telling that it uses Apple Bonjour compatibily layer of Avahi and suggests to use the native API of Avahi. However it prints out a redirection, http://0pointer.de/avahi-compat?s=libdns_sd&e=kcontrol for more info, so I think that the --enable-compat-libdns_sd switch shouldn't be passed to configure.

comment:4 by Randy McMurchy, 17 years ago

Owner: changed from Randy McMurchy to blfs-book@…
Status: assignednew

comment:5 by Randy McMurchy, 15 years ago

See closed ticket #2806 for some (possibly) relevant info.

comment:6 by Wayne Blaszczyk, 14 years ago

Owner: changed from blfs-book@… to Wayne Blaszczyk
Status: newassigned

comment:7 by Wayne Blaszczyk, 14 years ago

Mmmm, there is a --with-distro=lfs option. How did that get in there? Anyway it fails with the following error: chmod +x avahi chmod: cannot access `avahi': No such file or directory make: * [avahi] Error 1

in reply to:  7 comment:8 by willimm, 14 years ago

Replying to wblaszcz:

Mmmm, there is a --with-distro=lfs option. How did that get in there? Anyway it fails with the following error: chmod +x avahi chmod: cannot access `avahi': No such file or directory make: * [avahi] Error 1

I think I have something to do with it. Anyway, the error was human error on my part, and I made a patch to fix it, but it didn't get in to Avahi due to Lennart's selfishness and he diddn't like my "cat avahi.in > avahi" workaround (It was so that the makefiles are consitant), and he diddn't like LFS's bootscript system, calling it a link farm.

Anyway, I have the patch that makes Avahi 0.6.25 build. Wayne, please submit my patch to upstream and tell Lennart that this is so that Avahi can go into LFS.

comment:9 by Wayne Blaszczyk, 14 years ago

I've tried out the patch and it doesn't work for me. I get the following:

make[3]: Entering directory `/sources/avahi-0.6.25/initscript/lfs'

cd ../.. && /bin/sh /sources/avahi-0.6.25/missing --run automake-1.10 --foreign initscript/lfs/Makefile

/sources/avahi-0.6.25/missing: line 54: automake-1.10: command not found WARNING: `automake-1.10' is missing on your system. You should only need it if

you modified Makefile.am', acinclude.m4' or `configure.ac'. You might want to install the Automake' and Perl' packages. Grab them from any GNU archive site.

cd ../.. && /bin/sh ./config.status initscript/lfs/Makefile

config.status: creating initscript/lfs/Makefile make[3]: Leaving directory `/sources/avahi-0.6.25/initscript/lfs' make[3]: Entering directory `/sources/avahi-0.6.25/initscript/lfs' chmod +x avahi chmod: cannot access `avahi': No such file or directory make[3]: * [avahi] Error 1 make[3]: Leaving directory `/sources/avahi-0.6.25/initscript/lfs' make[2]: * [all-recursive] Error 1 make[2]: Leaving directory `/sources/avahi-0.6.25/initscript' make[1]: * [all-recursive] Error 1 make[1]: Leaving directory `/sources/avahi-0.6.25' make: * [all] Error 2

I have automake 1.11 installed.

in reply to:  9 comment:10 by willimm, 14 years ago

Replying to wblaszcz:

I've tried out the patch and it doesn't work for me. I get the following:

Yea, well, I have revised the same patch and I'm going to submit it to Upstream. I tested it with a LFS 6.6-rc1 system. I'll attach it soon.

by willimm, 14 years ago

Updated version of the LFS initscript patch.

by Robert L. Inglis, 14 years ago

Attachment: avahidaemon.in added

avahidaemon

by Robert L. Inglis, 14 years ago

Attachment: avahidnsconfd.in added

avahidnsconfd

by Robert L. Inglis, 14 years ago

Attachment: Makefile.am added

by Robert L. Inglis, 14 years ago

Attachment: Makefile.in added

comment:11 by Robert L. Inglis, 14 years ago

I've been playing with Avahi and NetworkManager with the last couple of KDE4 builds. See the attached modified initscript/lfs files. They seem to work for me.

by Robert L. Inglis, 14 years ago

Attachment: avahidnsconfd.2.in added

in reply to:  11 ; comment:12 by willimm, 14 years ago

Replying to ringlis:

I've been playing with Avahi and NetworkManager with the last couple of KDE4 builds. See the attached modified initscript/lfs files. They seem to work for me.

I'll later merge ringlis additions into my patch, just give me a few minutes.

in reply to:  12 comment:13 by Robert L. Inglis, 14 years ago

Replying to willimm:

Replying to ringlis:

I've been playing with Avahi and NetworkManager with the last couple of KDE4 builds. See the attached modified initscript/lfs files. They seem to work for me.

I'll later merge ringlis additions into my patch, just give me a few minutes.

willimm,

These "modified" make files create 2 init scripts, avahi-daemon and avahi-dnsconfd.

The avahi-source/initscript/lfs created only one init script "avahi". I wanted support for the mDNS daemon as well.

Your run-level links link to /etc/rc.d/init.d/avahi, but these modified files create /etc/r.c/init.d/{avahi-daemon, avahi-dnsconfd}.

avahidnsconfd.in had a minor typo in the script corrected in avahidnsconfd2.in.

by willimm, 14 years ago

New version of the Avahi LFS Initscripts patch. Please use, it also includes part of Ringlis' fixes. Run autoreconf -i -v right after applying this patch.

comment:14 by willimm, 14 years ago

I've updated my patch to include some of Ringlis' fixes, including also starting up the mDNS server conf. daemon as well. If you want me to put that into a seprate bootscript, I'll do so.

comment:15 by Wayne Blaszczyk, 14 years ago

Owner: changed from Wayne Blaszczyk to blfs-book@…
Status: assignednew

comment:16 by Robert L. Inglis, 14 years ago

I revisited this source after building Gnome-2.30. While pursuing NetworkManager and Gnome-2.30.

I made more modifications to enable avahi-autoipd along with the other avahi daemons.

See attached makefiles, init scripts.

by Robert L. Inglis, 14 years ago

Attachment: Makefile.2.in added

by Robert L. Inglis, 14 years ago

Attachment: Makefile.2.am added

by Robert L. Inglis, 14 years ago

Attachment: avahiautoipd.in added

by Robert L. Inglis, 14 years ago

Attachment: avahidaemon.2.in added

by Robert L. Inglis, 14 years ago

Attachment: avahidnsconfd.3.in added

comment:17 by Robert L. Inglis, 14 years ago

Init changes: Removed /etc/rc.d/rcX.d/network run-level links to disable dhcpcd/static via services and allow networkmanager to take over this function. Haldaemon to run S20 vs S21. S20avahi-autoipd S21networkmanager (using slackware's init script (renamed), I still need to modify this make to suit LFS. Init error message stating /etc/NetworkManager/nm-system-settings.conf is missing but otherwise functions with defaults. S23avahi-daemon S23avahi-dnsconfd

So far the network functions using NM + Avahi vs dhcpcd. Still a work in progress. Any suggestions / fixes will be appreciated.

by Robert L. Inglis, 14 years ago

Attachment: avahi-config added

comment:18 by willimm, 14 years ago

I'm not going to be adding in avahi-autoipd any day soon, as that daemon requires a network interface to start up correctly, and also the fact that most initscripts for other distros don't start that up either, so, the point of starting avahi-autoipd is rather moot for now.

For now, please use my attached patch that provides a good initscript for Avahi on LFS untill I find a way to intergrate avahi-autoipd.

in reply to:  18 ; comment:19 by Robert L. Inglis, 14 years ago

Replying to willimm:

I'm not going to be adding in avahi-autoipd any day soon, as that daemon requires a network interface to start up correctly, and also the fact that most initscripts for other distros don't start that up either, so, the point of starting avahi-autoipd is rather moot for now.

For now, please use my attached patch that provides a good initscript for Avahi on LFS untill I find a way to intergrate avahi-autoipd.

After some testing it seems avahi-autoipd is redundant if you use NetworkManager or dhcpcd.

Avahi-autoipd starts up, query's for an IP then NetworkManager steps in and takes over the ethX interface.

in reply to:  19 comment:20 by willimm, 14 years ago

Replying to ringlis:

After some testing it seems avahi-autoipd is redundant if you use NetworkManager or dhcpcd.

Well, at least we both agree that avahi-autoipd is rendered moot by DHCP clients or NetworkManager, and considiring that most distros don't start it up anyway, you may as well just forget about adding a avahi-autoipd bootscript.

comment:21 by Wayne Blaszczyk, 14 years ago

Owner: changed from blfs-book@… to Wayne Blaszczyk
Status: newassigned

comment:22 by Wayne Blaszczyk, 14 years ago

Resolution: fixed
Status: assignedclosed

Added new package to book, avahi-0.6.25

comment:23 by bdubbs@…, 7 years ago

Milestone: futurex-future

Milestone renamed

Note: See TracTickets for help on using tickets.