pkg.c


Log

Author Commit Date CI Message
William Pitcock 49a5edda 2012-05-03T17:55:06 pkg: add pkg_report_graph_error() for describing breaks in the dependency graph. Fixes issue #3.
William Pitcock 91ec341a 2012-05-03T17:42:04 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
William Pitcock 1caa0dca 2012-05-03T17:20:39 pkg: pkg_walk_list() does not need a reference to the parent node in the graph
William Pitcock ccda6b37 2012-05-03T17:15:45 everywhere: warning cleanups
Michał Górny a4ceb684 2012-05-03T09:22:08 File lookup: fix uninitialized 'iter'.
William Pitcock 3f758a8b 2012-05-02T23:29:35 pkg: pkg_verify_graph() should also accept resolver flags
William Pitcock e59b9864 2012-05-02T23:16:32 pkg: implement resolver-side support for some pkg-config clone's --env-only option
William Pitcock 187b4e53 2012-05-02T23:14:53 pkg: add resolver flags to pkg_find() and pkg_verify_dependency().
William Pitcock 38f3dc78 2012-05-02T21:47:02 pkg: if PKGF_SEARCH_PRIVATE is requested, search root::requires_private graph entries too
William Pitcock 5ea52d4c 2012-05-02T21:44:58 pkg: add flags option to pkg_traverse() to optionally control what the depgraph traversal code does
William Pitcock 656b34fb 2012-05-02T19:35:45 pkg: plug some minor memory leaks
William Pitcock 77703f18 2012-05-02T19:31:30 pkg: path_split(): clarify that we want to dereference parv itself, not parv[idx].
William Pitcock ca484382 2012-05-02T19:11:20 pkg: use PKG_CONFIG_EXT everywhere
William Pitcock 52433aa2 2012-05-02T19:07:38 pkg: clean up PKG_CONFIG_PATH_SEP_S nonsense
William Pitcock b91bdcd3 2012-05-02T19:06:32 pkg: use path_split() instead of a static buffer.
William Pitcock 538317f6 2012-05-02T18:38:31 pkg: add path_split() helper function
Michał Górny 3707ccd2 2012-05-02T15:55:13 Fix PKG_CONFIG_PATH precedence, simplify. PKG_CONFIG_PATH paths must take precedence over the default path. Otherwise, we would be unable to override default .pc files. And while I'm at it, simplify the whole code. It is pointless to introduce another buffer and a lot of string mangling for one additional path.
Michał Górny 0e0bf1b0 2012-05-02T11:45:31 Omit empty paths in file lookup. This avoids looking for '/foo.pc'.
Michał Górny 218b3ccd 2012-05-02T11:42:52 Remove unnecessary buffer zeroing. We always replace that current pos with a null terminator, so it doesn't matter what follows it.
Michał Górny f26001c3 2012-05-02T11:40:38 File lookup: wind in last occurence to the loop. Instead of repeating the parsing stage after reaching the null terminator, just handle it inside the loop and terminate the loop afterwards.
Michał Górny 353ba1ea 2012-05-02T11:24:58 Use ';' as path separator on win32. This is what pkg-config does, and it is necessary because ':' is part of path specification on win32.
William Pitcock 2d738c2c 2012-05-01T01:27:19 pkg: make PKG_CONFIG_PATH parsing more robust
William Pitcock 3b154d8a 2012-04-30T06:06:13 everywhere: use strlcpy and strlcat where appropriate
Mike Frysinger 4e4c1d62 2012-04-29T23:58:52 fix handling of length with strncat The length arg in the strncat func represents the max number of bytes that may be appended, but the total length of the buffer. So we have to subtract the length of bytes already in there. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
William Pitcock 1e93bac3 2012-02-17T15:35:23 pkg: handle PKG_DEFAULT_PATH and PKG_CONFIG_PATH envvar more cleanly
Alyx d0639b33 2012-01-15T19:03:54 Make pkg_find() follow the PKG_CONFIG_PATH environmental variable, if available.
William Pitcock b0c16941 2011-07-26T20:37:01 pkg: add pkg_t.id field
William Pitcock 8543f1bd 2011-07-26T20:15:44 pkg: document pkg_traverse()
William Pitcock 648c39cf 2011-07-26T19:59:46 pkg: add pkg_get_comparator()
William Pitcock 774ebc97 2011-07-26T19:52:44 pkg: pkg_verify_dependency() was calling pkg_compare_version() in reverse order
William Pitcock f8638cdb 2011-07-26T12:17:45 pkg: add pkg_verify_dependency()
William Pitcock a872c725 2011-07-26T12:05:14 pkg: fix up pkg_compare_version()
William Pitcock 7e268420 2011-07-26T11:56:59 pkg: add pkg_compare_version()
William Pitcock 8100eb84 2011-07-25T17:44:05 pkg: add pkg_verify_graph() to verify the depgraph is satisfiable
William Pitcock 3d502159 2011-07-25T17:03:06 pkg: use exact same error message as pkg-config when dependency is unresolvable
William Pitcock 4fe2dc1b 2011-07-25T01:26:05 pkg: croak if dependency tree is incomplete
William Pitcock 05d596b9 2011-07-25T01:22:04 pkg: implement maximum depth for pkg_traverse()
William Pitcock a3f2a471 2011-07-25T01:03:13 pkg: handle node::package being crap
William Pitcock 4603ceb8 2011-07-24T23:46:10 main: split out to main.c, make pretty printers hidden
William Pitcock 37d87b90 2011-07-24T23:43:00 pkg: do not print cflags or libs if they are NULL
William Pitcock b44ce20d 2011-07-24T23:38:58 pkg: add pkg_traverse() to walk the dependency graph
William Pitcock 3f9cedf5 2011-07-24T23:20:22 pkgconf stub: walk the dependency tree
William Pitcock 61c246d2 2011-07-24T21:03:17 Initial commit.