-
Notifications
You must be signed in to change notification settings - Fork 89
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
aur sync -c $pkg fails to build in chroot #371
Comments
Thanks for the report. Could you |
Apparently that one, although I did have some issue with the bisecting due to various other commits failing for unrelated reasons, so this has to be taken with a grain of salt cddd35886993e0786663fe50a41381d1e54a00f5 is the first bad commit
commit cddd35886993e0786663fe50a41381d1e54a00f5
Author: Alad Wenter <alad@archlinux.org>
Date: Thu Apr 12 17:43:58 2018 +0200
build-nspawn: now runs as regular user
aur-build-nspawn is now called as a regular user as in the 1.5 branch.
This removes the need to whitelist aur(1) with or without wildcards.
install(1) is not required, as the container directory is already
created by mkarchroot:
https://git.archlinux.org/devtools.git/tree/mkarchroot.in#n64
:040000 040000 334b8911afe7df0b08ef7377148b9ac7dcfaec07 a2dacbad6b0a5661e5ad6096c7b4a82ebef9bdae M lib
:040000 040000 75cf08cd856c528f2233fa701e27e641986c1937 8035d8845df062cdb05036964b62bf321085c753 M man1 |
Yes, that's the commit I suspected. Will take a look. |
@AladW I've looked into this and seems that the removal of
https://git.archlinux.org/devtools.git/tree/mkarchroot.in#n49 working_dir="$(readlink -f "$1")"
shift 1
[[ -z $working_dir ]] && die 'Please specify a working directory.' |
Thanks! That's unfortunate since there's no easy approach for I'd rather not go back to an |
I agree.
Not sure why too. It's even more peculiar if you consider they test for it again 13 lines below, before creating the directory. https://git.archlinux.org/devtools.git/tree/mkarchroot.in#n62 [[ -e $working_dir ]] && die "Working directory '%s' already exists" "$working_dir"
mkdir -p "$working_dir"
Not sure if they're trying really hard to make sure the path up to the last component exists, and the last component doesn't, or if this is an unintentional leftover from the refactor done in 453558c4bb44b4bff43fcd22f96d4cfe1dbcf6f1 where the second test was introduced. Should probably ask upstream for clarification. |
It should really be using |
Having the same problem, which means not being able to build | sync in a container (option -c) any more:
|
@cjk The problem comes from @AladW They would have to change to something like: 1 Creating this directory at install time is not an option due to |
I don't have the means right now to fix this upstream, so I just added back |
On a first glance, shouldn't it be |
yes
Does the package conform to PKGBUILD(5) and the AUR package guidelines?
yes, it fails as well for aurutils-git, which hopefully meets the guidelines 😉
Does the package provide the correct metadata on the AUR RPC interface?
yes, see above
Does the package build with makepkg -s or extra-x86_64-build ?
yes, even aur sync -u aurutils-git
Is the problem reproducible, and not due to a misconfiguration of pacman, makepkg, sudoers, gpg or others?
I am afraid I don't know, has nothing to do with sudoers / gpg. Though I am not sure about pacman / makepkg. Any pointers as to what to check will be appreciated
issue:
Running
aur sync -cu aurutils-git
fails with the error below, I expected a chroot to be generated. Is this a wrong assumption?The text was updated successfully, but these errors were encountered: