FS#48466 - [python-pycparser] lacks fake_libc_headers

Attached to Project: Arch Linux
Opened by Thomas (kugel.) - Saturday, 05 March 2016, 14:48 GMT
Last edited by Toolybird (Toolybird) - Friday, 09 June 2023, 23:20 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Felix Yan (felixonmars)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
According to upstream information (e.g. http://eli.thegreenplace.net/2015/on-parsing-c-type-declarations-and-fake-headers) the libc fake headers are necessary to parse any C code that includes libc headers. Without these, pycparser is mostly useless.

The fake headers are shipped in the release zips, however the arch package does not include them.

I would expect them under /usr/lib/python3.5/site-packages/pycparser/utils/fake_libc_include

Additional info:
Name : python-pycparser
Version : 2.14-2
Description : C parser and AST generator written in Python
Architecture : any
URL : https://github.com/eliben/pycparser
Licenses : BSD
Groups : None
Provides : None
Depends On : python-ply
Optional Deps : None
Required By : None
Optional For : None
Conflicts With : None
Replaces : None
Installed Size : 1161.00 KiB
Packager : Felix Yan <felixonmars@archlinux.org>
Build Date : Sat Sep 19 12:39:16 2015
Install Date : Sat Mar 5 14:59:29 2016
Install Reason : Explicitly installed
Install Script : No
Validated By : Signature




Steps to reproduce:
pacman -S python-pycpare
This task depends upon

Closed by  Toolybird (Toolybird)
Friday, 09 June 2023, 23:20 GMT
Reason for closing:  Won't fix
Additional comments about closing:  Old and stale. See comments.
Comment by Thomas (kugel.) - Saturday, 05 March 2016, 14:50 GMT
Debian ships the headers in the python-pycparser .deb package. They are installed under /usr/share/python-pycparser/fake_libc_include
Comment by Doug Newgard (Scimmia) - Saturday, 05 March 2016, 15:09 GMT
If it needs them, why doesn't upstream install them with setup.py?
Comment by Thomas (kugel.) - Saturday, 05 March 2016, 15:11 GMT
I found too that pip install pycparser doesn't install them. Do you think this is an upstream bug?
Comment by Doug Newgard (Scimmia) - Saturday, 05 March 2016, 15:18 GMT
If it truly needs them, then it does sound like something upstream should take care of. I know nothing about this program, though.
Comment by Toolybird (Toolybird) - Friday, 09 June 2023, 23:20 GMT
Upstream don't want to install the fake headers [1] "pycparser itself doesn't need or use it".

Folks wanting this will simply have to grab from upstream themselves.

[1] https://github.com/eliben/pycparser/issues/224

Loading...