Compiling avahi-daemon bundle

Hi guys, sorry for the daft question (I have just started learning the process of compiling things!).

I am trying to create an avahi-daemon rpm and then later hoping to have created a bundle for some items I would like to run on Clear Linux.

However I am having a complete and utter nightmare trying to use autospec to make an avahi rpm. It keeps throwing up all sorts of errors! first its QtCore and qt-mt not found, then its another error etc.

Is there an already pre-compiled avahi bundle kicking around in clear linux that I am not able to find?

It might be best to request this be included at

You are likely not the only one that would benefit from this being part of the OS :wink:

Thanks @pceiley

I’ll raise the request. However for my own personal learning. I keep getting the following error on all my builds:

    configure: error: Linux distribution autodetection failed, you must specify the distribution to target using --with-distro=DISTRO, set DISTRO to none if your distribution is not supported.
    error: Bad exit status from /var/tmp/rpm-tmp.Y7ZCUn (%build)
        Bad exit status from /var/tmp/rpm-tmp.Y7ZCUn (%build)
    RPM build errors:
    Child return code was: 1
    EXCEPTION: Command failed. See logs for output.
     # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps  /builddir/build/SPECS/avahi-0.7.spec 
    Traceback (most recent call last):
      File "/usr/lib/python3.7/site-packages/mockbuild/", line 84, in trace
        result = func(*args, **kw)
      File "/usr/lib/python3.7/site-packages/mockbuild/", line 531, in do
        raise exception.Error("Command failed. See logs for output.\n # %s" % (command,), child.returncode)
    mockbuild.exception.Error: Command failed. See logs for output.
     # bash --login -c /usr/bin/rpmbuild -bb --target x86_64 --nodeps  /builddir/build/SPECS/avahi-0.7.spec 

Request posted:

If I had to guess I’d say you need add --with-distro=none? to the arguments passed to configure using the appropriate file. Check the autospec docs at for the exact filename to use.

edit: it looks like you need to create a file called ‘configure’.

Yep that seems to have done it, didn’t realise you had to create the file! :blush:

Still having a heap of other errors, but mainly the Bad exit status from /var/tmp/rpm-tmp.Y7ZCUn (%build) is causing me a headache on all the builds!

In the related GitHub issue, I’ve made a comment on how to built the package.

Sadly, I don’t know how to use autospec even after reading all documentations. Hope this is still helpful to you @nickcj

@doct0rHu thats awesome, thanks for spending your time writing that! I will give it a go :slight_smile: