Commit Graph

58 Commits (9775fe8c6612e0f6f42276d61929a9108bbfa9ad)

Author SHA1 Message Date
William Pitcock 9775fe8c66 pkg (headers): add alloca.h for LOCAL_COPY() macro 2012-05-09 15:46:36 -05:00
William Pitcock 7ae5ccd177 main: implement --define-variable 2012-05-06 23:32:08 -05:00
William Pitcock f663f7922c pkg: add PKGF_SKIP_ROOT_VIRTUAL for some queries like --variable 2012-05-06 23:26:21 -05:00
William Pitcock 0056ba63dc tuple: add global tuple support (issue #5, issue #6, issue #7) 2012-05-06 23:10:41 -05:00
William Pitcock 4eb08d7c1f pkg: clean up foreach_list_entry* macros (issue #10) 2012-05-06 22:55:00 -05:00
William Pitcock 9eea62fbc6 pkg: LOCAL_COPY() becomes PKG_LOCAL_COPY(). 2012-05-06 22:52:05 -05:00
William Pitcock d86827d2dd pkg: clean up struct names so they sit fully inside pkg_ namespace (issue #10) 2012-05-06 22:50:15 -05:00
William Pitcock c83fd2e616 parse: move and rework parse_fragment_list() as pkg_fragment_parse(). 2012-05-06 22:29:59 -05:00
William Pitcock db6d0e2309 pkg: parse_file is now pkg_new_from_file 2012-05-06 22:24:36 -05:00
William Pitcock d07e41c3f9 pkg: rename parse_deplist to pkg_dependency_parse 2012-05-06 22:23:05 -05:00
William Pitcock 1da21bd3b4 argvsplit: proper namespacing 2012-05-06 22:21:11 -05:00
William Pitcock 4f50dad147 pkg: provide error return codes for pkg_traverse() and pkg_verify_graph(). 2012-05-06 21:42:15 -05:00
William Pitcock 83e7e2e733 argvsplit: add argv_free(). 2012-05-06 21:09:40 -05:00
William Pitcock 4172dc545f pkg: don't free builtin (virtual) packages 2012-05-06 20:38:48 -05:00
William Pitcock 0d2a507bcd pkg: fix foreach_list_entry_safe() macro 2012-05-06 20:36:59 -05:00
William Pitcock 3eb16dca0f pkg: add pkg_free() 2012-05-06 20:30:50 -05:00
William Pitcock 9b540397f0 parse: add pkg_dependency_free(). 2012-05-06 20:26:24 -05:00
William Pitcock 81fd865a49 fragment: add pkg_fragment_free(). 2012-05-06 20:26:09 -05:00
William Pitcock ba1c41eb14 pkg: add pkg_tuple_free() 2012-05-06 20:18:21 -05:00
William Pitcock e50faff9aa pkg: add safe version of foreach_list_entry() macro 2012-05-06 20:15:45 -05:00
William Pitcock 30fe1fae39 parse: replace strdup_parse with pkg_tuple_parse(). 2012-05-06 20:12:11 -05:00
William Pitcock 4ea25d56f4 parse: split out tuple API and make public 2012-05-06 20:06:48 -05:00
William Pitcock 24265bb18e pkg: add PKGF_NO_UNINSTALLED resolver flag 2012-05-06 19:49:15 -05:00
William Pitcock 65d4b88dbc pkg: add support for foo-uninstalled.pc file 2012-05-05 23:00:20 -05:00
William Pitcock 58b525d2f8 main: move PKGCONFIG_VERSION_EQUIV to pkg.h 2012-05-05 21:51:25 -05:00
William Pitcock 433d697351 parse: move OPERATOR_CHAR() and friends to pkg.h 2012-05-05 21:26:15 -05:00
William Pitcock 0737a72070 parse: make strdup_parse() public 2012-05-05 21:51:38 +00:00
William Pitcock 130907d506 fileio: add routine for portably yanking lines out of a FILE stream 2012-05-04 03:21:51 +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 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 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 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 3f758a8bae pkg: pkg_verify_graph() should also accept resolver flags 2012-05-02 23:29:35 +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 bcd8a9f9d6 parse: track LIBS.private 2012-05-02 21:53: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 df45d850b7 Add MIN/MAX macros if not already present. 2012-04-30 18:07:51 +00:00
Mike Frysinger 4b5d0eaaef include ctype.h for isspace/etc...
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-04-30 05:24:05 +00:00
Alyx d0639b3353 Make pkg_find() follow the PKG_CONFIG_PATH environmental variable, if available. 2012-01-15 19:03:54 -06:00
William Pitcock b0c16941ce pkg: add pkg_t.id field 2011-07-26 20:37:01 -05:00
William Pitcock 648c39cf8e pkg: add pkg_get_comparator() 2011-07-26 19:59:46 -05:00
William Pitcock 045257bebe pkg: make pkg_verify_dependency() public 2011-07-26 19:26:14 -05:00
William Pitcock 7e26842094 pkg: add pkg_compare_version() 2011-07-26 11:56:59 -05:00
William Pitcock 8100eb84f0 pkg: add pkg_verify_graph() to verify the depgraph is satisfiable 2011-07-25 17:44:05 -05:00