question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

AUR asks for password on `makepkg`

See original GitHub issue

https://aur.archlinux.org/packages/itch/#comment-550531

==> Starting build()...
Fetching gem metadata from https://rubygems.org/
Fetching version metadata from https://rubygems.org/
Fetching dependency metadata from https://rubygems.org/


Your user account isn't allowed to install to the system Rubygems.
  You can cancel this installation and run:

      bundle install --path vendor/bundle

  to install the gems into ./vendor/bundle/, or you can enter your password
  and install the bundled gems to Rubygems using sudo.

  Password: 

Not sure if this is part of the aur, or the build process, but I think there should be dependency resolution here - it shouldn’t ask you to install stuff otherwise. Either ruby should install the gem locally, or my package manager (pacman) should install it.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:13

github_iconTop GitHub Comments

2reactions
Tele42commented, Jul 10, 2016

Hello, please forgive me for sticking my nose where it does not belong, as I am not an Arch user, but it appears like you’re trying to treat ruby gems like a special dependency. You should be asking for the ruby gem module to get put into the system before trying to build your package like any other dependency.

It looks like you are failing at a missing ruby archive-tar-minitar dependency, which is available in the aur at https://aur.archlinux.org/packages/ruby-archive-tar-minitar/.

Additionally, the original issue appears to be an attempt to use bundle install to bypass the package manager and directly install system files from inside Arch’s package builder, which should be a security violation. The expectation should be that all sane package managers do not allow for system files to be changed or written outside of the build sandbox.

The distinction here is that all files to be installed to the system go to a staging folder, and the package manager does all it’s normal sanity checks like checking for file conflicts as well as generating a file manifest so that the package can later be removed. Other dependency managers like ruby’s bundler bypass the package manager and push files into the system without the package manager being involved, which is fine for individual system admin’s to choose to do to their own systems, but not okay for package maintainers to do to other people’s systems.

1reaction
fasterthanlimecommented, Jul 27, 2016

Finally managed to get an ArchLinux VM running, I can confirm 18.4.0 installs correctly, without asking for root password or filling ~/.bundle. The only thing missing is a dependency on libxss.

yaourt-s-itch

downloading

Read more comments on GitHub >

github_iconTop Results From Across the Web

password request installing package from AUR
Depending on your sudoers configuration, sudo may ask for your password. Thereby when makepkg -s tries to install missing dependencies, ...
Read more >
AUR package asks my Github username and password during ...
Hello, when i “pamac build librevault” it asks my Github username and password: Username for 'https://github.com': … i was worried and ...
Read more >
Ansible AUR module keep asking for sudo password #74
I haven't seen this. It looks like this is new behaviour in makepkg . It may be they are now looking at the...
Read more >
AUR software requesting git username and password - Reddit
https://aur.archlinux.org/packages/alchemy-viewer/ Try to contact the packager, his PKGBUILD seems to try to get sources from a private git.
Read more >
How to Install and Use yay on Arch Linux - MakeUseOf
An AUR helper like yay lets you download and install packages from the Arch ... Finally, use the makepkg command to build and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found