GNU bug report logs - #49042
[PATCH 0/2] WIP gnu: Add ruby-taskjuggler.

Previous Next

Package: guix-patches;

Reported by: Giovanni Biscuolo <g <at> xelera.eu>

Date: Tue, 15 Jun 2021 14:59:01 UTC

Severity: normal

Tags: patch

Done: Ludovic Courtès <ludo <at> gnu.org>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 49042 in the body.
You can then email your comments to 49042 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#49042; Package guix-patches. (Tue, 15 Jun 2021 14:59:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Giovanni Biscuolo <g <at> xelera.eu>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Tue, 15 Jun 2021 14:59:02 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Giovanni Biscuolo <g <at> xelera.eu>
To: guix-patches <at> gnu.org
Subject: [PATCH 0/2] WIP gnu: Add ruby-taskjuggler.
Date: Tue, 15 Jun 2021 16:40:41 +0200
Hello,

First, ruby-taskjuggler needs ruby-term-ansicolor version 1.7.1 or above (43
dependent packages rebuilds).

This is the new package ruby-taskjuggler but still have an issue I'm not able
to fix.

The package is succesfully built, tests included (except the removed one) but
if I run the program with the tutorial example file provided upstream [1] I
get this result:

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

giovanni <at> roquette: tj3 -o tutorial tutorial.tjp 
TaskJuggler v3.7.1 - A Project Management Software

Copyright (c) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020
              by Chris Schlaeger <cs <at> taskjuggler.org>

This program is free software; you can redistribute it and/or modify it under
the terms of version 2 of the GNU General Public License as published by the
Free Software Foundation.

tutorial.tjp:11: Error: Europe/Paris is not a known time zone
  timezone "Europe/Paris"

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

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

Please any hint on what I'm doing wrong?

I would like to fix this before merging to master.

Best regards, Giovanni

[1] https://taskjuggler.org/tj3/examples/Tutorial/tutorial.tjp

Giovanni Biscuolo (2):
  gnu: ruby-term-ansicolor: Update to 1.7.1.
  gnu: Add ruby-taskjuggler.

 gnu/packages/ruby.scm | 58 +++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 56 insertions(+), 2 deletions(-)

-- 
2.31.1




Information forwarded to guix-patches <at> gnu.org:
bug#49042; Package guix-patches. (Tue, 15 Jun 2021 15:03:01 GMT) Full text and rfc822 format available.

Message #8 received at 49042 <at> debbugs.gnu.org (full text, mbox):

From: Giovanni Biscuolo <g <at> xelera.eu>
To: 49042 <at> debbugs.gnu.org
Subject: [PATCH 1/2] gnu: ruby-term-ansicolor: Update to 1.7.1.
Date: Tue, 15 Jun 2021 17:02:39 +0200
[0001-gnu-ruby-term-ansicolor-Update-to-1.7.1.patch (text/x-diff, inline)]
From 9ac299b7e54cd8602f17be35d65893ee77c7d487 Mon Sep 17 00:00:00 2001
From: Giovanni Biscuolo <g <at> xelera.eu>
Date: Wed, 9 Jun 2021 11:49:15 +0200
Subject: [PATCH 1/2] gnu: ruby-term-ansicolor: Update to 1.7.1.

* gnu/packages/ruby.scm (ruby-term-ansicolor): Update to 1.7.1.
---
 gnu/packages/ruby.scm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index 7c2cf35ac2..e2f53bbdca 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -6121,13 +6121,13 @@ Ruby's large and slower test/unit.")
 (define-public ruby-term-ansicolor
   (package
     (name "ruby-term-ansicolor")
-    (version "1.6.0")
+    (version "1.7.1")
     (source (origin
               (method url-fetch)
               (uri (rubygems-uri "term-ansicolor" version))
               (sha256
                (base32
-                "1b1wq9ljh7v3qyxkk8vik2fqx2qzwh5lval5f92llmldkw7r7k7b"))))
+                "1xq5kci9215skdh27npyd3y55p812v4qb4x2hv3xsjvwqzz9ycwj"))))
     (build-system ruby-build-system)
     ;; Rebuilding the gemspec seems to require git, even though this is not a
     ;; git repository, so we just build the gem from the existing gemspec.
-- 
2.31.1

[Message part 2 (text/plain, inline)]
-- 
Giovanni Biscuolo

Xelera IT Infrastructures

Information forwarded to guix-patches <at> gnu.org:
bug#49042; Package guix-patches. (Tue, 15 Jun 2021 15:05:01 GMT) Full text and rfc822 format available.

Message #11 received at 49042 <at> debbugs.gnu.org (full text, mbox):

From: Giovanni Biscuolo <g <at> xelera.eu>
To: 49042 <at> debbugs.gnu.org
Subject: [PATCH 2/2] gnu: Add ruby-taskjuggler.
Date: Tue, 15 Jun 2021 17:04:33 +0200
[0002-gnu-Add-ruby-taskjuggler.patch (text/x-diff, inline)]
From 49c70f0bc19ca7d8581fa571f5f1ee0a473ef72f Mon Sep 17 00:00:00 2001
From: Giovanni Biscuolo <g <at> xelera.eu>
Date: Wed, 9 Jun 2021 11:57:12 +0200
Subject: [PATCH 2/2] gnu: Add ruby-taskjuggler.

* gnu/packages/ruby.scm (ruby-taskjuggler): New variable.
---
 gnu/packages/ruby.scm | 54 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index e2f53bbdca..67b61a6143 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -27,6 +27,7 @@
 ;;; Copyright © 2020 Giacomo Leidi <goodoldpaul <at> autistici.org>
 ;;; Copyright © 2021 EuAndreh <eu <at> euandre.org>
 ;;; Copyright © 2020 Tomás Ortín Fernández <tomasortin <at> mailbox.org>
+;;; Copyright © 2021 Giovanni Biscuolo <g <at> xelera.eu>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -46,6 +47,7 @@
 (define-module (gnu packages ruby)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (gnu packages)
+  #:use-module (gnu packages base)
   #:use-module (gnu packages bison)
   #:use-module (gnu packages c)
   #:use-module (gnu packages check)
@@ -12433,3 +12435,55 @@ and social networks to better index and display your site's content.")
    (home-page
     "https://github.com/jekyll/jekyll-seo-tag")
    (license license:expat)))
+
+(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 tool for project planning and
+tracking using a domain specific language; projects are plain text files
+written using your favourite text editor.  It includes reporting in HTML, CSV
+or iCalendar format and an email based status tracking system to send and
+receive time sheets from collaborators.
+
+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)))
-- 
2.31.1





Information forwarded to guix-patches <at> gnu.org:
bug#49042; Package guix-patches. (Wed, 16 Jun 2021 09:05:02 GMT) Full text and rfc822 format available.

Message #14 received at 49042 <at> debbugs.gnu.org (full text, mbox):

From: Giovanni Biscuolo <g <at> xelera.eu>
To: 49042 <at> debbugs.gnu.org
Subject: Re: [bug#49042] [PATCH 0/2] WIP gnu: Add ruby-taskjuggler.
Date: Wed, 16 Jun 2021 11:04:31 +0200
[Message part 1 (text/plain, inline)]
Hello,

a couple more info on this WIP of mine.

Giovanni Biscuolo <g <at> xelera.eu> writes:

[...]

> --8<---------------cut here---------------start------------->8---
>
> giovanni <at> roquette: tj3 -o tutorial tutorial.tjp 
> TaskJuggler v3.7.1 - A Project Management Software
>
> Copyright (c) 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020
>               by Chris Schlaeger <cs <at> taskjuggler.org>
>
> This program is free software; you can redistribute it and/or modify it under
> the terms of version 2 of the GNU General Public License as published by the
> Free Software Foundation.
>
> tutorial.tjp:11: Error: Europe/Paris is not a known time zone
>   timezone "Europe/Paris"
>
> --8<---------------cut here---------------end--------------->8---

I forgot to mention that I'm installing ruby-taskjuggler in my default
profile with "./pre-inst-env guix install ruby-taskjuggler".

I'm on a foreign distro and if I run the program this way:

 TZDIR=/usr/share/zoneinfo tj3 -o tutorial tutorial.tjp 

all is fine.

Anyway: "tzdata" from Guix is not installed AFAIU:

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

giovanni <at> roquette: find /gnu/store -type d -iname 'tzdata'
/gnu/store/9jznxb2f5s46yr8fmppigiad0fyh4b4p-tcl-8.6.10/lib/tcl8.6/tzdata

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

and also TZDIR is not in the search paths of my profile:

--8<---------------cut here---------------start------------->8---
giovanni <at> roquette: guix package --search-paths -p "/home/giovanni/.guix-profile"
export PATH="/home/giovanni/.guix-profile/bin:/home/giovanni/.guix-profile/sbin"
export GUIX_GTK3_PATH="/home/giovanni/.guix-profile/lib/gtk-3.0"
export GI_TYPELIB_PATH="/home/giovanni/.guix-profile/lib/girepository-1.0"
export XDG_DATA_DIRS="/home/giovanni/.guix-profile/share"
export CHROMIUM_EXTENSION_DIRECTORY="/home/giovanni/.guix-profile/share/chromium/extensions"
export GIT_SSL_CAINFO="/home/giovanni/.guix-profile/etc/ssl/certs/ca-certificates.crt"
export GIT_EXEC_PATH="/home/giovanni/.guix-profile/libexec/git-core"
--8<---------------cut here---------------end--------------->8---

So the issue is: I'm not able to package so that inputs are properly installed
and env is properly set :-(

I've searched other guix packages to see how they handle tzdata
dependency but I'm not able to find what I'm doing wrong: any hint
please?

Thanks! Giovanni.

-- 
Giovanni Biscuolo

Xelera IT Infrastructures
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#49042; Package guix-patches. (Wed, 16 Jun 2021 09:18:02 GMT) Full text and rfc822 format available.

Message #17 received at 49042 <at> debbugs.gnu.org (full text, mbox):

From: Maxime Devos <maximedevos <at> telenet.be>
To: Giovanni Biscuolo <g <at> xelera.eu>, 49042 <at> debbugs.gnu.org
Subject: Re: [bug#49042] [PATCH 0/2] WIP gnu: Add ruby-taskjuggler.
Date: Wed, 16 Jun 2021 11:17:08 +0200
[Message part 1 (text/plain, inline)]
Giovanni Biscuolo schreef op di 15-06-2021 om 16:40 [+0200]:
> tutorial.tjp:11: Error: Europe/Paris is not a known time zone
>   timezone "Europe/Paris"
> 
> --8<---------------cut here---------------end--------------->8---
> 
> The strange thing is that timezones are tested at build (check) time but they
> seems missing at runtime.

Not weird at all. I see you put "tzdata" in 'inputs', not 'propagated-inputs'.

When installing ruby-taskjuggler in a profile (or using guix environment --ad-hoc),
guix will only install ruby-taskjuggler. "tzdata" won't be automagically installed
too. If you want to automagically install "tzdata", there are two options:

  * move "tzdata" to propagated-inputs
  * wrap tj3 (e.g. using wrap-program from (guix build utils)) to
    set TZDIR to (string-append (assoc-ref inputs "tzdata") "/share/zoneinfo")

Both options are not recommended, because "tzdata" frequently needs to be updated
and therefore, if packages used "tzdata" as input, there would be plenty of rebuilds
each time. When "tzdata" is used for tests, use the less-frequently updated tzdata-for-tests
instead.

The solution is to install "tzdata" separately. A user could do this with
"guix package -i tzdata". However, normally the operating system would provide
a time zone database of its own and initialise TZDIR to something reasonable.

E.g., on Guix System, 'operating-system-environment-variables' in (gnu system)
will initialise TZDIR, SSL_CERT_DIR and GIT_SSL_CAINFO to something reasonable
(though the user can override these defaults with "guix package -i tzdata".)

What operating system are you on, and what output do you get if you run
"echo $TZDIR"?

Greetings,
Maxime.
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#49042; Package guix-patches. (Wed, 16 Jun 2021 09:44:02 GMT) Full text and rfc822 format available.

Message #20 received at 49042 <at> debbugs.gnu.org (full text, mbox):

From: Giovanni Biscuolo <g <at> xelera.eu>
To: 49042 <at> debbugs.gnu.org
Subject: Re: [bug#49042] [PATCH 0/2] WIP gnu: Add ruby-taskjuggler.
Date: Wed, 16 Jun 2021 11:42:42 +0200
[Message part 1 (text/plain, inline)]
Hello,

Giovanni Biscuolo <g <at> xelera.eu> writes:

[...]

> I'm on a foreign distro and if I run the program this way:
>
>  TZDIR=/usr/share/zoneinfo tj3 -o tutorial tutorial.tjp 
>
> all is fine.

I just found the related bug #36870 [1] and as the original reporter I'm
incorrectly assuming Guix packages are using Guix timezone package (when
set as package input) on foreign distro also.

Mark H Weaver wrote:

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

  On Guix systems, /etc/environment includes an entry that sets TZDIR to
  the equivalent of "$(guix build tzdata)/share/zoneinfo".

  When using Guix on top of another distro, an alternative choice might be
  to set TZDIR to "/usr/share/zoneinfo".  I'm not sure which setting is
  preferable on non-Guix systems.

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

and Ludovic Courtès added:

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

    I agree that it’d be nice to somehow tell users about ‘TZDIR’, but I’m
    reluctant to introducing yet another profile file.

    I’m not sure what would be the best approach!

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

So AFAIU all I have to do is to fix my foreign distro environment.

Also, AFAIU from #40881 we should avoid setting tzdata as inputs of our
packages (to avoid massive rebuilds) and let our packages look up zones
at runtime with $TZDIR; this also makes me understand a little bit more
clearly why we have "tzdata-for-tests"... and I'm gonna use it in my
next version of the patch.

A new patch version will follow... soon (TM)

Happy hacking! Gio'

[...]


[1] https://debbugs.gnu.org/cgi/bugreport.cgi?bug=36870

-- 
Giovanni Biscuolo

Xelera IT Infrastructures
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#49042; Package guix-patches. (Wed, 16 Jun 2021 10:10:01 GMT) Full text and rfc822 format available.

Message #23 received at 49042 <at> debbugs.gnu.org (full text, mbox):

From: Giovanni Biscuolo <g <at> xelera.eu>
To: Maxime Devos <maximedevos <at> telenet.be>, 49042 <at> debbugs.gnu.org
Subject: Re: [bug#49042] [PATCH 0/2] WIP gnu: Add ruby-taskjuggler.
Date: Wed, 16 Jun 2021 12:09:29 +0200
[Message part 1 (text/plain, inline)]
Hi Maxime,

thank you for your reply!

I'm reading it after my last message to debbugs.

Maxime Devos <maximedevos <at> telenet.be> writes:

> Giovanni Biscuolo schreef op di 15-06-2021 om 16:40 [+0200]:

[...]

> If you want to automagically install "tzdata", there are two options:
>
>   * move "tzdata" to propagated-inputs

I thought I tried this but I'm not sure... I'll have a try later just to
test and learn: thanks!

[...]

> When "tzdata" is used for tests, use the less-frequently updated
> tzdata-for-tests instead.

Yes, now I understand that package purpose, thanks!

[...]

> What operating system are you on, and what output do you get if you run
> "echo $TZDIR"?

Since I'd like this thread to be only for adding ruby-taskjuggler I'm
going to open a new dedicated thread on guix-devel ASAP, to keep things
separated.

Thank you very much Maxime! Gio'

-- 
Giovanni Biscuolo

Xelera IT Infrastructures
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#49042; Package guix-patches. (Wed, 16 Jun 2021 11:01:02 GMT) Full text and rfc822 format available.

Message #26 received at 49042 <at> debbugs.gnu.org (full text, mbox):

From: Giovanni Biscuolo <g <at> xelera.eu>
To: 49042 <at> debbugs.gnu.org
Subject: [PATCH v2 2/2] gnu: Add ruby-taskjuggler.
Date: Wed, 16 Jun 2021 13:00:30 +0200
[0001-gnu-Add-ruby-taskjuggler.patch (text/x-diff, inline)]
From 46aacfc1ab93166a289f8edb1fcd119e9145840c Mon Sep 17 00:00:00 2001
From: Giovanni Biscuolo <g <at> xelera.eu>
Date: Wed, 9 Jun 2021 11:57:12 +0200
Subject: [PATCH] gnu: Add ruby-taskjuggler.

* gnu/packages/ruby.scm (ruby-taskjuggler): New variable.
---
 gnu/packages/ruby.scm | 54 +++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 54 insertions(+)

diff --git a/gnu/packages/ruby.scm b/gnu/packages/ruby.scm
index e2f53bbdca..2ba9924bec 100644
--- a/gnu/packages/ruby.scm
+++ b/gnu/packages/ruby.scm
@@ -27,6 +27,7 @@
 ;;; Copyright © 2020 Giacomo Leidi <goodoldpaul <at> autistici.org>
 ;;; Copyright © 2021 EuAndreh <eu <at> euandre.org>
 ;;; Copyright © 2020 Tomás Ortín Fernández <tomasortin <at> mailbox.org>
+;;; Copyright © 2021 Giovanni Biscuolo <g <at> xelera.eu>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -46,6 +47,7 @@
 (define-module (gnu packages ruby)
   #:use-module ((guix licenses) #:prefix license:)
   #:use-module (gnu packages)
+  #:use-module (gnu packages base)
   #:use-module (gnu packages bison)
   #:use-module (gnu packages c)
   #:use-module (gnu packages check)
@@ -12433,3 +12435,55 @@ and social networks to better index and display your site's content.")
    (home-page
     "https://github.com/jekyll/jekyll-seo-tag")
    (license license:expat)))
+
+(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)
+    (native-inputs `(("tzdata" ,tzdata-for-tests)))
+    (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 tool for project planning and
+tracking using a domain specific language; projects are plain text files
+written using your favourite text editor.  It includes reporting in HTML, CSV
+or iCalendar format and an email based status tracking system to send and
+receive time sheets from collaborators.
+
+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)))
-- 
2.31.1

[Message part 2 (text/plain, inline)]
-- 
Giovanni Biscuolo

Xelera IT Infrastructures
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#49042; Package guix-patches. (Wed, 16 Jun 2021 16:53:02 GMT) Full text and rfc822 format available.

Message #29 received at 49042 <at> debbugs.gnu.org (full text, mbox):

From: Giovanni Biscuolo <g <at> xelera.eu>
To: 49042 <at> debbugs.gnu.org
Subject: Re: [bug#49042] [PATCH 0/2] WIP gnu: Add ruby-taskjuggler.
Date: Wed, 16 Jun 2021 18:51:46 +0200
[Message part 1 (text/plain, inline)]
Hello,

unfortunately this package still have some issues with the daemon mode
(tj3d)

Starting tj3d in daemon mode with "tj3d -c .taskjugglerrc --debug -d -w"
and trying to add a project fails with an exception:

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

giovanni <at> roquette: tj3client -c .taskjugglerrc add tutorial.tjp
TaskJuggler v3.7.1 - A Project Management Software

Exception `SecurityError' at /gnu/store/1rslmq79i0lwccxqfh4cv1shbv5hchkq-ruby-taskjuggler-3.7.1/lib/ruby/vendor_ruby/gems/taskjuggler-3.7.1/lib/taskjuggler/TjTime.rb:80 - Insecure operation - []=
Warning: Projects(s) project-001.tjp could not be added

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

Looking at the issues upstream, it seems to be the same issue like this
one:
https://github.com/taskjuggler/TaskJuggler/issues/168

I'll see if I can arrange a patch, please do not merge this package to
master until we fix this.

Thanks! Giovanni

-- 
Giovanni Biscuolo

Xelera IT Infrastructures
[signature.asc (application/pgp-signature, inline)]

Information forwarded to guix-patches <at> gnu.org:
bug#49042; Package guix-patches. (Wed, 16 Jun 2021 17:57:01 GMT) Full text and rfc822 format available.

Message #32 received at 49042 <at> debbugs.gnu.org (full text, mbox):

From: Giovanni Biscuolo <g <at> xelera.eu>
To: 49042 <at> debbugs.gnu.org
Subject: Re: [bug#49042] [PATCH 0/2] WIP gnu: Add ruby-taskjuggler.
Date: Wed, 16 Jun 2021 19:55:49 +0200
[Message part 1 (text/plain, inline)]
Hello,

some more info

Giovanni Biscuolo <g <at> xelera.eu> writes:

[...]

> --8<---------------cut here---------------start------------->8---
>
> giovanni <at> roquette: tj3client -c .taskjugglerrc add tutorial.tjp
> TaskJuggler v3.7.1 - A Project Management Software
>
> Exception `SecurityError' at /gnu/store/1rslmq79i0lwccxqfh4cv1shbv5hchkq-ruby-taskjuggler-3.7.1/lib/ruby/vendor_ruby/gems/taskjuggler-3.7.1/lib/taskjuggler/TjTime.rb:80 - Insecure operation - []=
> Warning: Projects(s) project-001.tjp could not be added
>
> --8<---------------cut here---------------end--------------->8---

If I comment out the "timezone" keyword in tutorial.tjp the project is
loaded (and I can see it in the localhost web interface).

Anyway, for all connections, the tj3d daemon shows this exception:

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

Exception `DRb::DRbConnError' at /gnu/store/yw250lzn7ii8vlm5gqk4ylzgy9jg8ii3-ruby-2.6.5/lib/ruby/2.6.0/drb/drb.rb:578 - connection closed

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

I'm not expert in Ruby so I don't know where to investigate for this.

Happy hacking, Gio'

-- 
Giovanni Biscuolo

Xelera IT Infrastructures
[signature.asc (application/pgp-signature, inline)]

Reply sent to Ludovic Courtès <ludo <at> gnu.org>:
You have taken responsibility. (Sat, 26 Jun 2021 21:45:01 GMT) Full text and rfc822 format available.

Notification sent to Giovanni Biscuolo <g <at> xelera.eu>:
bug acknowledged by developer. (Sat, 26 Jun 2021 21:45:02 GMT) Full text and rfc822 format available.

Message #37 received at 49042-done <at> debbugs.gnu.org (full text, mbox):

From: Ludovic Courtès <ludo <at> gnu.org>
To: Giovanni Biscuolo <g <at> xelera.eu>
Cc: 49042-done <at> debbugs.gnu.org
Subject: Re: bug#49042: [PATCH 0/2] WIP gnu: Add ruby-taskjuggler.
Date: Sat, 26 Jun 2021 23:44:06 +0200
Hi,

Giovanni Biscuolo <g <at> xelera.eu> skribis:

>>From 9ac299b7e54cd8602f17be35d65893ee77c7d487 Mon Sep 17 00:00:00 2001
> From: Giovanni Biscuolo <g <at> xelera.eu>
> Date: Wed, 9 Jun 2021 11:49:15 +0200
> Subject: [PATCH 1/2] gnu: ruby-term-ansicolor: Update to 1.7.1.
>
> * gnu/packages/ruby.scm (ruby-term-ansicolor): Update to 1.7.1.

[...]

> From 46aacfc1ab93166a289f8edb1fcd119e9145840c Mon Sep 17 00:00:00 2001
> From: Giovanni Biscuolo <g <at> xelera.eu>
> Date: Wed, 9 Jun 2021 11:57:12 +0200
> Subject: [PATCH] gnu: Add ruby-taskjuggler.
>
> * gnu/packages/ruby.scm (ruby-taskjuggler): New variable.

Applied, thanks!

Ludo’.




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 25 Jul 2021 11:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 247 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.