Source: sane-backends Version: 1.0.30-1~experimental2 Followup-For: Bug #931297
I support this, and all of Gunnar's reasoning. We have a patch already for something almost identical, and there's still 3rd party drivers out there that install in /usr/lib64/sane -- e.g. Samsung also has drivers showing this, and I would guess there still are a bunch other around. My impression is that it would be trivial to fix the issue so that these drivers work out of the box. Yes, their authors should fix them (and some are going the right direction, e.g. there are now Epson drivers installing the the right multiarch directory), but we unfortunately cannot reasonably expect most drivers out there getting fixed anytime soon (especially ones for older hardware), so I think we can make the lives of users a little easier here. I myself patched 0125-multiarch_dll_search_path.patch to add lib64 on my end (patch attached), and it seems to work just fine. Thanks!
diff --git a/debian/patches/0125-multiarch_dll_search_path.patch b/debian/patches/0125-multiarch_dll_search_path.patch index a213060..cebbaa3 100644 --- a/debian/patches/0125-multiarch_dll_search_path.patch +++ b/debian/patches/0125-multiarch_dll_search_path.patch @@ -1,7 +1,7 @@ Description: Keep /usr/lib/sane as a fallback for SANE backends Make /usr/lib/arch_triplet/sane the default location for SANE backends, - but keep /usr/lib/sane as a fallback for now. -Author: Julien BLACHE <jbla...@debian.org> + but keep /usr/lib/sane and /usr/lib{32,64}/sane as fallbacks for now. +Author: Julien BLACHE <jbla...@debian.org>, Colomban Wendling <cwendl...@hypra.fr> Index: trunk/backend/dll.c =================================================================== @@ -39,7 +39,7 @@ Index: trunk/backend/Makefile.am ## included LICENSE file for license information. -AM_CPPFLAGS += -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include $(USB_CFLAGS) -DLIBDIR="\"$(libdir)/sane\"" -+AM_CPPFLAGS += -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include $(USB_CFLAGS) -DLIBDIR="\"$(libdir)/sane\"" -DDEB_DLL_LIBDIR="\"$(libdir)/sane:$(prefix)/lib/sane\"" ++AM_CPPFLAGS += -I. -I$(srcdir) -I$(top_builddir)/include -I$(top_srcdir)/include $(USB_CFLAGS) -DLIBDIR="\"$(libdir)/sane\"" -DDEB_DLL_LIBDIR="\"$(libdir)/sane:$(prefix)/lib/sane:$(prefix)/lib$(shell dpkg-architecture -q DEB_TARGET_ARCH_BITS)/sane\"" AM_LDFLAGS += $(STRICT_LDFLAGS) # The -rpath option is added because we are creating _LTLIBRARIES based