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

Regression? "Failed to 'git pull' the latest updates" #824

Closed
muchgitsuchwow opened this issue Jan 21, 2024 · 7 comments
Closed

Regression? "Failed to 'git pull' the latest updates" #824

muchgitsuchwow opened this issue Jan 21, 2024 · 7 comments

Comments

@muchgitsuchwow
Copy link

Hey guys,

first of all thanks for the first/only pacman/AUR thingy that is just great.

I might have some regression or something related to #615.

# via aura-bin package
aura -V
 __ _ _  _ _ _ __ _    Pacman v6.0.2 - libalpm v13.0.2
/ _` | || | '_/ _` |   Copyright (C) 2006-2021 Pacman Development Team
\__,_|\_,_|_| \__,_|   Copyright (C) 2002-2006 Judd Vinet
AURA Version 3.2.9     
 by Colin Woodbury     This program may be freely redistributed under
                       the terms of the GNU General Public License.
  • /etc/aura.conf
# --- Aura Config --- #

user = my_unprivileged_user
buildpath = /tmp
allsourcepath = /var/cache/aura/src
vcspath = /var/cache/aura/vcs

broken

Assumption: /var/cache/aura/vcs is non-existent.

sudo aura -Ax niri-git
sudo aura -Ax libumem-git

working

Unprivileged user in $HOME.

aura -Aw libumem-git
tar xzf libumem-git*
cd libumem-git/
makepkg
sudo aura -Aackux  # this one updated e.g. ungoogled-chromium-bin

From strace it looks like that a repository has been cloned and removed again before the "Failed to 'git pull' …" message. Not a "how to read strace" expert here! No idea what's going on here. Note that the error comes up quite quickly, e.g.

sudo strace -o /tmp/aura.strace -- aura --noconfirm -Ax libumem-git  0.00s user 0.01s system 1% cpu 0.619 total
@muchgitsuchwow
Copy link
Author

I just tested niri-git on my notebook (which has a pretty similar setup), and everything works just fine. I'm confused.

@fosskers
Copy link
Owner

Hi, thanks for the report.

As you've shown here, -Aw is mostly unrelated to the pulling occurring during builds. And you were able to build it on another machine. I myself just built it successfully here too, albeit with the 4.0 alpha.

Is the issue still occurring on your first machine?

@muchgitsuchwow
Copy link
Author

Hey there, thanks for the quick response :)

For me the issue is still there on one of two machines:

sudo aura --noconfirm -Ax niri-git
aura >>= Determining dependencies...
aura >>= AUR Packages:
niri-git
aura >>= Building niri-git...
aura >>= Failed to 'git pull' the latest updates.
aura >>= Every package failed to build.

I think we can agree that there is something wrong on my machine. I'll investigate further. Perhaps I find something. If so I'll update this with my findings and close this ticket.

@fosskers
Copy link
Owner

fosskers commented Jan 23, 2024

Thanks, let me know. One thing you can try it double-checking the permissions on the vcs directory that gets created. There may also be some weird problem with dirty git worktrees? Funny too that it's warning you about git pull and not git clone, which you think it would be in this case.

Luckily in Aura 4 all such directories are done under the user's home, so a lot of permission-related problems go away.

@muchgitsuchwow
Copy link
Author

When can I have aura 4? :)

So it becomes even a little more crazy:

broken

sudo aura -Ax niri-git

working

sudo -i
aura -Ax niri-git

Let's close this and I'll wait for 4 :)

@muchgitsuchwow
Copy link
Author

Just to add this note: I use umask 077. Might be related.

@fosskers
Copy link
Owner

fosskers commented Jan 23, 2024

When can I have aura 4?

Right now!

cargo install aura-pm --version 4.0.0-alpha9

Just to add this note: I use umask 077. Might be related.

Yup the new version avoids all such problems.

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

2 participants