Package: god
Version: 0.7.18-1
Severity: minor
Tags: patch
I have installed god and noticed that the package depends on rubygems ->
rubygems1.8 and they depend on build-essentials , installing all those
compiling stuff, that isnt
needed at all for this package, the path that the god package installs we dont
need to require rubygems library to expand the lib path to found it correctly.
Ive created a patch to not change the upstream package removing the require
rubygems line and removed rubygems for the depends field of the control file.
I just created a bug report to avoid to install unecessary package in
production environment
HTH
-- System Information:
Debian Release: wheezy/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.39.1-ahfalo (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -uNr god-0.7.18/debian/control god-0.7.18.patch/debian/control
--- god-0.7.18/debian/control 2011-06-07 15:06:55.000000000 +0000
+++ god-0.7.18.patch/debian/control 2011-06-07 15:06:43.000000000 +0000
@@ -8,7 +8,7 @@
Package: god
Architecture: any
-Depends: ruby1.8, rubygems, ${misc:Depends}, ${shlibs:Depends}
+Depends: ruby1.8, ${misc:Depends}, ${shlibs:Depends}
Description: Fully configurable process monitoring
God is an easy to configure, easy to extend monitoring framework
written in Ruby.
diff -uNr god-0.7.18/debian/patches/remove_rubygems god-0.7.18.patch/debian/patches/remove_rubygems
--- god-0.7.18/debian/patches/remove_rubygems 1970-01-01 00:00:00.000000000 +0000
+++ god-0.7.18.patch/debian/patches/remove_rubygems 2011-06-07 14:37:45.000000000 +0000
@@ -0,0 +1,11 @@
+--- a/lib/god.rb
++++ b/lib/god.rb
+@@ -1,8 +1,5 @@
+ $:.unshift File.dirname(__FILE__) # For use/testing when no gem is installed
+
+-# rubygems
+-require 'rubygems'
+-
+ # core
+ require 'stringio'
+ require 'fileutils'
diff -uNr god-0.7.18/debian/patches/series god-0.7.18.patch/debian/patches/series
--- god-0.7.18/debian/patches/series 1970-01-01 00:00:00.000000000 +0000
+++ god-0.7.18.patch/debian/patches/series 2011-06-07 14:37:14.000000000 +0000
@@ -0,0 +1 @@
+remove_rubygems
diff -uNr god-0.7.18/debian/rules god-0.7.18.patch/debian/rules
--- god-0.7.18/debian/rules 2011-06-07 15:06:55.000000000 +0000
+++ god-0.7.18.patch/debian/rules 2011-06-07 15:04:01.000000000 +0000
@@ -2,3 +2,4 @@
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/ruby-pkg-tools/1/class/ruby-setup-rb.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk