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

Can't compile from AUR anymore. #1477

Closed
qazip opened this issue Jul 7, 2021 · 11 comments
Closed

Can't compile from AUR anymore. #1477

qazip opened this issue Jul 7, 2021 · 11 comments

Comments

@qazip
Copy link

qazip commented Jul 7, 2021

I ma getting the following error, when trying to install zsh-theme-powerlevel10k-git-r3896.4bcc519-5 from AUR.

Building gitstatusd...

  kernel := linux
  arch := x86_64
  cpu := x86-64
  install tools := no
  download deps := yes
/home/user/.cache/paru/clone/zsh-theme-powerlevel10k-git/src/powerlevel10k/gitstatus/deps/gitstatusd.libgit2.tmp: No such file or directory
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'zsh-theme-powerlevel10k-git-r3896.4bcc519-5': 
error: packages failed to buid: zsh-theme-powerlevel10k-git-r3896.4bcc519-5
@romkatv
Copy link
Owner

romkatv commented Jul 7, 2021

This can happen if /home/user/.cache/paru/clone/zsh-theme-powerlevel10k-git/src/powerlevel10k/gitstatus/deps doesn't exist. I don't know why it could not exist on your machine. Maybe try clearing some cache and/or hard reinstalling this package? I don't use paru myself, so I don't know whether it's a thing or not.

@qazip
Copy link
Author

qazip commented Jul 7, 2021

I cleared cache and still same error. Also tried with 'yay' instead of paru, and am still getting the same error. Reinstalling also didn't work..

@romkatv
Copy link
Owner

romkatv commented Jul 7, 2021

Odd. It works for me on a clean system.

docker run --rm archlinux bash -uexc '
  pacman -Syy
  pacman -S --noconfirm archlinux-keyring
  pacman -Su --noconfirm
  pacman -S --noconfirm base-devel git
  useradd -ms /bin/bash me
  echo "me ALL=(ALL) NOPASSWD:ALL" >>/etc/sudoers
  runuser -l me -c "
    set -uex
    git clone --depth=1 https://aur.archlinux.org/yay.git ~/yay
    cd ~/yay
    makepkg -si --noconfirm
    yay -Sy --noconfirm zsh-theme-powerlevel10k-git"'

If you figure out what's wrong, please leave a comment.

@romkatv
Copy link
Owner

romkatv commented Jul 12, 2021

Were you able to figure out what's wrong?

@qazip
Copy link
Author

qazip commented Jul 12, 2021

No. I installed the community version instead.

@romkatv
Copy link
Owner

romkatv commented Jul 12, 2021

Thanks for the update.

I'm going to close this issue because I don't intend to do anything here. The issue you are experiencing must be affecting a very small number of users (perhaps just one). If you ever get a clue about what might be the culprit, please post a comment.

@romkatv romkatv closed this as completed Jul 12, 2021
romkatv added a commit to romkatv/gitstatus that referenced this issue Aug 18, 2021
romkatv added a commit that referenced this issue Aug 18, 2021
2ecd9907 add logging to debug #1477
74010456 add a TODO to fix #254
864f1caf Trim '\w' part of bash prompt. (#253)

git-subtree-dir: gitstatus
git-subtree-split: 2ecd990706255d2000fedbde3b2d2353f63d69a1
@alexpyattaev
Copy link

alexpyattaev commented Aug 23, 2021

Same story... cleaned all caches, and same result.

==> Making package: zsh-theme-powerlevel10k-git r3918.25e5f59-1 (Mon 23 Aug 2021 12:30:08 AM EEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Updating powerlevel10k git repo...
Fetching origin
==> Validating source files with md5sums...
    powerlevel10k ... Skipped
==> Removing existing $srcdir/ directory...
==> Extracting sources...
  -> Creating working copy of powerlevel10k git repo...
Cloning into 'powerlevel10k'...
done.
==> Starting pkgver()...
==> Updated version: zsh-theme-powerlevel10k-git r3923.0a1946b-1
==> Sources are ready.
==> Making package: zsh-theme-powerlevel10k-git r3923.0a1946b-1 (Mon 23 Aug 2021 12:30:15 AM EEST)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> WARNING: Using existing $srcdir/ tree
==> Starting pkgver()...
==> Starting build()...
Building gitstatusd...

  kernel := linux
  arch := x86_64
  cpu := x86-64
  install tools := no
  download deps := yes
/home/${username}/.cache/yay/zsh-theme-powerlevel10k-git/src/powerlevel10k/gitstatus/deps/gitstatusd.libgit2.tmp: No such file or directory
/usr/local/bin/wget
drwxr-xr-x 1 ${username} ${username} 406 Aug 23 00:30 /home/${username}/.cache/yay/zsh-theme-powerlevel10k-git/src/powerlevel10k/gitstatus
total 212
-rw-r--r-- 1 ${username} ${username}    91 Aug 23 00:30 .clang-format
-rw-r--r-- 1 ${username} ${username}   309 Aug 23 00:30 .gitattributes
-rw-r--r-- 1 ${username} ${username}    87 Aug 23 00:30 .gitignore
drwxr-xr-x 1 ${username} ${username}    68 Aug 23 00:30 .vscode
-rw-r--r-- 1 ${username} ${username} 35149 Aug 23 00:30 LICENSE
-rw-r--r-- 1 ${username} ${username}  1362 Aug 23 00:30 Makefile
-rw-r--r-- 1 ${username} ${username} 26047 Aug 23 00:30 README.md
-rwxr-xr-x 1 ${username} ${username} 18874 Aug 23 00:30 build
-rw-r--r-- 1 ${username} ${username}   964 Aug 23 00:30 build.info
drwxr-xr-x 1 ${username} ${username}    16 Aug 23 00:30 deps
drwxr-xr-x 1 ${username} ${username}    20 Aug 23 00:30 docs
-rw-r--r-- 1 ${username} ${username} 19288 Aug 23 00:30 gitstatus.plugin.sh
-rw-r--r-- 1 ${username} ${username} 33608 Aug 23 00:30 gitstatus.plugin.zsh
-rw-r--r-- 1 ${username} ${username}  4490 Aug 23 00:30 gitstatus.prompt.sh
-rw-r--r-- 1 ${username} ${username}  4854 Aug 23 00:30 gitstatus.prompt.zsh
-rwxr-xr-x 1 ${username} ${username} 14687 Aug 23 00:30 install
-rw-r--r-- 1 ${username} ${username}  4614 Aug 23 00:30 install.info
-rwxr-xr-x 1 ${username} ${username} 11241 Aug 23 00:30 mbuild
drwxr-xr-x 1 ${username} ${username}   796 Aug 23 00:30 src
drwxr-xr-x 1 ${username} ${username}    16 Aug 23 00:30 usrbin
drwxr-xr-x 1 ${username} ${username} 16 Aug 23 00:30 /home/${username}/.cache/yay/zsh-theme-powerlevel10k-git/src/powerlevel10k/gitstatus/deps
total 0
-rw-r--r-- 1 ${username} ${username} 0 Aug 23 00:30 .gitkeep
==> ERROR: A failure occurred in build().
    Aborting...
error making: zsh-theme-powerlevel10k-git
yay -Su  108.69s user 34.88s system 90% cpu 2:38.76 total

I am really unsure what is supposed to happen and what else can possibly be done to fix.

romkatv added a commit to romkatv/gitstatus that referenced this issue Aug 23, 2021
Some users have non-conforming wget on there systems which
prevents `-O output-file` from working. One example:
romkatv/powerlevel10k#1477.
It's possible that on such systems wget is a symlink to
firejail.
@romkatv
Copy link
Owner

romkatv commented Aug 23, 2021

Same story... cleaned all caches, and same result.

This is expected. I've only added extra logging to see what's going on.

The extra info does help. I've implemented a workaround that might fix the issue. Please try again. If it still doesn't work, post the output.

@romkatv romkatv reopened this Aug 23, 2021
@romkatv
Copy link
Owner

romkatv commented Aug 27, 2021

Please try again. If it still doesn't work, post the output.

Please. Whenever you have time. I'd like to fix this but I cannot without your help because I cannot reproduce it.

@alexpyattaev
Copy link

IT WORKS!!!!
Thanks!

@romkatv
Copy link
Owner

romkatv commented Aug 27, 2021

Thanks for verifying. Closing as Fixed.

@romkatv romkatv closed this as completed Aug 27, 2021
archlinux-github pushed a commit to archlinux/aur that referenced this issue Jul 30, 2022
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