[avahi] How to avoid make install directories being built into avahi-daemon?

Olle Blomgren ollemblomgren at gmail.com
Sun Nov 18 18:04:26 PST 2012


Hi,

I'm cross compiling your code for use in an embedded Linux
environment. My build system works like this:
1)
 I extract all source code in packages and place all of them in a
root directory, eg:

/home/olle/myrootdir/avahi
/home/olle/myrootdir/packageA
/home/olle/myrootdir/packageB
                     :
                    etc
                     :

2)
When I run make int the root dir all packages are built and
installed in a target directory, eg:
/home/olle/myrootdir/target/sbin/avahi-daemon
/home/olle/myrootdir/target/etc/avahi/avahi-daemon.conf
                                    :
                                   etc
                                    :
To achieve step 2 use configure --prefix=/home/olle/myrootdir/target

3)
The final step is to build the complete firmware by assemble all
files and directories in my target directory
(/home/olle/myrootdir/target/) into a firmware image.

Unfortunately, the path I use as installation path is automatically
looked up when the avahi-daemon is run on the target device. The
configuration file, for example has been placed in its proper place
which is: /etc/avahi/... BUT the avahi-daemon looks for it in
/home/olle/myrootdir/target/etc/avahi/avahai-daemon.conf which of
course will fail.

I know I can use the -f switch, but then I get stuck on the pid file
directory /home/olle/myrootdir/target/var/run/...

What is the best way of getting around this issue? Is it a simple
configure parameter I can't find or understand?

Thanks in advance
/Olle


More information about the avahi mailing list