Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Building on Arch Linux using the AUR helper script fails #159

Closed
lion7 opened this issue Nov 24, 2023 · 3 comments
Closed

Building on Arch Linux using the AUR helper script fails #159

lion7 opened this issue Nov 24, 2023 · 3 comments

Comments

@lion7
Copy link

lion7 commented Nov 24, 2023

I'm trying to build the entire Cosmic DE on Arch Linux using the AUR helper script. Unfortunately this fails when trying to checkout the smithay client-toolkit. My best guess is that it's caused by the double slash at the end of the URL in

sctk = { git = "https://github.com/smithay/client-toolkit//", package = "smithay-client-toolkit", rev = "e63ab5f" }

E.g. this fails:

❯ git fetch --tags --force --update-head-ok 'https://github.com/smithay/client-toolkit//' '+refs/heads/*:refs/remotes/origin/*' '+HEAD:refs/remotes/origin/HEAD'
ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

But this works:

❯ git fetch --tags --force --update-head-ok 'https://github.com/smithay/client-toolkit/' '+refs/heads/*:refs/remotes/origin/*' '+HEAD:refs/remotes/origin/HEAD'
remote: Enumerating objects: 94863, done.
remote: Counting objects: 100% (35768/35768), done.
remote: Compressing objects: 100% (1811/1811), done.
remote: Total 94863 (delta 33575), reused 35527 (delta 33412), pack-reused 59095
Receiving objects: 100% (94863/94863), 24.79 MiB | 1.15 MiB/s, done.
Resolving deltas: 100% (89438/89438), done.

Full error I got from the AUR helper script:

Submodule path 'xdg-desktop-portal-cosmic': checked out 'b0783c726a593ca44959c50d7306ac3581826dcb'
~/.cache/yay/cosmic-epoch-git/src/cosmic-epoch/cosmic-applets ~/.cache/yay/cosmic-epoch-git/src/cosmic-epoch
    Updating git repository `https://github.com/smithay/client-toolkit//`
ERROR: Repository not found.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
error: failed to load source for dependency `smithay-client-toolkit`

Caused by:
  Unable to update https://github.com/smithay/client-toolkit//?rev=e63ab5f#e63ab5f0

Caused by:
  failed to clone into: /home/gerard/.cache/yay/cosmic-epoch-git/src/cargo-home/git/db/_empty-f31853f5765173d8

Caused by:
  process didn't exit successfully: `git fetch --tags --force --update-head-ok 'https://github.com/smithay/client-toolkit//' '+refs/heads/*:refs/remotes/origin/*' '+HEAD:refs/remotes/origin/HEAD'` (exit status: 128)
==> ERROR: A failure occurred in prepare().
    Aborting...
 -> error making: cosmic-epoch-git-exit status 4
 -> Failed to install the following packages. Manual intervention is required:
cosmic-epoch-git - exit status 4
@lion7
Copy link
Author

lion7 commented Nov 24, 2023

Just found rust-lang/cargo#5478 , I already tried using the following URLs with no succes:

  • https://github.com/Smithay/client-toolkit.git
  • https://github.com:443/Smithay/client-toolkit

The following seems to work:
https://github.com//Smithay/client-toolkit

I also had to replace a few other patched URLs. In the end I just ran these commands which fixed my issues:

  grep "https://github.com/smithay//smithay" . -r --include=Cargo.toml -l | xargs -l sed -i 's|git = "https://github.com/smithay//smithay"|git = "https://github.com//smithay/smithay"|'
  grep "https://github.com/.*//" . -r --include=Cargo.toml -l | xargs -l sed -i 's|git = "https://github.com/\(.*\)//"|git = "https://github.com//\1"|'

@Kartonrealista
Copy link

Is the aur helper script maintained by the devs here or a community thing? If the latter reporting here does nothing. Even more so if the issue is with cargo itself.

@mmstick
Copy link
Member

mmstick commented Aug 2, 2024

@Kartonrealista It would be maintained by the AUR maintainer.
We only maintain Pop!_OS packaging.

@mmstick mmstick closed this as completed Aug 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants