Package: libgtk-trayicon-ruby Version: 0.1.0-4 Severity: grave Tags: patch The package installs the library in a usr/local/lib/site_ruby tree _under_ /usr/lib/ruby. This directory is obviously not in the $LOAD_PATH and therefore this package/the lib is not usable at all.
% dpkg -L libgtk-trayicon-ruby1.8 [...] /usr/lib/ruby/usr/local/lib/site_ruby /usr/lib/ruby/usr/local/lib/site_ruby/1.8 /usr/lib/ruby/usr/local/lib/site_ruby/1.8/powerpc-linux /usr/lib/ruby/usr/local/lib/site_ruby/1.8/powerpc-linux/gtktrayicon.so /usr/lib/ruby/usr/local/lib/site_ruby/1.8/gtktrayicon.rb [...] A similar thing happened with Ruby/GNOME2 and recent changes in mkmf/mkmf-gnome, so I did a similar fix for this package and this is attached as a patch. Greetings, Paul P.S. The fix is IMO stupid/ugly and there are real problems in mkmf/mkmf-gnome2 that should be resolved. -- System Information: Debian Release: testing/unstable APT prefers unstable APT policy: (500, 'unstable'), (102, 'experimental') Architecture: powerpc (ppc) Shell: /bin/sh linked to /bin/dash Kernel: Linux 2.6.15-1-powerpc Locale: LANG=C, LC_CTYPE=nl_NL.UTF8 (charmap=UTF-8)
diff -Nabur libgtk-trayicon-ruby-0.1.0/debian/rules libgtk-trayicon-ruby-0.1.0-fixed/debian/rules --- libgtk-trayicon-ruby-0.1.0/debian/rules 2006-02-10 22:06:21.000000000 +0000 +++ libgtk-trayicon-ruby-0.1.0-fixed/debian/rules 2006-02-10 22:04:43.000000000 +0000 @@ -4,11 +4,18 @@ export DH_COMPAT=4 +ruby = ruby1.8 +bin_pkg = libgtk-trayicon-ruby1.8 + +config = $(shell $(ruby) -rrbconfig -e 'puts Config::CONFIG["$(1)"]') +rubylibdir := $(call config,rubylibdir) +archdir := $(call config,archdir) + build: build-stamp build-stamp: dh_testdir - ruby1.8 extconf.rb --enable-fullwidth-reverse-solidus && $(MAKE) + $(ruby) extconf.rb --enable-fullwidth-reverse-solidus && $(MAKE) touch build-stamp @@ -27,7 +34,9 @@ dh_installdirs # $(MAKE) sitedir=$(CURDIR)/debian/libgtk-trayicon-ruby1.8/usr/lib/ruby install - $(MAKE) DESTDIR=$(CURDIR)/debian/libgtk-trayicon-ruby1.8/usr/lib/ruby install + $(MAKE) DESTDIR=$(CURDIR)/debian/$(bin_pkg) \ + sitelibdir=$(CURDIR)/debian/$(bin_pkg)$(rubylibdir) \ + sitearchdir=$(CURDIR)/debian/$(bin_pkg)$(archdir) install touch install-stamp