FS#47490 - [python2-poppler] does not compile or load

Attached to Project: Community Packages
Opened by John Williams (johnw) - Tuesday, 22 December 2015, 14:19 GMT
Last edited by Balló György (City-busz) - Monday, 27 June 2016, 21:14 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To Ray Rashif (schivmeister)
Balló György (City-busz)
Architecture All
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 3
Private No

Details

I've updated to poppler 0.39.0-1 and poppler-glib 0.39.0-1.
Since then, one of my own programs that uses python2-poppler (version 0.12.1-8) fails with:

ImportError: /usr/lib/python2.7/site-packages/poppler.so: undefined symbol: poppler_orientation_get_type

I thought that python2-poppler might need recompiling for the new version of poppler, but it will not compile: makepkg fails with:

poppler.c: In function ‘py_poppler_add_constants’:
poppler.c:4575:53: error: ‘POPPLER_TYPE_ORIENTATION’ undeclared (first use in this function)
pyg_enum_add(module, "Orientation", strip_prefix, POPPLER_TYPE_ORIENTATION);

It looks to me like poppler has removed some function that this depends on.
This task depends upon

Closed by  Balló György (City-busz)
Monday, 27 June 2016, 21:14 GMT
Reason for closing:  Fixed
Additional comments about closing:  python2-poppler 0.12.1-9
Comment by Guillaume Horel (thrasibule) - Thursday, 14 January 2016, 22:52 GMT
Gentoo is using the following patch to fix the issue.
Comment by Ray Rashif (schivmeister) - Sunday, 17 January 2016, 08:29 GMT
Thanks for the heads-up, I was in conversation to give this package up to the maintainer of gourmet, and it seems this upstream has no activity. We'll keep the package if the patch applies.
Comment by Baptiste (zorun) - Wednesday, 13 April 2016, 10:42 GMT
The patch from Guillaume fixes both the compilation issue and the undefined symbol error at runtime.

With python2-poppler 0.12.1-8 from [community]:

~$ python2 -c 'import poppler'
Traceback (most recent call last):
File "<string>", line 1, in <module>
ImportError: /usr/lib/python2.7/site-packages/poppler.so: undefined symbol: poppler_orientation_get_type

After rebuilding with the above patch:

~$ python2 -c 'import poppler'
~$
Comment by Adam Nielsen (Malvineous) - Monday, 20 June 2016, 04:35 GMT
Is this patch going to be applied?

Loading...