From unknown Mon Aug 18 04:43:38 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#34644] [PATCH] gnu: Add xsane. Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 25 Feb 2019 01:26:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 34644 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 34644@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.155105794031035 (code B ref -1); Mon, 25 Feb 2019 01:26:01 +0000 Received: (at submit) by debbugs.gnu.org; 25 Feb 2019 01:25:40 +0000 Received: from localhost ([127.0.0.1]:50711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gy51U-00084R-8S for submit@debbugs.gnu.org; Sun, 24 Feb 2019 20:25:40 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38700) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gy51R-00084D-OR for submit@debbugs.gnu.org; Sun, 24 Feb 2019 20:25:35 -0500 Received: from lists.gnu.org ([209.51.188.17]:38006) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gy51M-0005mW-4J for submit@debbugs.gnu.org; Sun, 24 Feb 2019 20:25:28 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gy51J-00086u-44 for guix-patches@gnu.org; Sun, 24 Feb 2019 20:25:28 -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.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gy51H-0005ja-VT for guix-patches@gnu.org; Sun, 24 Feb 2019 20:25:25 -0500 Received: from tobias.gr ([2001:470:7405::1]:52620) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gy51H-0005gW-C8 for guix-patches@gnu.org; Sun, 24 Feb 2019 20:25:23 -0500 Received: by tobias.gr (OpenSMTPD) with ESMTP id 6e54a902 for ; Mon, 25 Feb 2019 01:25:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=2018; i=me@tobias.gr; bh=rXyAd2x2j Jh31hSCVv6W+Vp/+y+8D3RGkkpHavpfIYA=; b=c5GRKx882SpOJqdlvd2DLwTy/ SZTaGUpjKD3AwscASnh/a5mF0DUFEc/Ym8Az8Ch6PoyCF3jMccOxjUJDCO+nh1pf GyMmUSlHYVDGVO2VuX5hmJCm6sLTmY0hgXh/I6bj5dMp3a/f8tprCAYlzsD12RN+ qcGKcAwDPdCG7A+LqJK1ufmAuPlj+p30EKwhHMA1XYdRGfm7g1+rYmNRsvwqriw9 HcdRu+q7s7m8e+aL9faSIeClgO6qlbLskGxP4q5PVhQdoMvjMTsilR2s82yyVhBS S1ApnsJvLHdfsSOx+fCvFKmGmyyu47gEH3pZGfN6XeXKwCZ7wZMPi1CRNmsLA== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id fb82a0fb (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Mon, 25 Feb 2019 01:25:15 +0000 (UTC) From: Tobias Geerinckx-Rice Date: Mon, 25 Feb 2019 02:25:02 +0100 Message-Id: <20190225012502.7244-1-me@tobias.gr> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:470:7405::1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 0.9 (/) 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: -0.1 (/) * gnu/packages/scanner.scm (xsane): New public variable. --- gnu/packages/scanner.scm | 70 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 69 insertions(+), 1 deletion(-) diff --git a/gnu/packages/scanner.scm b/gnu/packages/scanner.scm index 920f2ede80..70106a7796 100644 --- a/gnu/packages/scanner.scm +++ b/gnu/packages/scanner.scm @@ -2,7 +2,7 @@ ;;; Copyright © 2014 John Darrington ;;; Copyright © 2015 Andy Wingo ;;; Copyright © 2016 Andy Patterson -;;; Copyright © 2017 Tobias Geerinckx-Rice +;;; Copyright © 2017, 2019 Tobias Geerinckx-Rice ;;; Copyright © 2018 Efraim Flashner ;;; ;;; This file is part of GNU Guix. @@ -21,10 +21,14 @@ ;;; along with GNU Guix. If not, see . (define-module (gnu packages scanner) + #:use-module (gnu packages ghostscript) + #:use-module (gnu packages gtk) + #:use-module (gnu packages image) #:use-module (gnu packages libusb) #:use-module (gnu packages pkg-config) #:use-module (guix build-system gnu) #:use-module (guix download) + #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix licence:) #:use-module (guix packages) @@ -132,3 +136,67 @@ package contains the library, but no drivers.") 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."))) + +(define-public xsane + (package + (name "xsane") + (version "0.999") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/sane-project/frontend/xsane.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "08zvxj7i1s88ckrsqldmsrikc3g62a6p3s3i5b5x4krcfpi3vs50")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags + (list (string-append "xsanedocdir=" (assoc-ref %outputs "out") + "/share/doc/" ,name "-" ,version)) + #:tests? #f ; no test suite + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-invalid-dereference + ;; Fix the following compilation error with libpng: + ;; xsane-save.c: In function ‘xsane_save_png’: + ;; xsane-save.c:4913:21: error: dereferencing pointer to + ;; incomplete type ‘png_struct {aka struct png_struct_def}’ + ;; if (setjmp(png_ptr->jmpbuf)) + ;; ^ + (lambda _ + (substitute* "src/xsane-save.c" + (("png_ptr->jmpbuf") "png_jmpbuf(png_ptr)")) + #t)) + (add-after 'unpack 'use-sane-help-browser + (lambda _ + (substitute* "src/xsane.h" + (("netscape") "xdg-open")) + #t)) + (add-after 'install 'delete-empty-/sbin + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (rmdir (string-append out "/sbin")) + #t)))))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("gtk+" ,gtk+-2) + ("lcms" ,lcms) + ("libjpeg" ,libjpeg) + ("libtiff" ,libtiff) + ("sane-backends" ,sane-backends))) + (home-page "https://gitlab.com/sane-project/frontend/xsane") + (synopsis "Featureful graphical interface for document and image scanners") + (description + "XSane is a graphical interface for controlling a scanner and acquiring +images from it. You can photocopy multi-page documents and save, fax, print, +or e-mail your scanned images. It is highly configurable and exposes all +device settings, letting you fine-tune the final result. It can also be used +as a GIMP plugin to aquire images directly from a scanner. + +XSane is a front-end for SANE, which means that almost any existing scanner is +supported: flatbed and hand-held scanners, video and still cameras, and frame +grabbers.") + (license licence:gpl2+))) ; lib/snprintf.c is under the ‘Artistic’ licence -- 2.20.1 From unknown Mon Aug 18 04:43:38 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#34644] [PATCH] gnu: Add xsane. Resent-From: Diego Nicola Barbato Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 25 Feb 2019 21:06:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34644 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Tobias Geerinckx-Rice Cc: 34644@debbugs.gnu.org Received: via spool by 34644-submit@debbugs.gnu.org id=B34644.155112874619099 (code B ref 34644); Mon, 25 Feb 2019 21:06:02 +0000 Received: (at 34644) by debbugs.gnu.org; 25 Feb 2019 21:05:46 +0000 Received: from localhost ([127.0.0.1]:51793 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gyNRZ-0004xz-Nf for submit@debbugs.gnu.org; Mon, 25 Feb 2019 16:05:45 -0500 Received: from mout02.posteo.de ([185.67.36.66]:53547) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gyNRX-0004xi-9K for 34644@debbugs.gnu.org; Mon, 25 Feb 2019 16:05:44 -0500 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id 484792400E6 for <34644@debbugs.gnu.org>; Mon, 25 Feb 2019 22:05:36 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.de; s=2017; t=1551128736; bh=Grra9jlFkCC39p7qpnxxytkoqOH79h/PTSFYivVopd8=; h=From:To:Cc:Subject:Date:From; b=QdNCm/YtTAZZNkikw+wUCHTTI602FYGr8PJyNk4DVao++Wnq3LktVjlqIzFhF+dHU DKUppJ95cg97avVSOBljIBqXZY90grgUprqXt/gAMcRjhDT9swA810qYYz7nH0Yjby gmE5MNAb2A8h5DWUskgw2Y8bTCB2lTddlq4fntY80vkfwMZvAlvtPiqq+CiTgw1lhz +4Cxd+7PZPtDYTyA8QWxs4rjMH2iYG6/TQZiV8ZRgXFoThuRKfqUBNJz2xqENNJtMc ex3T8Tarmhl1zYKup5bLc3MHMu9PzrosYLq03njqGkkIKS+oldWPX2bjHKmeHBU1oy xdL+tkuAU1Elg== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 447ZGl0tNDz9rxP; Mon, 25 Feb 2019 22:05:34 +0100 (CET) From: Diego Nicola Barbato References: <20190225012502.7244-1-me@tobias.gr> Date: Mon, 25 Feb 2019 22:05:34 +0100 In-Reply-To: <20190225012502.7244-1-me@tobias.gr> (Tobias Geerinckx-Rice's message of "Mon, 25 Feb 2019 02:25:02 +0100") Message-ID: <87tvgrefz5.fsf@GlaDOS.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) 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.3 (---) Hello Tobias, Tobias Geerinckx-Rice writes: [...] > + (license licence:gpl2+))) ; lib/snprintf.c is under the =E2=80=98Art= istic=E2=80=99 licence The FSF lists the =E2=80=98Artistic=E2=80=99 license as a nonfree software = license [0]. I am no expert, but this might be a problem. Sorry for the noise, Diego [0]: https://www.gnu.org/licenses/license-list.html#ArtisticLicense From unknown Mon Aug 18 04:43:38 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#34644] [PATCH] gnu: Add xsane. Resent-From: Tobias Geerinckx-Rice Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 25 Feb 2019 22:58:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34644 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Diego Nicola Barbato Cc: 34644@debbugs.gnu.org Received: via spool by 34644-submit@debbugs.gnu.org id=B34644.155113544628949 (code B ref 34644); Mon, 25 Feb 2019 22:58:01 +0000 Received: (at 34644) by debbugs.gnu.org; 25 Feb 2019 22:57:26 +0000 Received: from localhost ([127.0.0.1]:51839 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gyPBe-0007Wr-8z for submit@debbugs.gnu.org; Mon, 25 Feb 2019 17:57:26 -0500 Received: from tobias.gr ([80.241.217.52]:52082) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gyPBc-0007Wh-2F for 34644@debbugs.gnu.org; Mon, 25 Feb 2019 17:57:25 -0500 Received: by tobias.gr (OpenSMTPD) with ESMTP id 80b7b247; Mon, 25 Feb 2019 22:57:20 +0000 (UTC) Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id 497d5e18 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Mon, 25 Feb 2019 22:57:17 +0000 (UTC) From: Tobias Geerinckx-Rice References: <20190225012502.7244-1-me@tobias.gr> <87tvgrefz5.fsf@GlaDOS.home> In-reply-to: <87tvgrefz5.fsf@GlaDOS.home> Date: Mon, 25 Feb 2019 23:57:12 +0100 Message-ID: <87sgwblbnb.fsf@nckx> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) 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.3 (---) Diego (Nicola?), Diego Nicola Barbato wrote: >> + (license licence:gpl2+))) ; lib/snprintf.c is under the=20 >> =E2=80=98Artistic=E2=80=99 licence > The FSF lists the =E2=80=98Artistic=E2=80=99 license as a nonfree softwar= e=20 > license [0]. > I am no expert, but this might be a problem. Nor I. It's an interesting situation: snprintf.c seems to have=20 been re-(dual-)licenced under both Artistic and GPL2+OpenSSL=20 exception. However, the version shipped with xsane is older (perhaps xsane=20 itself is, even). I guess we can just do what Trisquel does and replace it with a=20 newer version. There's also some talk of a =E2=80=99system snprintf=E2=80= =99 that=20 may or may not do the job without having to provide our own=20 replacement. Something to investigate. > [0]:=20 > https://www.gnu.org/licenses/license-list.html#ArtisticLicense Thanks, T G-R [1]:=20 https://devel.trisquel.info/trisquel/package-helpers/merge_requests/12 From unknown Mon Aug 18 04:43:38 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#34644] [PATCH] gnu: Add xsane. Resent-From: Danny Milosavljevic Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 26 Feb 2019 14:22:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34644 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Tobias Geerinckx-Rice Cc: 34644@debbugs.gnu.org Received: via spool by 34644-submit@debbugs.gnu.org id=B34644.155119086610742 (code B ref 34644); Tue, 26 Feb 2019 14:22:02 +0000 Received: (at 34644) by debbugs.gnu.org; 26 Feb 2019 14:21:06 +0000 Received: from localhost ([127.0.0.1]:52364 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gydbV-0002nB-Vz for submit@debbugs.gnu.org; Tue, 26 Feb 2019 09:21:06 -0500 Received: from dd26836.kasserver.com ([85.13.145.193]:56012) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gydbR-0002mO-QI for 34644@debbugs.gnu.org; Tue, 26 Feb 2019 09:21:02 -0500 Received: from localhost (77.117.193.67.wireless.dyn.drei.com [77.117.193.67]) by dd26836.kasserver.com (Postfix) with ESMTPSA id C3C963360862; Tue, 26 Feb 2019 15:20:59 +0100 (CET) Date: Tue, 26 Feb 2019 15:20:55 +0100 From: Danny Milosavljevic Message-ID: <20190226144419.28f836bb@scratchpost.org> In-Reply-To: <20190225012502.7244-1-me@tobias.gr> References: <20190225012502.7244-1-me@tobias.gr> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/iW2AowT4.bR2tsYtQ9=5D6F"; protocol="application/pgp-signature" X-Spam-Score: 1.8 (+) X-Spam-Report: Spam detection software, running on the system "debbugs.gnu.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: LGTM! Content analysis details: (1.8 points, 10.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [85.13.145.193 listed in list.dnswl.org] 2.5 BODY_SINGLE_WORD Message body is only one word (no spaces) 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: 0.8 (/) --Sig_/iW2AowT4.bR2tsYtQ9=5D6F Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable LGTM! --Sig_/iW2AowT4.bR2tsYtQ9=5D6F Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlx1S0cACgkQ5xo1VCww uqVA1Af+KzxUZ4vqixMV8w8dSHU5SSGFWLHjAdrB1fu9n1hwjbBmGQwg3kCZejp0 IthDMyiEK2Nb08OgJNkrIjJaMSiHLHtXiBtqCoFDy1YMGWCoRPNPdkrnh2BTmD98 5/lc1x2ehyxKa0gJxUWqvGClzUy4n3EBldjrz5B3ICQsc2yn0F/qA0PpthKSdHG2 /UfaqCrceuLA3s9zttYaKSOUwNnLK6VAfgfClGsOZpZ5EoDxtpwf2CCnhyG9FylS 7xjBLaixUKJbhzJfJ1Bo370Hc2I68oAKVkvtE8eaLMDaGLxi80aBfRISb0rG2Ua0 UwUaeqb+HW8jD4F7xPd8FOrp+61x3A== =/xng -----END PGP SIGNATURE----- --Sig_/iW2AowT4.bR2tsYtQ9=5D6F-- From unknown Mon Aug 18 04:43:38 2025 X-Loop: help-debbugs@gnu.org Subject: [bug#34644] [PATCH] gnu: Add xsane. Resent-From: Danny Milosavljevic Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Tue, 26 Feb 2019 14:33:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34644 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Tobias Geerinckx-Rice Cc: 34644@debbugs.gnu.org, Diego Nicola Barbato Received: via spool by 34644-submit@debbugs.gnu.org id=B34644.155119153611850 (code B ref 34644); Tue, 26 Feb 2019 14:33:02 +0000 Received: (at 34644) by debbugs.gnu.org; 26 Feb 2019 14:32:16 +0000 Received: from localhost ([127.0.0.1]:52379 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gydmK-000354-LM for submit@debbugs.gnu.org; Tue, 26 Feb 2019 09:32:16 -0500 Received: from dd26836.kasserver.com ([85.13.145.193]:56964) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gydmI-00034u-IR for 34644@debbugs.gnu.org; Tue, 26 Feb 2019 09:32:14 -0500 Received: from localhost (77.117.193.67.wireless.dyn.drei.com [77.117.193.67]) by dd26836.kasserver.com (Postfix) with ESMTPSA id D80073360AAE; Tue, 26 Feb 2019 15:32:12 +0100 (CET) Date: Tue, 26 Feb 2019 15:32:06 +0100 From: Danny Milosavljevic Message-ID: <20190226153206.738165fa@scratchpost.org> In-Reply-To: <87sgwblbnb.fsf@nckx> References: <20190225012502.7244-1-me@tobias.gr> <87tvgrefz5.fsf@GlaDOS.home> <87sgwblbnb.fsf@nckx> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-unknown-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/0JQQP5XJSNYPAN6vY7=7Bwo"; protocol="application/pgp-signature" X-Spam-Score: -0.7 (/) 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: -1.7 (-) --Sig_/0JQQP5XJSNYPAN6vY7=7Bwo Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hi, On Mon, 25 Feb 2019 23:57:12 +0100 Tobias Geerinckx-Rice wrote: > Nor I. It's an interesting situation: snprintf.c seems to have=20 > been re-(dual-)licenced under both Artistic and GPL2+OpenSSL=20 > exception. >=20 > However, the version shipped with xsane is older (perhaps xsane=20 > itself is, even). >=20 > I guess we can just do what Trisquel does and replace it with a=20 > newer version. Sure. > There's also some talk of a =E2=80=99system snprintf=E2=80=99 that=20 > may or may not do the job without having to provide our own=20 > replacement. If we did that we should mention it upstream--maybe their implementation has special features that they require that a system implementation would not have. --Sig_/0JQQP5XJSNYPAN6vY7=7Bwo Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEEds7GsXJ0tGXALbPZ5xo1VCwwuqUFAlx1TeYACgkQ5xo1VCww uqVh3Af/fAHuEIGenVmaCGsWGSuIL7b8pvXM1oZT79vVGPabVlPL5JPemhMZD1ry MIO6ydkCqq3XHsz10S7TSz1aeOluDAC4HhxYnSg5rGiXTk1RMXTB0Vmw8O5yqDb0 IBQvR+qmIp0gZrqnctDNQVFR76h9GDsN6Gmj1QiPenjCpUnA/2Lomvt+8ox1F0EJ hnu8nWja25E0YB/0kqueBc0SRz512GADVhkqgls1Kkn3T/xzEZkY4PgAnfRAATcp uyZuhprfm56t4OTcn0+SM3wIEhLUUAh4jgr8Pqgd0oZn/V4Ruc7sDwfiBik5/KgP inqj8zIBx5UMNzN6EGnAXydg8HkFvg== =43dE -----END PGP SIGNATURE----- --Sig_/0JQQP5XJSNYPAN6vY7=7Bwo-- From unknown Mon Aug 18 04:43:38 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Tobias Geerinckx-Rice Subject: bug#34644: closed (Re: [bug#34644] [PATCH] gnu: Add xsane.) Message-ID: References: <87y2w77glq.fsf@nckx> <20190225012502.7244-1-me@tobias.gr> X-Gnu-PR-Message: they-closed 34644 X-Gnu-PR-Package: guix-patches X-Gnu-PR-Keywords: patch Reply-To: 34644@debbugs.gnu.org Date: Fri, 22 Nov 2019 21:22:04 +0000 Content-Type: multipart/mixed; boundary="----------=_1574457724-16655-1" This is a multi-part message in MIME format... ------------=_1574457724-16655-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #34644: [PATCH] gnu: Add xsane. which was filed against the guix-patches package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 34644@debbugs.gnu.org. --=20 34644: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D34644 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1574457724-16655-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 34644-close) by debbugs.gnu.org; 22 Nov 2019 21:21:03 +0000 Received: from localhost ([127.0.0.1]:55595 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iYGMO-0004Ia-A0 for submit@debbugs.gnu.org; Fri, 22 Nov 2019 16:21:02 -0500 Received: from tobias.gr ([80.241.217.52]:50432) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1iYGMJ-0004IM-9X for 34644-close@debbugs.gnu.org; Fri, 22 Nov 2019 16:20:58 -0500 Received: by tobias.gr (OpenSMTPD) with ESMTP id f59699ab for <34644-close@debbugs.gnu.org>; Fri, 22 Nov 2019 21:20:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to :subject:references:in-reply-to:date:message-id:mime-version :content-type; s=2018; i=me@tobias.gr; bh=1sxe+fCj8TE5z/uYgTSK5M 92wWs+LjySOvLDQTOJjpU=; b=g7V0XT0QuEBUAXTxpRNkQND6w7UFlGWAHijWBQ JzyZamYvzyljJx8hEQUSttR7EOfe9QBQdlGmx8Qlgc+yyBkAMcfGGdDqaeTR2SYT ZQv5CTDuw9uu3dL4Y6IKl7gfZdlgY0SuVBagEl2TBxmRBBv9CcsvJQSy69G/+dXT GFcaAz+EJQZRKJoVkDgxCz8VnZ5rl22+yEmdb52bJwJsVIihjbFQBaDMnpEisRfB CS/wMbIMEI/n7yXG33m/Pr7Pp3eon+RG3NAVkVcb9DlY5Oe5AB2R9V3h+vv8Hgy+ Mh9SFs9S44EiL9PtAIRz/7FLY3nVc5E2elD5BSmDW+MBUo1w== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id ce99e5a2 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <34644-close@debbugs.gnu.org>; Fri, 22 Nov 2019 21:20:50 +0000 (UTC) From: Tobias Geerinckx-Rice To: 34644-close@debbugs.gnu.org Subject: Re: [bug#34644] [PATCH] gnu: Add xsane. References: <20190225012502.7244-1-me@tobias.gr> <20190226144419.28f836bb@scratchpost.org> In-reply-to: <20190226144419.28f836bb@scratchpost.org> Date: Fri, 22 Nov 2019 22:20:49 +0100 Message-ID: <87y2w77glq.fsf@nckx> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 34644-close 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.3 (---) --=-=-= Content-Type: text/plain; format=flowed Finally pushed as a608666d74f156819cecfabaf72290726d7964e6. Kind regards, T G-R --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCgAdFiEEfo+u0AlEeO9y5k0W2Imw8BjFSTwFAl3YUTEACgkQ2Imw8BjF STyzCg/6A7/tno2oumqG+QXiXQjZt7xK6ZAjqZHlYSUKSVFLO9QT4vMw9cZclnlG R+JRBGCsU80PNkam4m3cf1HM7hH7XQQl/uNfW7/Q0zU1dTbieayF2Ayf3fmr1t13 Y6HpLt2zke7pInDVIy949tn89go4rmncTs509fgszr7fxJIWRNHllAMmL+22MQi6 rzMWwvMY3UPTfUPx4L0rFUdeCYYudtZGRgDEv0QmoP7BiDu3iryXXmi3HQ3WgoAS fPswm65DPoPsxMl2aTfvSt5nAqaDqMCbZtd2EwMSKxC9VCXzbOj4E0Ntr3gUAfSN Kv5ukiWVb9lVU2EQMgrrbn7EzRfgTwAHhXzAqln0wwJR9nHdrQYzyAkZT1WRpDyv 86z3dxm9hFf22FyGMJ0Y3Y1dnpG4KO173+7P6jx8/ar29jjCRqtS5uwgQ/dOeUem +e2wQCohLlJ3whci4u+QQvV6vkaDgJiJTBbEnxPnmy6fbDkuWK0KOdII8e4k8ED8 uNP6If0NfaSUk0WXMkC+gat7Q4GqDVjlDqknGB99O6UkWOgTEP9DVy3mrQX908n1 7QSONyAHHUoCoaOOWkLoh9aCyw26uNCcUQ91Z5Tnm8S1RYxxYaiARsuPdZS3JbgN zHdyp9pYK0ZgDztIDZKnppUjXkOUGSmTEDXDY/+Y/C3TGFXMzPY= =EIlG -----END PGP SIGNATURE----- --=-=-=-- ------------=_1574457724-16655-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 25 Feb 2019 01:25:40 +0000 Received: from localhost ([127.0.0.1]:50711 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gy51U-00084R-8S for submit@debbugs.gnu.org; Sun, 24 Feb 2019 20:25:40 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38700) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gy51R-00084D-OR for submit@debbugs.gnu.org; Sun, 24 Feb 2019 20:25:35 -0500 Received: from lists.gnu.org ([209.51.188.17]:38006) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gy51M-0005mW-4J for submit@debbugs.gnu.org; Sun, 24 Feb 2019 20:25:28 -0500 Received: from eggs.gnu.org ([209.51.188.92]:53082) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gy51J-00086u-44 for guix-patches@gnu.org; Sun, 24 Feb 2019 20:25:28 -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.8 required=5.0 tests=BAYES_50,URIBL_BLOCKED autolearn=disabled version=3.3.2 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gy51H-0005ja-VT for guix-patches@gnu.org; Sun, 24 Feb 2019 20:25:25 -0500 Received: from tobias.gr ([2001:470:7405::1]:52620) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gy51H-0005gW-C8 for guix-patches@gnu.org; Sun, 24 Feb 2019 20:25:23 -0500 Received: by tobias.gr (OpenSMTPD) with ESMTP id 6e54a902 for ; Mon, 25 Feb 2019 01:25:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=tobias.gr; h=from:to :subject:date:message-id:mime-version:content-type :content-transfer-encoding; s=2018; i=me@tobias.gr; bh=rXyAd2x2j Jh31hSCVv6W+Vp/+y+8D3RGkkpHavpfIYA=; b=c5GRKx882SpOJqdlvd2DLwTy/ SZTaGUpjKD3AwscASnh/a5mF0DUFEc/Ym8Az8Ch6PoyCF3jMccOxjUJDCO+nh1pf GyMmUSlHYVDGVO2VuX5hmJCm6sLTmY0hgXh/I6bj5dMp3a/f8tprCAYlzsD12RN+ qcGKcAwDPdCG7A+LqJK1ufmAuPlj+p30EKwhHMA1XYdRGfm7g1+rYmNRsvwqriw9 HcdRu+q7s7m8e+aL9faSIeClgO6qlbLskGxP4q5PVhQdoMvjMTsilR2s82yyVhBS S1ApnsJvLHdfsSOx+fCvFKmGmyyu47gEH3pZGfN6XeXKwCZ7wZMPi1CRNmsLA== Received: by submission.tobias.gr (OpenSMTPD) with ESMTPSA id fb82a0fb (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO) for ; Mon, 25 Feb 2019 01:25:15 +0000 (UTC) From: Tobias Geerinckx-Rice To: guix-patches@gnu.org Subject: [PATCH] gnu: Add xsane. Date: Mon, 25 Feb 2019 02:25:02 +0100 Message-Id: <20190225012502.7244-1-me@tobias.gr> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2001:470:7405::1 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Spam-Score: 0.9 (/) 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: -0.1 (/) * gnu/packages/scanner.scm (xsane): New public variable. --- gnu/packages/scanner.scm | 70 +++++++++++++++++++++++++++++++++++++++- 1 file changed, 69 insertions(+), 1 deletion(-) diff --git a/gnu/packages/scanner.scm b/gnu/packages/scanner.scm index 920f2ede80..70106a7796 100644 --- a/gnu/packages/scanner.scm +++ b/gnu/packages/scanner.scm @@ -2,7 +2,7 @@ ;;; Copyright © 2014 John Darrington ;;; Copyright © 2015 Andy Wingo ;;; Copyright © 2016 Andy Patterson -;;; Copyright © 2017 Tobias Geerinckx-Rice +;;; Copyright © 2017, 2019 Tobias Geerinckx-Rice ;;; Copyright © 2018 Efraim Flashner ;;; ;;; This file is part of GNU Guix. @@ -21,10 +21,14 @@ ;;; along with GNU Guix. If not, see . (define-module (gnu packages scanner) + #:use-module (gnu packages ghostscript) + #:use-module (gnu packages gtk) + #:use-module (gnu packages image) #:use-module (gnu packages libusb) #:use-module (gnu packages pkg-config) #:use-module (guix build-system gnu) #:use-module (guix download) + #:use-module (guix git-download) #:use-module ((guix licenses) #:prefix licence:) #:use-module (guix packages) @@ -132,3 +136,67 @@ package contains the library, but no drivers.") 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."))) + +(define-public xsane + (package + (name "xsane") + (version "0.999") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://gitlab.com/sane-project/frontend/xsane.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "08zvxj7i1s88ckrsqldmsrikc3g62a6p3s3i5b5x4krcfpi3vs50")))) + (build-system gnu-build-system) + (arguments + `(#:make-flags + (list (string-append "xsanedocdir=" (assoc-ref %outputs "out") + "/share/doc/" ,name "-" ,version)) + #:tests? #f ; no test suite + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'patch-invalid-dereference + ;; Fix the following compilation error with libpng: + ;; xsane-save.c: In function ‘xsane_save_png’: + ;; xsane-save.c:4913:21: error: dereferencing pointer to + ;; incomplete type ‘png_struct {aka struct png_struct_def}’ + ;; if (setjmp(png_ptr->jmpbuf)) + ;; ^ + (lambda _ + (substitute* "src/xsane-save.c" + (("png_ptr->jmpbuf") "png_jmpbuf(png_ptr)")) + #t)) + (add-after 'unpack 'use-sane-help-browser + (lambda _ + (substitute* "src/xsane.h" + (("netscape") "xdg-open")) + #t)) + (add-after 'install 'delete-empty-/sbin + (lambda* (#:key outputs #:allow-other-keys) + (let ((out (assoc-ref outputs "out"))) + (rmdir (string-append out "/sbin")) + #t)))))) + (native-inputs + `(("pkg-config" ,pkg-config))) + (inputs + `(("gtk+" ,gtk+-2) + ("lcms" ,lcms) + ("libjpeg" ,libjpeg) + ("libtiff" ,libtiff) + ("sane-backends" ,sane-backends))) + (home-page "https://gitlab.com/sane-project/frontend/xsane") + (synopsis "Featureful graphical interface for document and image scanners") + (description + "XSane is a graphical interface for controlling a scanner and acquiring +images from it. You can photocopy multi-page documents and save, fax, print, +or e-mail your scanned images. It is highly configurable and exposes all +device settings, letting you fine-tune the final result. It can also be used +as a GIMP plugin to aquire images directly from a scanner. + +XSane is a front-end for SANE, which means that almost any existing scanner is +supported: flatbed and hand-held scanners, video and still cameras, and frame +grabbers.") + (license licence:gpl2+))) ; lib/snprintf.c is under the ‘Artistic’ licence -- 2.20.1 ------------=_1574457724-16655-1--