--with-system-includedir and --with-system-libdir fail to use more than 1 element from :-separated list #224

Closed
opened 2021-06-09 18:00:44 +00:00 by Arfrever · 1 comment
Arfrever commented 2021-06-09 18:00:44 +00:00 (Migrated from github.com)

--with-system-includedir and --with-system-libdir fail to use more than 1 element from :-separated list.
PKG_CONFIG_SYSTEM_INCLUDE_PATH and PKG_CONFIG_SYSTEM_LIBRARY_PATH work correctly.

pkgconf 1.7.4 configured with:

--with-system-includedir=/myheaders1:/myheaders2:/usr/include --with-system-libdir=/mylibs1:/mylibs2:/lib64:/usr/lib64
$ cat /tmp/pkgconfig/test.pc
Name: test
Description: test
Version: 0
Cflags: -I/myheaders1 -I/myheaders2 -I/usr/include -pthread
Libs: -L/mylibs1 -L/mylibs2 -L/lib64 -L/usr/lib64 -ltest
$ PKG_CONFIG_PATH=/tmp/pkgconfig pkgconf --cflags test
-I/myheaders1 -I/myheaders2 -pthread
$ PKG_CONFIG_PATH=/tmp/pkgconfig pkgconf --libs test
-L/mylibs1 -L/mylibs2 -L/usr/lib64 -ltest
$ PKG_CONFIG_SYSTEM_INCLUDE_PATH=/myheaders1:/myheaders2:/usr/include PKG_CONFIG_SYSTEM_LIBRARY_PATH=/mylibs1:/mylibs2:/lib64:/usr/lib64 PKG_CONFIG_PATH=/tmp/pkgconfig pkgconf --cflags test
-pthread
$ PKG_CONFIG_SYSTEM_INCLUDE_PATH=/myheaders1:/myheaders2:/usr/include PKG_CONFIG_SYSTEM_LIBRARY_PATH=/mylibs1:/mylibs2:/lib64:/usr/lib64 PKG_CONFIG_PATH=/tmp/pkgconfig pkgconf --libs test
-ltest
`--with-system-includedir` and `--with-system-libdir` fail to use more than 1 element from `:`-separated list. `PKG_CONFIG_SYSTEM_INCLUDE_PATH` and `PKG_CONFIG_SYSTEM_LIBRARY_PATH` work correctly. `pkgconf` 1.7.4 configured with: ``` --with-system-includedir=/myheaders1:/myheaders2:/usr/include --with-system-libdir=/mylibs1:/mylibs2:/lib64:/usr/lib64 ``` ``` $ cat /tmp/pkgconfig/test.pc Name: test Description: test Version: 0 Cflags: -I/myheaders1 -I/myheaders2 -I/usr/include -pthread Libs: -L/mylibs1 -L/mylibs2 -L/lib64 -L/usr/lib64 -ltest $ PKG_CONFIG_PATH=/tmp/pkgconfig pkgconf --cflags test -I/myheaders1 -I/myheaders2 -pthread $ PKG_CONFIG_PATH=/tmp/pkgconfig pkgconf --libs test -L/mylibs1 -L/mylibs2 -L/usr/lib64 -ltest $ PKG_CONFIG_SYSTEM_INCLUDE_PATH=/myheaders1:/myheaders2:/usr/include PKG_CONFIG_SYSTEM_LIBRARY_PATH=/mylibs1:/mylibs2:/lib64:/usr/lib64 PKG_CONFIG_PATH=/tmp/pkgconfig pkgconf --cflags test -pthread $ PKG_CONFIG_SYSTEM_INCLUDE_PATH=/myheaders1:/myheaders2:/usr/include PKG_CONFIG_SYSTEM_LIBRARY_PATH=/mylibs1:/mylibs2:/lib64:/usr/lib64 PKG_CONFIG_PATH=/tmp/pkgconfig pkgconf --libs test -ltest ```

The /myheaders1 and /myheaders2 paths get filtered out because they don't exist. Interesting.

The `/myheaders1` and `/myheaders2` paths get filtered out because they don't exist. Interesting.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ariadne/pkgconf#224
There is no content yet.