[DRE-maint] Bug#585838: rubygems1.8: writes gems only readable by root

Neil Stockbridge neil at dist.ro
Sat Sep 28 02:57:08 UTC 2013


Package: rubygems
Version: 1.8.24-1
Followup-For: Bug #585838

Dear Maintainer,

This bug affects me too.  Here is a quick and dirty workaround:


--- /usr/bin/gem.orig 2013-09-28 14:52:12.255306658 +1200
+++ /usr/bin/gem  2013-09-28 14:41:23.919304084 +1200
@@ -9,6 +9,8 @@
 require 'rubygems/gem_runner'
 require 'rubygems/exceptions'
 
+File.umask 022
+
 required_version = Gem::Requirement.new ">= 1.8.7"
 
 unless required_version.satisfied_by? Gem.ruby_version then


-- System Information:
Debian Release: 7.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.9-0.bpo.1-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_NZ.UTF-8, LC_CTYPE=en_NZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages rubygems depends on:
ii  ruby1.8  1.8.7.358-7

Versions of packages rubygems recommends:
ii  build-essential  11.5
pn  ruby1.8-dev      <none>

rubygems suggests no packages.

-- no debconf information




More information about the Pkg-ruby-extras-maintainers mailing list