Hello,

I use the latest version of ptxdist from git.

I tried to set up a simple project for x86 using the native toolchain
and glibc of my dev machine, and I get an error from ipkg when doing
'ptxdist images'. Here is the trace, once I uncommented the debug
'print' directives in ipkg.py:

Creating ipkg index
'/home/liorry/test_ptx/yes/platform-daniela/packages/Packages'...
/home/liorry/test_ptx/yes/platform-daniela/sysroot-host/lib/python2.6/site-packages/ipkg.py:39:
DeprecationWarning: the md5 module is deprecated; use hashlib instead
  import md5
Traceback (most recent call last):
  File 
"/home/liorry/test_ptx/yes/platform-daniela/sysroot-host/bin/ipkg-make-index",
line 120, in <module>
    s = packages.add_package(pkg)
  File 
"/home/liorry/test_ptx/yes/platform-daniela/sysroot-host/lib/python2.6/site-packages/ipkg.py",
line 445, in add_package
    if pkg.compare_version(self.packages[name]) >= 0:
  File 
"/home/liorry/test_ptx/yes/platform-daniela/sysroot-host/lib/python2.6/site-packages/ipkg.py",
line 395, in compare_version
    return self.parsed_version.compare(ref.parsed_version)
  File 
"/home/liorry/test_ptx/yes/platform-daniela/sysroot-host/lib/python2.6/site-packages/ipkg.py",
line 96, in compare
    print (self_ver_comps.group(1), self_ver_comps.group(2))
AttributeError: 'NoneType' object has no attribute 'group'
make: *** [/home/liorry/test_ptx/yes/platform-daniela/packages/Packages] Error 1
('1.16.1', None)
('1.16.1', None)
compare: 0:1.16.1 vs 0:1.16.1 = 0
('2.10.1', None)
('2.10.1', None)
compare: 0:2.10.1 vs 0:2.10.1 = 0
No version for package glibc

It seems the version compare is modified by a patch, as I can see here
: 
http://git.pengutronix.de/?p=ptxdist;a=blob;f=patches/ipkg-utils-050831/0002-ipkg-py-sane-vercompare.patch#l39

Can this patch take into account the fact that group(2) may be Null
for both regex matches ? I am not versed into python, so if anyone
could give me a hint about how to workaround this correctly...

Thanks,
Lionel

-- 
ptxdist mailing list
[email protected]

Reply via email to