Commit graph

171 commits

Author SHA1 Message Date
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
Tollef Fog Heen
ed114e7e17 Add missing bug numbers 2006-08-16 21:09:24 +02:00
Tollef Fog Heen
80630991d6 2006-08-16 Tollef Fog Heen <tfheen@err.no>
* NEWS: Update for 0.21
2006-08-16 21:06:52 +02:00
Tollef Fog Heen
eae3abf93e 2006-08-16 Tollef Fog Heen <tfheen@err.no>
* pkg.c: Add internal pkg-config package which can be queried for
	version number, name and URL for now.  More information will be
	added later.
2006-08-16 21:04:56 +02:00
Tollef Fog Heen
6d32cb3e6d 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
2006-08-16 20:47:14 +02:00
Tollef Fog Heen
0936824bf0 2006-08-16 Tollef Fog Heen <tfheen@err.no>
* pkg.c (packages_get_other_cflags, package_get_other_cflags)
	(packages_get_I_cflags): Always add all cflags.  Debian #340904
2006-08-16 20:42:38 +02:00
Tollef Fog Heen
69f5752d7d 2006-08-16 Tollef Fog Heen <tfheen@err.no>
* main.c (main): Always add the elements from PKG_CONFIG_PATH.
	Freedesktop #4795.
2006-08-16 19:57:14 +02:00
Tollef Fog Heen
ecfb96aa4c 2006-08-16 Tollef Fog Heen <tfheen@err.no>
* pkg-config.1: Apply patch from Ed Catmur to document
	PKG_CHECK_EXIST.  Thanks a lot for both patches.
2006-08-16 19:43:17 +02:00
Tollef Fog Heen
e22c1a9c49 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.
2006-08-16 19:37:20 +02:00
Tollef Fog Heen
4f78f8cf50 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.
2005-12-28 14:07:04 +00:00
Tollef Fog Heen
712f0af7b8 Cosmetic m4 stuff
2005-10-17  Tollef Fog Heen  <tfheen@err.no>

	* pkg.m4: Do AC_MSG_RESULT([no]) even if $4 is set (so we don't
	fail).  Gnome #166537.
2005-10-17 07:08:37 +00:00
Tollef Fog Heen
bf48601d50 Add missing news from 0.18.1, 0.19 and 0.20
2005-10-17  Tollef Fog Heen  <tfheen@err.no>

	* NEWS: Add missing news and really release 0.20, since I didn't
	get around to actually uploading last night.
2005-10-17 05:01:03 +00:00
Tollef Fog Heen
7ee51221a0 Release 0.20
2005-10-16  Tollef Fog Heen  <tfheen@err.no>

	* configure.in: Release 0.20
2005-10-16 18:18:57 +00:00
Tollef Fog Heen
39ef912d6e Get rid of text duplication in pkg.m4
2005-10-16  Tollef Fog Heen  <tfheen@err.no>

	* pkg.m4: use m4_define to avoid duplication of text.
2005-10-16 18:13:43 +00:00
Tollef Fog Heen
c9d147e189 Minor m4 cleanups
2005-10-16  Tollef Fog Heen  <tfheen@err.no>

	* pkg.m4: Minor cleanups, use m4_default rather than m4_ifval and
	echo 1>&FD is silly, just use echo >&FD
2005-10-16 18:08:18 +00:00
Tollef Fog Heen
3f5c1fa1b6 Try to print out all the errors and not just the first.
2005-10-16  Tollef Fog Heen  <tfheen@err.no>

	* main.c (main): Try to print out all the errors and not just the
	first.
2005-10-16 18:06:02 +00:00
Tollef Fog Heen
979c89dcb6 Use --short-errors if it's available. 2005-10-16 17:51:24 +00:00
Tollef Fog Heen
ec5f06d60f Add --short-errors
2005-10-16  Tollef Fog Heen  <tfheen@err.no>

	* pkg.c (get_package_quiet): Add get_package_quiet which is just
	the same as get_package except it sets warn to false.

	* pkg.h: Add prototype for get_package_quiet.

	* main.c (main): Add --short-errors flag to suppress most of the
	output when a module is not found.
2005-10-16 17:31:41 +00:00
Tollef Fog Heen
7f9c9a4ff0 Add missing bug number in changelog 2005-10-01 10:24:42 +00:00
Tollef Fog Heen
6b35e49c2d 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.
2005-10-01 10:24:02 +00:00
Tollef Fog Heen
d41fc58c55 Document previous patch
Add changelog
2005-10-01 10:15:22 +00:00
Tollef Fog Heen
6d840e7046 Fix possible off-by-one
Apply last part of patch from freedesktop #4034 so we don't do silly
things if len is zero.
2005-10-01 10:13:57 +00:00
Tollef Fog Heen
3fd0e37e65 Look at XXX_CFLAGS and XXX_LIBS again
2005-09-21  Tollef Fog Heen  <tfheen@err.no>

	* pkg.m4: Apply patch from Roberto Huelga to look at XXX_CFLAGS
	and XXX_LIBS which got lost somewhere.
2005-09-21 13:12:35 +00:00
Tollef Fog Heen
d074ab9973 Add default CFLAGS
2005-08-27  Tollef Fog Heen  <tfheen@err.no>

	* Makefile.am (AM_CFLAGS): Add default CFLAGS
2005-08-27 09:22:34 +00:00
Tollef Fog Heen
d911bff6e2 Add missing prototype for enable_private_libs and disable_private_libs
2005-08-27  Tollef Fog Heen  <tfheen@err.no>

	* pkg.h: Add missing prototype for enable_private_libs and
	disable_private_libs.
2005-08-27 09:17:49 +00:00