Tollef Fog Heen [Tue, 30 Jun 2009 01:47:01 +0000 (03:47 +0200)]
2009-06-12 Tor Lillqvist <tml@iki.fi>
* parse.c: On Win32, if the value of a a variable other than the
"prefix" one starts with the non-overridden value of "prefix",
then replace that prefix, too, with the run-time one.
To avoid shadowing warnings, rename a 'p' variable to 'q'.
* pkg-config.1: Corresponding update.
* main.c
* pkg.h: Move the Win32 redefinition of PKG_CONFIG_PC_PATH from
main.c to pkg.h as it now is needed in pkg.c, too.
Tollef Fog Heen [Mon, 30 Mar 2009 19:50:01 +0000 (21:50 +0200)]
2009-03-30 Tollef Fog Heen <tfheen@err.no>
* check/common, check/config.sh.in, check/Makefile.am,
configure.in: Make it possible to check for configure variables in
the check scripts. So far, only direct/indirect is exposed.
Tollef Fog Heen [Mon, 30 Mar 2009 19:00:14 +0000 (21:00 +0200)]
2009-03-30 Tollef Fog Heen <tfheen@err.no>
* poptparse.c, popthelp.c, poptconfig.c, popt.c, pkg.c, findme.c,
configure.in: Check for malloc.h and use that if it exists.
Apparently this makes Win32 happier. Thanks to Carlo Bramini for
the patch.
Tollef Fog Heen [Mon, 30 Mar 2009 18:49:17 +0000 (20:49 +0200)]
2009-03-30 Tollef Fog Heen <tfheen@err.no>
* pkg.[ch], main.c, check/check-missing: Don't recurse Requires at
all unless we need to. Add check. Again, thanks to Loïc Minier
for most of the idea and the implementation.
Tollef Fog Heen [Mon, 30 Mar 2009 18:40:53 +0000 (20:40 +0200)]
2009-03-30 Tollef Fog Heen <tfheen@err.no>
* pkg.[ch], parse.[ch], main.c, check/Makefile.am,
check/check-missing, check/missing-requires-private.pc:
Skip Requires.private unless we need to look at them for cflags.
Add test case. Thanks to Loïc Minier for most of the idea and the
implementation. Debian #475031
* parse.c (_do_parse_libs): Special-case "-lib:" in the Libs
field; it's not an -l. Yes, this breaks if your library is called
libib:$something, in which case you lose. Gnome #142952
Tollef Fog Heen [Sun, 23 Mar 2008 20:39:07 +0000 (21:39 +0100)]
2008-03-23 Tollef Fog Heen <tfheen@err.no>
* check/check-conflicts, check/conflicts-test.pc: New test,
testing that conflicts work as they should.
* pkg.c (verify_package): Make the conflicts check not only check
package versions, but also package names. This makes conflicts
functional, something they were not before.
Tollef Fog Heen [Sun, 23 Mar 2008 20:07:39 +0000 (21:07 +0100)]
2008-03-23 Tollef Fog Heen <tfheen@err.no>
* check/check-cflags, check/check-define-variable,
check/check-includedir, check/check-libs,
check/check-libs-private, check/check-requires-private: Replace
the crazy -d ~root check with a more proper way to just make sure
we are running under a POSIX shell. Thanks to Kjetil Torgrim
Homme for the tip about using getconf PATH.
Tollef Fog Heen [Sun, 23 Mar 2008 19:00:00 +0000 (20:00 +0100)]
2008-02-19 Tor Lillqvist <tml@novell.com>
* main.c: Remove the possibility to have a default PKG_CONFIG_PATH
in the Registry. It is much more flexible to just use environment
variables. In general the Registry is not used in the ports of
GTK+ or GNOME libraries and software to Windows.
* parse.c (parse_line): On Windows, handle also .pc files found in
a share/pkgconfig folder when automatically redefining a prefix
variable for the package.
* pkg-config.1: Corresponding changes.
2008-02-18 Tor Lillqvist <tml@novell.com>
* main.c: Fix some bitrot: On Windows, don't use the compile-time
PKG_CONFIG_PC_PATH, but deduce a default one at run-time based on
the location of the executable. This was originally what
pkg-config did on Windows, but it had bit-rotted.
Tollef Fog Heen [Sun, 23 Mar 2008 16:34:33 +0000 (17:34 +0100)]
2008-03-23 Tollef Fog Heen <tfheen@err.no>
* main.c (main): Fix small portability problem by defining all the
variables in main that are used in the static initialiser as
static variables. This makes the IRIX/mipseb compiler happier.
Thanks to Roland Illig of NetBSD for the patch. This doesn't
apply to some of the Win32 variables, but I don't believe that is
a problem with the existing compilers there.
Tollef Fog Heen [Thu, 31 Jan 2008 01:27:33 +0000 (02:27 +0100)]
pkg.c (string_list_to_string): Patch from Paul Bender so flags other
than -I and -L are passed through (with mangling) when
PKG_CONFIG_SYSROOT_DIR is set.
Tollef Fog Heen [Wed, 16 Jan 2008 22:10:25 +0000 (23:10 +0100)]
2008-01-16 Tollef Fog Heen <tfheen@err.no>
* pkg.h, pkg.c (string_list_to_string), pkg-config.1, main.c
(main): Add sysroot support and document same. Triggered by
setting PKG_CONFIG_SYSROOT_DIR in the environment.
Tollef Fog Heen [Sat, 29 Dec 2007 15:00:37 +0000 (16:00 +0100)]
2007-12-29 Tollef Fog Heen <tfheen@err.no>
* pkg.m4: Don't use --errors-to-stdout in pkg.m4, but rather
redirect stderr to stdout. This makes pkg.m4 with old (pre 0.15)
pkg-config look good, and it makes newer pkg-config with ancient
pkg.m4 work well. Gnome #111054
Tollef Fog Heen [Mon, 18 Jun 2007 21:19:27 +0000 (23:19 +0200)]
* pkg.c (recursive_fill_list): Make sure to act recursively with
Requires.private, making them much more useful. Special thanks to
Matthias Clasen for lots and lots of nagging. Freedesktop #8788
Tollef Fog Heen [Wed, 30 May 2007 11:24:42 +0000 (13:24 +0200)]
2007-05-30 Tor Lillqvist <tml@novell.com>
* parse.c: Fix problem on Win32 where the automagic prefix
replacement logic didn't work. I don't know what change had
broken it.
(pathnamecmp): New Win32-only function. Compares two file
paths case insensitively and treating backslashes as equal to
slashes.
(parse_line): Use it instead of g_ascii_strcasecmp().
Tollef Fog Heen [Sun, 25 Feb 2007 10:05:01 +0000 (11:05 +0100)]
2007-02-25 Tollef Fog Heen <tfheen@err.no>
* Makefile.am: Add support for using the system glib. Thanks to
Peter Breitenlohner for the bug and the patch. Freedesktop #9708
* configure.in: Add support for using the system glib.
* glib-patches/no-dist-distclean-files.diff,
glib-patches/automake-warning.diff,
glib-patches/autoconf-warning.diff: Get rid of some warnings when
configuring glib.
Tollef Fog Heen [Wed, 21 Feb 2007 21:21:14 +0000 (22:21 +0100)]
2007-02-21 Tollef Fog Heen <tfheen@err.no>
* parse.c (parse_package_file and others): Move the reversal of
the _libs lists to the end to avoid double-reversing either.
Thanks to J. Scott Berg for both the bug and the fix. Freedesktop
#9132
Tollef Fog Heen [Wed, 16 Aug 2006 18:47:14 +0000 (20:47 +0200)]
2006-08-16 Tollef Fog Heen <tfheen@err.no>
* parse.c (trim_and_sub): Since %{...} has not been used for a
long time, there is no point in being able to escape %. However,
make the code able to escape $ by doubling the $ to $$.
Debian #378570
Tollef Fog Heen [Wed, 16 Aug 2006 17:37:20 +0000 (19:37 +0200)]
2006-08-16 Tollef Fog Heen <tfheen@err.no>
* pkg-config.1: Apply patch from Ed Catmur to document
PKG_PROG_PKG_CONFIG and that it should be used if the first call
to PKG_CHECK_MODULES might not happen.
Tollef Fog Heen [Wed, 28 Dec 2005 14:07:04 +0000 (14:07 +0000)]
Only use -Wall and gcc-only flags with gcc.
2005-12-28 Tollef Fog Heen <tfheen@err.no>
* configure.in, Makefile.am: Only use -Wall and other gcc-only
flags when we don't have a set of CFLAGS already set and we're
using gcc. Freedesktop #4888.
Tollef Fog Heen [Sat, 1 Oct 2005 10:24:02 +0000 (10:24 +0000)]
Handle \ correctly on win32
2005-10-01 Tollef Fog Heen <tfheen@err.no>
* pkg.c(scan_dir): Turn backslashes into slashes or
poptParseArgvString() will eat them when ${prefix} has been
expanded in parse_libs(). Thanks to j^ for the patch.
Tollef Fog Heen [Tue, 23 Aug 2005 11:38:33 +0000 (11:38 +0000)]
Don't overflow format
2005-08-23 Tollef Fog Heen <tfheen@err.no>
* popthelp.c: char format[10] overflowed always with gcc4, so use
positional parameters instead. Thanks to Scott James Remnant for
pointing me to that solution. Debian #321961, Ubuntu #13950,
Freedesktop #2661