From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id GA1vL4bwgGOhpgAAbAwnHQ (envelope-from ) for ; Fri, 25 Nov 2022 17:42:46 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id WANhL4bwgGOJGQEA9RJhRA (envelope-from ) for ; Fri, 25 Nov 2022 17:42:46 +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 6179FC972 for ; Fri, 25 Nov 2022 17:42:46 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oybmV-0006sa-P2; Fri, 25 Nov 2022 11:42:27 -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 1oybmT-0006sC-F7 for help-guix@gnu.org; Fri, 25 Nov 2022 11:42:25 -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 1oybmQ-0002Vz-I1 for help-guix@gnu.org; Fri, 25 Nov 2022 11:42:25 -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 616361F1B; Fri, 25 Nov 2022 17:42:15 +0100 (CET) From: =?utf-8?Q?S=C3=A9bastien?= Rey-Coyrehourcq To: Wojtek Kosior Cc: zimoun , help-guix Subject: Re: Help packaging R Quarto Cli Date: Fri, 25 Nov 2022 17:38:04 +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> User-agent: mu4e 1.8.11; emacs 28.2 In-reply-to: <20221116215712.7825e8c0@koszkonutek-tmp.pl.eu.org> Message-ID: <87cz9b56l6.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: 616361F1B X-Spamd-Result: default: False [-2.20 / 15.00]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FREEMAIL_ENVRCPT(0.00)[gmail.com]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.20)[multipart/signed,multipart/mixed,text/plain]; TO_DN_ALL(0.00)[]; NEURAL_HAM(-0.00)[-0.993,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-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1669394566; 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=ulg9K3cVyCU63e/qeTqMXOZEnEcIVeOE3P3ib/xFCpE=; b=onIIQjf1fQPrlOx1bzchmsFL8VfjENu7gq+atIa8HqxlBZujCVsVZlb6fikFnQGi/EROrB 426FFhgY2jYBnQ1wrgiSxo6SFDztY4gx/NtRAx9u0mNoec2zfVlcMXceEucUn7ZZyU+oov JJssLvC4aQPeiHgvU1B4A1IUdh6aJbTtauvjjAotj7Z4zxsa/hyhrDTsxrDhwERqe5gvKF M+aaovBFSc8nUvdiiBUNAa3rgOYsljTEj35qc0Z/PsMk+U6j9OuU8/jhZ8WgoYWDzbNR1M KWQRH1bTl0XmxgI6yKrXgyaOA/xoJZLAhdVeUFpplQhiLKf7F/8VWzA1XZ41Mg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1669394566; a=rsa-sha256; cv=none; b=FvsTAtdoKDQy0esOkoWMQs7gXMt4Jhb1xkd1R4XMA4B8zrMbc7rG2lNsOncmKi4tH4DUMn LHS+/+Fgp4BwBqBcluD0iEiqIwL01NErhG+eJH8+fOEcemUJcTYao5d0yEKLR22qjSXebF g34BoYvEsiEeoUSU1nxjKv0I9qxAf0fZKuYb9wFHoFCToJfZA3g46NsC3Q7XI3NJMlKSlg i2TO3O1Rbi3I5eU28GK/QCrSg6ckI0vQgqzPNQtHhTQtI2zMwUUpii2TDrNXW2gMVojQsp EyFXMfrOeIkdypLod8cId0v4ZJr/qMWH7MJoBcw8J7YMkKAA12mUR/z0BmS2AQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=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" X-Migadu-Spam-Score: -5.37 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=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" X-Migadu-Queue-Id: 6179FC972 X-Spam-Score: -5.37 X-Migadu-Scanner: scn0.migadu.com X-TUID: brGgxdBNDSTF --===-=-= 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 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 'configure 'set-source =E2=94=82 (lambda _ =E2=94=82 (setenv "V8_FROM_SOURCE" "1") =E2=94=82 (setenv "RUST_BACKTRACE" "1") =E2=94=82 (setenv "CLANG_BASE_PATH" (getenv "CMAKE_PREFIX_PATH= ")) =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 unders= tand why =E2=80=9Cclang=E2=80=9D path is not well recognized by the buildsc= ript, 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-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 using Chromiums clang clang_base_path /tmp/guix-build-rust-deno-1.25.2.drv-0/deno-1.25.2/target= /release/clang =E2=80=94 stderr thread =E2=80=99main=E2=80=99 panicked at =E2=80=99called `Result::unwrap()= ` on an `Err` value: Os { code: 2, kind: NotFound, message: =E2=80=9CNo suc= h file or directory=E2=80=9D }=E2=80=99, /tmp/guix-build-rust-deno-1.25.2.d= rv-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 verb= ose backtrace. Best, Wojtek Kosior writes: >> Hi, >> >> You=E2=80=99re both right, seems there is a flag to skip binary download= ing 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. But > I knew where to look. So I thought I=E2=80=99d better share my way of lea= rning > rather than just the solution ;) > > I started with > > grep -R =E2=80=99export=E2=80=99 ~/.config/guix/current/share/guile/s= ite/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/enginee= ring.scm: (setenv =E2=80=9CHOME=E2=80=9D (getcwd)) ;; cmake nee= ds 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/packages= /engineering.scm > > and navigated to this line. This seems to be it. The (setenv) function. > Can be used as from a modified packaging phase function (as you can see > 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=84ska > Poznaj =C5=9Bwi=C4=99tych krakowskich! #12: =C5=9Bwi=C4=99ta Jadwiga And= egawe=C5=84ska > > =E2=80=93 (sig_end) > > > On Wed, 16 Nov 2022 21:38:47 +0100 > Sebastien Rey-Coyrehourcq wrote: > >> Hi, >> >> You=E2=80=99re both right, seems there is a flag to skip binary download= ing 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 version >> of rusty v8 on Github . >> >> Binaries builds are turned on by default: |cargo build| will initiate a >> download from github to get the static lib. To disable this build using >> 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-Coyrehour= cq 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 start compili= ng *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 ru= st-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-rust-de= no-1.25.2.drv-0/deno-1.25.2/target/release/build/v8-bbb68ec56db1d802/build-= 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.drv-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/d= eno-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 build = 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 `Result:= :unwrap()` on an `Err` value: >> >> Os { code: 2, kind: NotFound, message: =E2=80=9CNo such file or direc= tory=E2=80=9D }=E2=80=99, >> >> /tmp/guix-build-rust-deno-1.25.2.drv-0/deno-1.25.2/guix-vendor/rust-v= 8-0.49.0.tar.gz/build.rs:405:10 >> >> note: run with `RUST_BACKTRACE=3D1` environment variable to displa= y 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 arguments= : (=E2=80=9Cbuild=E2=80=9D =E2=80=9C=E2=80=93release=E2=80=9D) exit-status:= 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-deno-1.= 25.2.drv=E2=80=99 failed with exit code 1 >> >> la compilation de /gnu/store/g4m5c558l1q4g1kggzg2v9vkw352nnaj-rust-de= no-1.25.2.drv a =C3=A9chou=C3=A9 >> >> Vous trouverez le journal de compilation dans =C2=AB /var/log/guix/dr= vs/g4/m5c558l1q4g1kggzg2v9vkw352nnaj-rust-deno-1.25.2.drv.gz =C2=BB. >> >> guix build: erreur : build of `/gnu/store/g4m5c558l1q4g1kggzg2v9vkw35= 2nnaj-rust-deno-1.25.2.drv=E2=80=99 failed >> > > > --==-=-=-- --=-=-=-- --===-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQJcBAEBCABGFiEEQdBRWS1ZqcB6tN8l3FXLa3BDQW4FAmOA8GUoHHNlYmFzdGll bi5yZXktY295cmVob3VyY3FAdW5pdi1yb3Vlbi5mcgAKCRDcVctrcENBbuqeEAC0 rUKlJqqK7x+pI7TsGVH8pqGjRGUl4g9DYDUOMqqxiwf0J0PbQ+qXvfsGMQQj3S5D notCpd2B6igHH/rkmncaXz/S4TN8jwDMK3bxAQs1suBY+bJqbs/+p0MmoHB4zQyk s9btunp6jTo6I+UI4veyOmQbbPKPH/m7hQA2czJRt+nebsHN7/uTbYmiyK4CEhMH pOQeCGm1KXMyaX1+9T3+akJOIuI2LOTB17quHAohogt0q0+40V1dnQCT/y/wZQDV 5MgWquqwX+F0GL9oiWfRScvfkObCdeEc2UwG9GRRVhxs9hZ4K5oAPuqqC7HprzIe T3tTQvGESWfHdo+ABRElLcBGTFxA8xsb7btGBdvbVX7EScYZokpvrVi3h8lcJuZQ SbfkkZWuXmmFrNcfzEfljyXoZsNa8jgxlUi1eDEKFFQEPKgJq+rVDnzCS1+YIL2A LH0xj9Bv/qvSqA2YoDMLF36OayDmf96lwaSe5cL9K+Du/y6O/uTA0/2Sm1h7ZMS9 I5FU//Bd/AOabEmqX7kCioCmD7VbXKlI8TMTUxEJlbuUhFW6NVDyglsUUcWN4cQp Ep7w4dkelTklBMjiPnyDB7cgE6TR0KELfbOZnJAS1dThkqtV7pli+VheIo6LmaI8 JttpXPXDgXwZ1Jbqi217A3zfr0AW/b18NrJyn4I0Qw== =ks6K -----END PGP SIGNATURE----- --===-=-=--