From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 4OO/K+8i0mB0JQEAgWs5BA (envelope-from ) for ; Tue, 22 Jun 2021 19:50:39 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id 0HRmJ+8i0mCXJwAAbx9fmQ (envelope-from ) for ; Tue, 22 Jun 2021 17:50:39 +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 35A3E230A1 for ; Tue, 22 Jun 2021 19:50:39 +0200 (CEST) Received: from localhost ([::1]:38444 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lvkXl-0003CA-QH for larch@yhetil.org; Tue, 22 Jun 2021 13:50:37 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:32968) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvkXb-0003Bw-2P for guix-devel@gnu.org; Tue, 22 Jun 2021 13:50:27 -0400 Received: from lepiller.eu ([2a00:5884:8208::1]:34702) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lvkXX-0000BW-1U for guix-devel@gnu.org; Tue, 22 Jun 2021 13:50:26 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 3917d25d; Tue, 22 Jun 2021 17:50:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date :in-reply-to:references:mime-version:content-type :content-transfer-encoding:subject:to:from:message-id; s=dkim; bh=LHmnPije3tFNzRH5bg6tLjRM1QZs08EYPZp4zjU1L5k=; b=CWW0h196hdKF 8/aO2o764fwMTpeU2vAAzG6q2rZ2BsPcMGR0uSvdhElIzFQmy1khS8kBYaKo4xJQ Z5ziMsTsFtbdJu5I1ANBspSaGQrwUOcPcs3MiF4+jKDXu8ocgtk/wsraRPwkdNdn wXsoK10+AMAWM/+lKrqOZxzNIKEx+3vU/K9LRUJACcsiU8ZYEJAyk4uCdURD9iMH 3WMgSlwnyE/Au+0zw8HerGFiZPalD0ocVMQhbAO1H6UXfM79ohoidel4ncP6Hn73 LZllo0FfeS9LWY+1d3p0YtQNfoPDidTgrssZFAeVPr6BSOdSxu+VN/0nMpQwx8kq Z2+m/qvPAw== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id 85c0cd17 (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256:NO); Tue, 22 Jun 2021 17:50:14 +0000 (UTC) Date: Tue, 22 Jun 2021 13:50:00 -0400 User-Agent: K-9 Mail for Android In-Reply-To: <87czsdx3fi.fsf@xelera.eu> References: <87tulwldmi.fsf@xelera.eu> <87h7hwpkc7.fsf@nckx> <87h7hpx65k.fsf@xelera.eu> <87czsdx3fi.fsf@xelera.eu> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----WYP39WWILAG7HNOBQCUM7ATU9N9MJK" Content-Transfer-Encoding: 7bit Subject: Re: error building new package (In procedure chdir: Not a directory) To: guix-devel@gnu.org, Giovanni Biscuolo , Tobias Geerinckx-Rice From: Julien Lepiller Message-ID: Received-SPF: pass client-ip=2a00:5884:8208::1; envelope-from=julien@lepiller.eu; helo=lepiller.eu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_HELO_PASS=-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=1624384239; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=MpuSjzyoFwyoOx5/CjhlMGORjLpVDB1bW0VnkA3G9yA=; b=FEw+wYyjGUDZfUzPXJJ0NuVma4SHTTWrVKr1+3xc67oM2UMn0zsV1FY4/RFE7d2APlc91A 0H+87U9l/1z2vHqHztPWdkdoB2GKczYVW+F5hdQL9c4FO8VOl/55QGPjlFlRLV6TQYB4Eq rC5g87f06gRjNrKWiOSeauqC/dyKPIAn9xBx4wVLZ028w5TPH/baxkI0BXCrliB25aL/HB AcAdOtUx2Szd1r0hSFG0lCWDWXGPzwr9pTExxjHZTN01XhIDUmT06OfyuYLP5daN0xYXcS HieD5J221ynm0TtrPu+nrU4++9vpIk9HUzwBKGBrYvn/pLrcDJk1SMmaikEjqQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1624384239; a=rsa-sha256; cv=none; b=WalCS9uAIqQO/a7AqlHASV10ym2pAig3ifxHoBNo0B43aNiuZTImn14rfL8TPg9/qcztY7 DxyXQ/sGlqqXfX1t4MFmO1iBWoFxCA8ZpHU5fArBeaSH/zpT+0Aj9gUbbHR3EjDQ0PPd16 u5cwOC1wP4dUZg2noodVITJKtA5DJPeoDrcSfShE2Ai5xFQa+75WMxbZvLv4rKBqOQduhk myIBYcdgGTsdpr+IKhsBCT+8hxRD9nCUEiXaaugwWfZRQcudYvHjh+g0OQ9cWOOf6Ynthl UK31ODOEAFofgUFJ4MVEaZ/RsQv4GHsi1l4ynifzPG7tsiKt13Zr8IIHRvCFXA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=CWW0h196; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=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: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=lepiller.eu header.s=dkim header.b=CWW0h196; dmarc=fail reason="SPF not aligned (relaxed)" header.from=lepiller.eu (policy=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: 35A3E230A1 X-Spam-Score: -1.32 X-Migadu-Scanner: scn1.migadu.com X-TUID: gocPGu+7feaV ------WYP39WWILAG7HNOBQCUM7ATU9N9MJK Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable I think that's because the patch first extracts the archive, chdirs to the = first directory, and applies the patch=2E But if there's no directory, it c= an't chdir and fails=2E Note that (with-directory-excursion "=2E") does nothing :) Le 22 juin 2021 12:35:45 GMT-04:00, Giovanni Biscuolo a = =C3=A9crit : >Hello, > >some more info since I still do not understand where *=2Egz files are >coming from > >Giovanni Biscuolo writes: > >[=2E=2E=2E] > >>> Your source tarball contains multiple gzipped files, one of which=20 >>> itself a tarball: >>> >>>> metadata=2Egz >>>> data=2Etar=2Egz >>>> checksums=2Eyaml=2Egz >>>> source is under 'checksums=2Eyaml=2Egz' >>>> Backtrace: >>>> 2 (primitive-load=20 >>>> "/gnu/store/0d1j4s7c1h8w6z700sxb88jqmjp?") >>>> In ice-9/eval=2Escm: >>>> 619:8 1 (_ #(#=20 >>>> "checksum?")) >>>> In unknown file: >>>> 0 (chdir "checksums=2Eyaml=2Egz") >>>> >>>> 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=2E7=2E1=2Edrv-4, >and there are no *=2Egz files > >[=2E=2E=2E] > >>> so you need to use url-fetch/tarball and/or further unpack the >>> double-packed sources yourself in a custom phase=2E >> >> 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 "=2E" > (invoke "tar" "xf" "checksums=2Eyaml=2Egz")))) > >--8<---------------cut here---------------end--------------->8--- > >but it fails: > >--8<---------------cut here---------------start------------->8--- > >starting phase `unpack-bundled-sources' >tar: checksums=2Eyaml=2Egz: Cannot open: No such file or directory >tar: Error is not recoverable: exiting now >command "tar" "xf" "checksums=2Eyaml=2Egz" failed with status 2 > >--8<---------------cut here---------------end--------------->8--- > >I still don't understand why appying a patch (with "(patches >(search-patches=2E=2E=2E=2E))" in (source (origin=2E=2E=2E)) is failing= =2E > >Thanks! Giovanni > >--=20 >Giovanni Biscuolo > >Xelera IT Infrastructures ------WYP39WWILAG7HNOBQCUM7ATU9N9MJK Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: quoted-printable I think that's because the patch first extracts th= e archive, chdirs to the first directory, and applies the patch=2E But if t= here's no directory, it can't chdir and fails=2E

Note that (with-dir= ectory-excursion "=2E") does nothing :)

L= e 22 juin 2021 12:35:45 GMT-04:00, Giovanni Biscuolo <g@xelera=2Eeu> = a =C3=A9crit :
Hello,

some more info since I still do not un= derstand where *=2Egz files are
coming from

Giovanni Biscuolo <= ;g@xelera=2Eeu> writes:

[=2E=2E=2E]

Your source tarball contains multiple gzipped files, one of which
it= self a tarball:

me= tadata=2Egz
data=2Etar=2Egz
checksums=2Eyaml=2Egz
source is und= er 'checksums=2Eyaml=2Egz'
Backtrace:
2 (primitive-load =
"/gnu/store/0d1j4s7c1h8w6z700sxb88jqmjp?")
In ice-9/eva= l=2Escm:
619:8 1 (_ #(#<directory (guile-user) 7ffff3bb3f00>=
"checksum?"))
In unknown file:
0 (chdir "check= sums=2Eyaml=2Egz")

ERROR: In procedure chdir:
In procedure chdi= r: Not a directory

If I build= the package with "--keep-failed" I can inspect the kept
building dir /h= ome/guix-builder/guix-build-ruby-taskjuggler-3=2E7=2E1=2Edrv-4,
and ther= e are no *=2Egz files

[=2E=2E=2E]

so y= ou need to use url-fetch/tarball and/or further unpack the
double-packed= sources yourself in a custom phase=2E

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-sourc= es
(lambda _
(with-director= y-excursion "=2E"
(invoke "tar" "xf" "checksums= =2Eyaml=2Egz"))))

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

but it fails:

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

starting phase `unpac= k-bundled-sources'
tar: checksums=2Eyaml=2Egz: Cannot open: No such file= or directory
tar: Error is not recoverable: exiting now
command "tar= " "xf" "checksums=2Eyaml=2Egz" failed with status 2

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

I still don'= t understand why appying a patch (with "(patches
(search-patches=2E=2E= =2E=2E))" in (source (origin=2E=2E=2E)) is failing=2E

Thanks! Giovan= ni
------WYP39WWILAG7HNOBQCUM7ATU9N9MJK--