<div dir="ltr"><div>сб, 12 серп. 2017 о 09:05 Olaf Meeuwissen <<a href="mailto:paddy-hack@member.fsf.org">paddy-hack@member.fsf.org</a>> пише:<br></div><div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">They don't get deleted later. The files to be installed don't get<br>
created to begin with. This is arguably a bug in the sane-backends<br>
build system but you can easily work around it by running a `make`<br>
before doing a `make install`.<br>
<br>
It looks like the homebrew stuff assumes that `make install` will be<br>
smart enough to also trigger builds for everything that needs to be<br>
installed. A bit overly optimistic, if you ask me ;-)<br>
<br>
Below is the Makefile.am snippet that installs the configuration files.<br>
The first line after the @list, checks for a readable configuration but<br>
because all these files are generated they don't exist unless you run a<br>
`make install` first.<br>
<br>
install-becfg:<br>
@# Libtool has a bug where it will sometimes symlink the last<br>
@# installed library in $(sanelibdir) to $(sanelibdir)/libsane.*.<br>
@# Having two libsane's can cause issues so get rid of it.<br>
-rm -f $(DESTDIR)$(sanelibdir)/libsane.*<br>
test -z "$(configdir)" || $(MKDIR_P) "$(DESTDIR)$(configdir)"<br>
test -z "$(configdir)/dll.d" || $(MKDIR_P) "$(DESTDIR)$(configdir)/dll.d"<br>
@list="$(BACKEND_CONFS_ENABLED) saned.conf dll.conf"; for cfg in $$list; do \<br>
if test ! -r $${cfg}; then continue; fi; \<br>
if test -f $(DESTDIR)$(configdir)/$${cfg}; then \<br>
echo NOT overwriting $${cfg} in $(configdir)...; \<br>
else \<br>
echo installing $${cfg} in $(configdir)/$${cfg}...; \<br>
$(INSTALL_DATA) $${cfg} $(DESTDIR)$(configdir)/$${cfg} \<br>
|| exit 1; \<br>
fi; \<br>
done<br>
<br>
I pushed a fix for this in 519ff57.<br>
<br>
Hope this helps,<br></blockquote><div> </div><div>Olaf, I had created PR for this</div><a href="https://github.com/Homebrew/homebrew-core/pull/16722">https://github.com/Homebrew/homebrew-core/pull/16722</a> It can be installed via:</div><div class="gmail_quote"> `brew reinstall <a href="https://github.com/yurikoles/homebrew-core/blob/sane-backends-1.0.27-3/Formula/sane-backends.rb`">https://github.com/yurikoles/homebrew-core/blob/sane-backends-1.0.27-3/Formula/sane-backends.rb`</a> </div></div><div class="gmail_quote">Thomas, please check it.</div></div>