From 6d6dd43e75e2bc82cfe6544f8631b1bef6e1cf45 Mon Sep 17 00:00:00 2001 From: Dan Nicholson Date: Wed, 9 May 2012 05:55:47 -0700 Subject: Support circular Requires loops After the packages are parsed, pkg-config recurses through all the required packages to generate one list. Before descending another level, check to see if the package has already been handled and skip it. This allows packages to require each other circularly by breaking the loop. A test has been added resolving a two level deep circular dependency. Freedesktop #7331 --- check/circular-3.pc | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 check/circular-3.pc (limited to 'check/circular-3.pc') diff --git a/check/circular-3.pc b/check/circular-3.pc new file mode 100644 index 0000000..ad6555a --- /dev/null +++ b/check/circular-3.pc @@ -0,0 +1,11 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${exec_prefix}/lib +includedir=${prefix}/include/circ3 + +Name: Circular Requires test 3 +Description: Dummy package for testing circular Requires +Version: 1.0.0 +Requires: circular-1 +Libs: -lcirc3 +Cflags: -I${includedir} -- cgit v1.2.1