guix-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

error building new package (In procedure chdir: Not a directory)


From: Giovanni Biscuolo
Subject: error building new package (In procedure chdir: Not a directory)
Date: Thu, 17 Jun 2021 17:22:45 +0200

Hello,

I'm trying to apply a patch to the ruby-taskjuggler package I'm
developing (https://debbugs.gnu.org/cgi/bugreport.cgi?bug=49042)

If I try to add the patch this way:

--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"))
       (patches (search-patches "ruby-taskjuggler-fix-TjTime.patch"))))
    (build-system ruby-build-system)
    (native-inputs `(("tzdata" ,tzdata-for-tests)))
    (propagated-inputs
     `(("ruby-mail" ,ruby-mail)
       ("ruby-term-ansicolor" ,ruby-term-ansicolor)))
       ;;("ruby-activesupport" ,ruby-activesupport)))
    (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)))

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

I'm sure the patch is in
gnu/packages/patches/ruby-taskjuggler-fix-TjTime.patch

If I try to build the package I get this error:

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

giovanni@roquette: ./pre-inst-env guix build ruby-taskjuggler
;;; note: source file 
/home/giovanni/{git}/giovanni.biscuolo.net/guix/gnu/packages/ruby.scm
;;;       newer than compiled 
/home/giovanni/{git}/giovanni.biscuolo.net/guix/gnu/packages/ruby.go
;;; note: source file 
/home/giovanni/{git}/giovanni.biscuolo.net/guix/gnu/packages/ruby.scm
;;;       newer than compiled 
/home/giovanni/.cache/guile/ccache/3.0-LE-8-4.5/home/giovanni/{git}/giovanni.biscuolo.net/guix/gnu/packages/ruby.scm.go
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
The following derivations will be built:
   /gnu/store/h6rqz0sv0cccjkrrljwmd3i43r307dgn-ruby-taskjuggler-3.7.1.drv
   /gnu/store/i4zcbalzjp3khlcw0haf82y6syxkvz10-taskjuggler-3.7.1.tar.xz.drv
process 26694 acquired build slot '/var/guix/offload/batondor:22/0'
normalized load on machine 'batondor' is 0.00
building 
/gnu/store/i4zcbalzjp3khlcw0haf82y6syxkvz10-taskjuggler-3.7.1.tar.xz.drv...
guix offload: sending 3 store items (0 MiB) to 'batondor'...
exporting path 
`/gnu/store/0d1j4s7c1h8w6z700sxb88jqmjpd5bwv-taskjuggler-3.7.1.tar.xz-builder'
exporting path 
`/gnu/store/qrsggdlpx3zm8p9x9gpxx88d02wwrkz7-ruby-taskjuggler-fix-TjTime.patch'
exporting path 
`/gnu/store/i4zcbalzjp3khlcw0haf82y6syxkvz10-taskjuggler-3.7.1.tar.xz.drv'
offloading 
'/gnu/store/i4zcbalzjp3khlcw0haf82y6syxkvz10-taskjuggler-3.7.1.tar.xz.drv' to 
'batondor'...
offloading build of 
/gnu/store/i4zcbalzjp3khlcw0haf82y6syxkvz10-taskjuggler-3.7.1.tar.xz.drv to 
'batondor'
substitute: updating substitutes from 'https://ci.guix.gnu.org'... 100.0%
@ build-started 
/gnu/store/i4zcbalzjp3khlcw0haf82y6syxkvz10-taskjuggler-3.7.1.tar.xz.drv - 
x86_64-linux 
/var/log/guix/drvs/i4//zcbalzjp3khlcw0haf82y6syxkvz10-taskjuggler-3.7.1.tar.xz.drv.bz2
 21469
metadata.gz
data.tar.gz
checksums.yaml.gz
source is under 'checksums.yaml.gz'
Backtrace:
           2 (primitive-load "/gnu/store/0d1j4s7c1h8w6z700sxb88jqmjp?")
In ice-9/eval.scm:
    619:8  1 (_ #(#<directory (guile-user) 7ffff3bb3f00> "checksum?"))
In unknown file:
           0 (chdir "checksums.yaml.gz")

ERROR: In procedure chdir:
In procedure chdir: Not a directory
builder for 
`/gnu/store/i4zcbalzjp3khlcw0haf82y6syxkvz10-taskjuggler-3.7.1.tar.xz.drv' 
failed with exit code 1
@ build-failed 
/gnu/store/i4zcbalzjp3khlcw0haf82y6syxkvz10-taskjuggler-3.7.1.tar.xz.drv - 1 
builder for 
`/gnu/store/i4zcbalzjp3khlcw0haf82y6syxkvz10-taskjuggler-3.7.1.tar.xz.drv' 
failed with exit code 1
derivation 
'/gnu/store/i4zcbalzjp3khlcw0haf82y6syxkvz10-taskjuggler-3.7.1.tar.xz.drv' 
offloaded to 'batondor' failed: build of 
`/gnu/store/i4zcbalzjp3khlcw0haf82y6syxkvz10-taskjuggler-3.7.1.tar.xz.drv' 
failed
build of 
/gnu/store/i4zcbalzjp3khlcw0haf82y6syxkvz10-taskjuggler-3.7.1.tar.xz.drv failed
Could not find build log for 
'/gnu/store/i4zcbalzjp3khlcw0haf82y6syxkvz10-taskjuggler-3.7.1.tar.xz.drv'.
cannot build derivation 
`/gnu/store/h6rqz0sv0cccjkrrljwmd3i43r307dgn-ruby-taskjuggler-3.7.1.drv': 1 
dependencies couldn't be built
guix build: error: build of 
`/gnu/store/h6rqz0sv0cccjkrrljwmd3i43r307dgn-ruby-taskjuggler-3.7.1.drv' failed

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

Please what I'm doing wrong?

Thanks! Giovanni.

-- 
Giovanni Biscuolo

Xelera IT Infrastructures

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]