bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Small bug in the detection of the pkg-config directory in ncurses 6.3-20


From: Rudi Heitbaum
Subject: Small bug in the detection of the pkg-config directory in ncurses 6.3-20220122
Date: Sat, 29 Jan 2022 16:53:47 +1100

Hi Thomas,

Small bug in the detection of the pkg-config directory. (Not sure exactly when this bug was introduced - it builds with 6.3)

In our LibreELEC distribution (error in its own right - which I will fix) for the host build there are 2 directories returned.

$ /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-11.0-devel/toolchain/bin/pkg-config --variable=pc_path pkg-config

/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-11.0-devel/toolchain/lib/pkgconfig:/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-11.0-devel/toolchain/share/pkgconfig

During the "make install"

/usr/bin/install -c ncurses-config /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-11.0-devel/toolchain/bin/ncurses6-config
installing ncurses.pc
/usr/bin/install: target '/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-11.0-devel/toolchain/share/pkgconfig/ncurses.pc' is not a directory

This is because: as in the config.log there is the space separated directories on the "configure:4182" line

configure:3999: checking if you want to use pkg-config
configure:4009: result: yes
configure:4021: checking for x86_64-linux-gnu-pkg-config
configure:4049: result: /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-11.0-devel/toolchain/bin/pkg-config
configure:4153: checking for /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-11.0-devel/toolchain/bin/pkg-config library directory
configure:4182: result: /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-11.0-devel/toolchain/lib/pkgconfig /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-11.0-devel/toolchain/share/pkgconfig
configure:4281: checking if we should install .pc files for /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-11.0-devel/toolchain/bin/pkg-config

With the issue manifesting itself with "config.status" on the string replacement.

s,@PKG_CONFIG_LIBDIR@,/var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-11.0-devel/toolchain/lib/pkgconfig /var/media/DATA/home-rudi/LibreELEC.tv/build.LibreELEC-Generic.x86_64-11.0-devel/toolchain/share/pkgconfig,;t t

The build is successful when I add the following configuration option "--with-pkg-config-libdir=${TOOLCHAIN}/lib/pkgconfig" to configure, which may / or may not, be the right fix for LE. We do use this in the build for :target

FYI our package.mkhttps://github.com/LibreELEC/LibreELEC.tv/blob/master/packages/devel/ncurses/package.mk


reply via email to

[Prev in Thread] Current Thread [Next in Thread]