* [PATCH 0/1] Add Guile-ICS
@ 2017-01-07 21:25 Alex Sassmannshausen
2017-01-07 21:25 ` [PATCH 1/1] gnu: " Alex Sassmannshausen
0 siblings, 1 reply; 6+ messages in thread
From: Alex Sassmannshausen @ 2017-01-07 21:25 UTC (permalink / raw)
To: guix-devel; +Cc: Alex Sassmannshausen
Hello,
This patch adds Guile-ICS, a newly released Guile library to interact with ICS
calendar files.
As it stands the code works, tests pass and the bundled cli application works.
The only problem is that I'm getting some odd error messages here, which I'm
not sure whether they are due to my setup or the compilation procedure…
Alex
PS: Error examples:
;;; WARNING: loading compiled file /home/alex/.guix-profile/lib/guile/2.0/site-ccache/ics.go failed:
;;; ERROR: In procedure make_objcode_from_file: bad header on object file: "GOOF----LE-8-2.0"
;;; WARNING: loading compiled file /home/alex/.guix-profile/lib/guile/2.0/site-ccache/ics.go failed:
;;; ERROR: In procedure make_objcode_from_file: bad header on object file: "GOOF----LE-8-2.0"
;;; WARNING: loading compiled file /home/alex/.guix-profile/lib/guile/2.0/site-ccache/ics/common.go failed:
;;; ERROR: In procedure make_objcode_from_file: bad header on object file: "GOOF----LE-8-2.0"
;;; WARNING: loading compiled file /home/alex/.guix-profile/lib/guile/2.0/site-ccache/ics/common.go failed:
;;; ERROR: In procedure make_objcode_from_file: bad header on object file: "GOOF----LE-8-2.0"
;;; WARNING: loading compiled file /home/alex/.guix-profile/lib/guile/2.0/site-ccache/ics/fsm.go failed:
;;; ERROR: In procedure make_objcode_from_file: bad header on object file: "GOOF----LE-8-2.0"
;;; WARNING: loading compiled file /home/alex/.guix-profile/lib/guile/2.0/site-ccache/ics/fsm.go failed:
;;; ERROR: In procedure make_objcode_from_file: bad header on object file: "GOOF----LE-8-2.0"
;;; WARNING: loading compiled file /home/alex/.guix-profile/lib/guile/2.0/site-ccache/ics/ical-object.go failed:
;;; ERROR: In procedure make_objcode_from_file: bad header on object file: "GOOF----LE-8-2.0"
;;; WARNING: loading compiled file /home/alex/.guix-profile/lib/guile/2.0/site-ccache/ics/ical-object.go failed:
;;; ERROR: In procedure make_objcode_from_file: bad header on object file: "GOOF----LE-8-2.0"
;;; WARNING: loading compiled file /home/alex/.guix-profile/lib/guile/2.0/site-ccache/ics/parser.go failed:
;;; ERROR: In procedure make_objcode_from_file: bad header on object file: "GOOF----LE-8-2.0"
;;; WARNING: loading compiled file /home/alex/.guix-profile/lib/guile/2.0/site-ccache/ics/parser.go failed:
;;; ERROR: In procedure make_objcode_from_file: bad header on object file: "GOOF----LE-8-2.0"
;;; WARNING: loading compiled file /home/alex/.guix-profile/lib/guile/2.0/site-ccache/ics/streams.go failed:
;;; ERROR: In procedure make_objcode_from_file: bad header on object file: "GOOF----LE-8-2.0"
;;; WARNING: loading compiled file /home/alex/.guix-profile/lib/guile/2.0/site-ccache/ics/streams.go failed:
;;; ERROR: In procedure make_objcode_from_file: bad header on object file: "GOOF----LE-8-2.0"
Subject: [PATCH 0/1] *** SUBJECT HERE ***
Alex Sassmannshausen (1):
gnu: Add Guile-ICS.
gnu/packages/guile.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
--
2.11.0
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 1/1] gnu: Add Guile-ICS.
2017-01-07 21:25 [PATCH 0/1] Add Guile-ICS Alex Sassmannshausen
@ 2017-01-07 21:25 ` Alex Sassmannshausen
2017-01-08 11:09 ` Ludovic Courtès
0 siblings, 1 reply; 6+ messages in thread
From: Alex Sassmannshausen @ 2017-01-07 21:25 UTC (permalink / raw)
To: guix-devel; +Cc: Alex Sassmannshausen
* gnu/packages/guile.scm (guile-ics): New variable.
---
gnu/packages/guile.scm | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/gnu/packages/guile.scm b/gnu/packages/guile.scm
index 9458ab714..c6d8fd8e8 100644
--- a/gnu/packages/guile.scm
+++ b/gnu/packages/guile.scm
@@ -525,6 +525,34 @@ format is also supported.")
(,modules)))
#t))))))))))))
+(define-public guile-ics
+ (package
+ (name "guile-ics")
+ (version "0.1.1-rc1")
+ (source (origin
+ (method url-fetch)
+ (uri (string-append "ftp://memory-heap.org/software/" name "/"
+ name "-" version ".tar.gz"))
+ (sha256
+ (base32
+ "01bl8c0wqkndnf2hnlvm2lj1rhh33szsblcmjbnyl6vyhnlm4lf5"))))
+ (build-system gnu-build-system)
+ (arguments
+ '(#:configure-flags
+ (list (string-append
+ "--with-guile-site-dir=" %output "/share/guile/site/2.0"))))
+ (native-inputs `(("pkg-config" ,pkg-config)))
+ (inputs `(("guile" ,guile-2.0)))
+ (propagated-inputs `(("guile-lib" ,guile-lib)))
+ (home-page "https://github.com/artyom-poptsov/guile-ics")
+ (synopsis "An iCalendar parser library for Guile")
+ (description
+ "Guile-ICS is an iCalendar (RFC5545) format parser library written in
+pure Scheme. The library can be used to read and write iCalendar data.
+
+The library is shipped with documentation in Info format and usage examples.")
+ (license gpl3)))
+
(define-public guile-lib
(package
(name "guile-lib")
--
2.11.0
^ permalink raw reply related [flat|nested] 6+ messages in thread
* Re: [PATCH 1/1] gnu: Add Guile-ICS.
2017-01-07 21:25 ` [PATCH 1/1] gnu: " Alex Sassmannshausen
@ 2017-01-08 11:09 ` Ludovic Courtès
2017-01-08 14:57 ` Artyom V. Poptsov
2017-01-09 10:37 ` Alex Sassmannshausen
0 siblings, 2 replies; 6+ messages in thread
From: Ludovic Courtès @ 2017-01-08 11:09 UTC (permalink / raw)
To: Alex Sassmannshausen; +Cc: guix-devel, Alex Sassmannshausen
Howdy!
Alex Sassmannshausen <alex.sassmannshausen@gmail.com> skribis:
> * gnu/packages/guile.scm (guile-ics): New variable.
Cool, we’ll be able to browse the FOSDEM schedule from Guile! :-)
> + (version "0.1.1-rc1")
Apparently 0.1.1 is already out!
However the tarball contains .go files, which should be removed.
But it might be best to just download from github.com and add a
bootstrap phase, like I did for Guile-SSH, because memory-heap.org is
slow and sometimes disappeared in the past.
> + (arguments
> + '(#:configure-flags
> + (list (string-append
> + "--with-guile-site-dir=" %output "/share/guile/site/2.0"))))
This can be omitted (in fact, adding it would lead compilations with
Guile 2.2 to install modules in the wrong place.)
> + (license gpl3)))
gpl3+
OK with these changes, thanks!
Ludo’.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/1] gnu: Add Guile-ICS.
2017-01-08 11:09 ` Ludovic Courtès
@ 2017-01-08 14:57 ` Artyom V. Poptsov
2017-01-08 22:45 ` Ludovic Courtès
2017-01-09 10:37 ` Alex Sassmannshausen
1 sibling, 1 reply; 6+ messages in thread
From: Artyom V. Poptsov @ 2017-01-08 14:57 UTC (permalink / raw)
To: Ludovic Courtès
Cc: Alex Sassmannshausen, guix-devel, Alex Sassmannshausen
[-- Attachment #1: Type: text/plain, Size: 1040 bytes --]
Hello Ludovic and Alex.
> Cool, we’ll be able to browse the FOSDEM schedule from Guile! :-)
Yes, for that matter I preparted a script that exports the FOSDEM
schedule to org-mode format:
https://github.com/artyom-poptsov/guile-ics/blob/master/examples/fosdem.scm.in
You can use it as an example.
> Apparently 0.1.1 is already out!
Alas, as it turns out I overlooked one of dependencies on 'guile-lib'.
I'll fix it in the next release but for now it requires 'guile-lib' as
one of the inputs.
> But it might be best to just download from github.com and add a
> bootstrap phase, like I did for Guile-SSH, because memory-heap.org is
> slow and sometimes disappeared in the past.
memory-heap.org is my personal home server that sometimes is not
accessible for the public due to problems with dynamic DNS updating
mechanism, so using github.com is more robust approach.
Thanks!
- Artyom
--
Artyom V. Poptsov <poptsov.artyom@gmail.com>; GPG Key: 0898A02F
Home page: http://poptsov-artyom.narod.ru/
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 800 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/1] gnu: Add Guile-ICS.
2017-01-08 14:57 ` Artyom V. Poptsov
@ 2017-01-08 22:45 ` Ludovic Courtès
0 siblings, 0 replies; 6+ messages in thread
From: Ludovic Courtès @ 2017-01-08 22:45 UTC (permalink / raw)
To: Artyom V. Poptsov; +Cc: Alex Sassmannshausen, guix-devel, Alex Sassmannshausen
Artyom V. Poptsov <poptsov.artyom@gmail.com> skribis:
> Hello Ludovic and Alex.
Hey Artyom!
>> Cool, we’ll be able to browse the FOSDEM schedule from Guile! :-)
>
> Yes, for that matter I preparted a script that exports the FOSDEM
> schedule to org-mode format:
> https://github.com/artyom-poptsov/guile-ics/blob/master/examples/fosdem.scm.in
>
> You can use it as an example.
Yes, I saw it and I like the idea. :-)
>> Apparently 0.1.1 is already out!
>
> Alas, as it turns out I overlooked one of dependencies on 'guile-lib'.
> I'll fix it in the next release but for now it requires 'guile-lib' as
> one of the inputs.
That’s OK.
>> But it might be best to just download from github.com and add a
>> bootstrap phase, like I did for Guile-SSH, because memory-heap.org is
>> slow and sometimes disappeared in the past.
>
> memory-heap.org is my personal home server that sometimes is not
> accessible for the public due to problems with dynamic DNS updating
> mechanism, so using github.com is more robust approach.
Thanks for confirming.
Cheers,
Ludo’.
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH 1/1] gnu: Add Guile-ICS.
2017-01-08 11:09 ` Ludovic Courtès
2017-01-08 14:57 ` Artyom V. Poptsov
@ 2017-01-09 10:37 ` Alex Sassmannshausen
1 sibling, 0 replies; 6+ messages in thread
From: Alex Sassmannshausen @ 2017-01-09 10:37 UTC (permalink / raw)
To: Ludovic Courtès; +Cc: guix-devel
Hi Ludo,
Ludovic Courtès writes:
> Howdy!
>
> Alex Sassmannshausen <alex.sassmannshausen@gmail.com> skribis:
>
> [...]
>
>> + (version "0.1.1-rc1")
>
> Apparently 0.1.1 is already out!
>
> However the tarball contains .go files, which should be removed.
>
> But it might be best to just download from github.com and add a
> bootstrap phase, like I did for Guile-SSH, because memory-heap.org is
> slow and sometimes disappeared in the past.
Indeed — I'm now building 0.1.1 from a git checkout from github.com.
>> + (arguments
>> + '(#:configure-flags
>> + (list (string-append
>> + "--with-guile-site-dir=" %output "/share/guile/site/2.0"))))
>
> This can be omitted (in fact, adding it would lead compilations with
> Guile 2.2 to install modules in the wrong place.)
Thanks, removed.
>> + (license gpl3)))
>
> gpl3+
Done.
> OK with these changes, thanks!
I've updated the package, tested in
`guix environment --pure --container` and `guix lint`, and then I pushed
it to master.
Thanks for the review!
Alex
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-01-09 10:37 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-01-07 21:25 [PATCH 0/1] Add Guile-ICS Alex Sassmannshausen
2017-01-07 21:25 ` [PATCH 1/1] gnu: " Alex Sassmannshausen
2017-01-08 11:09 ` Ludovic Courtès
2017-01-08 14:57 ` Artyom V. Poptsov
2017-01-08 22:45 ` Ludovic Courtès
2017-01-09 10:37 ` Alex Sassmannshausen
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.