From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.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 sBFEDtNOdWPLVgEAbAwnHQ (envelope-from ) for ; Wed, 16 Nov 2022 21:57:55 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id EAFZDtNOdWO4mgAAauVa8A (envelope-from ) for ; Wed, 16 Nov 2022 21:57:55 +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 99305FA9D for ; Wed, 16 Nov 2022 21:57:54 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ovPTQ-00005G-DX; Wed, 16 Nov 2022 15:57:32 -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 1ovPTO-000052-JN for help-guix@gnu.org; Wed, 16 Nov 2022 15:57:30 -0500 Received: from koszko.org ([93.95.227.159]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ovPTK-00089G-QP for help-guix@gnu.org; Wed, 16 Nov 2022 15:57:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=koszko.org; s=mail; h=Content-Type:MIME-Version:References:In-Reply-To:Message-ID: Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=GjMRHA+0sL6niF8ZppiWw96XTBgi/kxSbkNqTQ8l9Kk=; b=utichWTeQUyIDrdwX5H4tu15/4 VoQoyO5HcB89m9/CKSqX5UTBpLOpAaow9Gc7ARpRJdY/SDMXS1ZGE+QL3tZ87+pybw7v7779Zb+0X +xkHTcdIO872roJFnk4S2ESNUv2UlPZ4UYESHer/HUoZ9e9kQMLVkFWiFdzqBOHaiKeuBwsDwp8ZP ua1cgCTiyuytjwekOiXegpeh3aEVhwj3B9baEiLjh2eaxpf9N8ZQMopLCmTfA4KoBgjN3nhRba4ga rfRPttMiAy5lLzhbi0v/SIvuvgyrrm80t0mT2IprpQx6ORchTw/+U9aXpYcOtYqbj2hW/pzzYAaRd CKl/2qTOkggoyPv2st6M+hb2aH6BKl9DYc7UynnYJ476H6drSz3534IaJfqbfDGE/qK3yKMjb7XIA l8aWsWPmS4tIJpKPH2N1h5edqRVtryJ+/Rel2qrS+yJsMwM9WNpCb3DVbhkad04V0TyOaJV75LEGM 8883WudaTs6VTKtQGIoaKCsYHTUc9F6g/jG6r5ThYjzDVmdbFCYrQOoATrbbOAlQncq+BaaTJlsYH TxytF0DXiAbmIDHdRee73Pi2V5vO+e/wJcrPUK6gfXA50igivH9eWX9gDt+qC662w6pU/ueu3DTdj 0CGfyGVeMGkG+yMmg0mVwvLQbix74e7V4sXbJybBs=; Received: from 77-252-46-244.static.ip.netia.com.pl ([77.252.46.244] helo=koszkonutek-tmp.pl.eu.org) by koszko.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ovPT8-0004gf-DV; Wed, 16 Nov 2022 21:57:14 +0100 Date: Wed, 16 Nov 2022 21:57:12 +0100 To: Sebastien Rey-Coyrehourcq Cc: zimoun , help-guix Subject: Re: Help packaging R Quarto Cli Message-ID: <20221116215712.7825e8c0@koszkonutek-tmp.pl.eu.org> In-Reply-To: <3f69844a-51b8-78c8-8c13-e1b8bd25ca21@univ-rouen.fr> 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> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/3u9dUhtIql_PKspDKGUf4T/"; protocol="application/pgp-signature"; micalg=pgp-sha256 Received-SPF: pass client-ip=93.95.227.159; envelope-from=koszko@koszko.org; helo=koszko.org 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, 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: , Reply-to: Wojtek Kosior From: Wojtek Kosior via 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=1668632274; h=from:from:sender:sender:reply-to: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:dkim-signature; bh=GjMRHA+0sL6niF8ZppiWw96XTBgi/kxSbkNqTQ8l9Kk=; b=UsIVaAcychb30t7MsqBz0qHAVvzk6GytgJmjOgyHK6DGYvqkxG4MHqPoFYbQ2HMFCH+LeV t3574aEcdPAgIV65Y8SmQo6xuFHmCjx005Iy4vdm+zQJfAcJT4qzDohgD23CAGOwX1fEai JvPvfx96OARvOM4UeMxrWBByiJeyt7cwn9cqfIOGYVyyGJ2JtWqENwXndfECEOwxQ/q0xq OPAS+QiN4CjCY5uNjFyor9J6r5kguWn1VrPXdyB6JQL7kQglrtS/FAtroXqS9SThape2Ps iokWye+BMSSxb+5rpxq00uwJ/F7WBCB0lamjc//uzhcDPQQIao4zd4jUCsB6rw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1668632274; a=rsa-sha256; cv=none; b=osrn4MRrMlePshbB01ODiIPkrMdBdFS8NMnjTfXgrws5CyXdPyK9njPWMn9z2O7JF0OM9E l4IiTKVO9byNtVIjoKpb6VxxfNO+3/XY9xZbKnE00DCg2+OuhhISjmJtwnwFrSZdpz+WIi UwKls+qLRGx8Oc2wU1/Ro7pvCqsluWdgJueoMXLqYfDNDEV8B8fL1X1ppoFh55ol1/he0n j5o2Nj338MX2Ve5e6KTirZZM9Kv/rm2Wtw8lOk3y13CAeKleRxpdtOB/RQTkZ3W2HeYcve dn+1GJtN1n8zDCTdE3KBwDhCrgy2kJ+EF6eaqSTwsKGtoS2KJBkZ9ShCbR2OBw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=utichWTe; dmarc=pass (policy=none) header.from=gnu.org; 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: -3.43 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=koszko.org header.s=mail header.b=utichWTe; dmarc=pass (policy=none) header.from=gnu.org; 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: 99305FA9D X-Spam-Score: -3.43 X-Migadu-Scanner: scn0.migadu.com X-TUID: +oaWdQHjQzeb --Sig_/3u9dUhtIql_PKspDKGUf4T/ Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable > Hi, >=20 > You're both right, seems there is a flag to skip binary downloading and=20 > compile the V8 lib. >=20 > [...] Good to see you found it :) > So, my packaging friend :), what's the best way to push an "export=20 > V8_FROM_SOURCE=3D1" or something like that into my rust-deno.scm ? >=20 > Best, >=20 > SR When I first read your question, I did not know the exact function. But I knew where to look. So I thought I'd better share my way of learning rather than just the solution ;) I started with grep -R 'export' ~/.config/guix/current/share/guile/site/3.0/gnu/packag= es/ | 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/engineer= ing.scm: (setenv "HOME" (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/packages/e= ngineering.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 'less' shortcuts if you're going to do things this way. It cad speed things up ^^ -- (sig_start) website: https://koszko.org/koszko.html PGP: https://koszko.org/key.gpg 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 Andeg= awe=C5=84ska https://pl.wikipedia.org/wiki/Jadwiga_Andegawe=C5=84ska -- (sig_end) On Wed, 16 Nov 2022 21:38:47 +0100 Sebastien Rey-Coyrehourcq wrote: > Hi, >=20 > You're both right, seems there is a flag to skip binary downloading and=20 > compile the V8 lib. >=20 > From the githubpage (https://github.com/denoland/rusty_v8) : "V8 is=20 > very large and takes a long time to compile. Many users will prefer to=20 > use a prebuilt version of V8. We publish static libs for every version=20 > of rusty v8 on Github . >=20 > Binaries builds are turned on by default: |cargo build| will initiate a=20 > download from github to get the static lib. To disable this build using=20 > the |V8_FROM_SOURCE| environmental variable. >=20 > When making changes to rusty_v8 itself, it should be tested by build=20 > from source. The CI always builds from source" >=20 > So, my packaging friend :), what's the best way to push an "export=20 > V8_FROM_SOURCE=3D1" or something like that into my rust-deno.scm ? >=20 > Best, >=20 > SR >=20 > 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-Coyrehourc= q wrote: =20 > >> Hi, > >> > >> After some day of packaging rust crate, i progress and deno start to c= ompile =E2=80=A6 but after 1min i have this error when cargo start compilin= g *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 rus= t-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-den= o-1.25.2.drv-0/deno-1.25.2/target/release/build/v8-bbb68ec56db1d802/build-s= cript-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/de= no-1.25.2/target/release/gn_out/obj > >> Downloading > >> Python downloader failed, trying with curl. =20 > > Looks like you need to patch rust-v8-0.49 to not try to download > > librusty_v8_release... but instead you'll have to build it from source > > and let it know where to find it. > > =20 > >> =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 directory=E2=80=9D }=E2=80=99, /tmp/guix-build-rust-deno= -1.25.2.drv-0/deno-1.25.2/guix-vendor/rust-v8-0.49.0.tar.gz/build.rs:405:10 > >> note: run with `RUST_BACKTRACE=3D1` environment variable to display= 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.2= 5.2.drv=E2=80=99 failed with exit code 1 > >> la compilation de /gnu/store/g4m5c558l1q4g1kggzg2v9vkw352nnaj-rust-den= o-1.25.2.drv a =C3=A9chou=C3=A9 > >> Vous trouverez le journal de compilation dans =C2=AB /var/log/guix/drv= s/g4/m5c558l1q4g1kggzg2v9vkw352nnaj-rust-deno-1.25.2.drv.gz =C2=BB. > >> guix build: erreur : build of `/gnu/store/g4m5c558l1q4g1kggzg2v9vkw352= nnaj-rust-deno-1.25.2.drv=E2=80=99 failed =20 > > =20 --Sig_/3u9dUhtIql_PKspDKGUf4T/ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iHUEARYIAB0WIQTpcnBg48VjfIpPS0JLxSIcWnn9GgUCY3VOqAAKCRBLxSIcWnn9 GieiAP9QZj7znEjhMEZtN6vpbWEuxiMoK3AybzG4Om9nfp04uQEAtQtrzSFxvJOM QbumVinuyKtd7ca/JbqoqcUiYHOltgM= =qOoC -----END PGP SIGNATURE----- --Sig_/3u9dUhtIql_PKspDKGUf4T/--