Commit graph

195 commits

Author SHA1 Message Date
Tollef Fog Heen
7e8a4d6c85 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* pkg-config.1: Verbosify the text about Libs.private a bit. Patch
	from Loïc Minier.
2009-03-30 20:53:02 +02:00
Tollef Fog Heen
4edc026776 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* pkg-config.1: Add documentation for --cflags-only-I, patch from
	Loïc Minier.
2009-03-30 20:51:18 +02:00
Tollef Fog Heen
669bfe2e0d 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.
2009-03-30 20:49:17 +02:00
Tollef Fog Heen
02d5ae3fb6 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
2009-03-30 20:40:53 +02:00
Tollef Fog Heen
34657e444f 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* check/common: Run all tests in the C locale
2009-03-30 20:23:04 +02:00
Tollef Fog Heen
4070cc2339 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* check/common: Add support for non-zero return codes to test
	framework.  Thanks to Loïc Minier for the idea.
2009-03-30 20:14:33 +02:00
Tollef Fog Heen
a25f7e980e 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* pkg.m4: Add PKG_CONFIG_PATH and PKG_CONFIG_LIBDIR to the list of
	precious directories.  (AC_ARG_VAR)
2009-03-30 20:06:32 +02:00
Tollef Fog Heen
e3fda28e74 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* popthelp.c (poptPrintUsage,poptPrintHelp): Add [LIBRARIES] to
	help output.  Debian #389066
2009-03-30 19:52:01 +02:00
Tollef Fog Heen
6d2f77a219 2008-04-28 Tollef Fog Heen <tfheen@err.no>
* parse.c Add my name to the copyright header, mainly to prevent
	emacs from being stupid and updating RH's copyright year.
2008-04-28 21:25:51 +02:00
Tollef Fog Heen
d5d6a8f8a7 2008-04-28 Tollef Fog Heen <tfheen@err.no>
* 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
2008-04-28 21:19:02 +02:00
Tollef Fog Heen
5998a08da4 2008-04-28 Tollef Fog Heen <tfheen@err.no>
* main.c (main): Make sure log is initialized to prevent
	segfaults.
2008-04-28 20:58:36 +02:00
Tollef Fog Heen
69dafea1c8 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.
2008-03-23 21:39:07 +01:00
Tollef Fog Heen
15e72cef72 2008-03-23 Tollef Fog Heen <tfheen@err.no>
* check/check-requires-private: Remove unnecessary set -x
2008-03-23 21:11:25 +01:00
Tollef Fog Heen
3954a7ee3e 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.
2008-03-23 21:07:39 +01:00
Tollef Fog Heen
cebb308ce4 2008-03-23 Tollef Fog Heen <tfheen@err.no>
* main.c (main): Add logging support from NetBSD.  Thanks to Julio
       M. Merino Vidal for forwarding the patch from ages ago.
2008-03-23 20:51:50 +01:00
Tollef Fog Heen
53abbad201 2008-03-23 Stepan Kasal <skasal@redhat.com>
* pkg-config.1: Document "Requires.private" and recommend it
      for libraries.  Freedesktop #13188
2008-03-23 20:46:08 +01:00
Tollef Fog Heen
a3701dc44f 2008-03-23 Stepan Kasal <skasal@redhat.com>
* pkg-config.1: Fix a few typos--add two omitted .TP tags and two
	omitted full stops; and empty lines do influence the formatting in
	nroff.
2008-03-23 20:26:14 +01:00
Tollef Fog Heen
dce0339076 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.
2008-03-23 20:00:00 +01:00
Tollef Fog Heen
762172849c Merge in static change 2008-03-23 18:00:36 +01:00
Tollef Fog Heen
89932ecfcf 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.
2008-03-23 17:34:33 +01:00
Tollef Fog Heen
b4cdd18165 configure.in: If prefix is unset, add /usr/lib/pkgconfig and
/usr/share/pkgconfig to default search path.  Based on patch by Damjan
Jovanovic.

Also, make configure always print the path it is defaulting to.
2008-01-31 02:43:41 +01:00
Tollef Fog Heen
3e6c5da35a 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.
2008-01-31 02:27:33 +01:00
Tollef Fog Heen
515745885f 2008-01-16 Tollef Fog Heen <tfheen@err.no>
* NEWS, configure.in: Release 0.23
2008-01-16 23:50:03 +01:00
Tollef Fog Heen
9e5bcc26f2 2008-01-16 Tollef Fog Heen <tfheen@err.no>
* check/check-requires-private: Fix up test case.  We want to get
	the private -I option in all cases.
2008-01-16 23:46:58 +01:00
Tollef Fog Heen
ed75a7dd4b 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.
2008-01-16 23:10:25 +01:00
Tollef Fog Heen
138f9219b4 * pkg.c (internal_get_package): Don't add the internal-only
pkg-config package twice.
2007-12-29 17:49:50 +01:00
Tollef Fog Heen
a376c715ea * pkg.c (verify_package): Apply patch from Matthias Clasen of
RedHat to prevent segfaults if a Conflicts line is encountered.
2007-12-29 16:46:25 +01:00
Tollef Fog Heen
6f5620089e * popthelp.c: Apply patch from Tom Tromey <tromey@redhat.com> to
make pkg-config --help print to stdout, not stderr.  Gnome
	#127314.
2007-12-29 16:06:00 +01:00
Tollef Fog Heen
d251a97fa6 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
2007-12-29 16:00:37 +01:00
Tollef Fog Heen
4fe6610368 2007-12-29 Tollef Fog Heen <tfheen@err.no>
* Update to glib 1.2.10, adjust lots of the glib patches.  Gnome
	#81847.
2007-12-29 14:40:41 +01:00
Tollef Fog Heen
5a6ff5c704 Add attribution to last fix 2007-06-19 15:58:48 +02:00
Tollef Fog Heen
e297a4b57f * pkg.m4: Fix bug so it's possible to override variables in case
pkg-config is not installed.
2007-06-19 15:56:48 +02:00
Tollef Fog Heen
5e137d3932 * configure.in: Release 0.22 2007-06-18 23:31:42 +02:00
Tollef Fog Heen
73b84105a4 * NEWS: Update for 0.22 2007-06-18 23:30:14 +02:00
Tollef Fog Heen
b07d45d839 * configure.in: Fix expansion of default pc_path as per GNU coding
standards.  Thanks to Andreas Hanke for the fix.  Freedesktop #10326
2007-06-18 23:26:01 +02:00
Tollef Fog Heen
8ac159cd5e * 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
2007-06-18 23:19:27 +02:00
Tollef Fog Heen
9c6db22935 Fix typo. 2007-06-18 23:16:51 +02:00
Tollef Fog Heen
ce499699bc * glib-patches/remove-strsignal-prototype.diff: define _GNU_SOURCE
there to get strsignal prototype, addresses the rest of
Freedesktop 10652.
2007-06-18 22:53:52 +02:00
Tollef Fog Heen
163d95c5b9 * popt.c: Remove code calling setresuid and setreuid, pkg-config
should not ever be suid.  Partially addresses Freedesktop #10652
2007-06-18 22:09:41 +02:00
Tollef Fog Heen
1224c055d2 * glib-patches/no-dist-distclean-files.diff: Fix prefix. 2007-06-18 22:03:46 +02:00
Tollef Fog Heen
cfd3a3dd1c Fix automake-warning.diff to not patch on top of another patch from
glib-patches.
2007-06-18 22:01:32 +02:00
Tollef Fog Heen
4ef3fc90d3 Fix path prefix so it applies. 2007-06-18 21:52:25 +02:00
Tollef Fog Heen
a5c1a0d417 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().
2007-05-30 13:24:42 +02:00
Tollef Fog Heen
9a1becb5d6 * pkg.m4: Update URL to pkg-config website. Thanks to Peter Eisentraut. 2007-05-29 08:58:44 +02:00
Tollef Fog Heen
dab61d9ce0 Merge in small fix from other branch. 2007-05-29 08:57:19 +02:00
Tollef Fog Heen
92d4e25061 2007-02-25 Tollef Fog Heen <tfheen@err.no>
* pkg.c (scan_dir): Use g_malloc, not malloc for pkgname.
2007-02-25 15:12:40 +01:00
Tollef Fog Heen
3977a8299d 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.
2007-02-25 11:05:01 +01:00
Tollef Fog Heen
b81987653f 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
2007-02-21 22:21:14 +01:00
Tollef Fog Heen
e10e93faa1 configure.in: remove AC_CONFIG_AUX_DIR as it makes newer
automakes unhappy.  Freedesktop #10028.
2007-02-21 22:05:06 +01:00
Tollef Fog Heen
a78661f5fe 2006-08-16 Tollef Fog Heen <tfheen@err.no>
* configure.in: Release 0.21
2006-08-16 21:10:05 +02:00