| Summary: | net-mail/automx automagically uses dev-python/python-memcached at run-time | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Rolf Eike Beer <eike> |
| Component: | Current packages | Assignee: | Marc Schiffbauer <mschiff> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | normal | ||
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Bug Depends on: | 499918 | ||
| Bug Blocks: | |||
| Attachments: | memcache optional patch | ||
|
Description
Rolf Eike Beer
2014-01-01 02:01:05 UTC
Created attachment 366776 [details, diff]
memcache optional patch
For your convenience: I created automx-0.10.1_pre1 in my overlay (mschiff) so you can easily test. ~# layman -a mschiff ~# emerge =net-mail/automx-0.10.1_pre1 -Marc The patch works in case you do not have python-memcached installed. If you have it, but no memcached defines are in the config file you will get errors like this:
[Thu Jan 02 23:54:25 2014] [error] [client 10.7.7.12] mod_wsgi (pid=3691): Exception occurred processing WSGI script '/usr/lib/automx/automx_wsgi.py'.
[Thu Jan 02 23:54:25 2014] [error] [client 10.7.7.12] Traceback (most recent call last):
[Thu Jan 02 23:54:25 2014] [error] [client 10.7.7.12] File "/usr/lib/automx/automx_wsgi.py", line 54, in application
[Thu Jan 02 23:54:25 2014] [error] [client 10.7.7.12] data = Config(environ)
[Thu Jan 02 23:54:25 2014] [error] [client 10.7.7.12] File "/usr/lib64/python2.7/site-packages/automx/config.py", line 122, in __init__
[Thu Jan 02 23:54:25 2014] [error] [client 10.7.7.12] self.memcache = Memcache(self, environ)
[Thu Jan 02 23:54:25 2014] [error] [client 10.7.7.12] File "/usr/lib64/python2.7/site-packages/automx/config.py", line 848, in __init__
[Thu Jan 02 23:54:25 2014] [error] [client 10.7.7.12] self.__mc = memcache.Client([config.get("automx", "memcache")])
[Thu Jan 02 23:54:25 2014] [error] [client 10.7.7.12] File "/usr/lib64/python2.7/ConfigParser.py", line 340, in get
[Thu Jan 02 23:54:25 2014] [error] [client 10.7.7.12] raise NoOptionError(option, section)
Thanks for the Feedback! I added another patch from upstream which should resolve this issue as well. Can you confirm that? (I added pre2 to my overlay) !!! All ebuilds that could satisfy "=net-mail/automx-0.10.1_pre2" have been masked. !!! One of the following masked packages is required to complete your request: - net-mail/automx-0.10.1_pre2::mschiff (masked by: corruption) I'll try to apply the patch by hand. I can't, and that is the problem ;)
root@mail:...ff/net-mail/automx # grep FILESDIR automx-0.10.1_pre2.ebuild
"$FILESDIR/${PN}-memcache-optional.patch"
"$FILESDIR/${PN}-add-missing-memcache-exception.patch"
root@mail:...ff/net-mail/automx # ll files/
total 4
-rw-r--r-- 1 root root 1290 Jan 3 14:01 automx-memcache-optional.patch
The second patch has not been checked in.
Sorry! Fixed overlay... I am too busy today ;) Patch seems to work. Overlay is still broken because of missing digest. Ok, thanks for the feedback. Expect a new version 0.10.1 coming very soon. -Marc BTW: Overlay should be really fixed now.... sorry ;) Thanks for reporting! I dropped this ebuild because 0.10.1 is in tree now. |