Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 377961 - app-admin/smolt-1.4.3 does not work with linux kernel 3.0
Summary: app-admin/smolt-1.4.3 does not work with linux kernel 3.0
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sebastian Pipping
URL: https://bugzilla.redhat.com/show_bug....
Whiteboard:
Keywords: PATCH
Depends on: 438082
Blocks:
  Show dependency tree
 
Reported: 2011-08-06 09:24 UTC by Andrei Slavoiu
Modified: 2012-12-23 22:47 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
smolt-1.4.3-kernel-3.0.patch (smolt-1.4.3-kernel-3.0.patch,488 bytes, patch)
2012-09-26 19:49 UTC, Andrei Slavoiu
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Andrei Slavoiu 2011-08-06 09:24:18 UTC
When runing smoltSendProfile I get:

Traceback (most recent call last):
  File "/usr/bin/smoltSendProfile", line 152, in <module>
    profile = smolt.get_profile()
  File "/usr/share/smolt/client/smolt.py", line 1415, in get_profile
    return Hardware()
  File "/usr/share/smolt/client/smolt.py", line 1004, in Hardware
    _hardware_instance = _Hardware()
  File "/usr/share/smolt/client/smolt.py", line 591, in __init__
    self.host = Host()
  File "/usr/share/smolt/client/smolt.py", line 283, in __init__
    self.systemMemory = Gate().process('ram_size', memory['ram'], 0)
TypeError: 'NoneType' object is not subscriptable
Comment 1 Andrei Slavoiu 2011-08-06 09:26:29 UTC
Added URL to the upstream bug that also contains the following fix:

Mads Kiilerich      2011-07-26 09:05:57 EDT  
That is with a 3.0 kernel, right?

I suggest /usr/share/smolt/client/smolt.py should have

def read_memory():
    un = os.uname()
    kernel = un[2]
    if kernel[:3] == "2.4":
        return read_memory_2_4()
    return read_memory_2_6()
Comment 2 Andrei Slavoiu 2012-09-26 19:49:39 UTC
Created attachment 325064 [details, diff]
smolt-1.4.3-kernel-3.0.patch
Comment 3 Sebastian Pipping gentoo-dev 2012-12-23 22:47:51 UTC
Smolt is about to be removed, see bug #438082.

Therefore I am closing this bug.  Still, thanks for the patch!