`google-cloud-sdk` AUR package gets built incorrectly, ends up using `/root` for configuration files but cannot access. (Works with manual `makepkg`.)
Pamac --version
Pamac 10.3.0-6 - libpamac 11.2.0-12
Variant in use
GUI and CLI
Distribution
Manjaro
Desktop environment
GNOME
What's not working
$ sudo pamac install google-cloud-sdk
[…]
File "/var/cache/private/pamac/google-cloud-sdk/pkg/google-cloud-sdk/opt/google-cloud-sdk/lib/googlecloudsdk/core/configurations/named_configs.py", line 549, in _ActiveConfigNameFromFile
raise NamedConfigFileAccessError(
googlecloudsdk.core.configurations.named_configs.NamedConfigFileAccessError: Active configuration name could not be read from: [/root/.config/gcloud/active_config]. Ensure you have sufficient read permissions on required active configuration in [/root/.config/gcloud/configurations].
Unable to read file [/root/.config/gcloud/active_config]: [Errno 13] Permission denied: '/root/.config/gcloud/active_config'
==> ERROR: A failure occurred in package().
Aborting...
Finished with result: exit-code
Main processes terminated with: code=exited/status=4
I tried various combinations of sudo
, bash -c
, su
, and environment variables. The result was the same failure in each case.
Running makepkg
as a regular user and using sudo
for the install afterwards works.
How to reproduce?
sudo pamac install google-cloud-sdk
OR:
- Install from the GUI
pamac
client.
More information (optional)
A previous installation of this package may be necessary— I was updating from 369.X
.
Reported to package maintainer: https://github.com/sudoforge/pkgbuilds/issues/59. Says problem is not with package, but probably with something pamac
is doing.