I&#39;ve been working on a port of the HPLIP software to Mac OS X, using MacPorts. (The SANE project says it doesn&#39;t include HPAIO because it&#39;s supported by HPLIP, but HPLIP explicitly does not support the Mac.)<br>
<br>In the process, I discovered that HPLIP (which provides the hpaio backend) appends a line &quot;hpaio&quot; to dll.conf to activate it.<br><br>This line is then overwritten the next time sane-backends is upgraded.<br>
<br>I then realized that this is the case with ALL upgrades of sane-backends and is thus a general problem. It dawned on me that perhaps a better approach might be something along these lines:<br><br>1) check to see if dll.conf exists in the install directory. If it doesn&#39;t, install <a href="http://dll.conf.in">dll.conf.in</a><br>
<br>2) if it already exists, either leave it alone, or (better) do something like this:<br>-- create a version of dll.conf (call it dll.conf.null) with ALL backends commented out<br>-- grep -v ^# dll.conf &gt;&gt; dll.conf.null<br>
-- install the modified dll.conf.null in place of dll.conf<br><br>This will give an updated list of all the backends, but only activate the ones that were previously active (and not delete items like hpaio that were active but not part of the official sane-backends package).<br>
<br><br>