python-ncrypt does no longer compile in lucid
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ncrypt (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Lucid |
Fix Released
|
Medium
|
Unassigned |
Bug Description
In lucid, the python-ncrypt binary package is no longer included, because the source (ncrypt 0.6.4-0ubuntu3) no longer compiles; dpkg-buildpackage fails with the following error message:
----snip----
ncrypt_x509.c:1:2: error: #error Do not use this file, it is the result of a failed Pyrex compilation.
error: command 'gcc' failed with exit status 1
make: *** [debian/
dpkg-buildpackage: error: debian/rules build gave error exit status 2
----snip----
The deeper reason is a compilation step performed by pyrexc (source files ncrypt_x509.pyx and ncrypt_x509.pxd being compiled to ncrypt_x509.c) that fails due to missing declarations:
----snip----
pyrexc ncrypt_x509.pyx --> ncrypt_x509.c
/tmp/ncrypt-
/tmp/ncrypt-
/tmp/ncrypt-
/tmp/ncrypt-
/tmp/ncrypt-
/tmp/ncrypt-
/tmp/ncrypt-
/tmp/ncrypt-
/tmp/ncrypt-
/tmp/ncrypt-
/tmp/ncrypt-
/tmp/ncrypt-
/tmp/ncrypt-
/tmp/ncrypt-
----snip----
While it is not entirely clear to me which change from karmic to lucid has caused this compilation error (I suspect some enforced syntax check settings in the compilers but might be also some change in openssl headers though I found no evidence for that), this issue can be fixed by adding the appropriate forward declarations to ncrypt_x509.pxd.
I have attached a patch with those changes applicable to the source package ncrypt 0.6.4-0ubuntu3.
I would appreciate very much if this patch could be included in the ubuntu source package and if python-ncrypt could again be included in the universe repository, though the issue might also be something that should be fixed upstream (I found one report of the same failure during building ncrypt on Mac OS X, but ncrypt source seems to be unchanged upstream for quite a long time, no idea if there is still an active maintainer upstream...).
The python-ncrypt package is essential for some 3rd party python programs like CSpace (http://
Changed in ncrypt (Ubuntu): | |
status: | New → Fix Released |
Changed in ncrypt (Ubuntu Lucid): | |
importance: | Undecided → Medium |
status: | New → Fix Committed |
sorry, first patch was in unusable diff format...