Commit Graph

417 Commits (910c6e00e953cd103e816570e65f847f72d3f879)

Author SHA1 Message Date
William Pitcock 910c6e00e9 main: add option to disable cache code 2013-02-24 08:20:35 -06:00
William Pitcock 14f3e1edd2 pkg: implement a cache for packages and use it to break circular dependencies 2013-02-24 08:14:23 -06:00
William Pitcock d4cef5cad5 testsuite: update for pkg-config version 0.28 compatibility 2013-02-24 08:13:19 -06:00
William Pitcock 14b88e3bcb pkg: bump PKG_PKGCONFIG_VERSION_EQUIV to 0.28 2013-02-24 07:45:20 -06:00
William Pitcock e178f6d620 dependency: use pkg_comparator_lookup_by_name() instead of having special lexing rules for comparator tokens
This allows us to add new tokens in the future by adding them to one place.
2013-02-24 07:41:18 -06:00
William Pitcock 6e4573367d pkg: add pkg_comparator_lookup_by_name(). 2013-02-24 07:37:20 -06:00
William Pitcock ef1f1a3a14 pkg: rework pkg_verify_dependency() to treat dependencies as bytecode 2013-02-24 07:32:26 -06:00
William Pitcock ac2f99f6af pkg: refactor pkg_get_comparator(). 2013-02-24 07:20:50 -06:00
William Pitcock 9dc3cbc784 testsuite: add a test for tilde quoting 2013-02-24 07:04:15 -06:00
William Pitcock 2936927008 testsuite: add test for static archives in Libs: 2013-02-24 06:58:51 -06:00
William Pitcock a2323ee923 buildsys: clean up gcov stuff 2013-02-24 06:53:27 -06:00
David Michael f8a2519d1b Include PKG_CHECK_VAR macro for reading variables in .pc files
Freedesktop #48098 (https://bugs.freedesktop.org/show_bug.cgi?id=48098)
2013-02-24 06:47:48 -06:00
William Pitcock 7b322d73e8 main: limit evaluation graph depth to 2000 nodes
This allows us to break out of situations where circular dependencies may arise.
2013-02-24 06:42:32 -06:00
William Pitcock b1949e7706 testsuite: add tests for circular dependencies 2013-02-24 06:42:03 -06:00
William Pitcock beda1fffdd testsuite: add pkg-config files creating an intentional circular dependency 2013-02-24 06:29:53 -06:00
William Pitcock 44e2ce79e6 buildsys: add support for profiling the testsuite with gcov 2013-02-24 06:26:56 -06:00
William Pitcock 804b3ef8dc Merge pull request #43 from jviguera/master
Fix 'system-includedir' help string in configure.ac
2012-09-27 06:49:19 -07:00
Javier Viguera e37c32ab37 configure.ac: fix system-includedir help string
Signed-off-by: Javier Viguera <javier.viguera@digi.com>
2012-09-26 11:29:55 +02:00
William Pitcock 5500fdb4b3 pkgconf 0.8.9. 2012-09-14 16:17:29 -05:00
William Pitcock 0edc4ff3b3 main: mention compatibility level in --about ala PKG_PKGCONFIG_VERSION_EQUIV 2012-09-14 16:16:35 -05:00
William Pitcock 73b443b883 tests: add prefix-resistant SYSROOT_DIR variable which uses a sentinel mingw won't mess with 2012-09-14 16:04:20 -05:00
William Pitcock fa0b2f9fc2 tests: quote safety 2012-09-14 15:56:45 -05:00
William Pitcock 1f373a2654 tests: check for Msys and use Windows-style path seperators for PKG_CONFIG_PATH. 2012-09-14 15:50:27 -05:00
William Pitcock 7fe15d1faf tests: hack the directory name with sed to normalize prefix handling on mingw/cygwin. 2012-09-14 15:44:26 -05:00
William Pitcock 3867a66434 pkg: pkg_get_parent_dir() should fall back to '/' directory separator if necessary
Some environments such as the MingW-MSYS shell environment use both \ and / as directory
separators, thusly we should fall back to the POSIX directory separator.  Both directory
separators are fully supported by Windows.
2012-09-14 15:42:06 -05:00
William Pitcock 847ddbbc22 gitignore: ignore Makefile 2012-09-14 15:36:41 -05:00
William Pitcock 87d2ec5550 tests: simplify test 17 to remove $(SYSTEM_LIBDIR) fluff 2012-09-14 15:35:18 -05:00
William Pitcock 0153d2876f main: ensure program invocation with no package arguments always sends error messages to stderr 2012-09-14 15:02:08 -05:00
William Pitcock 0d18735e3f tests: add test for no packages being supplied to the frontend 2012-09-14 15:02:08 -05:00
William Pitcock 6bb75554e2 Merge pull request #42 from yukoba/MakefileBugFix
Remove needless / after $(DESTDIR)
2012-09-10 13:22:17 -07:00
Yu Kobayashi dd776ba946 Remove needless / after $(DESTDIR) 2012-09-09 18:11:36 +09:00
William Pitcock 150d91d07f main: add a trailing space at the end of the output if --cflags or --libs is requested (closes #40) 2012-09-05 07:03:37 -05:00
William Pitcock 7c13f22a9b tests: add tests for pkgconf issue #40 2012-09-05 07:00:15 -05:00
William Pitcock a7e8612933 pkgconf 0.8.8. 2012-09-02 19:56:37 -05:00
William Pitcock 749a604c70 tests: add test for freedesktop.org bug 54271 2012-09-02 17:46:00 -05:00
William Pitcock 25902dbc11 Merge pull request #39 from GregorR/grammar
Minor grammar fixes to the README.
2012-08-31 13:36:51 -07:00
Gregor Richards 078affee09 Minor grammar fixes to the README. 2012-08-31 12:35:26 -04:00
William Pitcock b2f4583db2 Merge pull request #38 from bdrewery/add-test-case-for-local-file
Add test case for pkgconf against file in CWD
2012-08-25 20:06:31 -07:00
William Pitcock 47949beac1 Merge pull request #37 from bdrewery/fix-tests-with-bash
Fix tests when SHELL=bash
2012-08-25 20:06:01 -07:00
Bryan Drewery 747faf3732 Add test case for pkgconf against file in CWD 2012-08-25 19:43:35 -05:00
Bryan Drewery 509f5edb31 Fix tests when SHELL=bash
The QUOTED test was failing to properly recognize
the expected output.
2012-08-25 18:43:44 -05:00
Baptiste Daroussin 5bd921b312 Merge pull request #36 from bdrewery/fix-crash-without-pathseps
Fix crash when specified filename has no path separators
2012-08-25 15:15:08 -07:00
Bryan Drewery 25ebc22d64 Fix crash when specified filename has no path separators 2012-08-25 16:34:00 -05:00
Baptiste Daroussin 4eedb041ed if no cflags or libs are defined in .pc just return 0 and output nothing 2012-08-20 22:47:10 +02:00
William Pitcock fbf13563ab pkgconf 0.8.7 2012-08-19 15:25:32 -05:00
William Pitcock 8de2ab6b4d dependency: avoid exploitable (!) use of uninitialized length values introduced in commit 0ab3b32255 2012-08-19 14:43:15 -05:00
Baptiste Daroussin 0ab3b32255 avoid copying memory, do a single duplication 2012-08-14 17:13:28 +02:00
Baptiste Daroussin 28396110aa Bufferize dependency parsing 2012-08-14 17:01:18 +02:00
Baptiste Daroussin 38abe86a17 Remove unneeded strdup(3) 2012-08-14 16:16:06 +02:00
Baptiste Daroussin 666019cfd0 Nuke use of basename/dirname where a simple strrchr can do the trick 2012-08-14 16:04:56 +02:00