GNU bug report logs - #34644
[PATCH] gnu: Add xsane.

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: guix-patches; Reported by: Tobias Geerinckx-Rice <me@HIDDEN>; Keywords: patch; dated Mon, 25 Feb 2019 01:26:01 UTC; Maintainer for guix-patches is guix-patches@HIDDEN.

Message received at 34644 <at> debbugs.gnu.org:


Received: (at 34644) by debbugs.gnu.org; 26 Feb 2019 14:32:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 26 09:32:16 2019
Received: from localhost ([127.0.0.1]:52379 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gydmK-000354-LM
	for submit <at> 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 <dannym@HIDDEN>) id 1gydmI-00034u-IR
 for 34644 <at> 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 <dannym@HIDDEN>
To: Tobias Geerinckx-Rice <somebody@HIDDEN>
Subject: Re: [bug#34644] [PATCH] gnu: Add xsane.
Message-ID: <20190226153206.738165fa@HIDDEN>
In-Reply-To: <87sgwblbnb.fsf@nckx>
References: <20190225012502.7244-1-me@HIDDEN> <87tvgrefz5.fsf@HIDDEN>
 <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-Debbugs-Envelope-To: 34644
Cc: 34644 <at> debbugs.gnu.org, Diego Nicola Barbato <dnbarbato@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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 <somebody@HIDDEN> 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--




Information forwarded to guix-patches@HIDDEN:
bug#34644; Package guix-patches. Full text available.

Message received at 34644 <at> debbugs.gnu.org:


Received: (at 34644) by debbugs.gnu.org; 26 Feb 2019 14:21:06 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Feb 26 09:21:06 2019
Received: from localhost ([127.0.0.1]:52364 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gydbV-0002nB-Vz
	for submit <at> 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 <dannym@HIDDEN>) id 1gydbR-0002mO-QI
 for 34644 <at> 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 <dannym@HIDDEN>
To: Tobias Geerinckx-Rice <me@HIDDEN>
Subject: Re: [bug#34644] [PATCH] gnu: Add xsane.
Message-ID: <20190226144419.28f836bb@HIDDEN>
In-Reply-To: <20190225012502.7244-1-me@HIDDEN>
References: <20190225012502.7244-1-me@HIDDEN>
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-Debbugs-Envelope-To: 34644
Cc: 34644 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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--




Information forwarded to guix-patches@HIDDEN:
bug#34644; Package guix-patches. Full text available.

Message received at 34644 <at> debbugs.gnu.org:


Received: (at 34644) by debbugs.gnu.org; 25 Feb 2019 22:57:26 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 25 17:57:26 2019
Received: from localhost ([127.0.0.1]:51839 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gyPBe-0007Wr-8z
	for submit <at> 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 <somebody@HIDDEN>)
 id 1gyPBc-0007Wh-2F
 for 34644 <at> 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 <somebody@HIDDEN>
To: Diego Nicola Barbato <dnbarbato@HIDDEN>
Subject: Re: [bug#34644] [PATCH] gnu: Add xsane.
References: <20190225012502.7244-1-me@HIDDEN> <87tvgrefz5.fsf@HIDDEN>
In-reply-to: <87tvgrefz5.fsf@HIDDEN>
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-Debbugs-Envelope-To: 34644
Cc: 34644 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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




Information forwarded to guix-patches@HIDDEN:
bug#34644; Package guix-patches. Full text available.

Message received at 34644 <at> debbugs.gnu.org:


Received: (at 34644) by debbugs.gnu.org; 25 Feb 2019 21:05:46 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Feb 25 16:05:45 2019
Received: from localhost ([127.0.0.1]:51793 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gyNRZ-0004xz-Nf
	for submit <at> 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 <dnbarbato@HIDDEN>) id 1gyNRX-0004xi-9K
 for 34644 <at> 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 <at> 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 <dnbarbato@HIDDEN>
To: Tobias Geerinckx-Rice <me@HIDDEN>
Subject: Re: [bug#34644] [PATCH] gnu: Add xsane.
References: <20190225012502.7244-1-me@HIDDEN>
Date: Mon, 25 Feb 2019 22:05:34 +0100
In-Reply-To: <20190225012502.7244-1-me@HIDDEN> (Tobias Geerinckx-Rice's
 message of "Mon, 25 Feb 2019 02:25:02 +0100")
Message-ID: <87tvgrefz5.fsf@HIDDEN>
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-Debbugs-Envelope-To: 34644
Cc: 34644 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

Hello Tobias,

Tobias Geerinckx-Rice <me@HIDDEN> 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




Information forwarded to guix-patches@HIDDEN:
bug#34644; Package guix-patches. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 25 Feb 2019 01:25:40 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Feb 24 20:25:40 2019
Received: from localhost ([127.0.0.1]:50711 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1gy51U-00084R-8S
	for submit <at> 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 <me@HIDDEN>) id 1gy51R-00084D-OR
 for submit <at> 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 <me@HIDDEN>) id 1gy51M-0005mW-4J
 for submit <at> 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 <me@HIDDEN>) id 1gy51J-00086u-44
 for guix-patches@HIDDEN; 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 <me@HIDDEN>) id 1gy51H-0005ja-VT
 for guix-patches@HIDDEN; 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 <me@HIDDEN>) id 1gy51H-0005gW-C8
 for guix-patches@HIDDEN; Sun, 24 Feb 2019 20:25:23 -0500
Received: by tobias.gr (OpenSMTPD) with ESMTP id 6e54a902
 for <guix-patches@HIDDEN>; 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@HIDDEN; 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 <guix-patches@HIDDEN>; Mon, 25 Feb 2019 01:25:15 +0000 (UTC)
From: Tobias Geerinckx-Rice <me@HIDDEN>
To: guix-patches@HIDDEN
Subject: [PATCH] gnu: Add xsane.
Date: Mon, 25 Feb 2019 02:25:02 +0100
Message-Id: <20190225012502.7244-1-me@HIDDEN>
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 <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
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 <jmd@HIDDEN>
 ;;; Copyright © 2015 Andy Wingo <wingo@HIDDEN>
 ;;; Copyright © 2016 Andy Patterson <ajpatter@HIDDEN>
-;;; Copyright © 2017 Tobias Geerinckx-Rice <me@HIDDEN>
+;;; Copyright © 2017, 2019 Tobias Geerinckx-Rice <me@HIDDEN>
 ;;; Copyright © 2018 Efraim Flashner <efraim@HIDDEN>
 ;;;
 ;;; This file is part of GNU Guix.
@@ -21,10 +21,14 @@
 ;;; along with GNU Guix.  If not, see <http://www.gnu.org/licenses/>.
 
 (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





Acknowledgement sent to Tobias Geerinckx-Rice <me@HIDDEN>:
New bug report received and forwarded. Copy sent to guix-patches@HIDDEN. Full text available.
Report forwarded to guix-patches@HIDDEN:
bug#34644; Package guix-patches. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Tue, 26 Feb 2019 14:45:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.