Hi all,

I just ran into a package (VLC from BLFS) that looks for the ncurses package
by checking for pkgconfig files. VLC fails to find ncurses because there are
no .pc files installed by ncurses using the LFS instructions. In order for
ncurses to install the pkgconfig files, you must use the --enable-pc-files
switch passed to configure.

Doing so results in 5 .pc files installed into /usr/lib/pkgconfig. Here are
the contents of the files:

rml@rmlinux: ~/build/ncurses-5.9 > cat destdir/usr/lib/pkgconfig/*
prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
major_version=5
version=5.9.20110404

Name: formw
Description: ncurses 5.9 add-on library
Version: ${version}
Requires: ncursesw
Libs:  -lformw
Cflags:



prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
major_version=5
version=5.9.20110404

Name: menuw
Description: ncurses 5.9 add-on library
Version: ${version}
Requires: ncursesw
Libs:  -lmenuw
Cflags:



prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
major_version=5
version=5.9.20110404

Name: ncurses++w
Description: ncurses 5.9 add-on library
Version: ${version}
Requires: panelw menuw formw ncursesw
Libs:  -lncurses++w
Cflags:



prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
major_version=5
version=5.9.20110404

Name: ncursesw
Description: ncurses 5.9 library
Version: ${version}
Requires:
Libs:  -lncursesw
Cflags:



prefix=/usr
exec_prefix=${prefix}
libdir=${exec_prefix}/lib
includedir=${prefix}/include
major_version=5
version=5.9.20110404

Name: panelw
Description: ncurses 5.9 add-on library
Version: ${version}
Requires: ncursesw
Libs:  -lpanelw
Cflags:


VLC looks for ncursesw.pc. I can only think that over time more and more
package maintainers are going to expect the ncurses .pc files to exist. I
am not sure if they need to be modified because we move the libraries to
/lib and the libdir in the .pc files points to /usr/lib, but I think it
would be alright as any package wanting to link with ncurses libs will
use the .so files that do exist in /usr/lib.

Thoughts about adding the --enable-pc-files switch to the ncurses
instructions?

-- 
Randy

rmlscsi: [bogomips 1003.23] [GNU ld version 2.16.1] [gcc (GCC) 4.0.3]
[GNU C Library stable release version 2.3.6] [Linux 2.6.14.3 i686]
16:34:01 up 55 days, 2:33, 1 user, load average: 0.01, 0.03, 0.06
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to