summaryrefslogtreecommitdiff
path: root/check/circular-3.pc
diff options
context:
space:
mode:
authorDan Nicholson <dbn.lists@gmail.com>2012-05-09 05:55:47 -0700
committerDan Nicholson <dbn.lists@gmail.com>2012-10-13 08:14:35 -0700
commit6d6dd43e75e2bc82cfe6544f8631b1bef6e1cf45 (patch)
treec779e053af295fb19cfe716f8f79a91ddc7983e9 /check/circular-3.pc
parent3f1f6e79b7ebf246906a6539901571b88bb74067 (diff)
downloadpkg-config-6d6dd43e75e2bc82cfe6544f8631b1bef6e1cf45.tar.gz
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
Diffstat (limited to 'check/circular-3.pc')
-rw-r--r--check/circular-3.pc11
1 files changed, 11 insertions, 0 deletions
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}