Commit Graph

1108 Commits (ebfcaf5081c98d43f932e6299c75d70feb4e328f)

Author SHA1 Message Date
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
William Pitcock 538317f6c5 pkg: add path_split() helper function 2012-05-02 18:38:31 +00:00
William Pitcock 281d69eec3 Merge pull request #1 from mgorny/master
A number of fixes + win32 compat
2012-05-02 07:49:46 -07:00
Michał Górny 3707ccd221 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.
2012-05-02 16:02:05 +02:00
Michał Górny ee62bedd59 parse_file() no longer needs to handle f == NULL.
That condition is now handled within pkg_find() completely.
2012-05-02 16:02:05 +02:00
Michał Górny 0e0bf1b0fb Omit empty paths in file lookup.
This avoids looking for '/foo.pc'.
2012-05-02 11:45:31 +02:00
Michał Górny 218b3ccd25 Remove unnecessary buffer zeroing.
We always replace that current pos with a null terminator, so it doesn't
matter what follows it.
2012-05-02 11:42:52 +02:00
Michał Górny f26001c3f8 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.
2012-05-02 11:40:38 +02:00
Michał Górny 742fad9251 Fix uninitialized vars in deplist parsing. 2012-05-02 11:38:54 +02:00
Michał Górny 353ba1eafe Use ';' as path separator on win32.
This is what pkg-config does, and it is necessary because ':' is part of
path specification on win32.
2012-05-02 11:24:58 +02:00
William Pitcock 9e1260ac3d pkgconf 0.3 2012-05-01 01:37:10 +00:00
William Pitcock 2d738c2c40 pkg: make PKG_CONFIG_PATH parsing more robust 2012-05-01 01:27:19 +00:00
William Pitcock 5190715da0 configure: update package bugreport url 2012-05-01 01:11:06 +00:00
William Pitcock 60421ad27e main: add --help support 2012-05-01 01:10:56 +00:00
William Pitcock f99ecae9e8 main: remove dependency on popt 2012-04-30 18:50:31 +00:00
William Pitcock f6f0282581 bsdstubs: include getopt_long.h 2012-04-30 18:28:01 +00:00
William Pitcock b3057adad9 Add portable getopt_long implementation based on OpenBSD's. 2012-04-30 18:27:17 +00:00
William Pitcock 0680b7d667 bsdstubs: add include recursion guard 2012-04-30 18:26:50 +00:00
William Pitcock c75779b55a configure: check for getopt_long 2012-04-30 18:22:17 +00:00
William Pitcock c212908c44 bsdstubs: implement strndup() stub implementation if none exists 2012-04-30 18:11:51 +00:00
William Pitcock feb26b8168 configure: check for strndup 2012-04-30 18:11:42 +00:00
William Pitcock df45d850b7 Add MIN/MAX macros if not already present. 2012-04-30 18:07:51 +00:00
William Pitcock 3b154d8a5a everywhere: use strlcpy and strlcat where appropriate 2012-04-30 06:06:13 +00:00
William Pitcock 863498bfad configure: check for strlcpy and strlcat 2012-04-30 06:05:55 +00:00
William Pitcock fe812746c4 Update buildsys to my forked version. 2012-04-30 06:01:11 +00:00
William Pitcock d4015cf241 Implement stub functions for systems which lack BSD strlcpy/strlcat. 2012-04-30 05:55:27 +00:00