Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 135188
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Netmon Herd <netmon@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Eric Brown <eric.brown@dnbrown.net>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 135188 depends on: Show dependency tree
Bug 135188 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2006-06-01 11:17 0000
Upon upgrading to ~x86 prewikka-0.9.5, I was unable to use prewikka due to
errors like this:

Traceback (most recent call last):
  File "/usr/share/prewikka/cgi-bin/prewikka.cgi", line 80, in ?
    core = Core.get_core_from_config(os.environ.get("PREWIKKA_CONFIG", None),
threaded=False)
  File "/usr/lib/python2.4/site-packages/prewikka/Core.py", line 100, in
get_core_from_config
    _core_cache[path] = Core(path)
  File "/usr/lib/python2.4/site-packages/prewikka/Core.py", line 116, in
__init__
    self._env.idmef_db =
IDMEFDatabase.IDMEFDatabase(self._env.config.idmef_database)
  File "/usr/lib/python2.4/site-packages/prewikka/IDMEFDatabase.py", line 261,
in __init__
    raise "libpreludedb %s or higher is required (%s found)." %
(wanted_version, preludedb_check_version(None))
NameError: global name 'preludedb_check_version' is not defined


When I took a look inside IDMEFDatabase.c, I noticed that it has this:

        wanted_version = "0.9.7"
        try:
            if not preludedb_check_version(wanted_version):
                raise "libpreludedb %s or higher is required." % wanted_version
        except:
            raise "libpreludedb %s or higher is required (%s found)." %
(wanted_version, preludedb_check_version(None))


I tried commenting out the try/except clause, only to run into similar errors
when trying to delete alerts (similar meaning, functions that could not be
found in libpreludedb).  I think it should be clear that prewikka-0.9.5 depends
on libpreludedb-0.9.7 or higher.

One thing to note is that libpreludedb-0.9.8 is probably just on the horizon. 
There will be some important postgreSQL fixes appearing in that release.

Should we at least have a libpreludedb-0.9.7 ebuild for now, and bump prewikka
to -r1 with the proper dep?

------- Comment #1 From Markus Ullmann 2006-06-01 14:08:46 0000 -------
Commited libprelude 0.9.8 to the tree

Can you please verify that a depchange to 0.9.8 fixes the problem?

------- Comment #2 From Eric Brown 2006-06-06 16:08:55 0000 -------
libpreludedb-0.9.8 is also out

------- Comment #3 From Eric Brown 2006-06-07 11:30:50 0000 -------
I have Prewikka working with libpreludedb-0.9.8 and libprelude-0.9.9 (required
version)

------- Comment #4 From Marcelo Goes 2006-07-01 11:22:05 0000 -------
I made prewikka depend on >=libprelude-0.9.9, which is what I have here
currently. It should fix this bug. Thanks for reporting!

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug