[PKG-Openstack-devel] BUG fix-py3-compat.patch not working in python-os-xenapi package

Thomas Goirand zigo at debian.org
Tue Jan 23 22:47:38 UTC 2018


Hi there,

Please don't Cc me or Ondrej, we're both subscribed to the Alioth list.

On 01/22/2018 01:05 PM, Michal Arbet wrote:
> Hello guys,
> 
> It seems that fix-py3-compat.patch not working correctly in
> python-os-xenapi package, caused by using sixer to add python3 support
> to python-os-xenapi .
> 
> Sixer replaced unicode=1 to six.text_type=1 on bad place :) ...
> 
> When I try to install package, there is a bug :
> 
> Unpacking python-os-xenapi (0.2.0-1) over (0.2.0-1) ...
> Setting up python-os-xenapi (0.2.0-1) ...
>   File
> "/usr/lib/python2.7/dist-packages/os_xenapi/dom0/etc/xapi.d/plugins/netwrap.py",
> line 26
>     gettext.install('neutron', six.text_type=1)
> SyntaxError: keyword can't be an expression
> 
> dpkg: error processing package python-os-xenapi (--install):
>  subprocess installed post-installation script returned error exit
> status 101
> Errors were encountered while processing:
>  python-os-xenapi
> 
> I've already pushed fixed patch.

Thanks, package uploaded.

> And one question on the end ..
> When I succesfully build and install package , content of package is
> different as in package >>
> https://packages.debian.org/buster/python-os-xenapi
> 
> In my built package in os_xenapi directory is these dirs and init :
> 
> .
>  - client0
>  - dom0
> -  tests
> __init_.py
> 
> /usr/lib/python2.7/dist-packages/os_xenapi/
> 
> And in
> 
> https://packages.debian.org/buster/python-os-xenapi
> 
> without dom0 directory ...
> 
>>>
> /usr/lib/python2.7/dist-packages/os_xenapi/
> 
> .
>  - client0
> -  tests
> __init_.py
> 
> 
> Could you please check these findings ?

Weird. The dom0 folder looks like to be installed in a XenAPI server
anyway, so it's not annoying for us, it's not part of the os-xenapi
module. Though it probably should be packaged separately... If only it
should be packaged, because XenAPI is xenserver, which is *not* in
Debian anymore.

Cheers,

Thomas Goirand (zigo)



More information about the Openstack-devel mailing list