yay icon indicating copy to clipboard operation
yay copied to clipboard

PKGBUILDS fail to clone correctly

Open h-lunah opened this issue 3 years ago • 2 comments

Affected Version

yay v12.0.4.r6.g64bb346 - libalpm v13.0.2

Describe the bug

The PKGBUILDS for packages are unable to clone properly due to permission errors, even with root permissions.

Reproduction Steps

  1. Clean your yay cache with yay -Scc
  2. Try to install a package eg. yay -S rsyslog
  3. Experience a chain of errors occurring

Expected behavior

The PKGBUILDS should've cloned properly and the package should have been installed.

Output

There's a lot of errors occurring:

AUR Explicit (1): rsyslog-8.2302.0-1
AUR Make Dependency (4): liblogging-1.0.6-3, librelp-1.10.0-1, libestr-0.1.11-1, libfastjson-0.99.9-2
:: (0/5) Downloaded PKGBUILD: rsyslog
:: (0/5) Downloaded PKGBUILD: libestr
:: (0/5) Downloaded PKGBUILD: libfastjson
:: (0/5) Downloaded PKGBUILD: librelp
:: (1/5) Downloaded PKGBUILD: liblogging
 -> error fetching rsyslog: fatal: could not create work tree dir 'rsyslog': Permission denied
         context: exit status 128

error fetching libestr: fatal: could not create work tree dir 'libestr': Permission denied
         context: exit status 128

error fetching libfastjson: fatal: could not create work tree dir 'libfastjson': Permission denied
         context: exit status 128

error fetching librelp: fatal: could not create work tree dir 'librelp': Permission denied
         context: exit status 128

The configuration is:

{
        "aururl": "https://aur.archlinux.org",
        "aurrpcurl": "https://aur.archlinux.org/rpc?",
        "buildDir": "/var/cache/yay",
        "editor": "",
        "editorflags": "",
        "makepkgbin": "makepkg",
        "makepkgconf": "",
        "pacmanbin": "pacman",
        "pacmanconf": "/etc/pacman.conf",
        "redownload": "no",
        "rebuild": "no",
        "answerclean": "",
        "answerdiff": "",
        "answeredit": "",
        "answerupgrade": "",
        "gitbin": "git",
        "gpgbin": "gpg",
        "gpgflags": "",
        "mflags": "",
        "sortby": "votes",
        "searchby": "name-desc",
        "gitflags": "",
        "removemake": "ask",
        "sudobin": "doas",
        "sudoflags": "",
        "version": "12.0.4.r6.g64bb346",
        "requestsplitn": 150,
        "completionrefreshtime": 7,
        "maxconcurrentdownloads": 0,
        "bottomup": true,
        "sudoloop": false,
        "timeupdate": false,
        "devel": true,
        "cleanAfter": false,
        "provides": true,
        "pgpfetch": true,
        "upgrademenu": true,
        "cleanmenu": true,
        "diffmenu": true,
        "editmenu": false,
        "combinedupgrade": true,
        "useask": false,
        "batchinstall": false,
        "singlelineresults": false,
        "separatesources": true,
        "newinstallengine": true,
        "debug": false,
        "rpc": true,
        "doubleconfirm": true
}

h-lunah avatar Apr 17 '23 11:04 h-lunah

Hey @piotr25691, to confirm, are you running yay as root?

(also checking permissions of folders in the cache might help debug)

Jguer avatar Apr 18 '23 07:04 Jguer

Hey @piotr25691, to confirm, are you running yay as root?

(also checking permissions of folders in the cache might help debug)

Yes I'm trying to run it as root and the permissions are the defaults

h-lunah avatar Apr 19 '23 05:04 h-lunah