aboutsummaryrefslogtreecommitdiff
path: root/mesonbuild/modules/rpm.py
diff options
context:
space:
mode:
authorNirbheek Chauhan <nirbheek@centricular.com>2016-11-09 03:39:24 +0530
committerJussi Pakkanen <jpakkane@gmail.com>2016-11-08 17:45:31 -0500
commit3a4d56c2d3649d8c0919737a306dec5fce30f2c9 (patch)
treedab64ad1be1c14b3b00aa5c03f45beec58a77e28 /mesonbuild/modules/rpm.py
parent7408862db800a171eda419d8947be55c107832f2 (diff)
downloadmeson-3a4d56c2d3649d8c0919737a306dec5fce30f2c9.zip
meson-3a4d56c2d3649d8c0919737a306dec5fce30f2c9.tar.gz
meson-3a4d56c2d3649d8c0919737a306dec5fce30f2c9.tar.bz2
rpm: Fix trivial typo in BuildRequires
coredata.deps is keyed with a tuple; we want the first element of that (the pkg-config dependency name) here. See: https://fedoraproject.org/wiki/Packaging:PkgConfigBuildRequires Closes https://github.com/mesonbuild/meson/issues/955
Diffstat (limited to 'mesonbuild/modules/rpm.py')
-rw-r--r--mesonbuild/modules/rpm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mesonbuild/modules/rpm.py b/mesonbuild/modules/rpm.py
index e9f6396..2c9ed57 100644
--- a/mesonbuild/modules/rpm.py
+++ b/mesonbuild/modules/rpm.py
@@ -94,7 +94,7 @@ class RPMModule:
for compiler in compiler_deps:
fn.write('BuildRequires: %s\n' % compiler)
for dep in state.environment.coredata.deps:
- fn.write('BuildRequires: pkgconfig(%s)\n' % dep)
+ fn.write('BuildRequires: pkgconfig(%s)\n' % dep[0])
for lib in state.environment.coredata.ext_libs.values():
fn.write('BuildRequires: %s # FIXME\n' % lib.fullpath)
mlog.warning('replace', mlog.bold(lib.fullpath), 'with real package.',