Log

Author Commit Date CI Message
Ariadne Conill a88c0d96 2024-08-07T00:10:13 pkgconf 2.3.0.
Ariadne Conill 0dde98fa 2024-08-06T23:44:43 meson: define __EXTENSIONS__ for Solaris
Ariadne Conill ba3c2bd4 2024-08-06T23:41:48 tests: add regression test for PKG_CONFIG_RELOCATE_PATHS=1
Ariadne Conill 72082a4d 2024-08-06T23:39:46 cli: add PKG_CONFIG_RELOCATE_PATHS environmental variable This is the inverse of PKG_CONFIG_DONT_RELOCATE_PATHS=1. Closes github issue #253.
Ariadne Conill 874d559e 2024-08-06T23:34:41 tests: add regression test for github issue #286
Ariadne Conill d2d01a10 2024-08-06T23:31:30 tests: add regression test fixture for github issue #286
Ariadne Conill 9aaff514 2024-08-06T15:12:27 bomtool: only use query dependencies for deriving the SBOM document name
Ariadne Conill eb7c2385 2024-08-06T10:43:52 tests: add test for --variable with --env
Ariadne Conill 0ca4e5d0 2024-08-06T10:42:18 cli: allow --env to work with --variable
Ariadne Conill 2070c00d 2024-08-06T10:41:23 cli: stop processing requests after the --env handler runs
Ariadne Conill ef99b6c6 2024-08-06T10:10:02 tests: add test for --print-variables with --env
Ariadne Conill ca2a0689 2024-08-06T09:23:10 cli: add integration for --print-variables with --env
Ariadne Conill c8422361 2024-08-05T16:45:56 tests: add test for --libs with --env
Ariadne Conill d8cd27e2 2024-08-05T16:43:54 tests: add test for --exists-cflags with --env
Ariadne Conill 22866eca 2024-08-05T16:42:05 cli: document --env in usage text
Ariadne Conill b24f3dfd 2024-08-05T16:39:51 cli: implement --exists-cflags support for --env
Ariadne Conill d5cd2a4f 2024-08-05T16:31:37 tests: add basic --exists-cflags test
Ariadne Conill f635f632 2024-08-05T16:29:52 cli: add module definitions before filter check
Ariadne Conill d76aa357 2024-08-05T14:29:53 cli: implement --exists-cflags feature This feature adds autoconf-style -DHAVE_FOO definitions to the --cflags output when it is requested. This has been requested a few times over the years as it allows for simplifying build system logic in scenarios where a standalone Makefile or similar build process is used without a configuration step.
Ariadne Conill 174db1a1 2024-08-05T14:27:13 fragment: add pkgconf_fragment_insert()
Ariadne Conill a6179c77 2024-08-05T13:42:49 queue: add PKGCONF_PKG_DEPF_QUERY to color solution nodes part of the original query
Ariadne Conill a276c0b4 2024-08-05T13:22:05 main: add --exists-cflags command-line option
Ariadne Conill 93ae120d 2024-08-05T13:08:36 build (automake): add -I m4 to ACLOCAL_AMFLAGS libtoolize was warning about this flag being missing.
Kai Pastor 8b7e2c4e 2024-07-03T04:58:06 Process character after operator
Kai Pastor 64ff8b03 2024-07-02T20:14:05 Test version expressions 'mod >=n'
Taylor R Campbell 633433b2 2024-05-16T21:28:37 Fix uncasted use of isspace() isspace() is intended to be used with an unsigned 8-bit input. Using isspace() with any other type of input is technically undefined behavior.
Petr Písař 2d26db3a 2024-04-08T11:50:46 doc: Requires.private is used for header inclusion Document that "pkgconf --cflags" inherits paths for including headers from dependencies listed in Requires.private. https://github.com/pkgconf/pkgconf/issues/300 https://github.com/pkgconf/pkgconf/issues/352
Pierce a8a492e2 2024-04-11T16:53:33 Fix typo in README.md
Ismael Luceno c583d49a 2021-08-26T20:03:44 pkg.m4: Abort by default if no pkgconf Provide a second optional argument to PKG_PROG_PKG_CONFIG with an action to take if no pkgconf is found, and default to aborting. Too many configure scripts in the wild don't handle an empty PKG_CONFIG, resulting in weird error messages through the run, which often confuse users. Authors wishing to fallback to other methods can either return to the old behavior by specifying [:] as an action, or use [PKG_CONFIG=false] and call pkg-config macros normally, handling the fallback as any other failure. Users can override PKG_CONFIG in the command line so this should imply no regression. Closes: https://github.com/pkgconf/pkgconf/issues/350 Ref: https://gitlab.freedesktop.org/pkg-config/pkg-config/-/issues/69 Signed-off-by: Ismael Luceno <ismael@iodev.co.uk>
Ariadne Conill 06120a87 2024-03-27T11:34:36 pkgconf 2.2.0
Ariadne Conill 7a8532f8 2024-03-27T18:39:00 queue: remove no longer used root package reference when walking dependency graphs
Ariadne Conill a3d7ecb3 2024-03-27T11:31:48 Use libpkgconf.so.5 due to ABI changes
Kai Pastor e2a8080c 2024-02-23T15:18:08 Reuse static solution for general solution
Kai Pastor 883b57df 2024-02-23T15:18:08 Cache packages from explicit file requests
Kai Pastor 194dde09 2024-02-23T15:18:08 Update expected test results
Kai Pastor 78d53ea0 2024-02-23T15:18:08 Revise serials, traversal, flattening Remove the 'traverse_serial' fields which were added in 2.1.1. Use the 'serial' field to track the current traversal. Stop using 'identifier' to sort packages in the flattened solution. Directly construct the flattened solution by a specific walk which also preserves the relative order in Requires and Requires.private. The topological sort is a single list, so don't fill requires_private. Purely private dependencies are marked in dependency flags. The ancestor flag is a pkg property, not a client property.
Kai Pastor 4090ba3e 2024-02-23T15:18:08 Clarify tracing messages
Kai Pastor 5eb79f66 2024-02-08T21:37:35 Add tests for lib order
Kai Pastor e7c9bdb3 2024-03-22T07:18:41 Don't print 'required by <VIRTUAL-PACKAGE>'
Kai Pastor 4e01010d 2024-03-16T15:19:57 Mark user input in error message
Kai Pastor 6219af9a 2024-03-21T23:07:11 Color private-reachable nodes gray
Kai Pastor eaf1a2d8 2024-03-21T22:44:32 Resolve user request for digraph
Kai Pastor d6753888 2024-03-18T08:37:17 Update test expected results
Kai Pastor f95e8d44 2024-03-18T08:21:17 Print digraph for user request perspective
Kai Pastor db63c8ee 2024-03-18T07:56:37 Show edges for flattened order
Kai Pastor b6e04e2d 2023-12-11T06:58:17 pkgconf 2.1.1
Ariadne Conill 2edf954f 2024-02-04T03:25:54 Update NEWS for pkgconf 2.1.1
Ariadne Conill d8924ace 2024-02-04T03:16:14 Update gitignore to catch all of the autoconf-generated files
Ariadne Conill 80b5011e 2024-02-04T03:04:52 Use traverse_serial to short circuit graph evaluation for already visited nodes. In our previous attempt to optimize this problem, we did not track the type of the visit to the node, e.g. whether it came from evaluating Requires or Requires.private, which resulted in some solutions being correctly incalculated due to greedy optimization of the dependency graph. We reintroduce this optimization by adding a second traversal serial as well as re-introducing the PROPF_VISITED node property as well as a new PROPF_VISITED_PRIVATE node property flag. This allows a node to be revisted at maximum two times per traversal level. Co-authored-by: Yi Chou <yich@google.com>
Kai Pastor 4a3adf34 2024-01-17T18:28:38 Test digraph completeness for private-libs-duplication Complements 45073b7.
Kai Pastor 5825e2c6 2023-12-01T22:12:20 Fix crash on two-word expressions
Kai Pastor b2f8386c 2023-12-01T21:50:46 Fix --modversion output
Kai Pastor 125af82d 2023-12-01T21:20:39 Test --modversion with constraint
Sam James 08f4a9da 2023-11-25T06:13:16 NEWS: fix typo Signed-off-by: Sam James <sam@gentoo.org>
Stefan Weil a4ecd42b 2023-11-24T19:44:04 Fix it's -> its Signed-off-by: Stefan Weil <sw@weilnetz.de>
Ariadne Conill 61d39ad8 2023-11-22T18:46:19 pkgconf 2.1.0.
Ariadne Conill 5fb09af8 2023-11-22T18:43:04 queue: ensure the initial solution is cleaned up when it is no longer needed
Ariadne Conill d0038689 2023-11-22T18:30:21 build: add metapackage-3.pc to testsuite files
Ariadne Conill 31512b21 2023-11-22T18:24:29 add NEWS for pkgconf 2.1.0.
Ariadne Conill 5f6c5320 2023-10-09T08:05:18 cli: add simple --solution applet for dumping the solver solution
Ariadne Conill f3540de3 2023-10-09T07:27:00 queue: clarify the relationship between a flattened dep and its parent Signed-off-by: Ariadne Conill <ariadne@dereferenced.org>
Kai Pastor be1ea788 2023-10-15T08:32:48 Separate input world from output world
Kai Pastor 45073b74 2023-10-15T12:40:41 Circular deps: track ancestors, not serial
Victor Westerhuis 948297b5 2023-10-31T14:09:55 Search XDG Base Directories for personality files Try $XDG_DATA_HOME/pkgconfig/personality.d and $XDG_DATA_DIRS/pkgconfig/personality.d.
Sam James d454f62c 2023-11-05T22:17:02 libpkgconf: fix -Walloc-size GCC 14 introduces a new -Walloc-size included in -Wextra which gives: ``` libpkgconf/personality.c:260:11: warning: allocation of insufficient size '1' for type 'pkgconf_cross_personality_t' {aka 'struct pkgconf_cross_personality_'} with size '48' [-Walloc-size] libpkgconf/queue.c:46:33: warning: allocation of insufficient size '1' for type 'pkgconf_queue_t' {aka'struct pkgconf_queue_'} with size '16' [-Walloc-size] libpkgconf/client.c:164:33: warning: allocation of insufficient size '1' for type 'pkgconf_client_t' {aka 'struct pkgconf_client_'} with size '120' [-Walloc-size] libpkgconf/path.c:105:14: warning: allocation of insufficient size '1' for type 'pkgconf_path_t' {aka 'struct pkgconf_path_'} with size '24' [-Walloc-size] libpkgconf/path.c:237:22: warning: allocation of insufficient size '1' for type 'pkgconf_path_t' {aka 'struct pkgconf_path_'} with size '24' [-Walloc-size] libpkgconf/tuple.c:239:34: warning: allocation of insufficient size '1' for type 'pkgconf_tuple_t' {aka 'struct pkgconf_tuple_'} with size '24' [-Walloc-size] libpkgconf/dependency.c:133:13: warning: allocation of insufficient size '1' for type 'pkgconf_dependency_t' {aka 'struct pkgconf_dependency_'} with size '44' [-Walloc-size] libpkgconf/dependency.c:472:17: warning: allocation of insufficient size '1' for type 'pkgconf_dependency_t' {aka 'struct pkgconf_dependency_'} with size '44' [-Walloc-size] libpkgconf/fragment.c:146:22: warning: allocation of insufficient size '1' for type 'pkgconf_fragment_t' {aka 'struct pkgconf_fragment_'} with size '24' [-Walloc-size] libpkgconf/fragment.c:195:22: warning: allocation of insufficient size '1' for type 'pkgconf_fragment_t' {aka 'struct pkgconf_fragment_'} with size '24' [-Walloc-size] libpkgconf/fragment.c:356:14: warning: allocation of insufficient size '1' for type 'pkgconf_fragment_t' {aka 'struct pkgconf_fragment_'} with size '24' [-Walloc-size] libpkgconf/pkg.c:422:13: warning: allocation of insufficient size '1' for type 'pkgconf_pkg_t' {aka 'struct pkgconf_pkg_'} with size '188' [-Walloc-size] libpkgconf/client.c:164:33: warning: allocation of insufficient size '1' for type 'pkgconf_client_t' {aka 'struct pkgconf_client_'} with size '224' [-Walloc-size] libpkgconf/personality.c:260:11: warning: allocation of insufficient size '1' for type 'pkgconf_cross_personality_t' {aka 'struct pkgconf_cross_personality_'} with size '96' [-Walloc-size] libpkgconf/dependency.c:133:13: warning: allocation of insufficient size '1' for type 'pkgconf_dependency_t' {aka 'struct pkgconf_dependency_'} with size '80' [-Walloc-size] libpkgconf/dependency.c:472:17: warning: allocation of insufficient size '1' for type 'pkgconf_dependency_t' {aka 'struct pkgconf_dependency_'} with size '80' [-Walloc-size] libpkgconf/path.c:105:14: warning: allocation of insufficient size '1' for type 'pkgconf_path_t' {aka 'struct pkgconf_path_'} with size '48' [-Walloc-size] libpkgconf/path.c:237:22: warning: allocation of insufficient size '1' for type 'pkgconf_path_t' {aka 'struct pkgconf_path_'} with size '48' [-Walloc-size] libpkgconf/queue.c:46:33: warning: allocation of insufficient size '1' for type 'pkgconf_queue_t' {aka 'struct pkgconf_queue_'} with size '32' [-Walloc-size] libpkgconf/tuple.c:239:34: warning: allocation of insufficient size '1' for type 'pkgconf_tuple_t' {aka 'struct pkgconf_tuple_'} with size '48' [-Walloc-size] libpkgconf/fragment.c:146:22: warning: allocation of insufficient size '1' for type 'pkgconf_fragment_t' {aka 'struct pkgconf_fragment_'} with size '48' [-Walloc-size] libpkgconf/fragment.c:195:22: warning: allocation of insufficient size '1' for type 'pkgconf_fragment_t' {aka 'struct pkgconf_fragment_'} with size '48' [-Walloc-size] libpkgconf/fragment.c:356:14: warning: allocation of insufficient size '1' for type 'pkgconf_fragment_t' {aka 'struct pkgconf_fragment_'} with size '48' [-Walloc-size] libpkgconf/pkg.c:422:13: warning: allocation of insufficient size '1' for type 'pkgconf_pkg_t' {aka 'struct pkgconf_pkg_'} with size '360' [-Walloc-size] ``` The calloc prototype is: ``` void *calloc(size_t nmemb, size_t size); ``` So, just swap the number of members and size arguments to match the prototype, as we're initialising 1 struct of size `sizeof(struct ...)`. GCC then sees we're not doing anything wrong. The only exception there is for argv which I fixed while at it. Signed-off-by: Sam James <sam@gentoo.org>
Ariadne Conill 752a9825 2023-10-09T07:22:59 queue: demote requires to requires.private when processing requires.private parents Signed-off-by: Ariadne Conill <ariadne@dereferenced.org>
Ariadne Conill 86c43b4e 2023-10-09T07:10:47 cli: --digraph: use directed relationships as part of the visualization Signed-off-by: Ariadne Conill <ariadne@dereferenced.org>
Ariadne Conill 4db80314 2023-10-09T07:06:29 cli: --digraph: properly visualize requires.private edges Signed-off-by: Ariadne Conill <ariadne@dereferenced.org>
Kai Pastor eb087a6c 2023-10-09T08:41:47 Test simple metapackage
Colin Gillespie dd6a8e3f 2023-09-05T15:36:23 cli: trim trailing whitespace from package arguments Signed-off-by: Colin Gillespie <colin@cgillespie.xyz>
Ariadne Conill 97d907ba 2023-10-09T06:35:04 cli: remove strncmp() from modversion comparison Signed-off-by: Ariadne Conill <ariadne@dereferenced.org>
Peter Kokot a4033ab9 2023-09-22T06:54:04 Update AX_CHECK_COMPILE_FLAG to serial 6 curl --output m4/ax_check_compile_flag.m4 \ https://raw.githubusercontent.com/autoconf-archive/autoconf-archive/master/m4/ax_check_compile_flag.m4
L. E. Segovia a7c29fec 2023-09-13T14:49:11 meson: Add with-system options Fixes #283
Xi Ruoyao 962a5e96 2023-09-07T19:38:01 cli: fix --modversion not showing version with versioned query Fixes #317. Signed-off-by: Xi Ruoyao <xry111@xry111.site>
Colin Gillespie 5aeb469b 2023-09-03T16:19:14 libpkgconf: fix memory leak Signed-off-by: Colin Gillespie <colin@cgillespie.xyz>
Ariadne Conill 652aff97 2023-10-08T22:27:56 path: add pkgconf_path_prepend API for --with-path Otherwise, PKG_CONFIG_PATH and PKG_CONFIG_LIBDIR elements would be processed backwards. Fixes: 384ade5 (path: prepend paths rather than append paths when processing --with-path arguments) Closes: #250 Signed-off-by: Ariadne Conill <ariadne@dereferenced.org>
Ariadne Conill a6fb59a0 2023-09-02T21:15:46 pkgconf 2.0.3. Signed-off-by: Ariadne Conill <ariadne@dereferenced.org>
Ariadne Conill 3f07015d 2023-09-03T04:18:26 add new test files to build system Signed-off-by: Ariadne Conill <ariadne@dereferenced.org>
Ariadne Conill ee702658 2023-09-02T21:05:03 use PRIu64 format specifiers for some uint64 identifiers in trace logging Signed-off-by: Ariadne Conill <ariadne@dereferenced.org>
Colin Gillespie 66994f15 2023-08-19T07:57:48 cli: fix --modversion not showing version in various cases There are numerous edge cases where version is wrong or missing when matching the dependency queue to resolved packages. This adds the dependency name as it appears in the dependency queue to each package as it is resolved, allowing for a simple and correct comparison when printing. Signed-off-by: Colin Gillespie <colin@cgillespie.xyz>
Colin Gillespie 9cddd22b 2023-08-19T11:16:30 tests: add regression tests for --modversion Signed-off-by: Colin Gillespie <colin@cgillespie.xyz>
Ariadne Conill eaa4bb44 2023-08-17T11:56:08 pkgconf 2.0.2.
Ariadne Conill a265f8a4 2023-08-17T11:53:07 libpkgconf: pkg: fix long-standing bug where -uninstalled pkg-config files would have the wrong identifier
Ariadne Conill f0f28fa6 2023-08-17T11:50:00 tests: add regression test for --modversion with uninstalled pkg-config files
Ariadne Conill 6a84d704 2023-08-11T14:23:08 pkgconf 2.0.1. Signed-off-by: Ariadne Conill <ariadne@dereferenced.org>
Ariadne Conill f49029c6 2023-08-11T14:19:26 cli: ensure --modversion is output is printed in dependency queue order Previously, --modversion operated on the calculated solution and printed versions in order of the calculated dependency graph. Change this to use the dependency queue instead, looking up nodes in the dependency graph as needed, to ensure that the --modversion output behaves as intended. Signed-off-by: Ariadne Conill <ariadne@dereferenced.org>
Ariadne Conill 4fb0988a 2023-08-11T14:16:41 libpkgconf: queue: make the pkgconf_queue_t type public Signed-off-by: Ariadne Conill <ariadne@dereferenced.org>
Ariadne Conill 5ef2ab8c 2023-08-11T14:09:01 cli: add --verbose parameter Signed-off-by: Ariadne Conill <ariadne@dereferenced.org>
Ariadne Conill 95086643 2023-08-11T13:48:02 cli: remove package count restriction from --modversion Signed-off-by: Ariadne Conill <ariadne@dereferenced.org>
Ariadne Conill fe69ccc6 2023-08-11T13:41:20 Revert "main: explicitly error with --modversion and more than 1 package being queried" This reverts commit a97b75ab2c1d031982c35a4886102413e4ec8eee.
Ariadne Conill de51b03c 2023-08-04T08:45:16 pkgconf 2.0.0.
Ariadne Conill f3059010 2023-08-04T08:44:57 tests: regress: remove obsolete modversion test
Ariadne Conill a97b75ab 2023-08-04T08:38:48 main: explicitly error with --modversion and more than 1 package being queried
Ariadne Conill 384ade5f 2023-08-04T08:24:32 path: prepend paths rather than append paths when processing --with-path arguments
Ariadne Conill a4eb097b 2023-08-04T08:23:00 queue: process packages in the resolution queue in the correct order
Ariadne Conill 5d0e2f50 2023-08-04T08:19:42 Track packages using a lifetime unique identifier Use that identifier to cancel graph edges rather than the number of hits, which biases the earliest edge rather than the latest.
Ariadne Conill 437c2a32 2023-07-02T11:34:50 update release tarball location because dynadot is a shitty registrar
Ariadne Conill 094dc384 2023-05-02T12:10:54 pkgconf 1.9.5. Signed-off-by: Ariadne Conill <ariadne@dereferenced.org>
Ariadne Conill 35b1a623 2023-05-02T12:09:55 update libpkgconf version to 10905 Signed-off-by: Ariadne Conill <ariadne@dereferenced.org>
Ariadne Conill 83f412a1 2023-05-02T12:09:19 update NEWS for 1.9.5. Signed-off-by: Ariadne Conill <ariadne@dereferenced.org>