From unknown Fri Jun 20 05:11:40 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#25101 <25101@debbugs.gnu.org> To: bug#25101 <25101@debbugs.gnu.org> Subject: Status: simple-scan can't use hpaio Reply-To: bug#25101 <25101@debbugs.gnu.org> Date: Fri, 20 Jun 2025 12:11:40 +0000 retitle 25101 simple-scan can't use hpaio reassign 25101 guix submitter 25101 Danny Milosavljevic severity 25101 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 03 13:41:30 2016 Received: (at submit) by debbugs.gnu.org; 3 Dec 2016 18:41:30 +0000 Received: from localhost ([127.0.0.1]:51663 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cDFFa-0007sE-4l for submit@debbugs.gnu.org; Sat, 03 Dec 2016 13:41:30 -0500 Received: from eggs.gnu.org ([208.118.235.92]:46728) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cDFFY-0007s1-Lz for submit@debbugs.gnu.org; Sat, 03 Dec 2016 13:41:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cDFFS-0001nl-Mi for submit@debbugs.gnu.org; Sat, 03 Dec 2016 13:41:23 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05 autolearn=disabled version=3.3.2 Received: from lists.gnu.org ([2001:4830:134:3::11]:56184) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cDFFS-0001nf-JZ for submit@debbugs.gnu.org; Sat, 03 Dec 2016 13:41:22 -0500 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) Date: Sat, 3 Dec 2016 19:41:13 +0100 From: Danny Milosavljevic To: Subject: simple-scan can't use hpaio Message-ID: <20161203194113.6456663e@scratchpost.org> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 2001:4830:134:3::11 X-Spam-Score: -5.0 (-----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -5.0 (-----) 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. From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 03 23:01:22 2016 Received: (at 25101) by debbugs.gnu.org; 4 Dec 2016 04:01:22 +0000 Received: from localhost ([127.0.0.1]:51772 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cDNzO-0007h7-ER for submit@debbugs.gnu.org; Sat, 03 Dec 2016 23:01:22 -0500 Received: from minos.uwaterloo.ca ([129.97.128.78]:45160) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cDNzM-0007gt-9u for 25101@debbugs.gnu.org; Sat, 03 Dec 2016 23:01:20 -0500 Received: from localhost.localdomain (bas1-jockvale05-184-145-105-117.dsl.bell.ca [184.145.105.117]) (authenticated bits=0) by minos.uwaterloo.ca (8.14.4/8.14.4) with ESMTP id uB4414oE013375 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Sat, 3 Dec 2016 23:01:13 -0500 From: Andy Patterson To: 25101@debbugs.gnu.org Subject: bug#25101: simple-scan can't use hpaio Date: Sat, 3 Dec 2016 23:00:35 -0500 Message-Id: <20161204040037.21758-1-ajpatter@uwaterloo.ca> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20161203194113.6456663e@scratchpost.org> References: <20161203194113.6456663e@scratchpost.org> X-UUID: fd664f46-c3e6-4a9f-ba7c-eaf47f58a52c X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 25101 Cc: Danny Milosavljevic X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.9 (--) Hi Danny, I also noticed this problem a couple days ago, and I really needed to scan something, so I've had these patches in my tree. It basically implements your second suggestion. I think it's the right way to go about it. I realise you might also have patches you're working on, but maybe this is helpful anyway. Suggestions welcome, especially concerning how I handled the recursive module dependencies. Thanks, -- Andy From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 03 23:01:25 2016 Received: (at 25101) by debbugs.gnu.org; 4 Dec 2016 04:01:25 +0000 Received: from localhost ([127.0.0.1]:51775 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cDNzQ-0007hM-OR for submit@debbugs.gnu.org; Sat, 03 Dec 2016 23:01:24 -0500 Received: from minos.uwaterloo.ca ([129.97.128.78]:45182) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cDNzO-0007gw-DS for 25101@debbugs.gnu.org; Sat, 03 Dec 2016 23:01:23 -0500 Received: from localhost.localdomain (bas1-jockvale05-184-145-105-117.dsl.bell.ca [184.145.105.117]) (authenticated bits=0) by minos.uwaterloo.ca (8.14.4/8.14.4) with ESMTP id uB4414oF013375 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Sat, 3 Dec 2016 23:01:16 -0500 From: Andy Patterson To: 25101@debbugs.gnu.org Subject: [PATCH 1/2] gnu: Add hpaio-enabled sane-backends variant. Date: Sat, 3 Dec 2016 23:00:36 -0500 Message-Id: <20161204040037.21758-2-ajpatter@uwaterloo.ca> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20161204040037.21758-1-ajpatter@uwaterloo.ca> References: <20161203194113.6456663e@scratchpost.org> <20161204040037.21758-1-ajpatter@uwaterloo.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-UUID: f9d79ec8-1b8b-47a8-b97f-975061288cdd X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 25101 Cc: Danny Milosavljevic , Andy Patterson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.9 (--) * gnu/packages/scanner.scm (sane-backends+hpaio): New variable. --- gnu/packages/scanner.scm | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/gnu/packages/scanner.scm b/gnu/packages/scanner.scm index 76817b3..f918291 100644 --- a/gnu/packages/scanner.scm +++ b/gnu/packages/scanner.scm @@ -1,6 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2014 John Darrington ;;; Copyright © 2015 Andy Wingo +;;; Copyright © 2016 Andy Patterson ;;; ;;; This file is part of GNU Guix. ;;; @@ -20,6 +21,7 @@ (define-module (gnu packages scanner) #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix utils) #:use-module (guix build-system gnu) #:use-module (gnu packages pkg-config) #:use-module (gnu packages libusb) @@ -73,3 +75,31 @@ proving access to any raster image scanner hardware (flatbed scanner, hand-held scanner, video- and still-cameras, frame-grabbers, etc.). The package contains the library and drivers.") (license licence:gpl2+))) ; plus linking exception + +(define-public sane-backends+hpaio + (package + (inherit sane-backends) + (name "sane-backends+hpaio") + (inputs + `(("hplip" ,(@ (gnu packages cups) hplip)) + ,@(package-inputs sane-backends))) + (arguments + (substitute-keyword-arguments (package-arguments sane-backends) + ((#:phases phases) + `(modify-phases ,phases + (add-after 'unpack 'add-backends + (lambda _ + (substitute* "backend/dll.conf.in" + (("hp5590" all) (format #f "~a~%~a" all "hpaio"))) + #t)) + (add-after 'install 'install-hpaio + (lambda* (#:key inputs outputs #:allow-other-keys) + (define hplip (string-append (assoc-ref inputs "hplip") + "/lib/sane")) + (define out (string-append (assoc-ref outputs "out") + "/lib/sane")) + (for-each + (lambda (file) + (symlink file (string-append out "/" (basename file)))) + (find-files hplip)) + #t)))))))) -- 2.10.2 From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 03 23:01:37 2016 Received: (at 25101) by debbugs.gnu.org; 4 Dec 2016 04:01:37 +0000 Received: from localhost ([127.0.0.1]:51778 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cDNzd-0007hn-1I for submit@debbugs.gnu.org; Sat, 03 Dec 2016 23:01:37 -0500 Received: from minos.uwaterloo.ca ([129.97.128.78]:45238) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cDNzb-0007hY-O6 for 25101@debbugs.gnu.org; Sat, 03 Dec 2016 23:01:36 -0500 Received: from localhost.localdomain (bas1-jockvale05-184-145-105-117.dsl.bell.ca [184.145.105.117]) (authenticated bits=0) by minos.uwaterloo.ca (8.14.4/8.14.4) with ESMTP id uB4414oG013375 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Sat, 3 Dec 2016 23:01:30 -0500 From: Andy Patterson To: 25101@debbugs.gnu.org Subject: [PATCH 2/2] gnu: simple-scan: Enable hpaio support. Date: Sat, 3 Dec 2016 23:00:37 -0500 Message-Id: <20161204040037.21758-3-ajpatter@uwaterloo.ca> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20161204040037.21758-1-ajpatter@uwaterloo.ca> References: <20161203194113.6456663e@scratchpost.org> <20161204040037.21758-1-ajpatter@uwaterloo.ca> X-UUID: ef1196a0-242a-46b8-b959-52499c2ed147 X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 25101 Cc: Danny Milosavljevic , Andy Patterson X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.9 (--) * gnu/packages/gnome.scm (simple-scan)[inputs]: Use 'sane-backends+hpaio'. --- gnu/packages/gnome.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index 3aa0f56..531da43 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -3572,7 +3572,7 @@ USB transfers with your high-level application or system daemon.") ("cairo" ,cairo) ("gdk-pixbuf" ,gdk-pixbuf) ("gusb" ,gusb) - ("libsane" ,sane-backends))) + ("libsane" ,sane-backends+hpaio))) (native-inputs `(("gettext" ,gettext-minimal) ("itstool" ,itstool) -- 2.10.2 From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 03 23:18:58 2016 Received: (at 25101) by debbugs.gnu.org; 4 Dec 2016 04:18:58 +0000 Received: from localhost ([127.0.0.1]:51784 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cDOGQ-00085k-Gx for submit@debbugs.gnu.org; Sat, 03 Dec 2016 23:18:58 -0500 Received: from mailchk-m02.uwaterloo.ca ([129.97.128.241]:45430) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cDOGO-00085X-O2 for 25101@debbugs.gnu.org; Sat, 03 Dec 2016 23:18:57 -0500 Received: from localhost (bas1-jockvale05-184-145-105-117.dsl.bell.ca [184.145.105.117]) (authenticated bits=0) by mailchk-m02.uwaterloo.ca (8.14.4/8.14.4) with ESMTP id uB44IlCY005431 (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Sat, 3 Dec 2016 23:18:50 -0500 Date: Sat, 3 Dec 2016 23:18:46 -0500 From: Andy Patterson To: 25101@debbugs.gnu.org Subject: Re: bug#25101: simple-scan can't use hpaio Message-ID: <20161203231846.3ae41966@uwaterloo.ca> In-Reply-To: <20161204040037.21758-1-ajpatter@uwaterloo.ca> References: <20161203194113.6456663e@scratchpost.org> <20161204040037.21758-1-ajpatter@uwaterloo.ca> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-UUID: 4cb92085-04af-4877-aa40-08a79f43526d X-Miltered: at mailchk-m02 with ID 58439927.001 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Virus-Scanned: clamav-milter 0.99.2 at mailchk-m02 X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.9 (mailchk-m02.uwaterloo.ca [129.97.128.141]); Sat, 03 Dec 2016 23:18:50 -0500 (EST) X-Spam-Status: No, score=-6.6 required=5.0 tests=ALL_TRUSTED,AWL, T_DATE_IN_FUTURE_96_Q autolearn=disabled version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mailchk-m02.uwaterloo.ca X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 25101 Cc: Danny Milosavljevic X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.9 (--) On Sat, 3 Dec 2016 23:00:35 -0500 Andy Patterson wrote: > Hi Danny, > > I also noticed this problem a couple days ago, and I really needed to > scan something, so I've had these patches in my tree. It basically > implements your second suggestion. I think it's the right way to go > about it. > > I realise you might also have patches you're working on, but maybe > this is helpful anyway. > > Suggestions welcome, especially concerning how I handled the > recursive module dependencies. > > Thanks, > > -- > Andy > Just adding Danny; didn't realise that a CC also needs to be added to the compose window for "git send-email". From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 05 15:48:49 2016 Received: (at 25101) by debbugs.gnu.org; 5 Dec 2016 20:48:49 +0000 Received: from localhost ([127.0.0.1]:57322 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cE0Bt-0002Zd-4e for submit@debbugs.gnu.org; Mon, 05 Dec 2016 15:48:49 -0500 Received: from eggs.gnu.org ([208.118.235.92]:59414) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cE0Br-0002ZQ-6V for 25101@debbugs.gnu.org; Mon, 05 Dec 2016 15:48:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cE0Bi-0001U5-Pj for 25101@debbugs.gnu.org; Mon, 05 Dec 2016 15:48:41 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:50797) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cE0Bi-0001U1-Mc; Mon, 05 Dec 2016 15:48:38 -0500 Received: from reverse-83.fdn.fr ([80.67.176.83]:37012 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cE0Bh-00048f-Nx; Mon, 05 Dec 2016 15:48:38 -0500 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Andy Patterson Subject: Re: bug#25101: [PATCH 1/2] gnu: Add hpaio-enabled sane-backends variant. References: <20161203194113.6456663e@scratchpost.org> <20161204040037.21758-1-ajpatter@uwaterloo.ca> <20161204040037.21758-2-ajpatter@uwaterloo.ca> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 15 Frimaire an 225 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu Date: Mon, 05 Dec 2016 21:48:36 +0100 In-Reply-To: <20161204040037.21758-2-ajpatter@uwaterloo.ca> (Andy Patterson's message of "Sat, 3 Dec 2016 23:00:36 -0500") Message-ID: <871sxm14rf.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -7.9 (-------) X-Debbugs-Envelope-To: 25101 Cc: 25101@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -7.9 (-------) Andy Patterson skribis: > * gnu/packages/scanner.scm (sane-backends+hpaio): New variable. [...] > +(define-public sane-backends+hpaio Could you add a comment and a synopsis explaining what=E2=80=99s this is? > + (package > + (inherit sane-backends) > + (name "sane-backends+hpaio") > + (inputs > + `(("hplip" ,(@ (gnu packages cups) hplip)) > + ,@(package-inputs sane-backends))) The closure size of this is 290 MiB whereas it=E2=80=99s 87 MiB for =E2=80=98sane-backends=E2=80=99. I suppose that=E2=80=99s the reason to ke= ep=E2=80=99em separated? Otherwise LGTM, thanks! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 05 17:38:43 2016 Received: (at 25101) by debbugs.gnu.org; 5 Dec 2016 22:38:43 +0000 Received: from localhost ([127.0.0.1]:57433 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cE1uE-0006ry-Ob for submit@debbugs.gnu.org; Mon, 05 Dec 2016 17:38:43 -0500 Received: from mailchk-m02.uwaterloo.ca ([129.97.128.241]:52014) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cE1uC-0006rj-BO for 25101@debbugs.gnu.org; Mon, 05 Dec 2016 17:38:40 -0500 Received: from localhost (bas1-jockvale05-184-145-105-117.dsl.bell.ca [184.145.105.117]) (authenticated bits=0) by mailchk-m02.uwaterloo.ca (8.14.4/8.14.4) with ESMTP id uB5McSQ2013672 (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Mon, 5 Dec 2016 17:38:31 -0500 Date: Mon, 5 Dec 2016 17:38:27 -0500 From: Andy Patterson To: ludo@gnu.org (Ludovic =?UTF-8?B?Q291cnTDqHM=?=) Subject: Re: bug#25101: [PATCH 1/2] gnu: Add hpaio-enabled sane-backends variant. Message-ID: <20161205173827.49a9001a@uwaterloo.ca> In-Reply-To: <871sxm14rf.fsf@gnu.org> References: <20161203194113.6456663e@scratchpost.org> <20161204040037.21758-1-ajpatter@uwaterloo.ca> <20161204040037.21758-2-ajpatter@uwaterloo.ca> <871sxm14rf.fsf@gnu.org> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-UUID: 2b8c65fe-23c0-4824-9813-7cda6e455e7f X-Miltered: at mailchk-m02 with ID 5845EC64.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Virus-Scanned: clamav-milter 0.99.2 at mailchk-m02 X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.9 (mailchk-m02.uwaterloo.ca [129.97.128.141]); Mon, 05 Dec 2016 17:38:32 -0500 (EST) X-Spam-Status: No, score=-6.7 required=5.0 tests=ALL_TRUSTED,AWL autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mailchk-r01.uwaterloo.ca X-Spam-Score: -2.9 (--) X-Debbugs-Envelope-To: 25101 Cc: 25101@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.9 (--) On Mon, 05 Dec 2016 21:48:36 +0100 ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > > +(define-public sane-backends+hpaio =20 >=20 > Could you add a comment and a synopsis explaining what=E2=80=99s this is? >=20 Sure, is the following patch ok? > > + (package > > + (inherit sane-backends) > > + (name "sane-backends+hpaio") > > + (inputs > > + `(("hplip" ,(@ (gnu packages cups) hplip)) > > + ,@(package-inputs sane-backends))) =20 >=20 > The closure size of this is 290 MiB whereas it=E2=80=99s 87 MiB for > =E2=80=98sane-backends=E2=80=99. I suppose that=E2=80=99s the reason to = keep=E2=80=99em separated? > Yeah, and there's also the fact that hplip depends on sane-backends. But this is the reason I didn't change sane-backends into a private variable, and then make this the new sane-backends. > Otherwise LGTM, thanks! >=20 > Ludo=E2=80=99. Thanks for your review. -- Andy =46rom 05474fbe68591b136c912db8aa1400b24800c541 Mon Sep 17 00:00:00 2001 From: Andy Patterson Date: Sat, 3 Dec 2016 22:29:44 -0500 Subject: [PATCH 1/2] gnu: Add hpaio-enabled sane-backends variant. * gnu/packages/scanner.scm (sane-backends+hpaio): New variable. --- gnu/packages/scanner.scm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/gnu/packages/scanner.scm b/gnu/packages/scanner.scm index 76817b3..f74c4e1 100644 --- a/gnu/packages/scanner.scm +++ b/gnu/packages/scanner.scm @@ -1,6 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright =C2=A9 2014 John Darrington ;;; Copyright =C2=A9 2015 Andy Wingo +;;; Copyright =C2=A9 2016 Andy Patterson ;;; ;;; This file is part of GNU Guix. ;;; @@ -20,6 +21,7 @@ (define-module (gnu packages scanner) #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix utils) #:use-module (guix build-system gnu) #:use-module (gnu packages pkg-config) #:use-module (gnu packages libusb) @@ -73,3 +75,36 @@ proving access to any raster image scanner hardware (fla= tbed scanner, hand-held scanner, video- and still-cameras, frame-grabbers, etc.). The package contains the library and drivers.") (license licence:gpl2+))) ; plus linking exception + +;; This variant links in the hpaio backend, provided by hplip, which adds +;; support for HP scanners whose backends are not maintained by +;; 'sane-backends' +(define-public sane-backends+hpaio + (package + (inherit sane-backends) + (name "sane-backends+hpaio") + (inputs + `(("hplip" ,(@ (gnu packages cups) hplip)) + ,@(package-inputs sane-backends))) + (arguments + (substitute-keyword-arguments (package-arguments sane-backends) + ((#:phases phases) + `(modify-phases ,phases + (add-after 'unpack 'add-backends + (lambda _ + (substitute* "backend/dll.conf.in" + (("hp5590" all) (format #f "~a~%~a" all "hpaio"))) + #t)) + (add-after 'install 'install-hpaio + (lambda* (#:key inputs outputs #:allow-other-keys) + (define hplip (string-append (assoc-ref inputs "hplip") + "/lib/sane")) + (define out (string-append (assoc-ref outputs "out") + "/lib/sane")) + (for-each + (lambda (file) + (symlink file (string-append out "/" (basename file)))) + (find-files hplip)) + #t)))))) + (synopsis + "Raster image scanner library and drivers, with full HP scanner suppo= rt"))) --=20 2.10.2 From debbugs-submit-bounces@debbugs.gnu.org Tue Dec 06 04:11:10 2016 Received: (at 25101) by debbugs.gnu.org; 6 Dec 2016 09:11:10 +0000 Received: from localhost ([127.0.0.1]:57623 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEBmI-0004LC-B3 for submit@debbugs.gnu.org; Tue, 06 Dec 2016 04:11:10 -0500 Received: from eggs.gnu.org ([208.118.235.92]:34232) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cEBmG-0004Kz-Oy for 25101@debbugs.gnu.org; Tue, 06 Dec 2016 04:11:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cEBm8-00066s-BE for 25101@debbugs.gnu.org; Tue, 06 Dec 2016 04:11:03 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_40,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:58930) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cEBm8-00066o-86; Tue, 06 Dec 2016 04:11:00 -0500 Received: from pluto.bordeaux.inria.fr ([193.50.110.57]:40698 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cEBm7-0005NG-Ho; Tue, 06 Dec 2016 04:10:59 -0500 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Andy Patterson Subject: Re: bug#25101: [PATCH 1/2] gnu: Add hpaio-enabled sane-backends variant. References: <20161203194113.6456663e@scratchpost.org> <20161204040037.21758-1-ajpatter@uwaterloo.ca> <20161204040037.21758-2-ajpatter@uwaterloo.ca> <871sxm14rf.fsf@gnu.org> <20161205173827.49a9001a@uwaterloo.ca> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 16 Frimaire an 225 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu Date: Tue, 06 Dec 2016 10:10:57 +0100 In-Reply-To: <20161205173827.49a9001a@uwaterloo.ca> (Andy Patterson's message of "Mon, 5 Dec 2016 17:38:27 -0500") Message-ID: <87a8c9xw0u.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -7.9 (-------) X-Debbugs-Envelope-To: 25101 Cc: 25101@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -7.9 (-------) Andy Patterson skribis: > On Mon, 05 Dec 2016 21:48:36 +0100 > ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > >> > +(define-public sane-backends+hpaio=20=20 >>=20 >> Could you add a comment and a synopsis explaining what=E2=80=99s this is? >>=20 > > Sure, is the following patch ok? Yup! >> > + (package >> > + (inherit sane-backends) >> > + (name "sane-backends+hpaio") >> > + (inputs >> > + `(("hplip" ,(@ (gnu packages cups) hplip)) >> > + ,@(package-inputs sane-backends)))=20=20 >>=20 >> The closure size of this is 290 MiB whereas it=E2=80=99s 87 MiB for >> =E2=80=98sane-backends=E2=80=99. I suppose that=E2=80=99s the reason to= keep=E2=80=99em separated? >> > > Yeah, and there's also the fact that hplip depends on sane-backends. > But this is the reason I didn't change sane-backends into a private > variable, and then make this the new sane-backends. Oh right. One last thing: should we renaming =E2=80=9Csane-backends=E2=80=9D to =E2=80=9Csane-backends-minimal=E2=80=9D, and =E2=80=9Csane-backends+hpaio= =E2=80=9D to =E2=80=9Csane-backends=E2=80=9D? That way all scanners would work out of the box, at the expense of extra disk usage, but that is roughly what patch 2/2 does anyway. Thanks! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 12 15:11:20 2016 Received: (at 25101) by debbugs.gnu.org; 12 Dec 2016 20:11:20 +0000 Received: from localhost ([127.0.0.1]:39618 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGWwS-0006ma-HF for submit@debbugs.gnu.org; Mon, 12 Dec 2016 15:11:20 -0500 Received: from mailchk-m03.uwaterloo.ca ([129.97.128.240]:42024) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGWwR-0006mN-2X for 25101@debbugs.gnu.org; Mon, 12 Dec 2016 15:11:19 -0500 Received: from localhost (bas1-jockvale05-184-145-105-117.dsl.bell.ca [184.145.105.117]) (authenticated bits=0) by mailchk-m03.uwaterloo.ca (8.14.4/8.14.4) with ESMTP id uBCKB97O025771 (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256 verify=NO); Mon, 12 Dec 2016 15:11:12 -0500 Date: Mon, 12 Dec 2016 15:11:08 -0500 From: Andy Patterson To: ludo@gnu.org (Ludovic =?UTF-8?B?Q291cnTDqHM=?=) Subject: Re: bug#25101: [PATCH 1/2] gnu: Add hpaio-enabled sane-backends variant. Message-ID: <20161212151108.5b51103f@uwaterloo.ca> In-Reply-To: <87a8c9xw0u.fsf@gnu.org> References: <20161203194113.6456663e@scratchpost.org> <20161204040037.21758-1-ajpatter@uwaterloo.ca> <20161204040037.21758-2-ajpatter@uwaterloo.ca> <871sxm14rf.fsf@gnu.org> <20161205173827.49a9001a@uwaterloo.ca> <87a8c9xw0u.fsf@gnu.org> X-Mailer: Claws Mail 3.14.1 (GTK+ 2.24.31; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-UUID: cfb87200-e12a-4802-b229-910fdee315ea X-Miltered: at mailchk-m03 with ID 584F045D.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Virus-Scanned: clamav-milter 0.99.2 at mailchk-m03 X-Virus-Status: Clean X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.9 (mailchk-m03.uwaterloo.ca [129.97.128.141]); Mon, 12 Dec 2016 15:11:12 -0500 (EST) X-Spam-Status: No, score=-6.8 required=5.0 tests=ALL_TRUSTED,AWL autolearn=disabled version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mailchk-m03.uwaterloo.ca X-Spam-Score: -3.1 (---) X-Debbugs-Envelope-To: 25101 Cc: 25101@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.1 (---) Hi, and sorry for the late reply. On Tue, 06 Dec 2016 10:10:57 +0100 ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > Andy Patterson skribis: >=20 > > On Mon, 05 Dec 2016 21:48:36 +0100 > > ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > > =20 > >> > +(define-public sane-backends+hpaio =20 > >>=20 > >> Could you add a comment and a synopsis explaining what=E2=80=99s this = is? > >> =20 > > > > Sure, is the following patch ok? =20 >=20 > Yup! >=20 > >> > + (package > >> > + (inherit sane-backends) > >> > + (name "sane-backends+hpaio") > >> > + (inputs > >> > + `(("hplip" ,(@ (gnu packages cups) hplip)) > >> > + ,@(package-inputs sane-backends))) =20 > >>=20 > >> The closure size of this is 290 MiB whereas it=E2=80=99s 87 MiB for > >> =E2=80=98sane-backends=E2=80=99. I suppose that=E2=80=99s the reason = to keep=E2=80=99em separated? > >> =20 > > > > Yeah, and there's also the fact that hplip depends on sane-backends. > > But this is the reason I didn't change sane-backends into a private > > variable, and then make this the new sane-backends. =20 >=20 > Oh right. >=20 > One last thing: should we renaming =E2=80=9Csane-backends=E2=80=9D to > =E2=80=9Csane-backends-minimal=E2=80=9D, and =E2=80=9Csane-backends+hpaio= =E2=80=9D to =E2=80=9Csane-backends=E2=80=9D? The current "sane-backends" isn't really minimal, as it includes most backends. I'm not sure how it's applied elsewhere in Guix though, so I'll leave it up to you. >=20 > That way all scanners would work out of the box, at the expense of > extra disk usage, but that is roughly what patch 2/2 does anyway. One more patch is required in either case, as hplip would need to use sane-backends-minimal. Let me know if you'd like me to make this change. -- Andy From debbugs-submit-bounces@debbugs.gnu.org Mon Dec 12 17:41:22 2016 Received: (at 25101) by debbugs.gnu.org; 12 Dec 2016 22:41:22 +0000 Received: from localhost ([127.0.0.1]:39703 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGZHe-0003ez-Ik for submit@debbugs.gnu.org; Mon, 12 Dec 2016 17:41:22 -0500 Received: from eggs.gnu.org ([208.118.235.92]:50913) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cGZHb-0003ek-Tp for 25101@debbugs.gnu.org; Mon, 12 Dec 2016 17:41:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cGZHT-0002dL-Iu for 25101@debbugs.gnu.org; Mon, 12 Dec 2016 17:41:14 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-2.3 required=5.0 tests=BAYES_50,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:35963) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cGZHT-0002dH-Fd; Mon, 12 Dec 2016 17:41:11 -0500 Received: from [37.120.80.33] (port=39770 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cGZHS-0006yW-HG; Mon, 12 Dec 2016 17:41:11 -0500 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Andy Patterson Subject: Re: bug#25101: [PATCH 1/2] gnu: Add hpaio-enabled sane-backends variant. References: <20161203194113.6456663e@scratchpost.org> <20161204040037.21758-1-ajpatter@uwaterloo.ca> <20161204040037.21758-2-ajpatter@uwaterloo.ca> <871sxm14rf.fsf@gnu.org> <20161205173827.49a9001a@uwaterloo.ca> <87a8c9xw0u.fsf@gnu.org> <20161212151108.5b51103f@uwaterloo.ca> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 22 Frimaire an 225 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu Date: Mon, 12 Dec 2016 23:41:07 +0100 In-Reply-To: <20161212151108.5b51103f@uwaterloo.ca> (Andy Patterson's message of "Mon, 12 Dec 2016 15:11:08 -0500") Message-ID: <87zik0wz24.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -8.1 (--------) X-Debbugs-Envelope-To: 25101 Cc: 25101@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -8.1 (--------) Andy Patterson skribis: > Hi, and sorry for the late reply. > > On Tue, 06 Dec 2016 10:10:57 +0100 > ludo@gnu.org (Ludovic Court=C3=A8s) wrote: > >> Andy Patterson skribis: >>=20 >> > On Mon, 05 Dec 2016 21:48:36 +0100 >> > ludo@gnu.org (Ludovic Court=C3=A8s) wrote: >> >=20=20 >> >> > +(define-public sane-backends+hpaio=20=20=20=20 >> >>=20 >> >> Could you add a comment and a synopsis explaining what=E2=80=99s this= is? >> >>=20=20=20 >> > >> > Sure, is the following patch ok?=20=20 >>=20 >> Yup! >>=20 >> >> > + (package >> >> > + (inherit sane-backends) >> >> > + (name "sane-backends+hpaio") >> >> > + (inputs >> >> > + `(("hplip" ,(@ (gnu packages cups) hplip)) >> >> > + ,@(package-inputs sane-backends)))=20=20=20=20 >> >>=20 >> >> The closure size of this is 290 MiB whereas it=E2=80=99s 87 MiB for >> >> =E2=80=98sane-backends=E2=80=99. I suppose that=E2=80=99s the reason= to keep=E2=80=99em separated? >> >>=20=20 >> > >> > Yeah, and there's also the fact that hplip depends on sane-backends. >> > But this is the reason I didn't change sane-backends into a private >> > variable, and then make this the new sane-backends.=20=20 >>=20 >> Oh right. >>=20 >> One last thing: should we renaming =E2=80=9Csane-backends=E2=80=9D to >> =E2=80=9Csane-backends-minimal=E2=80=9D, and =E2=80=9Csane-backends+hpai= o=E2=80=9D to =E2=80=9Csane-backends=E2=80=9D? > > The current "sane-backends" isn't really minimal, as it includes most > backends. I'm not sure how it's applied elsewhere in Guix though, so > I'll leave it up to you. Right. Well maybe while you=E2=80=99re at it you could make the new =E2=80=98sane-backend-minimal=E2=80=99 more minimal, it would make sense to= me. >> That way all scanners would work out of the box, at the expense of >> extra disk usage, but that is roughly what patch 2/2 does anyway. > > One more patch is required in either case, as hplip would need to use > sane-backends-minimal. Let me know if you'd like me to make this change. Yes please! Thank you! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 14 00:03:54 2016 Received: (at 25101) by debbugs.gnu.org; 14 Dec 2016 05:03:54 +0000 Received: from localhost ([127.0.0.1]:41304 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cH1jO-0004WF-4Z for submit@debbugs.gnu.org; Wed, 14 Dec 2016 00:03:54 -0500 Received: from minos.uwaterloo.ca ([129.97.128.78]:41482) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cH1jL-0004W1-LB for 25101@debbugs.gnu.org; Wed, 14 Dec 2016 00:03:52 -0500 Received: from localhost.localdomain (bas1-jockvale05-184-145-105-117.dsl.bell.ca [184.145.105.117]) (authenticated bits=0) by minos.uwaterloo.ca (8.14.4/8.14.4) with ESMTP id uBE53bNU000956 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Wed, 14 Dec 2016 00:03:44 -0500 From: Andy Patterson To: ludo@gnu.org (Ludovic Courtès) Subject: Re: bug#25101: [PATCH 1/2] gnu: Add hpaio-enabled sane-backends variant. Date: Wed, 14 Dec 2016 00:03:22 -0500 Message-Id: <20161214050325.6348-1-ajpatter@uwaterloo.ca> X-Mailer: git-send-email 2.11.0 In-Reply-To: <87zik0wz24.fsf@gnu.org> References: <87zik0wz24.fsf@gnu.org> X-UUID: ca1c70ff-fb64-492b-b4b7-272b591b28c6 X-Spam-Score: -3.1 (---) X-Debbugs-Envelope-To: 25101 Cc: 25101@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.1 (---) Hi, Here's some patches implementing what you've suggested. I decided to use the full "sane-backends" for the other dependents, since I guessed that they need some backend support. If anyone knows that that's not required, it can be changed. Thanks, -- Andy From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 14 00:04:02 2016 Received: (at 25101) by debbugs.gnu.org; 14 Dec 2016 05:04:02 +0000 Received: from localhost ([127.0.0.1]:41308 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cH1jW-0004X3-AJ for submit@debbugs.gnu.org; Wed, 14 Dec 2016 00:04:02 -0500 Received: from minos.uwaterloo.ca ([129.97.128.78]:41506) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cH1jU-0004WN-7e for 25101@debbugs.gnu.org; Wed, 14 Dec 2016 00:04:00 -0500 Received: from localhost.localdomain (bas1-jockvale05-184-145-105-117.dsl.bell.ca [184.145.105.117]) (authenticated bits=0) by minos.uwaterloo.ca (8.14.4/8.14.4) with ESMTP id uBE53bNV000956 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Wed, 14 Dec 2016 00:03:54 -0500 From: Andy Patterson To: ludo@gnu.org (Ludovic Courtès) Subject: [PATCH 1/3] gnu: sane-backends: Disable backend generation. Date: Wed, 14 Dec 2016 00:03:23 -0500 Message-Id: <20161214050325.6348-2-ajpatter@uwaterloo.ca> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20161214050325.6348-1-ajpatter@uwaterloo.ca> References: <87zik0wz24.fsf@gnu.org> <20161214050325.6348-1-ajpatter@uwaterloo.ca> X-UUID: f997bd37-ce75-4f89-96b2-f2be8c95b4d2 X-Spam-Score: -3.1 (---) X-Debbugs-Envelope-To: 25101 Cc: Andy Patterson , 25101@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.1 (---) * gnu/packages/scanner.scm (sane-backends)[arguments]: Add a phase to disable the compilation of backends. --- gnu/packages/scanner.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gnu/packages/scanner.scm b/gnu/packages/scanner.scm index 76817b389..01db5ee21 100644 --- a/gnu/packages/scanner.scm +++ b/gnu/packages/scanner.scm @@ -47,6 +47,10 @@ `(#:tests? #f #:phases (modify-phases %standard-phases + (add-before 'configure 'disable-backends + (lambda _ + (setenv "BACKENDS" " ") + #t)) (add-after 'install 'install-udev-rules (lambda* (#:key outputs #:allow-other-keys) -- 2.11.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 14 00:04:22 2016 Received: (at 25101) by debbugs.gnu.org; 14 Dec 2016 05:04:22 +0000 Received: from localhost ([127.0.0.1]:41311 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cH1jq-0004Xf-GJ for submit@debbugs.gnu.org; Wed, 14 Dec 2016 00:04:22 -0500 Received: from minos.uwaterloo.ca ([129.97.128.78]:41554) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cH1jo-0004XN-7Q for 25101@debbugs.gnu.org; Wed, 14 Dec 2016 00:04:20 -0500 Received: from localhost.localdomain (bas1-jockvale05-184-145-105-117.dsl.bell.ca [184.145.105.117]) (authenticated bits=0) by minos.uwaterloo.ca (8.14.4/8.14.4) with ESMTP id uBE53bNW000956 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Wed, 14 Dec 2016 00:04:14 -0500 From: Andy Patterson To: ludo@gnu.org (Ludovic Courtès) Subject: [PATCH 2/3] gnu: Add and use sane-backends-minimal. Date: Wed, 14 Dec 2016 00:03:24 -0500 Message-Id: <20161214050325.6348-3-ajpatter@uwaterloo.ca> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20161214050325.6348-1-ajpatter@uwaterloo.ca> References: <87zik0wz24.fsf@gnu.org> <20161214050325.6348-1-ajpatter@uwaterloo.ca> X-UUID: 9931b7fd-261f-4ea8-ad4d-8038b337bd31 X-Spam-Score: -3.1 (---) X-Debbugs-Envelope-To: 25101 Cc: Andy Patterson , 25101@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.1 (---) * gnu/packages/scanner.scm (sane-backends): Rename to... (sane-backends-minimal): this. Adjust name, source, synopsis and description accordingly. * gnu/packages/cups.scm (hplip): Use 'sane-backends-minimal' instead of 'sane-backends'. * gnu/packages/gnome.scm (colord, simple-scan): Likewise. * gnu/packages/libreoffice.scm (libreoffice): Likewise. * gnu/packages/wine.scm (wine): Likewise. --- gnu/packages/cups.scm | 2 +- gnu/packages/gnome.scm | 4 ++-- gnu/packages/libreoffice.scm | 2 +- gnu/packages/scanner.scm | 11 ++++++----- gnu/packages/wine.scm | 2 +- 5 files changed, 11 insertions(+), 10 deletions(-) diff --git a/gnu/packages/cups.scm b/gnu/packages/cups.scm index 0a8a10ecb..baa77f7aa 100644 --- a/gnu/packages/cups.scm +++ b/gnu/packages/cups.scm @@ -416,7 +416,7 @@ device-specific programs to convert and print many types of files.") (inputs `(("libjpeg" ,libjpeg) ("cups-minimal" ,cups-minimal) ("libusb" ,libusb) - ("sane-backends" ,sane-backends) + ("sane-backends" ,sane-backends-minimal) ("dbus" ,dbus) ("python-wrapper" ,python-wrapper) ("python" ,python) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index 1762381cf..7ffe0bc2d 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -2433,7 +2433,7 @@ keyboard shortcuts.") ("libusb" ,libusb) ("sqlite" ,sqlite) ("polkit" ,polkit) - ("sane-backends" ,sane-backends))) + ("sane-backends" ,sane-backends-minimal))) (home-page "http://www.freedesktop.org/software/colord/") (synopsis "Color management service") (description "Colord is a system service that makes it easy to manage, @@ -3571,7 +3571,7 @@ USB transfers with your high-level application or system daemon.") ("cairo" ,cairo) ("gdk-pixbuf" ,gdk-pixbuf) ("gusb" ,gusb) - ("libsane" ,sane-backends))) + ("libsane" ,sane-backends-minimal))) (native-inputs `(("gettext" ,gettext-minimal) ("itstool" ,itstool) diff --git a/gnu/packages/libreoffice.scm b/gnu/packages/libreoffice.scm index 279e8e2d2..307a54496 100644 --- a/gnu/packages/libreoffice.scm +++ b/gnu/packages/libreoffice.scm @@ -784,7 +784,7 @@ and to return information on pronunciations, meanings and synonyms.") ("postgresql" ,postgresql) ("python" ,python) ("redland" ,redland) - ("sane-backends" ,sane-backends) + ("sane-backends" ,sane-backends-minimal) ("unixodbc" ,unixodbc) ("unzip" ,unzip) ("vigra" ,vigra) diff --git a/gnu/packages/scanner.scm b/gnu/packages/scanner.scm index 01db5ee21..e913858f5 100644 --- a/gnu/packages/scanner.scm +++ b/gnu/packages/scanner.scm @@ -26,15 +26,15 @@ #:use-module ((guix licenses) #:prefix licence:)) -(define-public sane-backends +(define-public sane-backends-minimal (package - (name "sane-backends") + (name "sane-backends-minimal") (version "1.0.25") (source (origin (method url-fetch) (uri (string-append "https://alioth.debian.org/frs/download.php/file/4146/" - name "-" version ".tar.gz")) + "sane-backends-" version ".tar.gz")) (sha256 (base32 "0b3fvhrxl4l82bf3v0j47ypjv6a0k5lqbgknrq1agpmjca6vmmx4")))) @@ -71,9 +71,10 @@ ;; **** File generated for html-backends-split mode is different from reference ;; Makefile:501: recipe for target 'check.local' failed (home-page "http://www.sane-project.org") - (synopsis "Raster image scanner library and drivers") + (synopsis + "Raster image scanner library and drivers, without scanner support") (description "SANE stands for \"Scanner Access Now Easy\" and is an API proving access to any raster image scanner hardware (flatbed scanner, hand-held scanner, video- and still-cameras, frame-grabbers, etc.). The -package contains the library and drivers.") +package contains the library, but no drivers.") (license licence:gpl2+))) ; plus linking exception diff --git a/gnu/packages/wine.scm b/gnu/packages/wine.scm index 367f27af5..83b6297f0 100644 --- a/gnu/packages/wine.scm +++ b/gnu/packages/wine.scm @@ -83,7 +83,7 @@ ("libmpg123" ,mpg123) ("libldap" ,openldap) ("libnetapi" ,samba) - ("libsane" ,sane-backends) + ("libsane" ,sane-backends-minimal) ("libpng" ,libpng) ("libjpeg" ,libjpeg) ("libtiff" ,libtiff) -- 2.11.0 From debbugs-submit-bounces@debbugs.gnu.org Wed Dec 14 00:04:27 2016 Received: (at 25101) by debbugs.gnu.org; 14 Dec 2016 05:04:27 +0000 Received: from localhost ([127.0.0.1]:41314 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cH1ju-0004Xv-Sy for submit@debbugs.gnu.org; Wed, 14 Dec 2016 00:04:27 -0500 Received: from minos.uwaterloo.ca ([129.97.128.78]:41566) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cH1jt-0004XX-2W for 25101@debbugs.gnu.org; Wed, 14 Dec 2016 00:04:25 -0500 Received: from localhost.localdomain (bas1-jockvale05-184-145-105-117.dsl.bell.ca [184.145.105.117]) (authenticated bits=0) by minos.uwaterloo.ca (8.14.4/8.14.4) with ESMTP id uBE53bNX000956 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-GCM-SHA256 bits=128 verify=NO); Wed, 14 Dec 2016 00:04:19 -0500 From: Andy Patterson To: ludo@gnu.org (Ludovic Courtès) Subject: [PATCH 3/3] gnu: Add and use sane-backends. Date: Wed, 14 Dec 2016 00:03:25 -0500 Message-Id: <20161214050325.6348-4-ajpatter@uwaterloo.ca> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20161214050325.6348-1-ajpatter@uwaterloo.ca> References: <87zik0wz24.fsf@gnu.org> <20161214050325.6348-1-ajpatter@uwaterloo.ca> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-UUID: 6b77f56d-3f50-4f2f-a094-314783269f5d X-Spam-Score: -3.1 (---) X-Debbugs-Envelope-To: 25101 Cc: Andy Patterson , 25101@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.1 (---) * gnu/packages/scanner.scm (sane-backends): New variable. * gnu/packages/gnome.scm (colord, simple-scan): Use it instead of 'sane-backends-minimal'. * gnu/packages/libreoffice.scm (libreoffice): Likewise. * gnu/packages/wine.scm (wine): Likewise. --- gnu/packages/gnome.scm | 4 ++-- gnu/packages/libreoffice.scm | 2 +- gnu/packages/scanner.scm | 40 ++++++++++++++++++++++++++++++++++++++++ gnu/packages/wine.scm | 2 +- 4 files changed, 44 insertions(+), 4 deletions(-) diff --git a/gnu/packages/gnome.scm b/gnu/packages/gnome.scm index 7ffe0bc2d..1762381cf 100644 --- a/gnu/packages/gnome.scm +++ b/gnu/packages/gnome.scm @@ -2433,7 +2433,7 @@ keyboard shortcuts.") ("libusb" ,libusb) ("sqlite" ,sqlite) ("polkit" ,polkit) - ("sane-backends" ,sane-backends-minimal))) + ("sane-backends" ,sane-backends))) (home-page "http://www.freedesktop.org/software/colord/") (synopsis "Color management service") (description "Colord is a system service that makes it easy to manage, @@ -3571,7 +3571,7 @@ USB transfers with your high-level application or system daemon.") ("cairo" ,cairo) ("gdk-pixbuf" ,gdk-pixbuf) ("gusb" ,gusb) - ("libsane" ,sane-backends-minimal))) + ("libsane" ,sane-backends))) (native-inputs `(("gettext" ,gettext-minimal) ("itstool" ,itstool) diff --git a/gnu/packages/libreoffice.scm b/gnu/packages/libreoffice.scm index 307a54496..279e8e2d2 100644 --- a/gnu/packages/libreoffice.scm +++ b/gnu/packages/libreoffice.scm @@ -784,7 +784,7 @@ and to return information on pronunciations, meanings and synonyms.") ("postgresql" ,postgresql) ("python" ,python) ("redland" ,redland) - ("sane-backends" ,sane-backends-minimal) + ("sane-backends" ,sane-backends) ("unixodbc" ,unixodbc) ("unzip" ,unzip) ("vigra" ,vigra) diff --git a/gnu/packages/scanner.scm b/gnu/packages/scanner.scm index e913858f5..fdad1c445 100644 --- a/gnu/packages/scanner.scm +++ b/gnu/packages/scanner.scm @@ -1,6 +1,7 @@ ;;; GNU Guix --- Functional package management for GNU ;;; Copyright © 2014 John Darrington ;;; Copyright © 2015 Andy Wingo +;;; Copyright © 2016 Andy Patterson ;;; ;;; This file is part of GNU Guix. ;;; @@ -20,6 +21,7 @@ (define-module (gnu packages scanner) #:use-module (guix packages) #:use-module (guix download) + #:use-module (guix utils) #:use-module (guix build-system gnu) #:use-module (gnu packages pkg-config) #:use-module (gnu packages libusb) @@ -78,3 +80,41 @@ proving access to any raster image scanner hardware (flatbed scanner, hand-held scanner, video- and still-cameras, frame-grabbers, etc.). The package contains the library, but no drivers.") (license licence:gpl2+))) ; plus linking exception + +;; This variant links in the hpaio backend, provided by hplip, which adds +;; support for HP scanners whose backends are not maintained by +;; 'sane-backends'. It also builds all of those backends. +(define-public sane-backends + (package + (inherit sane-backends-minimal) + (name "sane-backends") + (inputs + `(("hplip" ,(@ (gnu packages cups) hplip)) + ,@(package-inputs sane-backends-minimal))) + (arguments + (substitute-keyword-arguments (package-arguments sane-backends-minimal) + ((#:phases phases) + `(modify-phases ,phases + (delete 'disable-backends) + (add-after 'unpack 'add-backends + (lambda _ + (substitute* "backend/dll.conf.in" + (("hp5590" all) (format #f "~a~%~a" all "hpaio"))) + #t)) + (add-after 'install 'install-hpaio + (lambda* (#:key inputs outputs #:allow-other-keys) + (define hplip (string-append (assoc-ref inputs "hplip") + "/lib/sane")) + (define out (string-append (assoc-ref outputs "out") + "/lib/sane")) + (for-each + (lambda (file) + (symlink file (string-append out "/" (basename file)))) + (find-files hplip)) + #t)))))) + (synopsis + "Raster image scanner library and drivers, with scanner support") + (description "SANE stands for \"Scanner Access Now Easy\" and is an API +proving access to any raster image scanner hardware (flatbed scanner, +hand-held scanner, video- and still-cameras, frame-grabbers, etc.). The +package contains the library and drivers."))) diff --git a/gnu/packages/wine.scm b/gnu/packages/wine.scm index 83b6297f0..367f27af5 100644 --- a/gnu/packages/wine.scm +++ b/gnu/packages/wine.scm @@ -83,7 +83,7 @@ ("libmpg123" ,mpg123) ("libldap" ,openldap) ("libnetapi" ,samba) - ("libsane" ,sane-backends-minimal) + ("libsane" ,sane-backends) ("libpng" ,libpng) ("libjpeg" ,libjpeg) ("libtiff" ,libtiff) -- 2.11.0 From debbugs-submit-bounces@debbugs.gnu.org Sat Dec 17 17:12:57 2016 Received: (at 25101-done) by debbugs.gnu.org; 17 Dec 2016 22:12:57 +0000 Received: from localhost ([127.0.0.1]:45227 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cINDt-0000LO-6h for submit@debbugs.gnu.org; Sat, 17 Dec 2016 17:12:57 -0500 Received: from eggs.gnu.org ([208.118.235.92]:57444) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cINDq-0000LA-KH for 25101-done@debbugs.gnu.org; Sat, 17 Dec 2016 17:12:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cINDg-0008H9-Fv for 25101-done@debbugs.gnu.org; Sat, 17 Dec 2016 17:12:49 -0500 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-3.6 required=5.0 tests=BAYES_05,RP_MATCHES_RCVD autolearn=disabled version=3.3.2 Received: from fencepost.gnu.org ([2001:4830:134:3::e]:51787) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cINDg-0008Gx-Cw; Sat, 17 Dec 2016 17:12:44 -0500 Received: from reverse-83.fdn.fr ([80.67.176.83]:50084 helo=pluto) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cINDf-0002ys-Td; Sat, 17 Dec 2016 17:12:44 -0500 From: ludo@gnu.org (Ludovic =?utf-8?Q?Court=C3=A8s?=) To: Andy Patterson Subject: Re: bug#25101: [PATCH 1/2] gnu: Add hpaio-enabled sane-backends variant. References: <87zik0wz24.fsf@gnu.org> <20161214050325.6348-1-ajpatter@uwaterloo.ca> X-URL: http://www.fdn.fr/~lcourtes/ X-Revolutionary-Date: 27 Frimaire an 225 de la =?utf-8?Q?R=C3=A9volution?= X-PGP-Key-ID: 0x090B11993D9AEBB5 X-PGP-Key: http://www.fdn.fr/~lcourtes/ludovic.asc X-PGP-Fingerprint: 3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5 X-OS: x86_64-unknown-linux-gnu Date: Sat, 17 Dec 2016 23:12:41 +0100 In-Reply-To: <20161214050325.6348-1-ajpatter@uwaterloo.ca> (Andy Patterson's message of "Wed, 14 Dec 2016 00:03:22 -0500") Message-ID: <87r356qk6e.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2001:4830:134:3::e X-Spam-Score: -8.1 (--------) X-Debbugs-Envelope-To: 25101-done Cc: 25101-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -8.1 (--------) Hello! Andy Patterson skribis: > Here's some patches implementing what you've suggested. I decided to use = the > full "sane-backends" for the other dependents, since I guessed that they = need > some backend support. If anyone knows that that's not required, it can be > changed. I think that=E2=80=99s fine. Applied all 3 patches. I also fixed a reproducibility issue due to timestamps in a subsequent commit. Thanks! Ludo=E2=80=99. From unknown Fri Jun 20 05:11:40 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 15 Jan 2017 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator