From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms9.migadu.com with LMTPS id gKRBHHZxbGRpegAASxT56A (envelope-from ) for ; Tue, 23 May 2023 09:55:34 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id mNA5HHZxbGQJOQEA9RJhRA (envelope-from ) for ; Tue, 23 May 2023 09:55:34 +0200 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 25C652E210 for ; Tue, 23 May 2023 09:55:34 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q1MTm-0006Qj-6J; Tue, 23 May 2023 03:30:46 -0400 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 1q1C1m-00040p-VU for guix-devel@gnu.org; Mon, 22 May 2023 16:21:10 -0400 Received: from mail-ed1-x530.google.com ([2a00:1450:4864:20::530]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q1C1j-0003rX-Fq for guix-devel@gnu.org; Mon, 22 May 2023 16:21:10 -0400 Received: by mail-ed1-x530.google.com with SMTP id 4fb4d7f45d1cf-510eb3dbaaeso93489a12.1 for ; Mon, 22 May 2023 13:21:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684786866; x=1687378866; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=2GV2hHXwZhVPEqf0dyv8s5gX/n8kxrzqayu1oh8bmo8=; b=M/K7ZzEeOS5DJ5hcODgynI8M4AciGryiylLWVIEc35wJarjMrGOc4YYSPESUsy2rVy 8qfq1Xk/Gj8o18dtC+I5zzvZM8rV+5bzTJmq8jnGa2WnreYaAHaLBpW42DntBTzmkJL8 bomkMTdN6ilb5U4sPZ1eBQSVrMP4j+lrQje6V3f16s6olBCKvf0rYc75N2YwvGc3xwVG A++40So3Nu46pYsfMa5fBlv2e+F/FDxFKSjMXQ1TaWXRoxitbN7fL0rF01WESb2Q0BCF liNTcCoT2f79iG2cvI+ezn9W0emM7CeKn4RqzQjMgQGATjl9PzLwdUK20EafK76mCYeG 78zA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684786866; x=1687378866; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=2GV2hHXwZhVPEqf0dyv8s5gX/n8kxrzqayu1oh8bmo8=; b=OvQjLzFFEQ+3M3ZadGxGBCAuLBhQSdHugd1ySUmiwGFCH6cU2NI255dIrcBFhu1ouW 77FwKdXBCuMUi7aXxxMRMy33J6OsM7roefFc26QdEr9cUhINBiqo56GS24d/roEtta2S mkagfAG10D6epdxBtHBxj16zc963WakmSsmqCu2ThUisuPeNJSZp7YlzgKVxTjWzUoiy E72hVDbHugOZEAdK+uMmS6+59wbGL9tTF7ci6BL3vQKTvbNo77olGJualhuW1eUOuEc3 OmntnRssNBABAA1HqUXAr5vvHv4i23csWmvM16OR5Aecf5/yzkidJHS3XVndEMumatgJ lt0w== X-Gm-Message-State: AC+VfDzT5Q29gtjn2yfknzRTGX2KixiW7aQn63qoJkm6rnw4ymJvkYEb hx8ZwpagndqHdwaSsAhBnG7Sq/e6aRWJitF1AIA= X-Google-Smtp-Source: ACHHUZ7Zrmz8ubwuAAnI5+WviXs9nxhYMWzEkjPLRIDO//+UmbUb9/5BXdjjMH2FPA+On2h2QC+V68sRDWdqqHH/ihk= X-Received: by 2002:a17:907:72d2:b0:961:800b:3f5e with SMTP id du18-20020a17090772d200b00961800b3f5emr11264646ejc.72.1684786865500; Mon, 22 May 2023 13:21:05 -0700 (PDT) MIME-Version: 1.0 References: <875y8oz4ab.fsf@gmail.com> In-Reply-To: From: Timothy Washington Date: Mon, 22 May 2023 16:20:53 -0400 Message-ID: Subject: Re: Howto reference a custom package from a manifest To: Kaelyn Cc: Simon Tournier , Guix Devel Content-Type: multipart/mixed; boundary="000000000000a4773005fc4e02fb" Received-SPF: pass client-ip=2a00:1450:4864:20::530; envelope-from=twashing@gmail.com; helo=mail-ed1-x530.google.com 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, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, WEIRD_PORT=0.001, WEIRD_QUOTING=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 23 May 2023 03:30:28 -0400 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 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-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Seal: i=1; s=key1; d=yhetil.org; t=1684828534; a=rsa-sha256; cv=none; b=d2B0umVwfbXqrYwTug+9vPy/i6gpYQOnJJAJkJLwgYV4Tygib6r9M3sFsUkZm1J35RuCsy y+gxQvastw5XkCf1stpSNcD1kfG5bhGSVbV8JwHHlQRaGHgtRKuNoDZZ+ABN7H98OgBK72 YxSVSP1as9iqXNswql3xFNlqpHcktK7UbQIe9ZRXboiK2QPNPF0Ib7eDZo12e8xEZ2iA96 QPcqVbSfaYpHCttbFbJV4ruqEzP5+T3JozOyCpqO42ZuN5leXp6f8dUbGykXHSL2OK0i+Q iX91eQ8sVO2PcpXzDsSI2EwF+tyx5D0zQFApsD2H2r2sQ3yJSuf2cNPiAqGIqA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20221208 header.b="M/K7ZzEe"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1684828534; 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:dkim-signature; bh=OZKX4/GQ1/2PFBq0tf3ojCTte7+DOPMU2MXPNsKT8iM=; b=pWxyhRRjTM7TBJslNPYALo+C5J7G0HfzkS8hAJgIk3+u/iy/bz9c7/SulnamDHeU7sbOPF yySACqO2N/TItTbDdJ6PXGNOPU6tS777iMFroem6Lh57M9QjCUKwBQIctO2cyVy/QwLvaR +v94jYvGI+CDxlhZtHLrRBYAQfKs2o+RnOm8jdUHAbwA6ZdH5zc35+C1sPRios1xxHANiz ASYPKzPuclOQsaynox0evObc8GyRtWJMMVuD/512cbuXN+gyyB3bN61C2uXqV/PCyVpLK+ xU8NaDs6xBKAZrG6GLlLo4dctrhXg38CPDKsZrQXPhN7uweZ9U4SJ54jx8vphw== X-Migadu-Scanner: scn1.migadu.com Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=gmail.com header.s=20221208 header.b="M/K7ZzEe"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: 7.13 X-Spam-Score: 7.13 X-Migadu-Queue-Id: 25C652E210 X-TUID: +hfQS3Fwp6fL --000000000000a4773005fc4e02fb Content-Type: multipart/alternative; boundary="000000000000a4772f05fc4e02f9" --000000000000a4772f05fc4e02f9 Content-Type: text/plain; charset="UTF-8" Yes that was it! I added "(native-inputs (list perl python))" to my package definition. $ guix build -L ~/dotfiles/ rust-rustscan # A. Now builds again! /gnu/store/4bldy27x1f2mzjqg5jd176nrawl98y1y-rust-rustscan-2.1.1 $ guix package -L ~/dotfiles/ -m ~/dotfiles/guix/packages/manifest.scm # B. Now also builds! ... The following derivation will be built: /gnu/store/xll763hpl7mvdkxd3kf8f98pygarzh41-profile.drv ... guix package --list-profiles # C. does NOT show the custom profile just built /home/twashing/.config/guix/current /home/twashing/.guix-profile cat /gnu/store/xll763hpl7mvdkxd3kf8f98pygarzh41-profile.drv # D. DOES show the new profile in /gnu/store Derive([("out","/gnu/store/sqaz4ff2nshfizfh8ymbzllia6lsgnfv-profile","","")], ... ("out","/gnu/store/sqaz4ff2nshfizfh8ymbzllia6lsgnfv-profile"),("preferLocalBuild","1")]) i. Using a direct "guix build" gives you a directory in "/gnu/store". And you can add that bin to your PATH. ii. But for "/gnu/store/*-profile/", would you just loop over those profile directories, and run each "/gnu/store/*-profile/etc/profile"? I'm attaching the full package definition to this email. Thanks a lot! Tim On Mon, 22 May 2023 at 14:18, Kaelyn wrote: > Hi Tim, > > ------- Original Message ------- > On Sunday, May 21st, 2023 at 8:35 PM, Timothy Washington < > twashing@gmail.com> wrote: > > Hey Simon, sure thing. > > I've attached "*shaka.scm*" here. I was able to build it separately (see "*Howto > supply cargo-build-system dependency to guix package definition* > "). > That was using these commands. > > guix import crate -r rustscan > guix build -L ~/dotfiles/ rust-rustscan-2 > > > *A.* I re-ran "guix build". Note that I definitely installed (and > sourced) perl and python3. > > > You will need to add perl and python to the native-inputs field of your > rust-rustscan-2 package for it to see those two programs. When packages are > built, the building happens in an isolated environment distinct from your > shell environment, so packages you install through "guix package -i" or > "guix install" won't be seen in the package's build environment. > https://guix.gnu.org/en/manual/devel/en/html_node/package-Reference.html#package-Reference > describes the various fields including three different types of inputs, but > my rule of thumb is that if the package depends on and is linking to a > library then the library package is an input, and if the dependency is a > program that needs to be run as part of the build (such as the rustscan > package trying to run perl and python3) it should be a native-input. HTH! > > Cheers, > Kaelyn > > P.S. I've not packaged any rust code, but from what I recall rust packages > that use cargo-build-system are a bit anomalous in that they have to > declare the rust packages they depend on in a #:cargo-inputs argument > instead of the normal inputs package field. > > And updated my system with "guix pull && guix package -u". But now it's > failing with the below. > > guix build -L ~/dotfiles/ rust-rustscan > > substitute: updating substitutes from 'https://ci.guix.gnu.org'... > 0.0%guix substitute: warning: ci.guix.gnu.org: connection failed: > Connection timed out > substitute: > substitute: updating substitutes from 'https://bordeaux.guix.gnu.org'... > 100.0% > The following derivation will be built: > /gnu/store/x695f07186dwqpw2jk48b62p2s18f5ry-rust-rustscan-2.1.1.drv > ... > phase `patch-usr-bin-file' succeeded after 0.0 seconds > starting phase `patch-source-shebangs' > patch-shebang: ./fixtures/.rustscan_scripts/test_script.pl: warning: no > binary for interpreter `perl' found in $PATH > patch-shebang: ./fixtures/.rustscan_scripts/test_script.py: warning: no > binary for interpreter `python3' found in $PATH > patch-shebang: ./fixtures/.rustscan_scripts/test_script.sh: changing > `/bin/bash' to > `/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minimal-5.1.16/bin/bash' > phase `patch-source-shebangs' succeeded after 0.0 seconds > starting phase `configure' > Unpacking rust-ansi-term > ... > error: failed to run custom build command for `ring v0.16.20` > > Caused by: > process didn't exit successfully: > `/tmp/guix-build-rust-rustscan-2.1.1.drv-0/rustscan-2.1.1/target/release/build/ring-9bf05aa562ef9c86/build-script-build` > (exit status: 101) > --- stderr > running "perl" "crypto/fipsmodule/aes/asm/aesni-x86_64.pl" "elf" > "/tmp/guix-build-rust-rustscan-2.1.1.drv-0/rustscan-2.1.1/target/release/build/ring-297f46c71994a65c/out/aesni-x86_64-elf.S" > thread 'main' panicked at 'failed to execute ["perl" > "crypto/fipsmodule/aes/asm/aesni-x86_64.pl" "elf" > "/tmp/guix-build-rust-rustscan-2.1.1.drv-0/rustscan-2.1.1/target/release/build/ring-297f46c71994a65c/out/aesni-x86_64-elf.S"]: > No such file or directory (os error 2)', > /tmp/guix-build-rust-rustscan-2.1.1.drv-0/rustscan-2.1.1/guix-vendor/rust-ring-0.16.20.tar.xz/build.rs:653 > :9 > note: run with `RUST_BACKTRACE=1` environment variable to display a > backtrace > warning: build failed, waiting for other jobs to finish... > error: in phase 'build': uncaught exception: > %exception #<&invoke-error program: "cargo" arguments: ("build" > "--release") exit-status: 101 term-signal: #f stop-signal: #f> > phase `build' failed after 12.2 seconds > command "cargo" "build" "--release" failed with status 101 > builder for > `/gnu/store/x695f07186dwqpw2jk48b62p2s18f5ry-rust-rustscan-2.1.1.drv' > failed with exit code 1 > build of > /gnu/store/x695f07186dwqpw2jk48b62p2s18f5ry-rust-rustscan-2.1.1.drv failed > View build log at > '/var/log/guix/drvs/x6/95f07186dwqpw2jk48b62p2s18f5ry-rust-rustscan-2.1.1.drv.gz'. > guix build: error: build of > `/gnu/store/x695f07186dwqpw2jk48b62p2s18f5ry-rust-rustscan-2.1.1.drv' failed > > *B.* The idea is to include that package as part of a larger profile that > I can add to my base user profile. That's using the below. rust-rustscan > is defined in "*guix/packages/shaka.scm*". > And I get an error gain, when calling guix package > > guix package -L ~/dotfiles/ -m ~/dotfiles/guix/packages/manifest.scm > The following packages will be installed: > emacs 28.2 > gcc-toolchain 12.3.0 > git 2.40.1 > make 4.3 > rust-rustscan 2.1.1 > tree 2.1.0 > ungoogled-chromium 112.0.5615.165-1 > vim 9.0.1384 > > substitute: updating substitutes from 'https://ci.guix.gnu.org'... > 0.0%guix substitute: warning: ci.guix.gnu.org: connection failed: > Connection timed out > substitute: > The following derivations will be built: > /gnu/store/v5f24ky0nw76yy24jx1ihggs6yffnvvb-profile.drv > /gnu/store/x695f07186dwqpw2jk48b62p2s18f5ry-rust-rustscan-2.1.1.drv > > ... > cannot build derivation > `/gnu/store/v5f24ky0nw76yy24jx1ihggs6yffnvvb-profile.drv': 1 dependencies > couldn't be built > guix package: error: build of > `/gnu/store/v5f24ky0nw76yy24jx1ihggs6yffnvvb-profile.drv' failed > > > Thanks > Tim > > > On Sun, 21 May 2023 at 12:46, Simon Tournier > wrote: > >> Hi, >> >> Please keep CC guix-devel. >> >> On Sun, 21 May 2023 at 04:44, Timothy Washington >> wrote: >> >> > $ cat guix/packages/manifest.scm >> > (define-module (guix packages manifest)) >> > (use-modules (gnu packages)) >> >> Well, I am not sure these two lines are required. >> >> > building >> /gnu/store/x695f07186dwqpw2jk48b62p2s18f5ry-rust-rustscan-2.1.1.drv... >> > \ 'build' phasebuilder for >> `/gnu/store/x695f07186dwqpw2jk48b62p2s18f5ry-rust-rustscan-2.1.1.drv' >> failed with exit code 1 >> >> It means your custom package rust-rustscan does not build. >> >> Could you share your local file: ./guix/packages/shaka.scm containing >> the definition of this custom package? >> >> >> Cheers, >> simon >> > > --000000000000a4772f05fc4e02f9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Yes that was it! I added "(native-inputs (list perl python))" to my packa= ge definition.=C2=A0

$ guix build -L ~/dotfiles/ rust-rustscan=C2=A0 =C2=A0# A. Now builds again!/gnu/store/4bldy27x1f2mzjqg5jd176nrawl98y1y-rust-r= ustscan-2.1.1

$ guix package -L ~/dotfiles/ -m ~/d= otfiles/guix/packages/manifest.scm=C2=A0 =C2=A0# B. Now also builds!
...
The= following derivation will be built:
=C2=A0 /gnu/store/xll763hpl7mvdkxd3= kf8f98pygarzh41-profile.drv
..= .

guix package --li= st-profiles=C2=A0 =C2=A0# C. does NOT show t= he custom profile just built
/home/twashi= ng/.config/guix/current
/home/twashing/.g= uix-profile

<= div>cat /gnu/store/xll763hpl7mvdkxd3kf8f98pygarzh41= -profile.drv=C2=A0 =C2=A0# D. DOES show the = new profile in /gnu/store
Derive([("= out","/gnu/store/sqaz4ff2nshfizfh8ymbzllia6lsgnfv-profile",&= quot;","")], ... ("out","/gnu/store/sqaz4ff2n= shfizfh8ymbzllia6lsgnfv-profile"),("preferLocalBuild","= 1")])


i. Using a di= rect "guix build&quo= t; gives you a directory in "/gnu/store". And you can add that bin to your PATH.
ii. But for=C2=A0"<= span style=3D"color:rgb(102,102,102);font-family:monospace">/gnu/store/*-pr= ofile/", would you just loop over those profile directories, an= d run each "/gnu/store/*-pr= ofile/etc/profile"?


I&#= 39;m attaching the full package definition to this email.=C2=A0
Thanks a lot!
Tim=C2= =A0


On Mon, 22 May 2023 at 14:18, Kaelyn <kaelyn.alexi@protonmail.com> wrote:
=
Hi Tim,
<= /div>
=20
=20
=20

------- Original Message -------
On Sunday, May 21st, 2023 at 8:35 PM, Timothy Washington <twashing@gmail.com>= ; wrote:

Hey Simon, sure thing.

I&#= 39;ve attached "shaka.scm"= here. I was able to build it separately (see "Howto supply cargo-build-system depe= ndency to guix package definition"). That was using these comm= ands.

= guix import crate -r rustscan
guix build -L ~/dotfiles/ rust-rustscan-2


A. I re-ran "guix build". Note that I definite= ly installed (and sourced) perl and python3.
<= div style=3D"font-family:Arial,sans-serif;font-size:14px;color:rgb(232,230,= 227)">
You will need to add perl and python to the native-i= nputs field of your rust-rustscan-2 package for it to see those two program= s. When packages are built, the building happens in an isolated environment= distinct from your shell environment, so packages you install through &quo= t;guix package -i" or "guix install" won't be seen in th= e package's build environment. https://guix.gnu.org/en/manual/devel/en/html_node/package-Reference.h= tml#package-Reference describes the various fields including three diff= erent types of inputs, but my rule of thumb is that if the package depends = on and is linking to a library then the library package is an input, and if= the dependency is a program that needs to be run as part of the build (suc= h as the rustscan package trying to run perl and python3) it should be a na= tive-input. HTH!

Cheers,
Kaelyn

P.S. I've not packaged any rust code, bu= t from what I recall rust packages that use cargo-build-system are a bit an= omalous in that they have to declare the rust packages they depend on in a = #:cargo-inputs argument instead of the normal inputs package field.

And updated = my system with "guix pull &= amp;& guix package -u". But now it's failing with the b= elow.

guix build -L ~/dotfiles/ rust-rustscan


substitute: updating substitutes from 'htt= ps://ci.guix.gnu.org'... 0.0%guix substitute: warning: ci.guix.gnu.org: connection failed: Connection timed outsubstitute:
sub= stitute: updating substitutes from 'https://borde= aux.guix.gnu.org'... 100.0%
The f= ollowing derivation will be built:
/gnu= /store/x695f07186dwqpw2jk48b62p2s18f5ry-rust-rustscan-2.1.1.drv
<= font color=3D"#666666">...

phase `patch-u= sr-bin-file' succeeded after 0.0 seconds
starting phase `patch-source-shebangs'
patch-shebang: ./fixtures/.rustscan_scripts/test_script= .pl: warning: no binary for interpreter `perl' found in $PATH
pa= tch-shebang: ./fixtures/.rustscan_scripts/test_script.py: warning: no binar= y for interpreter `python3' found in $PATH

patch-shebang: ./fixtures/.rustscan_scripts/test_script.sh: changing = `/bin/bash' to `/gnu/store/rib9g2ig1xf3kclyl076w28parmncg4k-bash-minima= l-5.1.16/bin/bash'
phase `patch-sourc= e-shebangs' succeeded after 0.0 seconds
starting phase `configure'
Unpacki= ng rust-ansi-term
...
error: failed to run custom build command for `ring v0.16.20`

Caused by:
process didn't exit successfully: `/tm= p/guix-build-rust-rustscan-2.1.1.drv-0/rustscan-2.1.1/target/release/build/= ring-9bf05aa562ef9c86/build-script-build` (exit status: 101)
--- stder= r
running "perl" "crypto/fipsmodule/aes/asm/aesni-x86_64.pl" "elf" "/tmp/guix-build-rust-ru= stscan-2.1.1.drv-0/rustscan-2.1.1/target/release/build/ring-297f46c71994a65= c/out/aesni-x86_64-elf.S"
thread 'main' panicked at '= failed to execute ["perl" "crypto/fipsmodule/aes/asm/aesni-x86_64.pl" "elf" "/tmp/guix-build-rus= t-rustscan-2.1.1.drv-0/rustscan-2.1.1/target/release/build/ring-297f46c7199= 4a65c/out/aesni-x86_64-elf.S"]: No such file or directory (os error 2)= ', /tmp/guix-build-rust-rustscan-2.1.1.drv-0/rustscan-2.1.1/guix-vendor= /rust-ring-0.16.20.tar.xz/build.rs:653:9
note: run with `RUST_BACKTRAC= E=3D1` environment variable to display a backtrace
warning: build failed= , waiting for other jobs to finish...
error: in phase 'build': u= ncaught exception:
%exception #<&invoke-error program: "carg= o" arguments: ("build" "--release") exit-status: 1= 01 term-signal: #f stop-signal: #f>

p= hase `build' failed after 12.2 seconds
command "cargo" "build" "--release" failed = with status 101
builder for `/gnu/store/x= 695f07186dwqpw2jk48b62p2s18f5ry-rust-rustscan-2.1.1.drv' failed with ex= it code 1
build of /gnu/store/x695f07186d= wqpw2jk48b62p2s18f5ry-rust-rustscan-2.1.1.drv failed
View build log at '/var/log/guix/drvs/x6/95f07186dwqpw2jk4= 8b62p2s18f5ry-rust-rustscan-2.1.1.drv.gz'.
guix build: error: build of `/gnu/store/x695f07186dwqpw2jk48b62p2s18f= 5ry-rust-rustscan-2.1.1.drv' failed


B. The idea is to include that package as part of a larger profile= that I can add to my base user profile. That's using the below. rust-rustscan is defined in &qu= ot;guix/packages/shak= a.scm".
And I get an error gain, when calling gu= ix package

guix package -L ~/dotfiles/ -m ~/dotfiles/guix/packages/manifest.scmThe following packages will be installed:
emacs 28.2 gcc-toolchain 12.3.0
git 2.40.1
make = 4.3
rust-rustscan 2.1.1
tree 2.1= .0
ungoogled-chromium 112.0.5615.165-1
vim 9.0.1= 384

substitute: updating substitutes from 'https= ://ci.guix.gnu.org'... 0.0%guix substitute: warning: ci.guix.gnu.org: connection failed: Connection timed out
substitu= te:
The following derivations will be built:
/gnu/store/v5f24ky0nw= 76yy24jx1ihggs6yffnvvb-profile.drv
/gnu/store/x695f07186dwqpw2jk48b62p= 2s18f5ry-rust-rustscan-2.1.1.drv

...
cannot build derivation `/gnu/store/v5f24ky0nw= 76yy24jx1ihggs6yffnvvb-profile.drv': 1 dependencies couldn't be bui= lt
guix package: error: build of `/gnu/store/v5f24ky0nw76yy24jx1ihggs6yf= fnvvb-profile.drv' failed



Thanks<= /div>
Tim
=


<= div class=3D"gmail_quote">
On Sun, 21 = May 2023 at 12:46, Simon Tournier <zimon.toutoun= e@gmail.com> wrote:
Hi,

Please keep CC guix-devel.

On Sun, 21 May 2023 at 04:44, Timothy Washington <twas= hing@gmail.com> wrote:

> $ cat guix/packages/manifest.scm
> (define-module (guix packages manifest))
> (use-modules (gnu packages))

Well, I am not sure these two lines are required.

> building /gnu/store/x695f07186dwqpw2jk48b62p2s18f5ry-rust-rustscan-2.1= .1.drv...
> \ 'build' phasebuilder for `/gnu/store/x695f07186dwqpw2jk48b62= p2s18f5ry-rust-rustscan-2.1.1.drv' failed with exit code 1

It means your custom package rust-rustscan does not build.

Could you share your local file: ./guix/packages/shaka.scm containing
the definition of this custom package?


Cheers,
simon

--000000000000a4772f05fc4e02f9-- --000000000000a4773005fc4e02fb Content-Type: text/x-scheme; charset="US-ASCII"; name="manifest.scm" Content-Disposition: attachment; filename="manifest.scm" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lhzabpkv0 OzsgKGRlZmluZS1tb2R1bGUgKGd1aXggcGFja2FnZXMgbWFuaWZlc3QpKQoKOzsgKHVzZS1tb2R1 bGVzIChnbnUgcGFja2FnZXMpKQoKOzsgKHNwZWNpZmljYXRpb25zLT5tYW5pZmVzdCAnKCJnY2Mt dG9vbGNoYWluIiAibWFrZSIgImdpdCIgImVtYWNzIiAidmltIiAidHJlZSIgInVuZ29vZ2xlZC1j aHJvbWl1bSIpKQooc3BlY2lmaWNhdGlvbnMtPm1hbmlmZXN0ICcoImdjYy10b29sY2hhaW4iICJt YWtlIiAiZ2l0IiAiZW1hY3MiICJ2aW0iICJ0cmVlIiAidW5nb29nbGVkLWNocm9taXVtIiAicnVz dC1ydXN0c2NhbiIpKQo= --000000000000a4773005fc4e02fb Content-Type: text/x-scheme; charset="US-ASCII"; name="rustscan.scm" Content-Disposition: attachment; filename="rustscan.scm" Content-Transfer-Encoding: base64 Content-ID: X-Attachment-Id: f_lhzabplh1 KGRlZmluZS1tb2R1bGUgKGd1aXggcGFja2FnZXMgcnVzdHNjYW4pCiAgIzp1c2UtbW9kdWxlIChn dWl4IHBhY2thZ2VzKQogICM6dXNlLW1vZHVsZSAoZ3VpeCBkb3dubG9hZCkKICAjOnVzZS1tb2R1 bGUgKGd1aXggZ2l0LWRvd25sb2FkKQogICM6dXNlLW1vZHVsZSAoZ3VpeCBidWlsZC1zeXN0ZW0g Y2FyZ28pCiAgIzp1c2UtbW9kdWxlIChndWl4IGdleHApCiAgIzp1c2UtbW9kdWxlIChnbnUgcGFj a2FnZXMgY3JhdGVzLWdyYXBoaWNzKQogICM6dXNlLW1vZHVsZSAoZ251IHBhY2thZ2VzIGNyYXRl cy1pbykKICAjOnVzZS1tb2R1bGUgKGdudSBwYWNrYWdlcyBwZXJsKQogICM6dXNlLW1vZHVsZSAo Z251IHBhY2thZ2VzIHB5dGhvbikKCiAgIzp1c2UtbW9kdWxlICgoZ3VpeCBsaWNlbnNlcykgIzpw cmVmaXggbGljZW5zZTopKQoKKGRlZmluZS1wdWJsaWMgcnVzdC10ZXh0LXBsYWNlaG9sZGVyLTAu NAogIChwYWNrYWdlCiAgICAobmFtZSAicnVzdC10ZXh0LXBsYWNlaG9sZGVyIikKICAgICh2ZXJz aW9uICIwLjQuMSIpCiAgICAoc291cmNlIChvcmlnaW4KICAgICAgICAgICAgICAobWV0aG9kIHVy bC1mZXRjaCkKICAgICAgICAgICAgICAodXJpIChjcmF0ZS11cmkgInRleHRfcGxhY2Vob2xkZXIi IHZlcnNpb24pKQogICAgICAgICAgICAgIChma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cmluZy1hcHBlbmQgbmFtZSAiLSIgdmVyc2lvbiAiLnRhci5neiIpKQogICAgICAgICAgICAgIChz aGEyNTYKICAgICAgICAgICAgICAgKGJhc2UzMgogICAgICAgICAgICAgICAgIjE4dnN6M2ZkajRz OHlqcDk2d3dxN3d2cmxjM3Z6enNxa2k4bWZwaGE5bTV6cjBnOGw5enAiKSkpKQogICAgKGJ1aWxk LXN5c3RlbSBjYXJnby1idWlsZC1zeXN0ZW0pCiAgICAoYXJndW1lbnRzCiAgICAgYCgjOnNraXAt YnVpbGQ/ICN0CiAgICAgICAjOmNhcmdvLWlucHV0cyAoKCJydXN0LWxpYmMiICxydXN0LWxpYmMt MC4yKSkpKQogICAgKGhvbWUtcGFnZSAiaHR0cHM6Ly9naXRodWIuY29tL051Z2luZS9ybGltaXQv IikKICAgIChzeW5vcHNpcyAiUmVzb3VyY2UgbGltaXRzIikKICAgIChkZXNjcmlwdGlvbiAiUmVz b3VyY2UgbGltaXRzIikKICAgIChsaWNlbnNlIGxpY2Vuc2U6ZXhwYXQpKSkKCihkZWZpbmUtcHVi bGljIHJ1c3QtZ2NkLTIKICAocGFja2FnZQogICAgKG5hbWUgInJ1c3QtZ2NkIikKICAgICh2ZXJz aW9uICIyLjMuMCIpCiAgICAoc291cmNlIChvcmlnaW4KICAgICAgICAgICAgICAobWV0aG9kIHVy bC1mZXRjaCkKICAgICAgICAgICAgICAodXJpIChjcmF0ZS11cmkgImdjZCIgdmVyc2lvbikpCiAg ICAgICAgICAgICAgKGZpbGUtbmFtZSAoc3RyaW5nLWFwcGVuZCBuYW1lICItIiB2ZXJzaW9uICIu dGFyLmd6IikpCiAgICAgICAgICAgICAgKHNoYTI1NgogICAgICAgICAgICAgICAoYmFzZTMyCiAg ICAgICAgICAgICAgICAiMDZsNGZpYjRkaDRtNmdhemRyenp6aW5odmNwY2ZoMDVyNGk0Z3pzY2ww M3Zuamhxbng4eCIpKSkpCiAgICAoYnVpbGQtc3lzdGVtIGNhcmdvLWJ1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taW5hbCBvdXRwdXQgY29sb3JmdWwiKQogICAgKGRlc2NyaXB0aW9uICJNYWtlIHlv dXIgdGVybWluYWwgb3V0cHV0IGNvbG9yZnVsIikKICAgIChsaWNlbnNlIGxpY2Vuc2U6ZXhwYXQp KSkKCihkZWZpbmUtcHVibGljIHJ1c3QtY2lkci11dGlscy0wLjUKICAocGFja2FnZQogICAgKG5h bWUgInJ1c3QtY2lkci11dGlscyIpCiAgICAodmVyc2lvbiAiMC41LjEwIikKICAgIChzb3VyY2Ug KG9yaWdpbgogICAgICAgICAgICAgIChtZXRob2QgdXJsLWZldGNoKQogICAgICAgICAgICAgICh1 cmkgKGNyYXRlLXVyaSAiY2lkci11dGlscyIgdmVyc2lvbikpCiAgICAgICAgICAgICAgKGZpbGUt bmFtZSAoc3RyaW5nLWFwcGVuZCBuYW1lICItIiB2ZXJzaW9uICIudGFyLmd6IikpCiAgICAgICAg ICAgICAgKHNoYTI1NgogICAgICAgICAgICAgICAoYmFzZTMyCiAgICAgICAgICAgICAgICAiMDc1 MGpieHZkYnl5eGNxbnpzdzQzODE1OHI5ZHJzMmcwNzd5bXg5cjlsdjE5M3EzZHlweCIpKSkpCiAg ICAoYnVpbGQtc3lzdGVtIGNhcmdvLWJ1aWxkLXN5c3RlbSkKICAgIChhcmd1bWVudHMKICAgICBg KCM6c2tpcC1idWlsZD8gI3QKICAgICAgICM6Y2FyZ28taW5wdXRzICgoInJ1c3QtZGVidWctaGVs cGVyIiAscnVzdC1kZWJ1Zy1oZWxwZXItMC4zKQogICAgICAgICAgICAgICAgICAgICAgICgicnVz dC1udW0tYmlnaW50IiAscnVzdC1udW0tYmlnaW50LTAuNCkKICAgICAgICAgICAgICAgICAgICAg ICAoInJ1c3QtbnVtLXRyYWl0cyIgLHJ1c3QtbnVtLXRyYWl0cy0wLjIpCiAgICAgICAgICAgICAg ICAgICAgICAgKCJydXN0LW9uY2UtY2VsbCIgLHJ1c3Qtb25jZS1jZWxsLTEpCiAgICAgICAgICAg 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ICAoYXJndW1lbnRzCiAgICAgYCgjOnRlc3Rz PyAjZgogICAgICAgIzpjYXJnby1pbnB1dHMgKCgicnVzdC1hbnNpLXRlcm0iICxydXN0LWFuc2kt dGVybS0wLjEyKQogICAgICAgICAgICAgICAgICAgICAgICgicnVzdC1hbnlob3ciICxydXN0LWFu eWhvdy0xKQogICAgICAgICAgICAgICAgICAgICAgICgicnVzdC1hc3luYy1zdGQiICxydXN0LWFz eW5jLXN0ZC0xKQogICAgICAgICAgICAgICAgICAgICAgICgicnVzdC1jaWRyLXV0aWxzIiAscnVz dC1jaWRyLXV0aWxzLTAuNSkKICAgICAgICAgICAgICAgICAgICAgICAoInJ1c3QtY29sb3JlZCIg LHJ1c3QtY29sb3JlZC0yKQogICAgICAgICAgICAgICAgICAgICAgICgicnVzdC1jb2xvcmZ1bCIg LHJ1c3QtY29sb3JmdWwtMC4yKQogICAgICAgICAgICAgICAgICAgICAgICgicnVzdC1kaXJzIiAs cnVzdC1kaXJzLTMpCiAgICAgICAgICAgICAgICAgICAgICAgKCJydXN0LWVudi1sb2dnZXIiICxy dXN0LWVudi1sb2dnZXItMC44KQogICAgICAgICAgICAgICAgICAgICAgICgicnVzdC1mdXR1cmVz IiAscnVzdC1mdXR1cmVzLTAuMykKICAgICAgICAgICAgICAgICAgICAgICAoInJ1c3QtZ2NkIiAs cnVzdC1nY2QtMikKICAgICAgICAgICAgICAgICAgICAgICAoInJ1c3QtaXRlcnRvb2xzIiAscnVz dC1pdGVydG9vbHMtMC45KQogICAgICAgICAgICAgICAgICAgICAgICgicnVzdC1sb2ciICxydXN0 LWxvZy0wLjQpCiAgICAgICAgICAgICAgICAgICAgICAgKCJydXN0LXJhbmQiICxydXN0LXJhbmQt MC43KQogICAgICAgICAgICAgICAgICAgICAgICgicnVzdC1ybGltaXQiICxydXN0LXJsaW1pdC0w LjgpCiAgICAgICAgICAgICAgICAgICAgICAgKCJydXN0LXNlcmRlIiAscnVzdC1zZXJkZS0xKQog ICAgICAgICAgICAgICAgICAgICAgICgicnVzdC1zZXJkZS1kZXJpdmUiICxydXN0LXNlcmRlLWRl cml2ZS0xKQogICAgICAgICAgICAgICAgICAgICAgICgicnVzdC1zaGVsbC13b3JkcyIgLHJ1c3Qt c2hlbGwtd29yZHMtMSkKICAgICAgICAgICAgICAgICAgICAgICAoInJ1c3Qtc3RydWN0b3B0IiAs cnVzdC1zdHJ1Y3RvcHQtMC4zKQogICAgICAgICAgICAgICAgICAgICAgICgicnVzdC1zdWJwcm9j ZXNzIiAscnVzdC1zdWJwcm9jZXNzLTAuMikKICAgICAgICAgICAgICAgICAgICAgICAoInJ1c3Qt dGV4dC1wbGFjZWhvbGRlciIgLHJ1c3QtdGV4dC1wbGFjZWhvbGRlci0wLjQpCiAgICAgICAgICAg ICAgICAgICAgICAgKCJydXN0LXRvbWwiICxydXN0LXRvbWwtMC41KQogICAgICAgICAgICAgICAg ICAgICAgICgicnVzdC10cnVzdC1kbnMtcmVzb2x2ZXIiICxydXN0LXRydXN0LWRucy1yZXNvbHZl ci0wLjE5KSkKICAgICAgICM6Y2FyZ28tZGV2ZWxvcG1lbnQtaW5wdXRzICgoInJ1c3Qtd2FpdC10 aW1lb3V0IiAscnVzdC13YWl0LXRpbWVvdXQtMC4yKSkpKQogICAgKG5hdGl2ZS1pbnB1dHMgKGxp c3QgcGVybCBweXRob24pKQogICAgKGhvbWUtcGFnZSAiaHR0cHM6Ly9naXRodWIuY29tL3J1c3Rz Y2FuL3J1c3RzY2FuIikKICAgIChzeW5vcHNpcyAiRmFzdGVyIE5tYXAgU2Nhbm5pbmcgd2l0aCBS dXN0IikKICAgIChkZXNjcmlwdGlvbiAiRmFzdGVyIE5tYXAgU2Nhbm5pbmcgd2l0aCBSdXN0IikK ICAgIChsaWNlbnNlIGxpY2Vuc2U6ZXhwYXQpKSkKCg== --000000000000a4773005fc4e02fb--