Commit Graph

227 Commits (7a121725bedf31d1f6922660e9bb226a0e5291df)

Author SHA1 Message Date
William Pitcock 12a0eb124c main: assume --modversion insted of --version if other flags or module names are provided 2016-08-25 23:45:33 -05:00
William Pitcock 4a1b88fcc4 main: implement --print-provides, but not actual Provides support.
It turns out pkg-config's provides support is incomplete (only --print-provides is implemented),
so we are going to hold off on implementing support for Provides until 1.1.
2016-08-24 11:04:12 -05:00
William Pitcock 41e0a65870 audit: add actual audit log I/O functions (ref #88) 2016-07-10 15:03:58 -05:00
William Pitcock 8ccc10863c main: add a stub for PKG_CONFIG_LOG (ref #88) 2016-07-10 14:53:33 -05:00
William Pitcock a7893e7572 update copyright to 2016 2016-05-19 18:21:49 -05:00
William Pitcock 7e6fa325eb main: support undocumented PKG_CONFIG_SYSTEM_INCLUDE_PATH and PKG_CONFIG_SYSTEM_LIBRARY_PATH environment variables. (closes #86) 2016-01-21 11:16:39 -05:00
Baptiste Daroussin cb83dab4ad More casting for ctype 2015-12-02 14:59:51 +01:00
William Pitcock b904864619 libpkgconf: do something better than error_msgout for error logging 2015-09-06 12:01:12 -05:00
William Pitcock 06a45f1b62 libpkgconf: clean up PKG_ERRF and PKGF_ defines 2015-09-06 11:45:00 -05:00
William Pitcock 50cf8db086 libpkgconf: clean up PKG_MODULE_SEPARATOR() and PKG_OPERATOR_CHAR() macros 2015-09-06 11:39:55 -05:00
William Pitcock ec5cc3f068 libpkgconf: PKG_PROPF namespace becomes PKGCONF_PKG_PROPF. 2015-09-06 11:37:20 -05:00
William Pitcock dd86ba43dd libpkgconf: PKG_ comparators become PKGCONF_CMP_ namespace 2015-09-06 11:34:09 -05:00
William Pitcock 571d9c756c libpkgconf: PKG_BUFSIZE becomes PKGCONF_BUFSIZE, remove unused PKG_MIN/PKG_MAX. 2015-09-06 11:29:56 -05:00
William Pitcock ca1b02659a libpkgconf: untangle remaining pkg_ functions related to pkgconf_pkg_t 2015-09-06 11:20:48 -05:00
William Pitcock 0d145ef85a libpkgconf: pkg_compare_version() becomes pkgconf_compare_version(), same for pkg_scan_all() 2015-09-06 11:00:46 -05:00
William Pitcock 66247fae5f libpkgconf: pkg_comparator_t becomes pkgconf_pkg_comparator_t (and so on) 2015-09-06 10:57:26 -05:00
William Pitcock 4410eb2c78 libpkgconf: pkg_queue becomes pkgconf_queue 2015-09-06 10:51:34 -05:00
William Pitcock 342950a5e4 libpkgconf: pkg_cache becomes pkgconf_cache 2015-09-06 10:50:23 -05:00
William Pitcock 61d5fc72c8 libpkgconf: move pkg_fragment to pkgconf_fragment namespace 2015-09-06 10:44:10 -05:00
William Pitcock 4c71b25d5d libpkgconf: move pkg_tuple to pkgconf_tuple namespace 2015-09-06 10:41:40 -05:00
William Pitcock 1ee18d0e69 libpkgconf: move pkg_dependency to pkgconf_dependency namespace 2015-09-06 10:38:30 -05:00
William Pitcock cc2dcc1f5d libpkgconf: move pkg_node and pkg_list to pkgconf_node and pkgconf_list namespaces 2015-09-06 10:31:21 -05:00
William Pitcock a706b3dccc initial libtoolization for libpkgconf 2015-09-06 09:35:08 -05:00
William Pitcock 2bd655985a main: remove remaining parts of the pkg-config compatibility layer 2015-09-03 03:29:35 -05:00
William Pitcock fc18a9d509 main: add --list-package-names 2015-06-03 02:22:38 -05:00
William Pitcock a5a58dc779 main: specify that all flag values are explicitly uint64_t 2015-06-03 02:22:02 -05:00
William Pitcock b0b73149f8 main: implement --validate as in pkg-config 0.29 git 2015-05-21 23:20:40 -05:00
William Pitcock 57924dcee2 pkg_getopt_long: use uint64_t for options bitfield 2015-05-21 23:16:37 -05:00
William Pitcock 2bee0006cd main: stub out --print-provides 2015-04-20 09:45:03 -05:00
William Pitcock c207e82039 main: update informational copyright notice 2015-03-14 04:17:59 -05:00
William Pitcock 025fc09222 main: --libs-only-foo and --cflags-only-foo behaviour should be inclusive, not exclusive.
Pointed out and initial patch by: Dan Kegel <dank@kegel.com>
2014-09-13 22:37:00 -05:00
William Pitcock 3d98bd7ff6 main: do not munge variables which already contain sysroot_dir in their output (maybe related to #69) 2014-07-09 02:00:13 -05:00
William Pitcock 12ff14f856 fragments: handle sysroot dir munging directly in a smarter way
Previously we just let the tuple system handle it, but pkg-config modules which do not define
variables were able to get by the checks.  While here, check to ensure we do not duplicate the
sysroot dir twice if it is already defined in the pkg-config module file.

Downstream bug: https://bugs.busybox.net/show_bug.cgi?id=5750
2014-07-09 01:23:51 -05:00
William Pitcock d2d52b3278 main: allow --debug as an option (has no effect) (closes #64) 2014-06-07 20:30:36 +00:00
William Pitcock 50b647c92f main: avoid memory leak 2014-06-07 20:19:51 +00:00
William Pitcock 912d1d9013 main: fix --with-system-includedir and --with-system-libdir behaviour (closes #63) 2014-06-07 20:11:06 +00:00
Tony Theodore bc661124da fix keep-system-* arg parsing and test with default prefix 2013-08-24 15:19:41 +10:00
William Pitcock 501d7dc25f main: update copyright years 2013-08-23 04:04:16 +00:00
William Pitcock f9d93a1f81 main: --simulate: enhancements 2013-03-15 19:59:20 -05:00
William Pitcock d7643ed2b6 main: --simulate: print bytecode program as a human-readable AST parsable by mowgli.config_parse 2013-03-15 19:36:37 -05:00
William Pitcock 8980ae5f76 main: --simulate: print depgraph operations 2013-03-15 19:20:35 -05:00
William Pitcock d6fb7881d4 pkg: remove pkg_t.uninstalled, use a property flag instead 2013-03-01 12:06:52 -06:00
William Pitcock 1fd95f90eb dependency: refactor to use pkg_list_t framework 2013-03-01 11:36:21 -06:00
William Pitcock 8330056dc1 fragment: refactor using pkg_list_t framework 2013-03-01 11:10:43 -06:00
William Pitcock 74e40fd128 tuple: refactor to use pkg_list_t framework 2013-03-01 10:45:55 -06:00
William Pitcock ae063d8922 queue: refactor to use pkg_list_t framework 2013-03-01 10:24:57 -06:00
William Pitcock dd53cd57f4 pkg: implement refcounting and a deeper cache 2013-02-25 23:29:57 -06:00
William Pitcock 77c5b82aad main: use support for munging by $(pc_sysrootdir) and remove the old sysroot hack 2013-02-24 08:59:07 -06:00
William Pitcock b4eb42f3c3 Update copyrights on modified files to 2013. 2013-02-24 08:21:36 -06:00
William Pitcock 910c6e00e9 main: add option to disable cache code 2013-02-24 08:20:35 -06:00
William Pitcock 7b322d73e8 main: limit evaluation graph depth to 2000 nodes
This allows us to break out of situations where circular dependencies may arise.
2013-02-24 06:42:32 -06:00
William Pitcock 0edc4ff3b3 main: mention compatibility level in --about ala PKG_PKGCONFIG_VERSION_EQUIV 2012-09-14 16:16:35 -05:00
William Pitcock 0153d2876f main: ensure program invocation with no package arguments always sends error messages to stderr 2012-09-14 15:02:08 -05:00
William Pitcock 150d91d07f main: add a trailing space at the end of the output if --cflags or --libs is requested (closes #40) 2012-09-05 07:03:37 -05:00
Baptiste Daroussin 4eedb041ed if no cflags or libs are defined in .pc just return 0 and output nothing 2012-08-20 22:47:10 +02:00
Baptiste Daroussin 9a26337507 return 1 and do not output anything a requirement is missing 2012-08-12 12:33:37 +02:00
William Pitcock 3e03f2d9aa main: use global fragment lists for --cflags and --libs 2012-08-08 11:09:37 -05:00
William Pitcock 84ea074fbe pkg: allow pkg_cflags() and pkg_libs() utility functions to have a user-provided list pointer.
Also chase this change in the frontend.
2012-08-08 11:09:37 -05:00
William Pitcock 56ba08b617 main: add --simulate (related to issue #33) 2012-08-08 10:23:23 -05:00
William Pitcock c8e604c83c main: add whitespace control to --variable output (fixes mozilla libxul stuff) 2012-07-30 05:40:26 -05:00
William Pitcock 0d412423bd main: print_variable() should add whitespace 2012-07-30 05:11:11 -05:00
Baptiste Daroussin 8acc7533db pkgconf --variable needs a \n 2012-07-30 11:50:09 +02:00
William Pitcock 301a46368e Revert "main: --exists should search Requires.private."
This reverts commit 980644230d.
2012-07-30 03:16:30 -05:00
William Pitcock 69a6331cbe main: --exists should search Requires.private. 2012-07-30 03:16:30 -05:00
William Pitcock 391dbad713 main: add logic to make --print-errors actually useful 2012-07-30 03:16:29 -05:00
William Pitcock e22860accc main: fix regression caused by moving to bitfield where --cflags or --libs wouldn't cause a newline 2012-07-30 02:07:02 -05:00
William Pitcock 8744ce5ec1 main: usage() should list --about 2012-07-29 11:41:57 -05:00
Baptiste Daroussin 1464b576b0 Convert all the int want_* to a single bitmap 2012-07-29 13:39:34 +02:00
William Pitcock b9ccc27abc pkg: add pkg_queue_validate() to compile and validate a pkg_queue_t. 2012-07-29 05:37:21 -05:00
William Pitcock 9136b192c3 main: rework to use pkg_queue_apply().
Presently 3 regressions.
2012-07-29 05:37:21 -05:00
William Pitcock 23b1806f65 main: remove redundant checks made obsolete by depgraph compilation 2012-07-29 05:37:21 -05:00
William Pitcock 50c496b7ce main: use pkg_queue_compile() and pkg_queue_free(). 2012-07-29 05:37:20 -05:00
William Pitcock 698358e9d4 queue: new file 2012-07-29 05:37:20 -05:00
William Pitcock 91271e56c6 main: remove several symbols from BSS (they are only needed by main()). 2012-07-29 03:30:50 -05:00
William Pitcock 3715fae236 main: move our actual version text to --about, make --version print pkg-config API version
This improves compatibility with broken packages, but really, scripts should depend on:
- --atleast-pkgconfig-version
- --modversion pkg-config

Anything else is just broken, but oh well.
2012-07-29 03:22:34 -05:00
William Pitcock 24bb536305 main: --list-all shouldn't list 'uninstalled' packages 2012-07-27 01:21:17 -05:00
William Pitcock 3e1858320c main: add frontend implementation of --list-all 2012-07-27 01:21:16 -05:00
William Pitcock 0a5cb4c4ec everything: update copyright to note multiple authors 2012-07-25 21:09:31 -05:00
Baptiste Daroussin 7b10816cdb Ordering cflags flags 2012-07-26 00:32:35 +02:00
Baptiste Daroussin cab2620408 Ordering libs flags 2012-07-26 00:26:04 +02:00
Baptiste Daroussin 83487e78cb skip empty packages arguments
(gobject-introspection scanner can pass empty arguments to pkgconf)
This improves compatibility with pkg-config
2012-07-25 13:51:19 +02:00
Baptiste Daroussin abcea07a1c add --with-system-includedir and --with-system-libdir
By default they are defined to --includedir and --libdir
2012-07-24 22:24:52 +02:00
William Pitcock da7e3de991 main: --silence-errors should be opt-in only. 2012-07-23 21:07:19 -05:00
William Pitcock b0cdca488e everything: do not shadow POSIX BUFSIZ definition 2012-07-21 14:38:13 -05:00
William Pitcock f4d84620a1 main: add support for --silence-errors by redirecting stderr to /dev/null 2012-07-21 14:33:07 -05:00
William Pitcock d730ec8a64 main: bail if the entire depgraph cannot be built 2012-07-20 20:04:11 -05:00
William Pitcock e5efad7df5 main: return EXIT_FAILURE when argument parsing fails 2012-07-20 17:19:43 -05:00
William Pitcock 43a2c7880d main: use pkg_getopt_long_only(). 2012-07-20 17:12:06 -05:00
William Pitcock 3035b0ba6b main: add support for HAVE_STRICT_MODE compiler define (and define it in the build system) (issue #25) 2012-07-20 16:29:57 -05:00
William Pitcock c928e7e429 main: clean up license text in --version 2012-07-20 14:31:58 -05:00
William Pitcock 1975a2981e everything: more friendly warranty disclaimer 2012-07-20 14:29:58 -05:00
William Pitcock 9d7672fc9a main: use our own getopt_long() implementation always, as pkg_getopt_long(). (closes #24) 2012-07-20 13:46:14 -05:00
William Pitcock b8645fbef2 main: fix regression caused by copy-and-paste (issue #20) 2012-07-01 22:02:45 -05:00
William Pitcock 4499d272dd main: implement use of pkg_dependency_parse_str() for --atleast-version and friends (issue #20) 2012-07-01 21:57:49 -05:00
William Pitcock 8a9971ec1f main: finish --errors-to-stdout support 2012-07-01 21:21:31 -05:00
William Pitcock 2d2ae06809 main: emulate --errors-to-stdout 2012-06-30 16:51:31 -05:00
William Pitcock fef7558c92 main: add --ignore-conflicts program option (issue #13) 2012-05-11 20:54:48 -05:00
William Pitcock 27c0779187 main: use pkg_libs(). 2012-05-11 20:18:12 -05:00
William Pitcock b8e538ecea main: use pkg_cflags() instead of custom code (issue #11) 2012-05-11 20:13:47 -05:00
William Pitcock 40402298ef main: use PKGF_MERGE_PRIVATE_FRAGMENTS 2012-05-11 20:07:45 -05:00