unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
* Cargo attemps to download packages already specified as cargo-inputs
@ 2024-12-22 11:06 Gabor Gero via
  2024-12-23 14:55 ` Efraim Flashner
  2024-12-23 15:01 ` Efraim Flashner
  0 siblings, 2 replies; 3+ messages in thread
From: Gabor Gero via @ 2024-12-22 11:06 UTC (permalink / raw)
  To: help-guix

Hello,



I'm trying to package a Rust program, the package definition being

(define pointersearcher-x

  (let ((v "0.7.4-dylib"))

(package

(name "pointersearcher-x")

(version v)

(source (origin

  (uri (git-reference

(url "https://github.com/kekeimiku/PointerSearcher-X")

(commit v)))

  (method git-fetch)

  (sha256 (base32 "1nljhy38kam41l50bhcwjiad3mfhc0nfbxxx934cwpxgsc0ilhjw"))))

(build-system cargo-build-system)

(arguments `(#:cargo-inputs (("rust-rayon" ,rust-rayon-1) ("rust-argh" ,rust-argh-0.1))))

(synopsis "An application for finding memory pointers.")

(description "Memory dynamic pointer chain search tool.")

(license agpl3+)

(home-page "https://github.com/kekeimiku/PointerSearcher-X")

(supported-systems '("x86_64-linux" "aarch64-linux")))))



The problem is that if I try to build it via guix build, while all the Rust dependencies get pulled in by guix perfectly fine, once it reaches the build stage, cargo prints the following warning:
"warning: `/tmp/guix-build-pointersearcher-x-0.7.4-dylib.drv-0/source/.cargo/config` is deprecated in favor of `config.toml`
note: if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml`"
and attempts to download argh and rayon. What am I doing wrong?


Thanks,

Gabor

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Cargo attemps to download packages already specified as cargo-inputs
  2024-12-22 11:06 Cargo attemps to download packages already specified as cargo-inputs Gabor Gero via
@ 2024-12-23 14:55 ` Efraim Flashner
  2024-12-23 15:01 ` Efraim Flashner
  1 sibling, 0 replies; 3+ messages in thread
From: Efraim Flashner @ 2024-12-23 14:55 UTC (permalink / raw)
  To: Gabor Gero; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 1451 bytes --]

On Sun, Dec 22, 2024 at 12:06:23PM +0100, Gabor Gero via wrote:
> Hello,
> 
<snip> 
> 
> The problem is that if I try to build it via guix build, while all the Rust dependencies get pulled in by guix perfectly fine, once it reaches the build stage, cargo prints the following warning:
> "warning: `/tmp/guix-build-pointersearcher-x-0.7.4-dylib.drv-0/source/.cargo/config` is deprecated in favor of `config.toml`
> note: if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml`"
> and attempts to download argh and rayon. What am I doing wrong?

We install the generated config.toml in .cargo/config instead of in
.cargo/config.toml because in the past any file in .cargo/config would
override any settings in the config.toml file.  Sometimes upstream ships
the sources with their settings there and it breaks builds inside Guix.
You can ignore the warning.  I figure I'll move the file to config.toml
when the warning becomes an error.

So you're not doing anything wrong. I should investigate and see if it's
still the case that .cargo/config takes precedence over
.cargo/config.toml or see if there's some flag or something we can be
passing to force reading our config specifically.

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Cargo attemps to download packages already specified as cargo-inputs
  2024-12-22 11:06 Cargo attemps to download packages already specified as cargo-inputs Gabor Gero via
  2024-12-23 14:55 ` Efraim Flashner
@ 2024-12-23 15:01 ` Efraim Flashner
  1 sibling, 0 replies; 3+ messages in thread
From: Efraim Flashner @ 2024-12-23 15:01 UTC (permalink / raw)
  To: Gabor Gero; +Cc: help-guix

[-- Attachment #1: Type: text/plain, Size: 1103 bytes --]

On Sun, Dec 22, 2024 at 12:06:23PM +0100, Gabor Gero via wrote:
> Hello,
> 
<snip> 
> 
> The problem is that if I try to build it via guix build, while all the Rust dependencies get pulled in by guix perfectly fine, once it reaches the build stage, cargo prints the following warning:
> "warning: `/tmp/guix-build-pointersearcher-x-0.7.4-dylib.drv-0/source/.cargo/config` is deprecated in favor of `config.toml`
> note: if you need to support cargo 1.38 or earlier, you can symlink `config` to `config.toml`"
> and attempts to download argh and rayon. What am I doing wrong?

Oh, I responded to the warning and not the actual problem.

I see that command/Cargo.toml gives a git url for argh, that might need
to be patched to refer to a released version which you'd provide.  Also
in libptrscan/Cargo.toml it lists a dependency on machx-0.4 which you
might also need to add.

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-12-23 15:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-22 11:06 Cargo attemps to download packages already specified as cargo-inputs Gabor Gero via
2024-12-23 14:55 ` Efraim Flashner
2024-12-23 15:01 ` Efraim Flashner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).