all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Julien Lepiller <julien@lepiller.eu>
To: guix-devel@gnu.org, Giovanni Biscuolo <g@xelera.eu>,
	Tobias Geerinckx-Rice <me@tobias.gr>
Subject: Re: error building new package (In procedure chdir: Not a directory)
Date: Tue, 22 Jun 2021 13:50:00 -0400	[thread overview]
Message-ID: <CB71BE40-80C7-432B-AEE1-752725E5CA2E@lepiller.eu> (raw)
In-Reply-To: <87czsdx3fi.fsf@xelera.eu>

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

I think that's because the patch first extracts the archive, chdirs to the first directory, and applies the patch. But if there's no directory, it can't chdir and fails.

Note that (with-directory-excursion ".") does nothing :)

Le 22 juin 2021 12:35:45 GMT-04:00, Giovanni Biscuolo <g@xelera.eu> a écrit :
>Hello,
>
>some more info since I still do not understand where *.gz files are
>coming from
>
>Giovanni Biscuolo <g@xelera.eu> writes:
>
>[...]
>
>>> Your source tarball contains multiple gzipped files, one of which 
>>> itself a tarball:
>>>
>>>> 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
>
>If I build the package with "--keep-failed" I can inspect the kept
>building dir
>/home/guix-builder/guix-build-ruby-taskjuggler-3.7.1.drv-4,
>and there are no *.gz files
>
>[...]
>
>>> so you need to use url-fetch/tarball and/or further unpack the
>>> double-packed sources yourself in a custom phase.
>>
>> I'll try to do this: any example at hand please?
>
>I've found and tried this:
>
>--8<---------------cut here---------------start------------->8---
>
>                  (add-after 'unpack 'unpack-bundled-sources
>                    (lambda _
>                      (with-directory-excursion "."
>                        (invoke "tar" "xf" "checksums.yaml.gz"))))
>
>--8<---------------cut here---------------end--------------->8---
>
>but it fails:
>
>--8<---------------cut here---------------start------------->8---
>
>starting phase `unpack-bundled-sources'
>tar: checksums.yaml.gz: Cannot open: No such file or directory
>tar: Error is not recoverable: exiting now
>command "tar" "xf" "checksums.yaml.gz" failed with status 2
>
>--8<---------------cut here---------------end--------------->8---
>
>I still don't understand why appying a patch (with "(patches
>(search-patches....))" in (source (origin...)) is failing.
>
>Thanks! Giovanni
>
>-- 
>Giovanni Biscuolo
>
>Xelera IT Infrastructures

[-- Attachment #2: Type: text/html, Size: 3289 bytes --]

  reply	other threads:[~2021-06-22 17:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-17 15:22 error building new package (In procedure chdir: Not a directory) Giovanni Biscuolo
2021-06-17 20:52 ` Tobias Geerinckx-Rice
2021-06-17 22:24   ` Tobias Geerinckx-Rice
2021-06-22 15:36   ` Giovanni Biscuolo
2021-06-22 16:35     ` Giovanni Biscuolo
2021-06-22 17:50       ` Julien Lepiller [this message]
2021-06-23  6:50         ` Giovanni Biscuolo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CB71BE40-80C7-432B-AEE1-752725E5CA2E@lepiller.eu \
    --to=julien@lepiller.eu \
    --cc=g@xelera.eu \
    --cc=guix-devel@gnu.org \
    --cc=me@tobias.gr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.