From mboxrd@z Thu Jan 1 00:00:00 1970 From: Leo Famulari Subject: Re: [PATCH 5/6] gnu: Add borg. Date: Tue, 22 Mar 2016 17:25:25 -0400 Message-ID: <20160322212525.GB13372@jasmine> References: <14fe75ec9c8b651be6a5240dd5444e558615e1e1.1457998381.git.leo@famulari.name> <878u1k2jik.fsf@gmail.com> <20160315091845.GA9602@jasmine> <20160321213115.GA2717@jasmine> <20160321223519.GA6523@jasmine> <20160321225259.GA7558@jasmine> <87mvpqtgbu.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:58890) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiTnp-0000sx-TH for guix-devel@gnu.org; Tue, 22 Mar 2016 17:25:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aiTnm-0005lN-MF for guix-devel@gnu.org; Tue, 22 Mar 2016 17:25:25 -0400 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:44840) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiTnm-0005l6-I7 for guix-devel@gnu.org; Tue, 22 Mar 2016 17:25:22 -0400 Content-Disposition: inline In-Reply-To: <87mvpqtgbu.fsf@gmail.com> List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org To: Alex Kost Cc: guix-devel@gnu.org On Tue, Mar 22, 2016 at 11:20:37PM +0300, Alex Kost wrote: > Leo Famulari (2016-03-22 01:52 +0300) wrote: > > > On Mon, Mar 21, 2016 at 06:35:19PM -0400, Leo Famulari wrote: > >> I asked upstream about some warnings during the docs generation, and > >> they pointed out that I needed to add a command line. I've attached a > >> revised patch. > >> > >> Can I get some feedback on it? > > > > Based on feedback on #guix, I've revised it again. Attached... > > > From: Leo Famulari > > Date: Mon, 14 Mar 2016 19:34:25 -0400 > > Subject: [PATCH 5/6] gnu: Add borg. > > > > * gnu/packages/backup.scm (borg): New variable. > > [...] > > +(define-public borg > > + (package > > + (name "borg") > > + (version "1.0.0") > > + (source (origin > > + (method url-fetch) > > + (uri (pypi-uri "borgbackup" version)) > > + (sha256 > > + (base32 > > + "0wa6cvqs3rni5nwrgagigchcly8a53rxk56z0zn8iaii2cqrw2sh")))) > > + (build-system python-build-system) > > + (arguments > > + `(#:phases > > + (modify-phases %standard-phases > > + (add-after 'unpack 'set-env > > + (lambda* (#:key inputs #:allow-other-keys) > > + (let ((openssl (assoc-ref inputs "openssl")) > > + (lz4 (assoc-ref inputs "lz4"))) > > + (setenv "BORG_OPENSSL_PREFIX" openssl) > > + (setenv "BORG_LZ4_PREFIX" lz4) > > + (setenv "PYTHON_EGG_CACHE" "/tmp") > > + #t))) > > If you keep #t inside 'let', then align it to (setenv ...), or move it > away from 'let': > > (lambda* (#:key inputs #:allow-other-keys) > (let ((openssl (assoc-ref inputs "openssl")) > (lz4 (assoc-ref inputs "lz4"))) > (setenv "BORG_OPENSSL_PREFIX" openssl) > (setenv "BORG_LZ4_PREFIX" lz4) > (setenv "PYTHON_EGG_CACHE" "/tmp")) > #t) > > Note the difference: another ')' after the last (setenv ...). > > > + (add-after 'install 'docs > > Perhaps it is better to call this phase 'install-doc'. It's a usual > name that can be met in other recipes. There is also > 'install-man-pages' phase name, but I prefer 'install-doc'. Sure, I'll take your advice! > > The rest looks good to me, so if you checked that this program works, I > think you can push this patchset. I've been using this program for a few months without problems (yes, I do restore from time to time). It's being developed very rapidly for something so critical as a backup program, so I think that it's still a bit experimental. I could allude to that in the description. What do you think?