-
-
Notifications
You must be signed in to change notification settings - Fork 114
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
[Error] PKGBUILD is not writeable #651
Comments
Thanks for reporting this. It seems that how we're approaching the management of git packages is flawed. |
I agree with your assessment here, the cloning/pulling should be done as the nonroot user. I'm double-checking the internals now. |
Some strange permissions floating around:
Notice that the |
Although in another package, we don't see that same issue:
|
That's certainly interesting. And then there's even a mix of user:group in there.
|
I believe I have it solved. |
Summary
Installing AUR *-git package produces warning from makepkg: "PKGBUILD is not writeable -- pkgver will not be updated". Thus, version won't get replaced with the latest revision, and the package will be "downgraded".
Description
First time noticed the warning while reinstalling package plasma5-applets-kde-githubissues-git^AUR:
WARNING: /var/cache/aura/vcs/plasma5-applets-kde-githubissues-git/plasma5-applets-kde-githubissues-git/PKGBUILD is not writeable -- pkgver will not be updated
I was working under root, naturally. I checked on that PKGBUILD file permissions, and turned out it was owned by root:
-rw-r--r-- 1 root root
. AFAIK, makepkg would drop priveledges while building packages, so that might have caused problems.Expected behavior
Download & build packages without root priveledges, so that PKGBUILD is writable, and
pkgver
can be updated.Actual behavior
==> WARNING: /var/cache/aura/vcs/plasma5-applets-kde-githubissues-git/plasma5-applets-kde-githubissues-git/PKGBUILD is not writeable -- pkgver will not be updated
warning: downgrading package plasma5-applets-kde-githubissues-git (r143.c799c56-1 => r46.f7a5f56-2)
Full output
Alternatives
pacaur
builds latest git version just fine. PKGBUILD's permissions are the same, owner is the regular user:-rw-r--r-- 1 ratijas users
.Related
#634
Version
The text was updated successfully, but these errors were encountered: