| From 4436524703e416b3360ea5677a8c144f4f14932c Mon Sep 17 00:00:00 2001 |
| From: Wei Xu <weixugc@google.com> |
| Date: Tue, 21 Jan 2020 23:08:53 -0800 |
| Subject: [PATCH] Replace pkg-config with PKG_CONFIG to fix cross-compile of |
| cloud-init. |
| |
| --- |
| setup.py | 2 +- |
| 1 file changed, 1 insertion(+), 1 deletion(-) |
| |
| diff --git a/setup.py b/setup.py |
| index 01a67b95..2a1d0880 100755 |
| --- a/setup.py |
| +++ b/setup.py |
| @@ -58,7 +58,7 @@ def pkg_config_read(library, var): |
| 'systemdsystemgeneratordir': '/lib/systemd/system-generators', |
| } |
| } |
| - cmd = ['pkg-config', '--variable=%s' % var, library] |
| + cmd = [os.getenv('PKG_CONFIG', 'pkg-config'), '--variable=%s' % var, library] |
| try: |
| (path, err) = tiny_p(cmd) |
| path = path.strip() |
| -- |
| 2.25.1.481.gfbce0eb801-goog |
| |