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
William Pitcock
07d784c36a
COPYING: it's 2012 now
2012-04-30 05:46:47 +00:00
William Pitcock
7993ad0952
Install a copy of pkg.m4 into aclocal like pkg-config does.
2012-04-30 05:43:46 +00:00
William Pitcock
31e2241c3a
Convert README to markdown format.
2012-04-30 05:32:49 +00:00
Mike Frysinger
4e4c1d628a
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>
2012-04-30 05:24:10 +00:00
Mike Frysinger
c13acaca47
ignore generated files
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-04-30 05:24:08 +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
William Pitcock
1e93bac383
pkg: handle PKG_DEFAULT_PATH and PKG_CONFIG_PATH envvar more cleanly
2012-02-17 15:35:23 -06: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
3c8bac678d
main: add --digraph option to generate a representation of the depgraph in graphviz dot format
2011-07-26 20:37:19 -05:00
William Pitcock
b0c16941ce
pkg: add pkg_t.id field
2011-07-26 20:37:01 -05:00
William Pitcock
8543f1bdd4
pkg: document pkg_traverse()
2011-07-26 20:15:44 -05:00
William Pitcock
03c9402e98
Makefile: do not install pkg-config symlink
...
this should be handled using dpkg-alternatives or similar.
2011-07-26 20:07:16 -05:00
William Pitcock
1cd2906d9d
main: add --print-variables
2011-07-26 20:04:09 -05:00
William Pitcock
f717c7609b
main: add --print-requires
2011-07-26 19:59:53 -05:00
William Pitcock
648c39cf8e
pkg: add pkg_get_comparator()
2011-07-26 19:59:46 -05:00
William Pitcock
774ebc9716
pkg: pkg_verify_dependency() was calling pkg_compare_version() in reverse order
2011-07-26 19:52:44 -05:00
William Pitcock
91d61a76a2
parse: improve version parsing resiliency
2011-07-26 19:51:04 -05:00
William Pitcock
5869405054
parse: add support for parsing versions
2011-07-26 19:38:26 -05:00
William Pitcock
0142cc68d4
parse: perform stringops on stack bufferspace as to avoid overruns
2011-07-26 19:26:56 -05:00
William Pitcock
045257bebe
pkg: make pkg_verify_dependency() public
2011-07-26 19:26:14 -05:00
William Pitcock
7c3db84499
main: consistency in help messages
2011-07-26 18:49:38 -05:00
William Pitcock
5a6a586a76
main: add --atleast-version
2011-07-26 18:47:42 -05:00
William Pitcock
8b721a263c
main: implement --static
2011-07-26 18:44:28 -05:00
William Pitcock
f8638cdb68
pkg: add pkg_verify_dependency()
2011-07-26 12:17:45 -05:00
William Pitcock
a362c7e936
main: make --atleast-pkgconfig-version work
2011-07-26 12:05:29 -05:00