Commit Graph

361 Commits (a732e9bf0d9d3b9be322ef7675b57383b81ce75d)

Author SHA1 Message Date
William Pitcock 0f92df0a09 tests: add test for pkg-config builtin virtual package 2012-05-05 21:59:24 -05:00
William Pitcock b17771d3f1 main: use our mergemaster 'world' package as a virtual 'pkg-config' package too 2012-05-05 21:53:47 -05:00
William Pitcock 58b525d2f8 main: move PKGCONFIG_VERSION_EQUIV to pkg.h 2012-05-05 21:51:25 -05:00
William Pitcock 2ba296dc96 main: default to unlimited traversal now that we do mergemaster 2012-05-05 21:46:20 -05:00
William Pitcock 793de6a06c main: handle pkg-config 'package' '>=' 'version' in 3 fields. 2012-05-05 21:39:37 -05:00
William Pitcock 433d697351 parse: move OPERATOR_CHAR() and friends to pkg.h 2012-05-05 21:26:15 -05:00
William Pitcock 4692277660 tests: add quoting-regression test 2012-05-05 21:18:40 -05:00
William Pitcock 4adb0b5dc6 pkg: clean up pkg_traverse() logic 2012-05-05 20:52:17 -05:00
William Pitcock faba0d8074 main: fix --modversion call for pkg_traverse(). 2012-05-05 20:47:13 -05:00
William Pitcock 83ba295077 pkg: add support for compiling in more than one default pkg-config search path
Some packages install to /usr/share/pkgconfig instead of /usr/lib/pkgconfig.
2012-05-05 20:24:45 -05:00
William Pitcock 7f7ad67bb2 pkg: fix off-by-one when parsing PKG_CONFIG_PATH data 2012-05-05 20:21:47 -05:00
William Pitcock 1ac3cbd4f9 tests/dos-lineendings: fix committed version 2012-05-05 20:21:16 -05:00
William Pitcock 1de9c5d341 pkgconf 0.5.3 2012-05-05 22:14:06 +00:00
William Pitcock 18e051e760 main: pkg-config only allows printing variables from the first package, so exit once we've done that 2012-05-05 22:09:33 +00:00
William Pitcock a9a2ba3da4 main: don't put any trailing space after printed variables 2012-05-05 22:08:06 +00:00
William Pitcock db5d98297c tests: add tests for --variable 2012-05-05 21:55:27 +00:00
William Pitcock 542e4e6f89 main: print_variable(): use strdup_parse(). 2012-05-05 21:52:18 +00:00
William Pitcock 8ff4ae5b16 main: traverse up to 3 levels for variable search 2012-05-05 21:51:59 +00:00
William Pitcock 0737a72070 parse: make strdup_parse() public 2012-05-05 21:51:38 +00:00
William Pitcock 0b244237b1 pkgconf 0.5.2 2012-05-05 17:54:35 +00:00
William Pitcock 5460704d12 argvsplit: slightly change strategy for splitting arguments 2012-05-05 17:44:24 +00:00
William Pitcock 4e95401318 tests: add test for argv-parse bug causing audacious build failure 2012-05-05 17:43:53 +00:00
William Pitcock e93b4a6c65 pkgconf 0.5.1. 2012-05-04 03:30:50 +00:00
William Pitcock 14901943cd parse: use pkg_fgetline(). 2012-05-04 03:23:03 +00:00
William Pitcock 130907d506 fileio: add routine for portably yanking lines out of a FILE stream 2012-05-04 03:21:51 +00:00
William Pitcock a1bbaa8eab Add .gitattributes file to force dos-lineendings.pc to match CRLF style always 2012-05-04 03:15:07 +00:00
William Pitcock f1d13ef08b tests: add dos-lineendings test 2012-05-04 03:08:55 +00:00
Luca Barbato 5f35ec35a8 m4: provide additional pkg-config macros
The macros provide a succint way to run a pkg-config check over modules
depending on a --with-name configure option.

There is a flexible variant to have custom behaviour if the package is
found or not and two more limited ones that just set HAVE_NAME make and
preprocessor variables.
2012-05-03 20:59:22 +00:00
William Pitcock 6759cdb4ef pkgconf 0.5. 2012-05-03 20:49:50 +00:00
William Pitcock 26c5dcb125 fragment: add pkg_fragment_exists() and use it to mergemaster in pkg_fragment_copy(). 2012-05-03 20:43:09 +00:00
William Pitcock a4a572f608 main: separate CFLAGS and LIBS collection and printing steps into two phases. 2012-05-03 20:37:24 +00:00
William Pitcock d94ab7555d fragment: add pkg_fragment_copy(). 2012-05-03 20:31:33 +00:00
William Pitcock c1e5ab046b fragment: add pkg_fragment_delete(). 2012-05-03 20:27:19 +00:00
William Pitcock de5e1c6e23 split out fragment code from parse.c 2012-05-03 20:22:19 +00:00
William Pitcock bd1bfa6228 main: add support for --libs-only-L, --libs-only-l and --libs-only-other. 2012-05-03 20:21:57 +00:00
William Pitcock bd4044a9cf main: add support for --cflags-only-I and --cflags-only-other 2012-05-03 19:52:36 +00:00
William Pitcock a290467261 main: filter out system dirs 2012-05-03 19:44:44 +00:00
William Pitcock 3c380f9b63 Add LIBDIR and INCLUDEDIR defines. 2012-05-03 19:44:23 +00:00
William Pitcock 1a81d1c7cc parse: fix handling of fragment types 2012-05-03 19:43:54 +00:00
William Pitcock b0521ec9d8 main: implement support for printing fragment lists 2012-05-03 19:36:47 +00:00
William Pitcock 588a671125 parse: cleanups for fragment handling code 2012-05-03 19:35:56 +00:00
William Pitcock b88279d40d pkg: parse CFLAGS/LIBS/LIBS.private into fragment lists. 2012-05-03 19:25:59 +00:00
William Pitcock 82420d0c5c pkg: add support for fragment lists. 2012-05-03 19:25:33 +00:00
William Pitcock c74b749c65 Add code for spliting strings into argc/argv using shell quoting rules. 2012-05-03 18:59:14 +00:00
William Pitcock b26da6815c main: --static shouldn't change maximum_traverse_depth 2012-05-03 18:05:19 +00:00
William Pitcock 5996e37703 fix test #9 output 2012-05-03 18:05:01 +00:00
William Pitcock 49a5eddad1 pkg: add pkg_report_graph_error() for describing breaks in the dependency graph.
Fixes issue #3.
2012-05-03 17:55:06 +00:00
William Pitcock 91ec341a92 pkg: pkg_verify_dependency(): add return error flags pointer.
presently, three error flags are defined:

PKG_ERRF_OK: everything went fine (no error)

PKG_ERRF_PACKAGE_NOT_FOUND: a graph node couldn't be verified because there was no
                            database entry for it

PKG_ERRF_PACKAGE_VER_MISMATCH: a graph node couldn't be verified because the entry
                               in the database did not match versioning constraints
2012-05-03 17:42:04 +00:00
William Pitcock 4dbca6ae18 Merge pull request #4 from mgorny/master
Fix uninitialized variable + tests
2012-05-03 10:32:49 -07:00
William Pitcock 89f3a1f109 Makefile: enable fortify support 2012-05-03 17:23:11 +00:00