Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 804687

Summary: media-video/pipewire-0.3.32 fails to build with incorrect directory for ncursesw
Product: Gentoo Linux Reporter: rexy712
Component: Current packagesAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: UNCONFIRMED ---    
Severity: normal CC: asturm, floppym, jstein, sam, whissi
Priority: Normal    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
emerge error
compressed error

Description rexy712 2021-07-27 23:27:21 UTC
Pipewire 0.3.32 and 0.3.30-r2 and 9999 fail to build due to the meson build system receiving the incorrect ncursesw library location from pkg-config. It seems like the meson-multilib eclass is passing PKG_CONFIG_PATH="/var/tmp/portage/media-video/pipewire-0.3.32/temp/python3.9/pkgconfig:/usr/share/pkgconfig". Thus the full command would be

env PKG_CONFIG_PATH="/var/tmp/portage/media-video/pipewire-0.3.32/temp/python3.9/pkgconfig:/usr/share/pkgconfig" /usr/bin/x86_64-pc-linux-gnu-pkg-config --cflags ncursesw

which results in

-D_XOPEN_SOURCE=600 -D_POSIX_C_SOURCE=199506L -I/usr/x86_64-w64-mingw32/usr/include

It picks up the mingw ncursesw library. I managed to workaround this by forcing this environment variable instead:

PKG_CONFIG_PATH="/var/tmp/portage/media-video/pipewire-0.3.32/temp/python3.9/pkgconfig:/usr/lib/pkgconfig"

which picks up ncursesw at /usr/include/ncursesw as expected.

Reproducible: Always

Steps to Reproduce:
1.emerge pipewire
Actual Results:  
Build failure

Expected Results:  
Successful build.
Comment 1 rexy712 2021-07-27 23:28:46 UTC
Created attachment 727401 [details]
emerge --info
Comment 2 Sam James archtester gentoo-dev Security 2021-07-27 23:30:44 UTC
Could you include the build.log too please?
Comment 3 rexy712 2021-07-27 23:41:01 UTC
Created attachment 727404 [details]
emerge error
Comment 4 rexy712 2021-07-27 23:41:40 UTC
(In reply to Sam James from comment #2)
> Could you include the build.log too please?

yeah sorry i was trying to include it as an attachment but it was too long
Comment 5 Sam James archtester gentoo-dev Security 2021-07-28 00:19:29 UTC
(In reply to rexy712 from comment #4)
> (In reply to Sam James from comment #2)
> > Could you include the build.log too please?
> 
> yeah sorry i was trying to include it as an attachment but it was too long

Could you attach it compressed?
Comment 6 rexy712 2021-07-28 01:21:43 UTC
Created attachment 727407 [details]
compressed error
Comment 7 Mike Gilbert gentoo-dev 2021-11-21 00:14:38 UTC
Why do you have an mingw pkgconfig file in /usr/share/pkgconfig?