Commit Graph

1167 Commits (100bc605deba7a8aab473acdae233d4a838843e3)

Author SHA1 Message Date
William Pitcock f5ce5fd755 testsuite: add a parser test from Go (redhat #1437101) 2017-03-29 16:58:04 -05:00
William Pitcock 849261cf58 pkgconf 1.3.3. 2017-03-27 12:12:27 -05:00
William Pitcock fbbf5316fb update NEWS for 1.3.3. 2017-03-27 11:01:41 -05:00
William Pitcock 6fcb5ba5c0 testsuite: update test with PKG_CONFIG_MAXIMUM_TRAVERSE_DEPTH=1 env var 2017-03-27 01:03:24 -05:00
William Pitcock 2f4a1eb4e0 main: implement a different solution for dependency generators, too many broken configure scripts still :/ 2017-03-27 00:56:23 -05:00
William Pitcock 92ce179d23 pkgconf 1.3.2. 2017-03-24 01:03:11 -05:00
William Pitcock 7a121725be update NEWS for 1.3.2 2017-03-24 01:03:11 -05:00
William Pitcock acac1f8ed3 libpkgconf: pkg: show iteration depth when traversing 2017-03-24 00:59:53 -05:00
William Pitcock be184cba1d main: further fix up handling of single-package query flags 2017-03-24 00:59:26 -05:00
William Pitcock 05e257e678 pkgconf 1.3.1. 2017-03-24 00:19:55 -05:00
William Pitcock 85375d9fda update NEWS for 1.3.1 2017-03-24 00:19:27 -05:00
William Pitcock 541de8bd59 main: handle query selectors that are only usable for single packages correctly
--print-requires, --print-requires-private, --print-provides, --modversion, --print-variable and --print-variables
are inquiring information about a package, not about a dependency graph.

in such cases, we should not try to solve the problem set to determine if it is satisfiable, as any invocation
of these commands are trying to inquire about a specific package.  instead, just solve the problem set for a single
level (so we can load the package itself) which is far more useful behaviour when scanning .pc files for their
dependency metadata.

as an aside, this allows us to successfully scan .pc files which are otherwise unsatisfiable.
2017-03-24 00:13:30 -05:00
William Pitcock 9d05871d32 testsuite: check to see if --print-requires incorrectly invokes the dependency resolver 2017-03-24 00:13:14 -05:00
Dag-Erling Smørgrav 95b683c864 Update pkg.m4 to latest upstream version (0.29.1) (#116)
* Update comments to reduce diffs against latest upstream (0.29.1).

* Clean up our comments to match the new upstream style.

* Update pkg.m4 to latest upstream version (0.29.1).
2017-03-07 11:11:01 -06:00
William Pitcock ced4ec00c8 main: add some very primitive --print-errors support for --atleast-version and friends (closes #115) 2017-02-27 10:09:16 -06:00
William Pitcock 81011ba522 main: implement --short-errors (#115) 2017-02-27 09:54:02 -06:00
William Pitcock ec42e4f8d2 add NEWS for 1.3.0 2017-02-25 16:17:42 -06:00
William Pitcock d40aac3626 pkgconf 1.3.0. 2017-02-25 16:09:00 -06:00
William Pitcock 40fe6c5f53 configure: stop checking for realpath(3) 2017-02-25 16:08:13 -06:00
William Pitcock 7a5da837f2 docs: we no longer use realpath(3) 2017-02-25 16:07:51 -06:00
William Pitcock 794443a92a dependency: break API to add tracepoints to dependency list building 2017-02-25 16:04:55 -06:00
William Pitcock e0c9569f14 fragment: add tracepoints 2017-02-25 15:53:50 -06:00
William Pitcock 3744a84380 testsuite: parser testcase output changes a little because we escape when running as pkgconf CLI now 2017-02-25 15:33:41 -06:00
William Pitcock 44b676b782 main: chase API changes 2017-02-25 15:33:34 -06:00
William Pitcock 01fe5743ea fragment: add new option to control escaping shell arguments 2017-02-25 15:32:49 -06:00
William Pitcock ae42261c3f argvsplit: refactor splitting state machine 2017-02-25 15:04:08 -06:00
William Pitcock a3fa9732b3 testsuite: add testsuite cases for inverse quoting situations 2017-02-25 13:57:38 -06:00
John Hein 9b255d465c If PKG_CONFIG_PATH element is a sym link, use the link destination instead of the link for inode caching checks.
See issue 112 & issue 110 (https://github.com/pkgconf/pkgconf/issues)
2017-02-24 23:26:41 -06:00
John Hein 76b8e0a26b Normalize the path to remove duplicate / separators rather than possibly altering the path with realpath(3). Leave sym links as is in path components. This is also cheaper than realpath(3), and works on platforms that don't have realpath(3).
Note: if this is accepted, the check for realpath in configure.ac
can be removed, and some docs that mention realpath will be adjusted.
2017-02-24 23:26:10 -06:00
William Pitcock d558e30ab3 libpkgconf: argvsplit: quoting logic was simplified too much 2017-02-07 10:25:38 -06:00
William Pitcock 2dcd749601 main: remove whitespace added for compatibility with older pkg-config (closes #113) 2017-02-07 10:11:12 -06:00
William Pitcock b0c36cd128 libpkgconf: pkg: add some trace points 2017-02-04 20:35:49 -06:00
William Pitcock 16ecf82fd7 libpkgconf: client: bring up the default trace handler as early as possible 2017-02-04 20:09:21 -06:00
William Pitcock f7f0bfc460 libpkgconf: cache: add trace points 2017-02-04 20:01:41 -06:00
William Pitcock 2b6bb5a252 libpkgconf: client: add trace points 2017-02-04 19:50:58 -06:00
William Pitcock d20efff495 libpkgconf: overhaul pkgconf_trace() a little 2017-02-04 19:49:59 -06:00
William Pitcock 9fc170bda5 main: add early tracing support via PKG_CONFIG_EARLY_TRACE environment variable 2017-02-04 19:49:20 -06:00
William Pitcock 276e36fe28 main: install a trace handler if --debug is specified 2017-02-04 19:09:31 -06:00
William Pitcock c1d7f1a620 main: install a warning handler if --validate is requested 2017-02-04 19:06:58 -06:00
William Pitcock 820ad83edd libpkgconf: pkg: add variable whitespace warnings back, using pkgconf_warn(). 2017-02-04 19:05:28 -06:00
William Pitcock bef293080a libpkgconf: client: add trace logging too 2017-02-04 18:57:21 -06:00
William Pitcock a6755cd792 libpkgconf: client: add pkgconf_warn() 2017-02-04 18:46:53 -06:00
William Pitcock eb98a1e6c3 libpkgconf: client: clean up various aspects of error/warn handlers 2017-02-04 18:46:33 -06:00
William Pitcock d884dc46a2 libpkgconf: client: ensure error/warn handlers always have a sane default instead of actually NULL 2017-02-04 18:41:16 -06:00
William Pitcock c0b6a62c40 libpkgconf: client: add warn handler and getter/setter for both warn handler and error handler 2017-02-04 18:37:58 -06:00
William Pitcock badcd8d2ef pkgconf manpage: add PKG_CONFIG_DONT_RELOCATE_PATHS and --dont-relocate-paths 2017-02-03 13:29:49 -06:00
William Pitcock 647c0255aa libpkgconf: add PKGCONF_PKG_PKGF_DONT_RELOCATE_PATHS (#110)
main: add PKG_CONFIG_DONT_RELOCATE_PATHS environment variable and --dont-relocate-paths option to disable path relocation
2017-02-03 13:17:21 -06:00
William Pitcock 02ad6d1ab9 testsuite: add regression test for #111 2017-02-03 12:58:11 -06:00
William Pitcock fe40bc33f8 libpkgconf: argvsplit: do not consider ' or " to be equivalent to \ (#111) 2017-02-03 12:53:50 -06:00
William Pitcock 42d65b14c7 libpkgconf: client: add INCLUDE environment to the cflags path filter list on windows 2017-02-01 13:03:06 -06:00