* [PATCH] gnu: Add obnam.
@ 2017-03-09 17:27 Arun Isaac
2017-03-10 21:15 ` Marius Bakke
0 siblings, 1 reply; 6+ messages in thread
From: Arun Isaac @ 2017-03-09 17:27 UTC (permalink / raw)
To: guix-devel
* gnu/packages/backup.scm (obnam): New variable.
---
gnu/packages/backup.scm | 33 +++++++++++++++++++++++++++++++++
1 file changed, 33 insertions(+)
diff --git a/gnu/packages/backup.scm b/gnu/packages/backup.scm
index 8eaab8a87..97ab70e65 100644
--- a/gnu/packages/backup.scm
+++ b/gnu/packages/backup.scm
@@ -4,6 +4,7 @@
;;; Copyright © 2015, 2016 Leo Famulari <leo@famulari.name>
;;; Copyright © 2017 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2017 Thomas Danckaert <post@thomasdanckaert.be>
+;;; Copyright © 2017 Arun Isaac <arunisaac@systemreboot.net>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -627,3 +628,35 @@ NTFS volumes using @code{ntfs-3g}, preserving NTFS-specific attributes.")
(license (list license:gpl3+
license:lgpl3+
license:cc0))))
+
+(define-public obnam
+ (package
+ (name "obnam")
+ (version "1.21")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (string-append
+ "http://code.liw.fi/debian/pool/main/o/obnam/obnam_"
+ version ".orig.tar.xz"))
+ (sha256
+ (base32
+ "0qlipsq50hca71zc0dp1mg9zs12qm0sbblw7qfzl0hj6mk2rv1by"))))
+ (build-system python-build-system)
+ (arguments
+ `(#:python ,python-2))
+ (inputs
+ `(("python2-cliapp" ,python2-cliapp)
+ ("python2-larch" ,python2-larch)
+ ("python2-paramiko" ,python2-paramiko)
+ ("python2-pyaml" ,python2-pyaml)
+ ("python2-tracing" ,python2-tracing)
+ ("python2-ttystatus" ,python2-ttystatus)))
+ (home-page "https://obnam.org/")
+ (synopsis "Easy and secure backup program")
+ (description "Obnam is an easy, secure backup program. Features
+include snapshot backups, data de-duplication and encrypted backups
+using GnuPG. Backups can be stored on local hard disks, or online via
+the SSH SFTP protocol. The backup server, if used, does not require
+any special software, on top of SSH.")
+ (license license:gpl3+)))
--
2.11.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH] gnu: Add obnam.
2017-03-09 17:27 [PATCH] gnu: Add obnam Arun Isaac
@ 2017-03-10 21:15 ` Marius Bakke
2017-03-11 4:09 ` Arun Isaac
2017-03-17 21:40 ` Arun Isaac
0 siblings, 2 replies; 6+ messages in thread
From: Marius Bakke @ 2017-03-10 21:15 UTC (permalink / raw)
To: Arun Isaac, guix-devel
[-- Attachment #1: Type: text/plain, Size: 747 bytes --]
Arun Isaac <arunisaac@systemreboot.net> writes:
> * gnu/packages/backup.scm (obnam): New variable.
Applied, thanks!
I noticed this program and some of the libraries it uses, requires a
package called "CoverageTestRunner" to run unit tests. Currently tests
are simply skipped.
It would be nice to have that package in Guix too. Tests helps us
discover problems early, such as incompatible versions etc.
Would you be willing to package it? For "obnam", the 'check' phase
needs to be replaced by a phase that calls "./check" afterwards:
#:phases
(modify-phases %standard-phases
(replace 'check
(lambda _ (zero? (system* "./check")))))))
Anyway, pushed to 'master' as a2fa9c3d1baf65cc5aec2ce843e2d7921e593c21.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] gnu: Add obnam.
2017-03-10 21:15 ` Marius Bakke
@ 2017-03-11 4:09 ` Arun Isaac
2017-03-11 18:10 ` Marius Bakke
2017-03-17 21:40 ` Arun Isaac
1 sibling, 1 reply; 6+ messages in thread
From: Arun Isaac @ 2017-03-11 4:09 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 546 bytes --]
> I noticed this program and some of the libraries it uses, requires a
> package called "CoverageTestRunner" to run unit tests. Currently tests
> are simply skipped.
I tried packaging the tests too. But, the tests require the root user
and group to be present. The build environment does not have the root
user and group. So, the tests fail. Can anything be done about this? Or
should I abandon packaging the tests, and just mention this in the
comments somewhere?
I also tried running the tests in my own user environment, and they ran
fine.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] gnu: Add obnam.
2017-03-11 4:09 ` Arun Isaac
@ 2017-03-11 18:10 ` Marius Bakke
2017-03-12 7:55 ` Arun Isaac
0 siblings, 1 reply; 6+ messages in thread
From: Marius Bakke @ 2017-03-11 18:10 UTC (permalink / raw)
To: Arun Isaac, guix-devel
[-- Attachment #1: Type: text/plain, Size: 657 bytes --]
Arun Isaac <arunisaac@systemreboot.net> writes:
>> I noticed this program and some of the libraries it uses, requires a
>> package called "CoverageTestRunner" to run unit tests. Currently tests
>> are simply skipped.
>
> I tried packaging the tests too. But, the tests require the root user
> and group to be present. The build environment does not have the root
> user and group. So, the tests fail. Can anything be done about this?
There is one user available in the build environment: "nobody". It could
work to substitute "root" for "nobody" in the code that looks for users.
The "mailutils" package does exactly that for tests. Can you try it?
TIA!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] gnu: Add obnam.
2017-03-11 18:10 ` Marius Bakke
@ 2017-03-12 7:55 ` Arun Isaac
0 siblings, 0 replies; 6+ messages in thread
From: Arun Isaac @ 2017-03-12 7:55 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 281 bytes --]
> There is one user available in the build environment: "nobody". It could
> work to substitute "root" for "nobody" in the code that looks for users.
> The "mailutils" package does exactly that for tests. Can you try it?
Yes, I'll try to get the tests working, and let you know.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] gnu: Add obnam.
2017-03-10 21:15 ` Marius Bakke
2017-03-11 4:09 ` Arun Isaac
@ 2017-03-17 21:40 ` Arun Isaac
1 sibling, 0 replies; 6+ messages in thread
From: Arun Isaac @ 2017-03-17 21:40 UTC (permalink / raw)
To: guix-devel
[-- Attachment #1: Type: text/plain, Size: 458 bytes --]
> I noticed this program and some of the libraries it uses, requires a
> package called "CoverageTestRunner" to run unit tests. Currently tests
> are simply skipped.
>
> It would be nice to have that package in Guix too. Tests helps us
> discover problems early, such as incompatible versions etc.
>
> Would you be willing to package it?
I've sent patches for this to guix-patches@gnu.org.
https://debbugs.gnu.org/cgi/bugreport.cgi?bug=26140
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-03-17 21:40 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-09 17:27 [PATCH] gnu: Add obnam Arun Isaac
2017-03-10 21:15 ` Marius Bakke
2017-03-11 4:09 ` Arun Isaac
2017-03-11 18:10 ` Marius Bakke
2017-03-12 7:55 ` Arun Isaac
2017-03-17 21:40 ` Arun Isaac
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.