Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#31519 - [python] no provider for file python.pc

Attached to Project: Arch Linux
Opened by Kerrick Staley (KerrickStaley) - Thursday, 13 September 2012, 05:57 GMT
Last edited by Stéphane Gaudreault (stephane) - Sunday, 14 October 2012, 00:42 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Stéphane Gaudreault (stephane)
Architecture All
Severity Medium
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

The python.pc file, which is the pkg-config file for Python (used when developing Python extensions in C) isn't provided by any package (except sage-mathematics, but you shouldn't have to install Sage to get this file).

To fix this, the following lines need to be added at the end of the python PKGBUILD. Please note I haven't tested this code, since the python package takes a long time to build:
# pkg-config files
install -Dm644 "${srcdir}/Python-${pkgver}/Misc/python.pc" "${pkgdir}/usr/share/pkg-config/python-3.2.pc"
ln -s "${pkgdir}/usr/share/pkg-config/python-3.2.pc" "${pkgdir}/usr/share/pkg-config/python3.pc"
ln -s "${pkgdir}/usr/share/pkg-config/python3.pc" "${pkgdir}/usr/share/pkg-config/python.pc"

The following lines need to be added at the end of the python2 PKGBUILD:
# pkg-config files
install -Dm644 "${srcdir}/Python-${pkgver}/Misc/python.pc" "${pkgdir}/usr/share/pkg-config/python-2.7.pc"
ln -s "${pkgdir}/usr/share/pkg-config/python-3.2.pc" "${pkgdir}/usr/share/pkg-config/python2.pc"

This task depends upon

Closed by  Stéphane Gaudreault (stephane)
Sunday, 14 October 2012, 00:42 GMT
Reason for closing:  Won't fix
Comment by Stéphane Gaudreault (stephane) - Thursday, 13 September 2012, 12:08 GMT
We aready have /usr/lib/pkgconfig/python-2.7.pc and /usr/lib/pkgconfig/python{3,-3.2,-3.2mu}.pc. Could you please explain why we also need a python.pc ? As upstream already provide files with these names, I would rather patch the packages (if any) that depends on the non-standard name.

Also, this line is clearly wrong for a python2 package :

ln -s "${pkgdir}/usr/share/pkg-config/python-3.2.pc" "${pkgdir}/usr/share/pkg-config/python2.pc"
Comment by Kerrick Staley (KerrickStaley) - Sunday, 30 September 2012, 05:22 GMT
I think this is really the fault of jhbuild, which is the package that uses python.pc; I just asked the jhbuild devs about it.

Loading...