FS#46640 - [ncurses] The packaging process fails if /usr/share/pkgconfig is present in the systemd

Attached to Project: Arch Linux
Opened by Maurizio D'Addona (mauritiusdadd) - Saturday, 10 October 2015, 07:35 GMT
Last edited by Bartłomiej Piotrowski (Barthalion) - Thursday, 05 May 2016, 13:46 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To Bartłomiej Piotrowski (Barthalion)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 2
Private No

Details

Description:
If the directory /usr/share/pkgconfig (which is provided by several packages like systemd, subversion, etc.) is present in the system makepkg fails to build the package with the following error:

ln: failed to create symbolic link '/build/builds/ncurses/pkg/ncurses/usr/lib/pkgconfig/ncurses.pc': No such file or directory

The error does not appear building the package in a clean chroot because it seems that none of packages in base-devel owns that directory.

The problem can be solved by explicitly setting the the directory in which the pkg-config files must be installed, passing the option --with-pkg-config-libdir=/usr/lib/pkgconfig to the configure script.

Additional info:
For a detailed explanation see this thread: https://bbs.archlinux.org/viewtopic.php?id=203595

Steps to reproduce:
*install a package that owns /usr/share/pkg-config (or create the directory manually)
*Try to build the package using makepkg
This task depends upon

Closed by  Bartłomiej Piotrowski (Barthalion)
Thursday, 05 May 2016, 13:46 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed in trunk.
Comment by UnicornDarkness (Xorg) - Thursday, 07 April 2016, 07:22 GMT
I have the same issue.

ln: failed to create symbolic link '/tmp/makepkg/ncurses/pkg/ncurses/usr/lib/pkgconfig/ncurses.pc': No such file or directory

+1 for adding '--with-pkg-config-libdir=/usr/lib/pkgconfig' to PKGBUILD.

Loading...