Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Portage & Programming
  • Search

Cargo trying to fetch Crate listed in GIT_CRATES from Internet [Solved]

Problems with emerge or ebuilds? Have a basic programming question about C, PHP, Perl, BASH or something else?
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
vimja
n00b
n00b
Posts: 25
Joined: Sat Mar 26, 2022 1:23 pm
Location: Bern, Switzerland
Contact:
Contact vimja
Website

Cargo trying to fetch Crate listed in GIT_CRATES from Internet [Solved]

  • Quote

Post by vimja » Sat Apr 04, 2026 8:49 pm

Hi

I'm trying to create an ebuild for the Tuwunel [matrix] server. I used pycargoebuild and referenced the net-im/conduit ebuild in Guru (Tuwunel is a fork of Conduit). Here is what it looks like: https://pastebin.com/byDS2BwV

Now, I'm faced with an issue where the compile stage fails with the following error message:

Code: Select all

error: failed to load source for dependency `async-channel`

Caused by:
  Unable to update https://github.com/matrix-construct/async-channel?rev=92e5e74063bf2a3b10414bcc8a0d68b235644280#92e5e740

Caused by:
  can't checkout from 'https://github.com/matrix-construct/async-channel': you are in the offline mode (--offline)
(complete build log)


I don't understand how and why this happens. async-channel is listed in GIT_CRATES and gets placed in the ${WORKDIR} as expected.

Any ideas what's going wrong and how I can fix it?
Last edited by vimja on Sun Apr 05, 2026 10:29 pm, edited 1 time in total.
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3537
Joined: Thu Feb 22, 2018 2:29 pm

Re: Cargo trying to fetch Crate listed in GIT_CRATES from Internet

  • Quote

Post by logrusx » Sun Apr 05, 2026 6:55 pm

https://wiki.gentoo.org/wiki/Writing_Ru ... pendencies

I hope this helps.

Best Regards,
Georgi
Top
vimja
n00b
n00b
Posts: 25
Joined: Sat Mar 26, 2022 1:23 pm
Location: Bern, Switzerland
Contact:
Contact vimja
Website

Re: Cargo trying to fetch Crate listed in GIT_CRATES from Internet

  • Quote

Post by vimja » Sun Apr 05, 2026 10:29 pm

logrusx wrote: Sun Apr 05, 2026 6:55 pm https://wiki.gentoo.org/wiki/Writing_Ru ... pendencies

I hope this helps.
Not quite. I had seen that already, but no luck.

However, I've now found a solution. On the same wiki page even. It works when I use a vendor tarball as described here: https://wiki.gentoo.org/wiki/Writing_Ru ... Go_ebuilds
Top
logrusx
Advocate
Advocate
User avatar
Posts: 3537
Joined: Thu Feb 22, 2018 2:29 pm

Re: Cargo trying to fetch Crate listed in GIT_CRATES from Internet

  • Quote

Post by logrusx » Mon Apr 06, 2026 7:38 pm

vimja wrote: Sun Apr 05, 2026 10:29 pm
logrusx wrote: Sun Apr 05, 2026 6:55 pm https://wiki.gentoo.org/wiki/Writing_Ru ... pendencies

I hope this helps.
Not quite. I had seen that already, but no luck.

However, I've now found a solution. On the same wiki page even. It works when I use a vendor tarball as described here: https://wiki.gentoo.org/wiki/Writing_Ru ... Go_ebuilds
I'm glad you've found it. I didn't have time to look at your ebuild but I remembered those wiki pages (for rust and go ebuilds) have always saved the day for me so far.

Best Regards,
Georgi
Top
Post Reply

4 posts • Page 1 of 1

Return to “Portage & Programming”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic