From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id 0E7dMO77mWOJIAEAbAwnHQ (envelope-from ) for ; Wed, 14 Dec 2022 17:38:06 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id EA/YMO77mWPoVAAA9RJhRA (envelope-from ) for ; Wed, 14 Dec 2022 17:38:06 +0100 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 1F4402B0F4 for ; Wed, 14 Dec 2022 17:38:06 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1p5UlT-0001lc-6F; Wed, 14 Dec 2022 11:37:51 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5UlN-0001iL-Ia for help-guix@gnu.org; Wed, 14 Dec 2022 11:37:46 -0500 Received: from smtp-out-2.univ-rouen.fr ([193.52.152.97] helo=mailhoc.univ-rouen.fr) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1p5UlH-0006OD-Qq for help-guix@gnu.org; Wed, 14 Dec 2022 11:37:45 -0500 Received: from localhost (ired-20-4cab-1657.univ-rouen.fr [10.196.65.88]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mailhoc.univ-rouen.fr (Postfix) with ESMTPSA id 80F1722A4; Wed, 14 Dec 2022 17:37:33 +0100 (CET) From: =?utf-8?Q?S=C3=A9bastien?= Rey-Coyrehourcq To: Wojtek Kosior Cc: zimoun , help-guix@gnu.org Subject: Re: Help packaging R Quarto Cli Date: Wed, 14 Dec 2022 17:16:45 +0100 References: <20221024204024.2c580b81@koszkonutek-tmp.pl.eu.org> <86czag2p1g.fsf@gmail.com> <20221025131709.36ac4915@koszkonutek-tmp.pl.eu.org> <87a65hyc78.fsf@univ-rouen.fr> <20221027115445.0655c84d@koszkonutek-tmp.pl.eu.org> <87a65fud5k.fsf@univ-rouen.fr> <20221028221738.3bf01294@koszkonutek-tmp.pl.eu.org> <878rkztyny.fsf@univ-rouen.fr> <20221103201915.7f6f1679@koszkonutek-tmp.pl.eu.org> <87leodw46k.fsf@univ-rouen.fr> <3f69844a-51b8-78c8-8c13-e1b8bd25ca21@univ-rouen.fr> <20221116215712.7825e8c0@koszkonutek-tmp.pl.eu.org> <87cz9b56l6.fsf@univ-rouen.fr> <87edt22qua.fsf@univ-rouen.fr> <20221214164618.4df484ae.koszko@koszko.org> User-agent: mu4e 1.8.11; emacs 28.2 In-reply-to: <20221214164618.4df484ae.koszko@koszko.org> Message-ID: <87cz8m2b78.fsf@univ-rouen.fr> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="===-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Spamd-Bar: ------ X-Rspamd-Server: mailhoc X-Rspamd-Queue-Id: 80F1722A4 X-Spamd-Result: default: False [-6.20 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain]; REPLY(-4.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; NEURAL_HAM(-0.00)[-1.000,0]; SIGNED_PGP(-2.00)[]; RCVD_COUNT_ZERO(0.00)[0]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:+,3:+,4:~]; FREEMAIL_CC(0.00)[gmail.com]; MID_RHS_MATCH_FROM(0.00)[] Received-SPF: pass client-ip=193.52.152.97; envelope-from=sebastien.rey-coyrehourcq@univ-rouen.fr; helo=mailhoc.univ-rouen.fr X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: help-guix-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1671035886; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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=ciJmUaYfRfaSJNSdhlhBVJudRc6tDImNWZzmwAzie1s=; b=hXry/Gqbf7mG9+hM25FaqfyZgaXWyIM3nlKw8s4ojaFyxJPwW2ITrsSHptOdl65ipHvOwl 3zxDOLcaYPXBZRgHiKyFO49upVbF8wZAYh1rX32ui/RtmD6N+Uf+KXgphMmgZmcbRCUbU5 XBIiCAMJdtPKZerGLn+k93cEEXMN28ByJlM/WD+owpqNBrw8KhZYHDAXJNuYSonrTBmJ6A c0nQK1BJvAm0v09IZ3tpcT0FZtXVQPpd8EOfYevxVfYDSRRtPS6eBrMQDEeJptCk9b9tsD 5HgaEVJjvIMiJKMbh2bzTOU3ggn8g1WsAavM5wni+7zTrhxJAk7EgWPYne/urA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1671035886; a=rsa-sha256; cv=none; b=P0x9srHabxJH1wVhCMx9Y9XDQjkMApFW+LHEXqoxPMxm9vwDLoK+kKiLBOSLAgK2L47OhN 7nJmBPTAjeev7sqC36v7TPbvL/SfEv99h6bDgP9P24e4IBfaHTh4dLEzB61kNcLKtEJI5V kgS9sX1Lys9kwtK9lAZ9R1fyo7okJnSjhMywMYgUmmpje8Q6AiwdhZRF+0cKZIqNnzpotH jKwg3hs0s8slbh/flrMyi9rOoEfJEKk5g3wLyaeQhCXFKXL+cvazyJ8/PCT1K5iV03l5L5 eW7GwjUZ6ZnC43npbejkIqtXBF4eqYqly2LOZeoh+CqqcAzZv5T87XSBxiWogQ== X-Migadu-Spam-Score: -5.07 X-Spam-Score: -5.07 X-Migadu-Queue-Id: 1F4402B0F4 X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org"; dmarc=none X-TUID: /mNRKAbXS5T9 --===-=-= Content-Type: multipart/mixed; boundary="=-=-=" --=-=-= Content-Type: multipart/mixed; boundary="==-=-=" --==-=-= Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Wojtek Kosior writes: > Hello again > > I am impressed with your determination :) > thx :D > I see most packages in Guix that use `(method git-fetch)` also use > `(file-name (git-file-name name version))` in `(origin)`. > > Note that this only affects the name under which the git checkout is > saved. Whether the source checkout directory under `/gnu/store` is > named `8479xfpn9hp2b3kc9d3596kpncan9d8w-rust-deno-test-util-0.1.0.tar.gz/` > or something else should not be relevant to the build. > Yes, you=E2=80=99re right i correct this thing, but this is weird in all ca= se, here i clone all deno repository (at tag v1.25.2), and this is renamed = as `deno-test-util-checkout-0-1-0' because i=E2=80=99m only interested by t= his folder I found only one crate that use this method `git-fetch' in the list : So i suppose this is possible to reuse as a dependency in another build=E2= =80=A6 This is an intuition but i think i have a problem of ordering in my way to = do things : When i read the `cargo-build-system' sources here ( ) i see that t= he build input wait for an /gnu/store link that contain a `.crate' or the e= quivalent as `tar.gz' Or in my case, the /gnu/store link called by cargo contain only sources, be= cause the `deno-util' need to be built before creating .crate into the gnu/= store. Perhaps i could cheating the system by providing myself a `gnu/store= /xxxx.tar.gz' that contain this sources. Inside my `rust-deno-test-util-1-0-0.scm` file i could `(invoke tar ...)' = command to generate a tar.gz at the root of the this folder. Do you think t= hat could work ? Hum, not sure =E2=80=A6 the real problem is the fact that guix don=E2=80=99= t build the derivation completely? (creating and storing a .crate for deno-= test-util-0-1-0 into /gnu/store) when i run build of main rust-deno.scm =E2= =80=A6 only the source are present, and not the package resulting from the = build of this derivation. Another way is to first compile deno-test-util.scm, that install the corres= ponding crate into /gnu/store, and after that i give this local path to the= inputs of my main rust-deno.scm . But i don=E2=80=99t know how to give thi= s path to my cargo build system input . How do you reference/call/reuse a p= ackage that already exist in your /gnu/store in a .scm file ? > Although I doubt I will be able to help with no knowledge of Rust, I=E2= =80=99ll > at least suggest that you attach the full rust-deno build logs here. > This will perhaps at least enable others to help (the time needed to > build it all does scare away!). > > Btw, it seems awkward to be required to provide the test_util package > as a separate crate. I=E2=80=99d rather imagine Deno devs somehow using t= he > test_util sources already in the deno tree. > Yeah, but now it=E2=80=99s packaged and the package compile, i try one more= time like that :D > Have you tried fiddling around inside the build container? If not, you > may want to look at this manual node[1]. Perhaps after running some of > the build commands manually you=E2=80=99ll get better ideas? Thanks i will look on that > > At the end, in the worst case, you could resort to disabling tests for > the package. Nobody likes this =E2=80=9Csolution=E2=80=9D but sometimes i= t is the only > way to go =C2=AF\_(=E3=83=84)_/=C2=AF Ahah right, i probably do that if i want to finish in 2022 :D Best, S=C3=A9bastien Rey-Coyrehourcq > > Good luck, > Wojtek > > [1] > > =E2=80=93 (sig_start) > website: > PGP: > fingerprint: E972 7060 E3C5 637C 8A4F 4B42 4BC5 221C 5A79 FD1A > > Meet Krak=C3=B3w saints! #24: blessed Ludwik Pius Bartosik > Poznaj =C5=9Bwi=C4=99tych krakowskich! #24: b=C5=82ogos=C5=82awiony Ludw= ik Pius Bartosik > > =E2=80=93 (sig_end) > > > On Wed, 14 Dec 2022 11:30:16 +0100 > S=C3=A9bastien Rey-Coyrehourcq = wrote: > >> Hi, >> >> After two weeks of suffering and pain with this complex rust packaging, = and >> thanks to people on the libera #guix chat, my =E2=80=9Crust packaging ad= venture=E2=80=9D is >> near ending=E2=80=A6 at least with deno, i see quarto after that=E2=80=A6 >> >> Everything compile by parts, and i need a final help to merge things. >> >> I only have a problem at `testing-phase=E2=80=99, with a local rust pack= age defined on Deno `/test_util=E2=80=99 folder. This package is not publis= hed at all on crates.io and it=E2=80=99s needed at test-phase=E2=80=A6 >> >> This nested crate package is not detected/compiled by actual `cargo-buil= d-system=E2=80=99, so i decide to package it myself , as `rust-deno-test-ut= il-0.1.0=E2=80=99 >> >> I tested and this crate compile well, with two derivation : >> >> =E2=80=A2 `/gnu/store/ma04jfp0f33kf38cdn66qai60nhqxx7d-rust-deno-test-ut= il-0.1.0/=E2=80=99 >> =E2=80=A2 `/gnu/store/zp5flzykz7y5n35kqrlryqkynvrvcw3z-rust-deno-test-ut= il-0.1.0.drv=E2=80=99 >> >> `/gnu/store/ma04jfp0f33kf38cdn66qai60nhqxx7d-rust-deno-test-util-0.1.0/s= hare/cargo/registry/=E2=80=99 contain the test_util-0.1.0.crate >> >> So =E2=80=A6 i added this *.scm* to my *deno/deno-dep* list of package i= n the *rust-channel* needed by deno to compile : >> >> >> *My problem is simple?* i added this crate as a dependency of my main `r= ust-deno.scm=E2=80=99 : >> =E2=80=A2 `#:use-module (deno-dep rust-deno-test-util-0-1-0)=E2=80=99 >> =E2=80=A2 `#:cargo-development-inputs `(((=E2=80=9Crust-deno-test-util= =E2=80=9D, rust-deno-test-util-0.1.0) =E2=80=A6 )=E2=80=99 >> >> BUT BUT BUT =E2=80=A6 rust-deno-test-util is not found and not added to = `/guix-vendor=E2=80=99 >> during deno crate retrieval, so there is a problem somewhere during pack= aging >> retrieval from local `/gnu/store=E2=80=99. I found in the log that >> >> `/gnu/store/8479xfpn9hp2b3kc9d3596kpncan9d8w-rust-deno-test-util-0.1.0.t= ar.gz/=E2=80=99 >> contain the sources and not a `tar.gz=E2=80=99 like others crates. I sup= pose this is >> part of the problem, but i don=E2=80=99t know how to solve that. >> >> See by yourself using : >> >> guix time-machine -C channels.scm =E2=80=93 build -f rust-deno.scm >> >> that return : >> >> error: no matching package named `deno_test_util` found >> >> **Info to reproduce** >> >> =E2=80=A2 All these package needed by Deno are defined into my-rust chan= nel here : >> =E2=80=A2 The building and channel scm needed to build deno are here : <= https://git.sr.ht/~reyman/build-deno-guix> >> =E2=80=A2 /Final Warning :/ Deno build (outside rust build) take at leas= t 2 hours on my machine, rusty-v8 is huge and take itself ~30 to 45 minutes. >> >> Any *final* help appreciated ! >> >> Best , >> S=C3=A9bastien Rey-Coyrehourcq >> >> >> S=C3=A9bastien Rey-Coyrehourcq = writes: >> >> > >> > Hi, >> > >> > Thanks a lot, that helps me to make one more step :) >> > >> > I set : >> > >> > =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 >> > =E2=94=82 (arguments >> > =E2=94=82 `(#:phases >> > =E2=94=82 (modify-phases %standard-phases >> > =E2=94=82 (add-before =E2=80=99configure =E2=80=99set-source >> > =E2=94=82 (lambda _ >> > =E2=94=82 (setenv =E2=80=9CV8_FROM_SOURCE=E2=80=9D =E2=80= =9C1=E2=80=9D) >> > =E2=94=82 (setenv =E2=80=9CRUST_BACKTRACE=E2=80=9D =E2=80= =9C1=E2=80=9D) >> > =E2=94=82 (setenv =E2=80=9CCLANG_BASE_PATH=E2=80=9D (gete= nv =E2=80=9CCMAKE_PREFIX_PATH=E2=80=9D)) >> > =E2=94=82 #t))) >> > =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 >> > >> > I also try C_INCLUDE_PATH >> > >> > and native input : >> > >> > =E2=94=8C=E2=94=80=E2=94=80=E2=94=80=E2=94=80 >> > =E2=94=82 (native-inputs (list ninja gn clang-toolchain ccache clang)) >> > =E2=94=94=E2=94=80=E2=94=80=E2=94=80=E2=94=80 >> > >> > I have now another problem during compilation of v8, i don=E2=80=99t u= nderstand why =E2=80=9Cclang=E2=80=9D path is not well recognized by the bu= ildscript, test is defined here : >> > >> > >> > >> > The backtrace : >> > >> > error: failed to run custom build command for `v8 v0.49.0` >> > >> > Caused by: >> > process didn=E2=80=99t exit successfully: `/tmp/guix-build-rust-deno= -1.25.2.drv-0/deno-1.25.2/target/release/build/v8-bbb68ec56db1d802/build-sc= ript-build` (exit status: 101) >> > =E2=80=94 stdout >> > cargo:rerun-if-changed=3D.gn >> > cargo:rerun-if-changed=3DBUILD.gn >> > cargo:rerun-if-changed=3Dsrc/binding.cc >> > cargo:rerun-if-env-changed=3DCCACHE >> > cargo:rerun-if-env-changed=3DCLANG_BASE_PATH >> > cargo:rerun-if-env-changed=3DDENO_TRYBUILD >> > cargo:rerun-if-env-changed=3DDOCS_RS >> > cargo:rerun-if-env-changed=3DGN >> > cargo:rerun-if-env-changed=3DGN_ARGS >> > cargo:rerun-if-env-changed=3DHOST >> > cargo:rerun-if-env-changed=3DNINJA >> > cargo:rerun-if-env-changed=3DOUT_DIR >> > cargo:rerun-if-env-changed=3DRUSTY_V8_ARCHIVE >> > cargo:rerun-if-env-changed=3DRUSTY_V8_MIRROR >> > cargo:rerun-if-env-changed=3DSCCACHE >> > cargo:rerun-if-env-changed=3DV8_FORCE_DEBUG >> > cargo:rerun-if-env-changed=3DV8_FROM_SOURCE >> > cargo:rustc-link-lib=3Dstatic=3Drusty_v8 >> > using Chromiums clang >> > clang_base_path /tmp/guix-build-rust-deno-1.25.2.drv-0/deno-1.25.2/t= arget/release/clang >> > >> > =E2=80=94 stderr >> > thread =E2=80=99main=E2=80=99 panicked at =E2=80=99called `Result::unw= rap()` on an `Err` value: Os { code: 2, kind: NotFound, message: =E2=80=9CN= o such file or directory=E2=80=9D }=E2=80=99, /tmp/guix-build-rust-deno-1.2= 5.2.drv-0/deno-1.25.2/guix-vendor/rust-v8-0.49.0.tar.gz/build.rs:537:6 >> > stack backtrace: >> > 0: rust_begin_unwind >> > 1: core::panicking::panic_fmt >> > 2: core::result::unwrap_failed >> > 3: core::result::Result::unwrap >> > 4: build_script_build::clang_download >> > 5: build_script_build::build_v8 >> > 6: build_script_build::main >> > 7: core::ops::function::FnOnce::call_once >> > note: Some details are omitted, run with `RUST_BACKTRACE=3Dfull` for a= verbose backtrace. >> > >> > Best, >> > >> > >> > Wojtek Kosior writes: >> > >> >>> Hi, >> >>> >> >>> You=E2=80=99re both right, seems there is a flag to skip binary down= loading and >> >>> compile the V8 lib. >> >>> >> >>> [=E2=80=A6] >> >> >> >> Good to see you found it :) >> >> >> >>> So, my packaging friend :), what=E2=80=99s the best way to push an = =E2=80=9Cexport >> >>> V8_FROM_SOURCE=3D1=E2=80=9D or something like that into my rust-deno= .scm ? >> >>> >> >>> Best, >> >>> >> >>> SR >> >> >> >> When I first read your question, I did not know the exact function. B= ut >> >> I knew where to look. So I thought I=E2=80=99d better share my way of= learning >> >> rather than just the solution ;) >> >> >> >> I started with >> >> >> >> grep -R =E2=80=99export=E2=80=99 ~/.config/guix/current/share/gui= le/site/3.0/gnu/packages/ | less >> >> >> >> That showed a lot of results. I noticed a line like this >> >> >> >>> /home/urz/.config/guix/current/share/guile/site/3.0/gnu/packages/eng= ineering.scm: (setenv =E2=80=9CHOME=E2=80=9D (getcwd)) ;; cmake= needs this to export modules >> >> >> >> Thought it might be the thing I was looking for, so I did >> >> >> >> less /home/urz/.config/guix/current/share/guile/site/3.0/gnu/pack= ages/engineering.scm >> >> >> >> and navigated to this line. This seems to be it. The (setenv) functio= n. >> >> Can be used as from a modified packaging phase function (as you can s= ee >> >> in engineering.scm). >> >> >> >> Hope I helped. Good luck once again! >> >> >> >> W. >> >> >> >> P.S. Make sure you know some =E2=80=99less=E2=80=99 shortcuts if you= =E2=80=99re going to do >> >> things this way. It cad speed things up ^^ >> >> >> >> =E2=80=93 (sig_start) >> >> website: >> >> PGP: >> >> fingerprint: E972 7060 E3C5 637C 8A4F 4B42 4BC5 221C 5A79 FD1A >> >> >> >> Meet Krak=C3=B3w saints! #12: saint Jadwiga Andegawe=C5=84s= ka >> >> Poznaj =C5=9Bwi=C4=99tych krakowskich! #12: =C5=9Bwi=C4=99ta Jadwiga= Andegawe=C5=84ska >> >> >> >> =E2=80=93 (sig_end) >> >> >> >> >> >> On Wed, 16 Nov 2022 21:38:47 +0100 >> >> Sebastien Rey-Coyrehourcq w= rote: >> >> >> >>> Hi, >> >>> >> >>> You=E2=80=99re both right, seems there is a flag to skip binary down= loading and >> >>> compile the V8 lib. >> >>> >> >>> From the githubpage () : =E2= =80=9CV8 is >> >>> very large and takes a long time to compile. Many users will prefer = to >> >>> use a prebuilt version of V8. We publish static libs for every versi= on >> >>> of rusty v8 on Github . >> >>> >> >>> Binaries builds are turned on by default: |cargo build| will initiat= e a >> >>> download from github to get the static lib. To disable this build us= ing >> >>> the |V8_FROM_SOURCE| environmental variable. >> >>> >> >>> When making changes to rusty_v8 itself, it should be tested by build >> >>> from source. The CI always builds from source=E2=80=9D >> >>> >> >>> So, my packaging friend :), what=E2=80=99s the best way to push an = =E2=80=9Cexport >> >>> V8_FROM_SOURCE=3D1=E2=80=9D or something like that into my rust-deno= .scm ? >> >>> >> >>> Best, >> >>> >> >>> SR >> >>> >> >>> Le 15/11/2022 =C3=A0 08:58, Efraim Flashner a =C3=A9crit=C2=A0: >> >>> > On Mon, Nov 14, 2022 at 11:30:47PM +0100, S=C3=A9bastien Rey-Coyre= hourcq wrote: >> >>> >> Hi, >> >>> >> >> >>> >> After some day of packaging rust crate, i progress and deno start= to >> >>> >> compile =E2=80=A6 but after 1min i have this error when cargo sta= rt compiling >> >>> >> *rust-v8-0.49* . Any rust + guix help appreciated. >> >>> >> >> >>> >> I push the channel to reproduce the problem here : >> >>> >> >> >>> >> The rust scm repo : git.sr.ht:~reyman/rust-channel >> >>> >> Channel info to put into *channels.scm* : >> >>> >> The *rust-deno.scm* file to build : >> >>> >> The command : guix time-machine -C channels.scm =E2=80=93 build -= f rust-deno.scm >> >>> >> >> >>> >> And the rust error : >> >>> >> >> >>> >> =E2=80=94 >> >>> >> >> >>> >> error: failed to run custom build command for `v8 v0.49.0` >> >>> >> >> >>> >> Caused by: >> >>> >> process didn=E2=80=99t exit successfully: `/tmp/guix-build-rus= t-deno-1.25.2.drv-0/deno-1.25.2/target/release/build/v8-bbb68ec56db1d802/bu= ild-script-build` (exit status: 101) >> >>> >> =E2=80=94 stdout >> >>> >> cargo:rerun-if-changed=3D.gn >> >>> >> cargo:rerun-if-changed=3DBUILD.gn >> >>> >> cargo:rerun-if-changed=3Dsrc/binding.cc >> >>> >> cargo:rerun-if-env-changed=3DCCACHE >> >>> >> cargo:rerun-if-env-changed=3DCLANG_BASE_PATH >> >>> >> cargo:rerun-if-env-changed=3DDENO_TRYBUILD >> >>> >> cargo:rerun-if-env-changed=3DDOCS_RS >> >>> >> cargo:rerun-if-env-changed=3DGN >> >>> >> cargo:rerun-if-env-changed=3DGN_ARGS >> >>> >> cargo:rerun-if-env-changed=3DHOST >> >>> >> cargo:rerun-if-env-changed=3DNINJA >> >>> >> cargo:rerun-if-env-changed=3DOUT_DIR >> >>> >> cargo:rerun-if-env-changed=3DRUSTY_V8_ARCHIVE >> >>> >> cargo:rerun-if-env-changed=3DRUSTY_V8_MIRROR >> >>> >> cargo:rerun-if-env-changed=3DSCCACHE >> >>> >> cargo:rerun-if-env-changed=3DV8_FORCE_DEBUG >> >>> >> cargo:rerun-if-env-changed=3DV8_FROM_SOURCE >> >>> >> cargo:rustc-link-lib=3Dstatic=3Drusty_v8 >> >>> >> download lockfile: =E2=80=9C/tmp/guix-build-rust-deno-1.25.2.d= rv-0/deno-1.25.2/target/release/build/lib_download.fslock=E2=80=9D >> >>> >> static lib URL: >> >>> >> cargo:rustc-link-search=3D/tmp/guix-build-rust-deno-1.25.2.drv= -0/deno-1.25.2/target/release/gn_out/obj >> >>> >> Downloading >> >>> >> Python downloader failed, trying with curl. >> >>> > Looks like you need to patch rust-v8-0.49 to not try to download >> >>> > librusty_v8_release=E2=80=A6 but instead you=E2=80=99ll have to bu= ild it from source >> >>> > and let it know where to find it. >> >>> > >> >>> >> =E2=80=94 stderr >> >>> >> thread =E2=80=99main=E2=80=99 panicked at =E2=80=99called `Res= ult::unwrap()` on an `Err` value: >> >>> >> Os { code: 2, kind: NotFound, message: =E2=80=9CNo such file or d= irectory=E2=80=9D }=E2=80=99, >> >>> >> /tmp/guix-build-rust-deno-1.25.2.drv-0/deno-1.25.2/guix-vendor/ru= st-v8-0.49.0.tar.gz/build.rs:405:10 >> >>> >> note: run with `RUST_BACKTRACE=3D1` environment variable to di= splay a backtrace >> >>> >> warning: build failed, waiting for other jobs to finish=E2=80=A6 >> >>> >> error: build failed >> >>> >> error: in phase =E2=80=99build=E2=80=99: uncaught exception: >> >>> >> %exception #<&invoke-error program: =E2=80=9Ccargo=E2=80=9D argum= ents: (=E2=80=9Cbuild=E2=80=9D =E2=80=9C=E2=80=93release=E2=80=9D) exit-sta= tus: 101 term-signal: #f stop-signal: #f> >> >>> >> phase `build=E2=80=99 failed after 105.5 seconds >> >>> >> command =E2=80=9Ccargo=E2=80=9D =E2=80=9Cbuild=E2=80=9D =E2=80=9C= =E2=80=93release=E2=80=9D failed with status 101 >> >>> >> builder for `/gnu/store/g4m5c558l1q4g1kggzg2v9vkw352nnaj-rust-den= o-1.25.2.drv=E2=80=99 failed with exit code 1 >> >>> >> la compilation de /gnu/store/g4m5c558l1q4g1kggzg2v9vkw352nnaj-rus= t-deno-1.25.2.drv a =C3=A9chou=C3=A9 >> >>> >> Vous trouverez le journal de compilation dans =C2=AB /var/log/gui= x/drvs/g4/m5c558l1q4g1kggzg2v9vkw352nnaj-rust-deno-1.25.2.drv.gz =C2=BB. >> >>> >> guix build: erreur : build of `/gnu/store/g4m5c558l1q4g1kggzg2v9v= kw352nnaj-rust-deno-1.25.2.drv=E2=80=99 failed >> >>> > >> >> >> >> >> > > > --==-=-=-- --=-=-=-- --===-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJcBAEBCABGFiEEQdBRWS1ZqcB6tN8l3FXLa3BDQW4FAmOZ+8soHHNlYmFzdGll bi5yZXktY295cmVob3VyY3FAdW5pdi1yb3Vlbi5mcgAKCRDcVctrcENBbokfD/wL THn6p2CgDYadMZYaBOXyPGos1O0Uv2CroE10IU2SlaujvTHEK4Gy98xorbCktENW I3yjCtMKiLmDyWqr0AOk2dt/XNDqTeXPqw4aF2sh21AgDq7kPaiRedLdcIqlWBVD +AK3vthzCQnR+ofOx82+RLek5SvLW3Lot4+vq4UqM9NfOQj0VcElsdDIR846PZ3f a9gI5PuqnANXZVCCCVHs3a6xWZSO71H3rt0aohNRgAbRqDazyhujnN3HnvIsBAOv bJMOJX6lehhVNIuDS7W+ZJ2/yPs5LYVcygwBJqob3tgqdJBtkHiI2AXIHNGub150 odhsRjM20EOW1cHN6qeeN5NZ+1dh5NJPl4DMlAYZbayD4ymDDUYCvmrcIAUa57Lv /n9GyMeFAl71z3Jph3Ll0TAUXOq+qxEqcc944PcIU/Jutv3gnOdqe8Cr6BXp/gvm ehsNBUHKfm/6Snfnq/Peg5iggXQIYswAvzCUwCmmlODFHnMI0XDHAVG84SgdRcxu 06XEureUKYw775/hYgTG0PruTXaSOURMvebNlgSW938vcdzub2hQpSO8H0wMSQH1 MKE5P8myYddXvaEpk6yLhQj7ZZ7P8VXeN+y5HTZv9Krmg0vJCZAjEd2snCH9G25V BUIZkx9PymoV1Ka40GThG5bk8X07H3dWRHgu5LGOXQ== =arJJ -----END PGP SIGNATURE----- --===-=-=--