From patchwork Wed Feb 13 21:43:13 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vagrant Cascadian X-Patchwork-Id: 1086 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id C2A4716C1F; Wed, 13 Feb 2019 21:49:25 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTP id 5867016C1D for ; Wed, 13 Feb 2019 21:49:25 +0000 (GMT) Received: from localhost ([127.0.0.1]:35488 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gu2PE-00037s-R0 for patchwork@mira.cbaines.net; Wed, 13 Feb 2019 16:49:24 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54071) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gu2Op-0002ed-S1 for guix-patches@gnu.org; Wed, 13 Feb 2019 16:49:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gu2K4-0005ui-B0 for guix-patches@gnu.org; Wed, 13 Feb 2019 16:44:06 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:48143) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gu2K2-0005ql-7u for guix-patches@gnu.org; Wed, 13 Feb 2019 16:44:02 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1gu2K1-0005FT-Vp for guix-patches@gnu.org; Wed, 13 Feb 2019 16:44:02 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#34449] [PATCH] gnu: Add trydiffoscope. Resent-From: Vagrant Cascadian Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 13 Feb 2019 21:44:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 34449 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: Leo Famulari Received: via spool by 34449-submit@debbugs.gnu.org id=B34449.155009421220133 (code B ref 34449); Wed, 13 Feb 2019 21:44:01 +0000 Received: (at 34449) by debbugs.gnu.org; 13 Feb 2019 21:43:32 +0000 Received: from localhost ([127.0.0.1]:47424 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gu2JY-0005Ee-FL for submit@debbugs.gnu.org; Wed, 13 Feb 2019 16:43:32 -0500 Received: from cascadia.aikidev.net ([173.255.214.101]:40440) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gu2JW-0005ER-I6 for 34449@debbugs.gnu.org; Wed, 13 Feb 2019 16:43:31 -0500 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100e]) (Authenticated sender: vagrant@aikidev.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id E771E1AA27; Wed, 13 Feb 2019 13:43:20 -0800 (PST) From: Vagrant Cascadian In-Reply-To: <20190212203742.GA31872@jasmine.lan> References: <87wom53gij.fsf@ponder> <70476863-38DA-4DA0-BBA9-82B20B2AB197@lepiller.eu> <87r2cda0b9.fsf@ponder> <20190212203742.GA31872@jasmine.lan> Date: Wed, 13 Feb 2019 13:43:13 -0800 Message-ID: <87lg2j5pqm.fsf@ponder> MIME-Version: 1.0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: 34449@debbugs.gnu.org Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches On 2019-02-12, Leo Famulari wrote: > On Tue, Feb 12, 2019 at 12:16:42AM -0800, Vagrant Cascadian wrote: >> On 2019-02-12, Julien Lepiller wrote: >> >>+ (synopsis "Compare files and archives in depth") > > This synopsis doesn't make clear that this is a client for a remote > service. Can you rewrite it? > >> >>+ (description >> >>+ "This is a minimal diffoscope client that connects to the >> >>service: > > Also, I think it's better to replace "diffoscope client" with something > like "client for the remote diffoscope service located at [...]" since > diffoscope is not inherently a client-service tool. Also it would be > great to mention the full diffoscope package :) > > Can you send an updated patch? >> > Iiuc, this is a client to connect to a service that runs diffoscope >> > for you. But we already have diffoscope, so what's the point? >> >> Yes, that's the jist of it. The main advantage is that it has a much >> smaller dependency chain locally. >> >> I find it useful on some of the not-particularly-fast ARM systems I've >> been running GNU Guix, where storage may be limited or slow, and >> substitutes may not be available as often, and build times >> are... remarkable. > > Yes, and diffoscope runs can also be really expensive. It's nice to > offload them. > > Also, if the service makes statements about whether submissions are > logged or made public, can you put that in the package description? I couldn't really think of a straightforward way to mention the diffoscope package, but the attached patch updates the synopsis and description to address the other mentioned issues. >> > What do you think? > > We can have SaaSS in Guix. There are already some packages that are > SaaSS. So I think this package is okay. > > It's "extra okay" in my opinion since the service is AGPL, part of > Debian, and we have a package for the tool in question. > > Guix is developed under the Free System Distribution Guidelines, which > don't mention remote services or SaaSS at all: > > https://www.gnu.org/distros/free-system-distribution-guidelines.en.html > > And some discussion on the subject of services in the context of free > software that largely reflect how we handle SaaSS in Guix: > > https://www.gnu.org/philosophy/network-services-arent-free-or-nonfree.en.html Thanks for sharing your perspective and links to further reading on these issues! It really helps to get a feel for the norms of the project. live well, vagrant From 54b99d80b90a9f56fa95654a4b1bf254acb27f9c Mon Sep 17 00:00:00 2001 From: Vagrant Cascadian Date: Mon, 11 Feb 2019 20:21:39 +0000 Subject: [PATCH] gnu: Add trydiffoscope. * gnu/packages/package-management (trydiffoscope): New variable. --- gnu/packages/package-management.scm | 48 +++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/gnu/packages/package-management.scm b/gnu/packages/package-management.scm index af9667cd91..51d6698ee0 100644 --- a/gnu/packages/package-management.scm +++ b/gnu/packages/package-management.scm @@ -606,6 +606,54 @@ various binary formats into more human readable forms to compare them. It can compare two tarballs, ISO images, or PDFs just as easily.") (license license:gpl3+))) +(define-public trydiffoscope + (package + (name "trydiffoscope") + (version "67.0.1") + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://salsa.debian.org/reproducible-builds/trydiffoscope.git") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "03b66cjii7l2yiwffj6ym6mycd5drx7prfp4j2550281pias6mjh")))) + (arguments + `(#:phases + (modify-phases %standard-phases + (add-after 'install 'install-doc + (lambda* (#:key outputs #:allow-other-keys) + (let* ((share (string-append (assoc-ref outputs "out") "/usr/share/"))) + (mkdir-p (string-append share "/man/man1/" )) + (invoke "rst2man.py" + "trydiffoscope.1.rst" + (string-append share "/man/man1/trydiffoscope.1")) + (mkdir-p (string-append share "/doc/" ,name "-" ,version)) + (install-file "./README.rst" + (string-append share "/doc/" ,name "-" ,version)))))))) + (native-inputs + `(("gzip" ,gzip) + ("python-docutils" ,python-docutils))) + (build-system python-build-system) + (home-page "https://try.diffoscope.org") + (synopsis "Client for remote service to compare files and archives in depth") + (description + "This is a client for the remote diffoscope service located at: + +https://try.diffoscope.org + +Diffoscope tries to get to the bottom of what makes files or directories +different. It recursively unpacks archives of many kinds and transforms +various binary formats into more human readable forms to compare them. It can +compare two tarballs, ISO images, or PDFs just as easily. + +Results are displayed by default, stored as local text or html files, or made +available via a URL on https://try.diffoscope.org. Results stored on the +server are purged after 30 days.") + (license license:gpl3+))) + (define-public python-anaconda-client (package (name "python-anaconda-client") -- 2.20.1