Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 636804 - mail-client/alot-0.6 version bump
Summary: mail-client/alot-0.6 version bump
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Amadeusz Żołnowski (RETIRED)
URL:
Whiteboard:
Keywords: EBUILD, PATCH
Depends on: 617182
Blocks:
  Show dependency tree
 
Reported: 2017-11-07 16:16 UTC by Guillaume Seren
Modified: 2017-12-03 12:55 UTC (History)
1 user (show)

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


Attachments
0.6 version (alot-0.6.ebuild,1.99 KB, text/plain)
2017-11-07 16:18 UTC, Guillaume Seren
Details
Upraded & working ebuild (alot-0.6.ebuild,2.00 KB, text/plain)
2017-11-08 18:52 UTC, Guillaume Seren
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Guillaume Seren 2017-11-07 16:16:54 UTC
Hi there,
look like alot in gentoo is a bit late from upstream,
so I decided to bump it.

Main changes of the ebuild:
* Moving from EAPI 5 to 6.
* The patch disabling the tests is not needed anymore ( tests are disabled by default).
* Since b0e2f322aa571a5e1999c069779f589e282a566c the project has moved away from python-gpgme, in favor of the pyton-gpg module (https://github.com/pazz/alot/pull/1086).
I have upgraded in the ebuild the dependency to app-crypt/gpgme instead of dev-python-pygpgme,
maybe that's an error I am not sure, the upstream doc ask for gpgme-1.9.0 (so maybe I need to bump that one too), links:
* Dependencies section in doc (https://alot.readthedocs.io/en/latest/installation.html).
* Travis file (https://github.com/pazz/alot/blob/b0e2f322aa571a5e1999c069779f589e282a566c/.travis.yml).

The installation go well, but when I run it I have this error:
Traceback (most recent call last):                                                                                                                        
  File "/usr/lib/python-exec/python2.7/alot", line 11, in <module>                                                                                        
    load_entry_point('alot==0.6', 'console_scripts', 'alot')()                                                                                            
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 560, in load_entry_point                                                      
    return get_distribution(dist).load_entry_point(group, name)                                                                                           
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 2642, in load_entry_point                                                     
    return ep.load()                                                                                                                                      
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 2296, in load                                                                 
    return self.resolve()                                                                                                                                 
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 2302, in resolve                                                              
    module = __import__(self.module_name, fromlist=['__name__'], level=0)                                                                                 
  File "/usr/lib64/python2.7/site-packages/alot/__main__.py", line 13, in <module>                                                                        
    from alot.settings.const import settings                                                                                                              
  File "/usr/lib64/python2.7/site-packages/alot/settings/const.py", line 7, in <module>                                                                   
    from .manager import SettingsManager                                                                                                                  
  File "/usr/lib64/python2.7/site-packages/alot/settings/manager.py", line 20, in <module>                                                                
    from ..utils import configobj as checks                                                                                                               
  File "/usr/lib64/python2.7/site-packages/alot/utils/configobj.py", line 16, in <module>                                                                 
    from .. import crypto                                                                                                                                 
  File "/usr/lib64/python2.7/site-packages/alot/crypto.py", line 9, in <module>                                                                           
    import gpg                                                                                                                                            
  File "build/bdist.linux-x86_64/egg/gpg/__init__.py", line 101, in <module>                                                                              
  File "build/bdist.linux-x86_64/egg/gpg/core.py", line 34, in <module>                                                                                   
ImportError: cannot import name gpgme

But I manage to find a fix to apply in db/envelope.py and crypto.py
-import gpg                                                                                                                                               
+import gpgme

So my questions are:
* I need a python-pgp binding to solve the 'import gpg' in the code.
* Since they use gpgme-1.9 in travis maybe we also need that version.

Any help is welcome !
Comment 1 Guillaume Seren 2017-11-07 16:18:28 UTC
Created attachment 502938 [details]
0.6 version
Comment 2 Guillaume Seren 2017-11-08 18:48:05 UTC
Hey, I have been helped by grknight on irc,
and I discovered I didn't had the use flag active in my app-crypt/gpgme,
it has been checked by the command:
emerge -pvO app-crypt/gpgme
[ebuild   R    ] app-crypt/gpgme-1.8.0-r3:1/11::gentoo  USE="cxx python qt5 -common-lisp -static-libs" PYTHON_TARGETS="python2_7 python3_4 -python3_5 (-python3_6)" 0 KiB

So I upgraded the ebuild to be sure the user has the python flag for gpgme,
and now it is working fine.

Thank's again grknight for helping.

I have tested the ebuild, I will prepare the PR.
Comment 3 Guillaume Seren 2017-11-08 18:52:03 UTC
Created attachment 503116 [details]
Upraded & working ebuild
Comment 4 Guillaume Seren 2017-11-08 19:05:40 UTC
I have opened the PR for the new upgraded (and working) ebuild here -> https://github.com/gentoo/gentoo/pull/6153
Comment 5 Larry the Git Cow gentoo-dev 2017-12-03 12:55:42 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=af4eaeebe838e7a9ac98bcc9980ba71b187950d8

commit af4eaeebe838e7a9ac98bcc9980ba71b187950d8
Author:     Guillaume Seren <guillaumeseren@gmail.com>
AuthorDate: 2017-12-02 13:24:24 +0000
Commit:     Patrice Clement <monsieurp@gentoo.org>
CommitDate: 2017-12-03 12:55:39 +0000

    mail-client/alot: EAPI 6 bump.
    
    Package-Manager: Portage-2.3.13, Repoman-2.3.3
    
    Closes: https://bugs.gentoo.org/636804

 mail-client/alot/alot-0.6.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7f07c91fbd9d9c66a5236f495ebcf911923fbf9c

commit 7f07c91fbd9d9c66a5236f495ebcf911923fbf9c
Author:     Guillaume Seren <guillaumeseren@gmail.com>
AuthorDate: 2017-11-08 18:59:38 +0000
Commit:     Patrice Clement <monsieurp@gentoo.org>
CommitDate: 2017-12-03 12:55:37 +0000

    mail-client/alot: version bump to 0.6.
    
    This version migrate from using dev-python-pygpgme, to app-crypt/gpgme with the
    python USE flag.
    
    Closes: https://bugs.gentoo.org/636804
    Closes: https://github.com/gentoo/gentoo/pull/6153
    Package-Manager: Portage-2.3.13, Repoman-2.3.3

 mail-client/alot/Manifest        |  3 +-
 mail-client/alot/alot-0.6.ebuild | 88 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 90 insertions(+), 1 deletion(-)