Pamac cli and pamac GUI no longer builds AUR packages

Since the today’s update, Pamac (both cli and gui) is no longer able to build AUR packages.

Pamac has been updated from 10.5.1-2 to 11.0.1-2; libpamac from 11.5.4-1 to 11.5.5-2.

The described issue occurs with any AUR package. E.g:

pamac build qimgv-git
Cloning qimgv-git build files...
Generating qimgv-git information...
Checking qimgv-git dependencies...
cp: cannot create regular file '/var/tmp/pamac/dbs/sync/pamac_aur.db': Permission denied
Error: Failed to prepare transaction: target not found: qimgv-git

I tried to delete /var/tmp/pamac/dbs/sync/pamac_aur.db but the error won’t go away.

EDIT: the file /var/tmp/pamac/dbs/sync/pamac_aur.db doesn’t exists at all.

No problems, instead, if I use yay to build AUR packages: no error occurs.

Probably this commit broke pamac.

Until it’s fixed, I would switch to a functioning AUR helper (yay or paru).

yes : no permission for create it, this directory is for root only :sob:

used sudo ? it’s bad.

for test, you can remove this directory sudo rm -rf /var/tmp/pamac