Commit Graph

633 Commits (bbe6dcc0886d21dcd3aa4f75fff22b1009ec5a79)

Author SHA1 Message Date
William Pitcock 6759cdb4ef pkgconf 0.5. 2012-05-03 20:49:50 +00:00
William Pitcock 26c5dcb125 fragment: add pkg_fragment_exists() and use it to mergemaster in pkg_fragment_copy(). 2012-05-03 20:43:09 +00:00
William Pitcock a4a572f608 main: separate CFLAGS and LIBS collection and printing steps into two phases. 2012-05-03 20:37:24 +00:00
William Pitcock d94ab7555d fragment: add pkg_fragment_copy(). 2012-05-03 20:31:33 +00:00
William Pitcock c1e5ab046b fragment: add pkg_fragment_delete(). 2012-05-03 20:27:19 +00:00
William Pitcock de5e1c6e23 split out fragment code from parse.c 2012-05-03 20:22:19 +00:00
William Pitcock bd1bfa6228 main: add support for --libs-only-L, --libs-only-l and --libs-only-other. 2012-05-03 20:21:57 +00:00
William Pitcock bd4044a9cf main: add support for --cflags-only-I and --cflags-only-other 2012-05-03 19:52:36 +00:00
William Pitcock a290467261 main: filter out system dirs 2012-05-03 19:44:44 +00:00
William Pitcock 3c380f9b63 Add LIBDIR and INCLUDEDIR defines. 2012-05-03 19:44:23 +00:00
William Pitcock 1a81d1c7cc parse: fix handling of fragment types 2012-05-03 19:43:54 +00:00
William Pitcock b0521ec9d8 main: implement support for printing fragment lists 2012-05-03 19:36:47 +00:00
William Pitcock 588a671125 parse: cleanups for fragment handling code 2012-05-03 19:35:56 +00:00
William Pitcock b88279d40d pkg: parse CFLAGS/LIBS/LIBS.private into fragment lists. 2012-05-03 19:25:59 +00:00
William Pitcock 82420d0c5c pkg: add support for fragment lists. 2012-05-03 19:25:33 +00:00
William Pitcock c74b749c65 Add code for spliting strings into argc/argv using shell quoting rules. 2012-05-03 18:59:14 +00:00
William Pitcock b26da6815c main: --static shouldn't change maximum_traverse_depth 2012-05-03 18:05:19 +00:00
William Pitcock 5996e37703 fix test #9 output 2012-05-03 18:05:01 +00:00
William Pitcock 49a5eddad1 pkg: add pkg_report_graph_error() for describing breaks in the dependency graph.
Fixes issue #3.
2012-05-03 17:55:06 +00:00
William Pitcock 91ec341a92 pkg: pkg_verify_dependency(): add return error flags pointer.
presently, three error flags are defined:

PKG_ERRF_OK: everything went fine (no error)

PKG_ERRF_PACKAGE_NOT_FOUND: a graph node couldn't be verified because there was no
                            database entry for it

PKG_ERRF_PACKAGE_VER_MISMATCH: a graph node couldn't be verified because the entry
                               in the database did not match versioning constraints
2012-05-03 17:42:04 +00:00
William Pitcock 4dbca6ae18 Merge pull request #4 from mgorny/master
Fix uninitialized variable + tests
2012-05-03 10:32:49 -07:00
William Pitcock 89f3a1f109 Makefile: enable fortify support 2012-05-03 17:23:11 +00:00
William Pitcock 9f877aed9f makefile: enable -Wextra, -Wformat=2 2012-05-03 17:22:44 +00:00
William Pitcock 460a0afb04 main: explicitly tell the compiler we don't want to use the userdata pointers in our callback 2012-05-03 17:21:41 +00:00
William Pitcock 1caa0dca87 pkg: pkg_walk_list() does not need a reference to the parent node in the graph 2012-05-03 17:20:39 +00:00
William Pitcock ccda6b3752 everywhere: warning cleanups 2012-05-03 17:15:45 +00:00
Michał Górny 23e31fd702 Add tests for 'Requires' and '.private'. 2012-05-03 09:43:13 +02:00
Michał Górny 482b65f1ce Tests for PKG_CONFIG_PATH ordering. 2012-05-03 09:42:04 +02:00
Michał Górny 97b8c09365 Add minimal tests. 2012-05-03 09:41:55 +02:00
Michał Górny a4ceb68409 File lookup: fix uninitialized 'iter'. 2012-05-03 09:41:26 +02:00
William Pitcock 290107de84 main: add support for --print-requires-private 2012-05-03 00:55:52 +00:00
William Pitcock 3f758a8bae pkg: pkg_verify_graph() should also accept resolver flags 2012-05-02 23:29:35 +00:00
William Pitcock 84aa1c11f1 main: now that we have global_traverse_flags, clean up --static handling 2012-05-02 23:20:54 +00:00
William Pitcock d97853e49c main: implement support for --env-only option. 2012-05-02 23:19:50 +00:00
William Pitcock e59b9864ea pkg: implement resolver-side support for some pkg-config clone's --env-only option 2012-05-02 23:16:32 +00:00
William Pitcock 187b4e538f pkg: add resolver flags to pkg_find() and pkg_verify_dependency(). 2012-05-02 23:14:53 +00:00
William Pitcock 62f1bfbc5b main: add global_traverse_flags for PKGF flags that should be applied to any pkg_traverse() call 2012-05-02 23:11:19 +00:00
William Pitcock 8c5923f9fb pkgconf 0.4. 2012-05-02 22:05:17 +00:00
William Pitcock ff779219e1 main: if --static and --libs is requested, use PKGF_SEARCH_PRIVATE when printing linker flags 2012-05-02 22:01:17 +00:00
William Pitcock 07bb6d28bc main: if --static is requested, print LIBS.private too. 2012-05-02 21:53:43 +00:00
William Pitcock bcd8a9f9d6 parse: track LIBS.private 2012-05-02 21:53:02 +00:00
William Pitcock 8f8ed9b60a main: call pkg_traverse with PKGF_SEARCH_PRIVATE if --cflags is requested. 2012-05-02 21:48:23 +00:00
William Pitcock 38f3dc78a9 pkg: if PKGF_SEARCH_PRIVATE is requested, search root::requires_private graph entries too 2012-05-02 21:47:02 +00:00
William Pitcock 5ea52d4cae pkg: add flags option to pkg_traverse() to optionally control what the depgraph traversal code does 2012-05-02 21:44:58 +00:00
William Pitcock bea3c202de Add requires_private to pkg_t. 2012-05-02 21:37:32 +00:00
William Pitcock 656b34fb45 pkg: plug some minor memory leaks 2012-05-02 19:35:45 +00:00
William Pitcock 77703f1841 pkg: path_split(): clarify that we want to dereference parv itself, not parv[idx]. 2012-05-02 19:31:30 +00:00
William Pitcock ca4843822f pkg: use PKG_CONFIG_EXT everywhere 2012-05-02 19:11:20 +00:00
William Pitcock 52433aa27a pkg: clean up PKG_CONFIG_PATH_SEP_S nonsense 2012-05-02 19:07:38 +00:00
William Pitcock b91bdcd31a pkg: use path_split() instead of a static buffer. 2012-05-02 19:06:32 +00:00