Verify output of gnustep dependency program.

pull/15/head
Jussi Pakkanen 12 years ago
parent 17e8bcdf04
commit 41e89c5cb5
  1. 12
      dependencies.py

@ -414,12 +414,20 @@ class GnuStepDependency(Dependency):
arg = '--base-libs'
fp = subprocess.Popen([confprog, '--objc-flags'],
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
flagtxt = fp.communicate()[0].decode()
(flagtxt, flagerr) = fp.communicate()
flagtxt = flagtxt.decode()
flagerr = flagerr.decode()
if fp.returncode != 0:
raise DependencyException('Error getting objc-flags: %s %s' % (flagtxt, flagerr))
flags = flagtxt.split()
self.flags = self.filter_flags(flags)
fp = subprocess.Popen([confprog, arg],
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
libtxt = fp.communicate()[0].decode()
(libtxt, liberr) = fp.communicate()
libtxt = libtxt.decode()
liberr = liberr.decode()
if fp.returncode != 0:
raise DependencyException('Error getting objc-lib flags: %s %s' % (libtxt, liberr))
self.libs = libtxt.split()
print('Dependency GnuStep found: YES')

Loading…
Cancel
Save