all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* problem with ruby-taskjuggler packaging and timezone
@ 2021-06-14 17:50 Giovanni Biscuolo
  2021-06-14 18:45 ` Joshua Branson
  0 siblings, 1 reply; 3+ messages in thread
From: Giovanni Biscuolo @ 2021-06-14 17:50 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 3485 bytes --]

Hi Guix!

I'm packaging ruby-taskjuggler (I'll provide a patch series as soon as I
get to fix this bug), this is the package definition:

--8<---------------cut here---------------start------------->8---

(define-public ruby-taskjuggler
  (package
    (name "ruby-taskjuggler")
    (version "3.7.1")
    (source
     (origin
       (method url-fetch)
       (uri (rubygems-uri "taskjuggler" version))
       (sha256
        (base32
         "1jrsajzhzpnfa8hj6lbf7adn8hls56dz3yw1gvzgz9y4zkka3k9v"))))
    (build-system ruby-build-system)
    (inputs `(("tzdata" ,tzdata)))
    (propagated-inputs
     `(("ruby-mail" ,ruby-mail)
       ("ruby-term-ansicolor" ,ruby-term-ansicolor)))
    (arguments
     '(#:phases (modify-phases %standard-phases
                  (replace 'replace-git-ls-files
                    (lambda _
                      (substitute* "tasks/rdoc.rake"
                        (("`git ls-files -- lib`")
                         "`find lib/ -type f |sort`"))
                      #t))
                  (add-before 'check 'tzdir-setup
                    (lambda* (#:key inputs #:allow-other-keys)
                      (setenv "TZDIR"
                              (string-append (assoc-ref inputs "tzdata")
                                             "/share/zoneinfo"))
                      #t))
                  (add-before 'check 'delete-test-BatchProcessor
                    ;; test_BatchProcessor fails with exeption:
                    ;; run> terminated with exception (report_on_exception is true)
                    (lambda _
                      (delete-file "test/test_BatchProcessor.rb")
                      #t)))))
    (synopsis
     "Project management command line tool with a domain specific language")
    (description
     "TaskJuggler (tj3) is a project management command line tool for project
planning and tracking.  You plan and track your projects using a domain
specific language, projects are plain text files written using your favourite
text editor.  It includes customizable reporting tools to publish HTML, CSV or
iCalendar reports and an email based status tracking system to generate and
process time sheets.

It covers the complete spectrum of project management tasks from the first
idea to the completion of the project.  It assists you during project scoping,
resource assignment, cost and revenue planning, risk and communication
management, status tracking and reporting.")
    (home-page "https://taskjuggler.org")
    (license license:gpl2)))

--8<---------------cut here---------------end--------------->8---

The derivation is succesfully built, tests included (except the removed
one) but if I run the program with a test file I get problems with the
timezone:

--8<---------------cut here---------------start------------->8---

giovanni@roquette: tj3 -o project-001 project-001.tjp 

./acme-includes/project-defaults.tji:3: Error: Europe/Rome is not a known time zone
timezone 'Europe/Rome'

--8<---------------cut here---------------end--------------->8---

I can use any timezone but UTC and the result is always the same.

The strange thing is that timezones are tested at build time but they
seems missing at runtime.

Please any hint on what I'm doing wrong?

Thanks! Gio'


P.S.: for the package to be compiled ruby-term-ansicolor must be
upgraded to 1.7.1 

-- 
Giovanni Biscuolo

Xelera IT Infrastructures

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 849 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-06-15 15:32 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-14 17:50 problem with ruby-taskjuggler packaging and timezone Giovanni Biscuolo
2021-06-14 18:45 ` Joshua Branson
2021-06-15 15:31   ` Giovanni Biscuolo

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.