[Pkg-opennebula-devel] Bug#663075: opennebula: oneacct does not look in system wide locations for require's

Martin Steigerwald ms at teamix.de
Thu Mar 8 11:04:33 UTC 2012

Package: opennebula
Version: 3.2.1-1
Severity: normal
Tags: patch

Dear Maintainer,

I am reporting this from my workstation since reportbug and mail is setup

When starting oneacct I get:

oneadmin at opennebula:~$ /usr/bin/oneacct.orig
/usr/bin/oneacct.orig:27: undefined method `+' for nil:NilClass (NoMethodError)

(oneacct.orig since I am already using a patched version)

This is due to

In one 3.2 debian package, the script oneacct use a wrong path to load ruby files:
$: << ONE_LOCATION+'/lib'
$: << ONE_LOCATION+'lib/cli'
1) if ONE_LOCATION is not set in env, it fails
2) path in system path is wrong:
correct path is
ONE_LOCATION='/usr/lib/one/ruby/' (+cli)

Bug #1106: wrong path in oneacct

Also mentioned on:

[one-users] oneacct doesn't work (bug)

The upstream bug report includes an updated oneacct file. I
generated a patch from it that I will attach. Pulling new
upstream snapshot might be enough to get the fix however.


-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (500, 'testing'), (450, 'unstable'), (110, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.2.0-1-686-pae (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages opennebula depends on:
ii  libc6                             2.13-26
ii  libgcc1                           1:4.6.3-1
ii  libmysqlclient16                  5.1.58-1
ii  libsqlite3-0                      3.7.10-1
ii  libssl1.0.0                       1.0.0g-1
ii  libstdc++6                        4.6.3-1
ii  libxml2                           2.7.8.dfsg-7
ii  libxmlrpc-c++4                    <none>
ii  libxmlrpc-core-c3                 <none>
ii  opennebula-common                 3.2.1-1
ii  ruby                              4.8
ii  ruby-password [libpassword-ruby]  0.5.3-3
ii  ruby-sequel [libsequel-ruby]      3.33.0-1
ii  ruby1.8 [ruby]          
ii  rubygems                          1.8.15-1

Versions of packages opennebula recommends:
ii  libmysql-ruby                   2.8.2+gem2deb-1
ii  ruby-mysql [libmysql-ruby]      2.8.2+gem2deb-1
ii  ruby-sqlite3 [libsqlite3-ruby]  1.3.5-1

Versions of packages opennebula suggests:
ii  mysql-server                         <none>
ii  ruby-amazon-ec2 [libamazonec2-ruby]  0.9.17-2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: oneacct-system-wide-installation.patch
Type: text/x-diff
Size: 459 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-opennebula-devel/attachments/20120308/13be225e/attachment.patch>

More information about the Pkg-opennebula-devel mailing list