numam-dpdk/devtools
Bruce Richardson 85cf6dc3a5 devtools: fix lib directory in pkg-config test
With Debian and Ubuntu, the default installation path for the 64-bit
libraries is set to e.g. /usr/local/lib/x86_64-linux-gnu/, compared to
/usr/local/lib64 on Fedora and Redhat distributions. This causes issues
when using "pkg-config --define-prefix" since pkg-config assumes the prefix
to be the grandparent of where the .pc file is. On Ubuntu we then get the
cflags include path as being "/path/to/install-root/usr/local/lib/include"
i.e. with an extra "lib" in the path.

This issue only applies for test installs on Ubuntu and similar distros,
and is not a problem for regular installs since the --define-prefix
parameter would not be passed to pkg-config in those cases.

The workaround for this in our test build script is to explicitly make
"lib" the "libdir" setting for the install, overriding the distro-provided
default.

Fixes: 7f80a2102b ("devtools: test pkg-config file")

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Luca Boccassi <bluca@debian.org>
2019-07-03 23:10:26 +02:00
..
cocci devtools/cocci: create safer version of strlcpy script 2019-04-04 22:45:33 +02:00
build-tags.sh devtools: fix config check when building tags 2019-03-27 00:56:34 +01:00
check-dup-includes.sh use SPDX license tag in Mellanox copyrighted files 2018-05-25 10:33:33 +02:00
check-forbidden-tokens.awk devtools: add explicit warnings for forbidden tokens 2018-11-04 21:54:04 +01:00
check-git-log.sh devtools: add git log checks for TPID, LACP and RETA 2019-04-16 00:21:16 +02:00
check-includes.sh eal: remove exec-env directory 2019-04-02 21:49:35 +02:00
check-maintainers.sh use SPDX tag for 6WIND copyrighted files 2018-05-25 10:47:06 +02:00
check-symbol-change.sh devtools: fix check of symbol added as stable API 2019-05-10 00:19:31 +02:00
check-symbol-maps.sh devtools: check orphan symbols in map files 2018-05-29 17:43:33 +02:00
checkpatches.sh enforce experimental tag at beginning of declarations 2019-06-29 19:04:48 +02:00
cocci.sh devtools: use a common prefix for temporary files 2018-10-01 23:51:45 +02:00
get-maintainer.sh devtools: check Linux script path if directory 2018-05-23 00:33:35 +02:00
git-log-fixes.sh use SPDX tag for 6WIND copyrighted files 2018-05-25 10:47:06 +02:00
load-devel-config scripts: move to devtools 2017-01-04 21:17:32 +01:00
test-build.sh net/nfb: add new netcope driver 2019-04-12 17:01:13 +02:00
test-meson-builds.sh devtools: fix lib directory in pkg-config test 2019-07-03 23:10:26 +02:00
test-null.sh use SPDX tag for 6WIND copyrighted files 2018-05-25 10:47:06 +02:00
validate-abi.sh devtools: fix ABI compatibility check 2019-05-02 01:44:20 +02:00