From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id eyBdIt7Z0mCx+AAAgWs5BA (envelope-from ) for ; Wed, 23 Jun 2021 08:51:10 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id +Bx4Hd7Z0mBAUQAAbx9fmQ (envelope-from ) for ; Wed, 23 Jun 2021 06:51:10 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 9978C14C61 for ; Wed, 23 Jun 2021 08:51:07 +0200 (CEST) Received: from localhost ([::1]:36018 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lvwj4-0004uy-NE for larch@yhetil.org; Wed, 23 Jun 2021 02:51:06 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34586) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvwid-0004SK-TP for guix-devel@gnu.org; Wed, 23 Jun 2021 02:50:39 -0400 Received: from ns13.heimat.it ([46.4.214.66]:54506) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lvwib-0008JM-HJ for guix-devel@gnu.org; Wed, 23 Jun 2021 02:50:39 -0400 Received: from localhost (ip6-localhost [127.0.0.1]) by ns13.heimat.it (Postfix) with ESMTP id 4FAD53021BA; Wed, 23 Jun 2021 06:50:35 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at ns13.heimat.it Received: from ns13.heimat.it ([127.0.0.1]) by localhost (ns13.heimat.it [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PRvgD8YWC-9d; Wed, 23 Jun 2021 06:50:33 +0000 (UTC) Received: from bourrache.mug.xelera.it (unknown [93.56.171.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by ns13.heimat.it (Postfix) with ESMTPSA id 95D193021B9; Wed, 23 Jun 2021 06:50:33 +0000 (UTC) Received: from roquette.mug.biscuolo.net (roquette [10.38.2.14]) by bourrache.mug.xelera.it (Postfix) with SMTP id 0A0D41023D36; Wed, 23 Jun 2021 08:50:32 +0200 (CEST) Received: (nullmailer pid 30208 invoked by uid 1000); Wed, 23 Jun 2021 06:50:32 -0000 From: Giovanni Biscuolo To: Julien Lepiller , guix-devel@gnu.org, Tobias Geerinckx-Rice Subject: Re: error building new package (In procedure chdir: Not a directory) In-Reply-To: Organization: Xelera.eu References: <87tulwldmi.fsf@xelera.eu> <87h7hwpkc7.fsf@nckx> <87h7hpx65k.fsf@xelera.eu> <87czsdx3fi.fsf@xelera.eu> Date: Wed, 23 Jun 2021 08:50:32 +0200 Message-ID: <877dilvzuv.fsf@xelera.eu> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: pass client-ip=46.4.214.66; envelope-from=g@xelera.eu; helo=ns13.heimat.it X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1624431067; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=nM6VJYOdp07UISb16xDZeyQrIg5NCGysU9CS0OWMsMw=; b=HbH2ZPx5Ns2/rY1sak0nvLjiG3mDSnhygkoKYq/XeMwhoj2fvsBQ7+MK89wP087fWTXUlF PKSR3ARObus6LYizund6UZMgmFtM741dNxPlfhBFmfGWH5JCEWy6zS+6mYfvDnPPpg0cbS z4rdZ2CaHVr4+WJFi8uxq6g0kqBZlx2HHBnzPnuUSdJk0Z/Jey/brPHXqrroWiZG6loS09 xL6SXY3wXNBteh/34aVBh7FIWpTkLtoszZQQy1tifsmwII/mMpQmCipIZsxVkQi2jhXRxa 0tZz5TLDwqigLwm6UW1522ENLe7y6UsncqN44g10GiHwjxU4KzRmcsD6KTr2cQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624431067; a=rsa-sha256; cv=none; b=qe7knr+qbJTYkkHMnCr8IUvnuh9ixqSDaxCAFfBOyiKCHJhCyCJcuZMu4ZX1iB1KX+kWdF vloLuzIpSttX9EGOWGHxzOmhIRk874K4CHjZX/MpYE3AnZ0Zv2+fPVKsplNF0QFU+S9WY/ uqdoDoLYXnZitqPjDJIR99VUFaSCqCuxQAnBmzmdMjXSsDFvAX3I2kLcVjRYCQulSH84Y+ Q0k+pXPm0Xb09DWkWny7Y2E4rw+yQCgcawLVbsWeK5eY6QIgcNu8evwKh3+MEz7qWvtl3r kccVqZSWoaQ+sgco5UR2y4QdWtxOJ0AOFi1TyQhr1j9MTFj+8O/Yj66VUqu7EA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Spam-Score: -4.52 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: 9978C14C61 X-Spam-Score: -4.52 X-Migadu-Scanner: scn1.migadu.com X-TUID: ft1/17FiWtPb --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 =C3= =A9crit : [...] >>>> Your source tarball contains multiple gzipped files, one of which=20 >>>> itself a tarball: >>>> >>>>> metadata.gz >>>>> data.tar.gz >>>>> checksums.yaml.gz >>>>> source is under 'checksums.yaml.gz' >>>>> Backtrace: >>>>> 2 (primitive-load=20 >>>>> "/gnu/store/0d1j4s7c1h8w6z700sxb88jqmjp?") >>>>> In ice-9/eval.scm: >>>>> 619:8 1 (_ #(#=20 >>>>> "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 https://rubygems.org/downloads/taskjuggler-3.7.1.gem 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 [...] =2D-=20 Giovanni Biscuolo Xelera IT Infrastructures --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJABAEBCgAqFiEERcxjuFJYydVfNLI5030Op87MORIFAmDS2bgMHGdAeGVsZXJh LmV1AAoJENN9DqfOzDkS5v4P/j60nIBaX6TnhuPdnDZyY1OgmgMwARoXJoUtf15Y SUD/eFaoSf2RixtMiAoawqAEqLHLu1uWXo3l8y8wF/AvqA2isbxG5OBMjAelLrxZ baFkXtAijbThFFFVB41m3Xnj2WEqCtO+7jzIAVKKnxAJaPp9DWySXT2eYwT8gwmb smd1ZR2cbnqH074ltsyA4o2wqoq3NFkrn4nFF49TPKE0Aq2WP91KCxCesagcs+nT grcnnI50J4fLjA8UpLyZydo5+r/0LHZkhGedTeljdjs/LfXGhLuRdvL4hzI1kewc Dgo9xJmmz5C9WPt6j5k+QqueSjt83WY/u3rxIE82bpxgtwR356k2OG1aK1nalEes 9bZ2Vcu0EhNyEX8ibCFsy940K2U5oDGQJe43F88vajsYa8y/V9mcqbE+pbrXG3Va P6a4zXLhE7ycE5K9eQ8f2+Eqyaix7Eb43FaMajQitn66TEivqbXEXexKXfY5Ztie HOP2/KCBzug0XcJLGEYyEetV/9Vkjm4xonHq5KZCOlbAeN1XrATUIxD86mfLZyKm lI/HMEl8sELlDFtc6ihj9Xn19AiO8oXD4hEfM4eQMZM149qTH4ucz66k1hzwskgF AJhTpRirJYltLlwbNmLe4xXW2du+HylbFP/KcShHjzCCmTN0rwj4IPcwm9QFAJwA 13n4 =Djcp -----END PGP SIGNATURE----- --=-=-=--