Commit Graph

229 Commits (ededaa6415f8db00ac2d2311c010b33d6eb0d375)

Author SHA1 Message Date
William Pitcock 30c35b7096 main: re-enable --variable pkg-config bug emulation because downstreams take advantage of it 2017-04-01 18:34:59 -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 be184cba1d main: further fix up handling of single-package query flags 2017-03-24 00:59:26 -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 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 794443a92a dependency: break API to add tracepoints to dependency list building 2017-02-25 16:04:55 -06:00
William Pitcock 44b676b782 main: chase API changes 2017-02-25 15:33:34 -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 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 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 da34d940ea main: print warnings/errors when using --validate 2017-01-26 13:30:41 -06:00
William Pitcock 18a58836c9 main: add --dont-define-prefix for feature parity with pkg-config 2017-01-20 18:09:56 -06:00
William Pitcock 7237b811e7 add support for making paths relocatable (closes #103) 2017-01-20 00:58:48 -06:00
William Pitcock bd6be71115 main: add support for --prefix-variable (ref #103) 2017-01-19 19:21:46 -06:00
William Pitcock 13cf74c7a3 libpkgconf: kill flags from top-level fragment API (ref #105) 2017-01-19 18:23:25 -06:00
William Pitcock 7b39c38408 libpkgconf: pkg: clean up use of flags variable (ref #105) 2017-01-19 18:17:29 -06:00
William Pitcock 127fd037d4 libpkgconf: pkg: uncouple resolver flags from pkgconf_pkg_dir_list_build(). (ref #105) 2017-01-19 17:35:57 -06:00
William Pitcock 0ca6a16ce5 libpkgconf: queue: nuke flags parameters (ref #105) 2017-01-19 17:32:38 -06:00
William Pitcock 3c628084c5 main: kill global_traverse_flags (ref #105) 2017-01-19 17:16:20 -06:00
William Pitcock 492d220d73 main: properly honour --keep-system-libs and --keep-system-cflags 2017-01-18 20:34:06 -06:00
William Pitcock 4f94090fe4 libpkgconf: fragment: make pkgconf_fragment_filter() accept userdata (closes #106) 2017-01-18 20:25:19 -06:00
William Pitcock d7bf55a194 main: add --with-path CLI option (closes #104) 2017-01-18 11:36:52 -06:00
William Pitcock 02fcc31e00 main: add --path option to show the exact filename of each .pc file used 2017-01-07 02:58:39 -06:00
William Pitcock 5a006aac24 Update copyrights to 2017. 2016-12-28 14:00:23 -06:00
William Pitcock 6ef4a853b5 libpkgconf: migrate pkgconf client fragment_is_system_dir() to a libpkgconf API 2016-12-21 20:06:17 -06:00
William Pitcock b26e3cf6c7 main: fragment_has_system_dir(): remove want_flags checks as they are redundant 2016-12-21 19:59:47 -06:00
William Pitcock cd0160a4a2 libpkgconf: handle PKG_CONFIG_SYSTEM_INCLUDE_PATH and PKG_CONFIG_SYSTEM_LIBRARY_PATH environment variables at client init time 2016-12-21 19:55:01 -06:00
William Pitcock 76754216a4 main: use pkgconf_client_t.filter_libdirs and friends instead of an internal set of lists 2016-12-21 19:52:36 -06:00
William Pitcock 82fa8b21cf libpkgconf: separate config.h from the actual API headers 2016-12-13 12:14:08 -06:00
Graham Ollis fa87608978 pass client and user data to error handler (#100) 2016-12-13 12:03:59 -06:00
William Pitcock d58ac74669 main: use pkgconf_ namespaced strlcpy/strlcat stubs 2016-12-10 16:22:16 -06:00
William Pitcock d6d7ff775a main: use pkgconf_fragment_render() to render fragment lists instead of custom stuff 2016-12-09 23:07:15 -06:00
William Pitcock af63b799f1 main: filter out system dir fragments instead of skipping them when printing 2016-12-09 22:47:02 -06:00
William Pitcock 2b5d763e31 main: use pkgconf_fragment_filter() instead of crazy stuff 2016-12-09 22:45:22 -06:00
William Pitcock 6e4fd027c3 main: switch to pkgconf_client_set_sysroot_dir() and remove the last vestige of PKGCONF_PKG_PKGF_MUNGE_SYSROOT_PREFIX 2016-12-09 21:37:36 -06:00
William Pitcock 792cd7c8e6 libpkgconf: tuple: handle sysroot without the need of PKGCONF_PKG_PKGF_MUNGE_SYSROOT_PREFIX 2016-12-09 21:32:55 -06:00
William Pitcock f8de5bf161 main: use pkgconf_client_set_buildroot_dir() instead of manually handling it 2016-12-09 21:10:21 -06:00
William Pitcock 011d8c77d6 libpkgconf: audit: migrate to pkgconf_client_t 2016-12-02 00:34:48 -06:00
William Pitcock c05ecdfc9d libpkgconf: migrate cache to pkgconf_client_t which unfortunately requires it to be non-const :( 2016-12-02 00:29:33 -06:00
William Pitcock a300787cef libpkgconf: do not implicitly build the dir list, instead explicitly do it 2016-12-01 15:17:23 -06:00
William Pitcock 8740c5cd55 libpkgconf: begin removing global state from libpkgconf library by introducing a "client" object which holds the state 2016-12-01 15:05:03 -06:00
William Pitcock 4bb46e20e3 libpkgconf: add path matching and environment building functions 2016-11-30 22:36:35 -06:00
William Pitcock 8ecf7c186b main: also enable --pure with the PKG_CONFIG_PURE_DEPGRAPH env variable (#83) 2016-11-15 22:30:04 -06:00
William Pitcock ec10dd8edb main: add --pure flag (#83) which allows a static-linking dependency graph to be evaluated as if it were otherwise normal 2016-11-15 22:01:17 -06:00
William Pitcock 47c5c5653c main: add --skip-provides to provide broken fd.o pkg-config behaviour (#95) 2016-09-08 22:21:12 -05:00
William Pitcock bbe6dcc088 pkg: make pkgconf_scan_all() API more flexible to allow it to scan until it finds a qualifying pkgconf_pkg_t 2016-08-27 09:48:53 -05:00
William Pitcock 5ba46130d2 pkg: add anchor Provides entry once the .pc file is parsed, instead of faking it in the tool 2016-08-26 23:43:36 -05:00