Problem 1:
If someone actually does build libffado as root (libffado is one of the few real examples why this *IS* a bad idea), any existing installation of libffado will be destroyed.
It is just wrong to try to remove installed files while building!
This should only be done during installing/uninstalling.
- If the user account used for building has no permission to remove installed files, a permission error happens.
- The building system is normally not the system the resulting libffado package will be installed.
Therefore as a workaround I have commented out "env.Execute( env.Action( "rm -f %s/ffadomixer" % envbindir? ) )".
Problem 2:
While installing, scons ignores "BUILD_TESTS".
The fixes work for me while building my Slackware packages, I hope they are ok for inclusion.
Thanks