Package Details: pacgem 0.9.12-2

Git Clone URL: https://aur.archlinux.org/pacgem.git (read-only, click to copy)
Package Base: pacgem
Description: Install Ruby Gems as Arch Linux packages
Upstream URL: http://github.com/minad/pacgem
Licenses: GPL
Conflicts: pacgem-git
Submitter: jose1711
Maintainer: jose1711
Last Packager: jose1711
Votes: 11
Popularity: 0.000000
First Submitted: 2015-10-09 09:28
Last Updated: 2015-10-09 09:28

Dependencies (1)

Required by (0)

Sources (2)

Latest Comments

sowieso commented on 2021-07-08 03:03

This package is broken, probably since ruby 2.4. There were at least two changes in ruby that need some adaption:

  • open-uri's open changed from modifying Kernel.open to using a separate URI.open method. I couldn't find any documentation of the change upstream, which is really frustrating.
  • gem deprecated the --no-ri --no-rdoc option in favor of a new --no-document option.

Here's a patch that gets pacgem working again (at least for the simple case of installing packages). It would be great if you could apply it :)

@@ -223,7 +223,7 @@

def download
gemfile = "#{gemname}-#{version}.gem"
-      open("#{uri}gems/#{gemfile}") do |i|
+      URI.open("#{uri}gems/#{gemfile}") do |i|
File.open(gemfile, 'w') do |o|
FileUtils.copy_stream(i, o)
end
@@ -597,7 +597,7 @@

# Install the gem
install -d -m755 $_bindir $_gemdir
-  $_gem install --no-ri --no-rdoc --ignore-dependencies --no-user-install \
+  $_gem install --no-document --ignore-dependencies --no-user-install \
--bindir $_bindir --install-dir $_gemdir "$srcdir/$_gemname-$pkgver.gem"
}