From mboxrd@z Thu Jan 1 00:00:00 1970 From: Danny Milosavljevic Subject: bug#25101: simple-scan can't use hpaio Date: Sat, 3 Dec 2016 19:41:13 +0100 Message-ID: <20161203194113.6456663e@scratchpost.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37804) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cDFG9-0002lM-6B for bug-guix@gnu.org; Sat, 03 Dec 2016 13:42:05 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cDFG6-0001tY-2X for bug-guix@gnu.org; Sat, 03 Dec 2016 13:42:05 -0500 Received: from debbugs.gnu.org ([208.118.235.43]:36264) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cDFG5-0001tS-Vk for bug-guix@gnu.org; Sat, 03 Dec 2016 13:42:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cDFG5-0007t1-QL for bug-guix@gnu.org; Sat, 03 Dec 2016 13:42:01 -0500 Sender: "Debbugs-submit" Resent-Message-ID: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37690) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cDFFR-0002cv-Ka for bug-guix@gnu.org; Sat, 03 Dec 2016 13:41:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cDFFO-0001mt-IT for bug-guix@gnu.org; Sat, 03 Dec 2016 13:41:21 -0500 Received: from dd1012.kasserver.com ([85.13.128.8]:57152) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cDFFO-0001mc-CN for bug-guix@gnu.org; Sat, 03 Dec 2016 13:41:18 -0500 Received: from localhost (77.116.215.21.wireless.dyn.drei.com [77.116.215.21]) by dd1012.kasserver.com (Postfix) with ESMTPSA id 825381CA097E for ; Sat, 3 Dec 2016 19:41:14 +0100 (CET) List-Id: Bug reports for GNU Guix List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-guix-bounces+gcggb-bug-guix=m.gmane.org@gnu.org Sender: "bug-Guix" To: 25101@debbugs.gnu.org simple-scan can't use hpaio as scanner. That means that HP scanners don't work at all. That's because: (1) sane-backends installs a hard-coded dll.conf . In itself, that's not so bad. However, this file doesn't contain a line "hpaio". To workaround this, I set environment variable SANE_CONFIG_DIR to point to a directory which contains a dll.conf which contains (only) a line "hpaio". (2) sane-backends tries to load /gnu/store/f4kmkdf8s0kpwia9wgiw5a35xljh4a77-sane-backends-1.0.25/lib/sane/libsane-hpaio.so.1 - which won't work. I checked the source code of sane-backends - and it searches many locations for loadable dynamic libraries, for example the ones specified in environment variables LD_LIBRARY_PATH, SHLIB_PATH LIBPATH (see backend/dll.c load()). (3) dll.conf has no support for absolute paths. Whatever you put there it will just blindly put after a hard-coded directory prefix. This is on GuixSD. How to proceed? Add support for absolute paths and a service which merges multiple dll.conf into one file ? Or just add hplip as a hard dependency of sane-backends and make it link libsane-hpaio (that's possible in sane)? Also, should we also amend simple-scan to propagate-input hplip? Otherwise it will come up with a "Install Driver" dialog which won't work either.