[rtems-source-builder commit] sb: Fix pkg-config arg parsing after being wrapped.

Chris Johns chrisj at rtems.org
Sat Nov 17 02:30:53 UTC 2018


Module:    rtems-source-builder
Branch:    master
Commit:    a9fb57499b5e2354cb25c9b10bc46024204a2a69
Changeset: http://git.rtems.org/rtems-source-builder/commit/?id=a9fb57499b5e2354cb25c9b10bc46024204a2a69

Author:    Chris Johns <chrisj at rtems.org>
Date:      Tue Nov 13 10:27:14 2018 +1100

sb: Fix pkg-config arg parsing after being wrapped.

---

 source-builder/sb/cmd-pkg-config.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/source-builder/sb/cmd-pkg-config.py b/source-builder/sb/cmd-pkg-config.py
index c2f485c..c76979e 100755
--- a/source-builder/sb/cmd-pkg-config.py
+++ b/source-builder/sb/cmd-pkg-config.py
@@ -33,7 +33,7 @@ from __future__ import print_function
 import os
 import sys
 
-base = os.path.dirname(sys.argv[0])
+base = os.path.dirname(sys.argv[1])
 
 try:
     import argparse
@@ -206,10 +206,10 @@ def run(argv):
 try:
     log('-' * 40)
     log('pkg-config', lf = False)
-    for a in sys.argv[1:]:
+    for a in sys.argv[2:]:
         log(' "%s"' % (a), lf = False)
     log('')
-    ec = run(sys.argv)
+    ec = run(sys.argv[1:])
     log('ec = %d' % (ec))
 except ImportError:
     print("incorrect package config installation", file = sys.stderr)




More information about the vc mailing list