[sane-devel] sane-backend 1.0.27 USB broken on Mac with Homebrew
Yurii Kolesnykov
yurikoles at gmail.com
Sat Aug 12 12:42:53 UTC 2017
сб, 12 серп. 2017 о 09:05 Olaf Meeuwissen <paddy-hack at member.fsf.org> пише:
> They don't get deleted later. The files to be installed don't get
> created to begin with. This is arguably a bug in the sane-backends
> build system but you can easily work around it by running a `make`
> before doing a `make install`.
>
> It looks like the homebrew stuff assumes that `make install` will be
> smart enough to also trigger builds for everything that needs to be
> installed. A bit overly optimistic, if you ask me ;-)
>
> Below is the Makefile.am snippet that installs the configuration files.
> The first line after the @list, checks for a readable configuration but
> because all these files are generated they don't exist unless you run a
> `make install` first.
>
> install-becfg:
> @# Libtool has a bug where it will sometimes symlink the last
> @# installed library in $(sanelibdir) to $(sanelibdir)/libsane.*.
> @# Having two libsane's can cause issues so get rid of it.
> -rm -f $(DESTDIR)$(sanelibdir)/libsane.*
> test -z "$(configdir)" || $(MKDIR_P) "$(DESTDIR)$(configdir)"
> test -z "$(configdir)/dll.d" || $(MKDIR_P)
> "$(DESTDIR)$(configdir)/dll.d"
> @list="$(BACKEND_CONFS_ENABLED) saned.conf dll.conf"; for cfg in
> $$list; do \
> if test ! -r $${cfg}; then continue; fi; \
> if test -f $(DESTDIR)$(configdir)/$${cfg}; then \
> echo NOT overwriting $${cfg} in $(configdir)...; \
> else \
> echo installing $${cfg} in $(configdir)/$${cfg}...; \
> $(INSTALL_DATA) $${cfg} $(DESTDIR)$(configdir)/$${cfg} \
> || exit 1; \
> fi; \
> done
>
> I pushed a fix for this in 519ff57.
>
> Hope this helps,
>
Olaf, I had created PR for this
https://github.com/Homebrew/homebrew-core/pull/16722 It can be installed
via:
`brew reinstall
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>
Thomas, please check it.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20170812/b1626f39/attachment.html>
More information about the sane-devel
mailing list