[Top][All Lists]

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

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

From: Giovanni Biscuolo
Subject: Re: error building new package (In procedure chdir: Not a directory)
Date: Wed, 23 Jun 2021 08:50:32 +0200

Hello Julien and Tobias,

Julien Lepiller <> writes:

> 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.

Yes, that's the problem: I thought that

  (patches (search-patches "ruby-taskjuggler-fix-TjTime.patch"))

was working the same as with other (origin...)s declarations but AFAIU
it does not work with "rubygems-uri"s

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

Oh OK, anyway that piece of code is useless since "after-unpack" there
are no more gzipped files... obviously they are already unpacked :-D

> Le 22 juin 2021 12:35:45 GMT-04:00, Giovanni Biscuolo <> a écrit :


>>>> 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

I'm new to gem's but after I've "manually" downloaded I see that the
three files listed above are part of the gem file structure: I guess
ruby-build-system is trying to apply the patch before unpacking the *.gz
archives, but AFAIU it should do it after unpacking.

I'll try to study the code to see if I understand how it works
and if this is a bug, but unfortunately I've little time this days.

Thank you for your help! Giovanni


Giovanni Biscuolo

Xelera IT Infrastructures

Attachment: signature.asc
Description: PGP signature

reply via email to

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