0001-Do-not-write-bindir-into-pkg-config-files.patch 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. From 7e00964de0ae27f868726413e46f27145807a50d Mon Sep 17 00:00:00 2001
  2. From: Alexander Kanavin <alex.kanavin@gmail.com>
  3. Date: Fri, 15 Feb 2019 11:17:27 +0100
  4. Subject: [PATCH] Do not prefix executables with $bindir in pkg-config files
  5. This would otherwise break when using the executables to build other target
  6. components (we need to rely on PATH containing the paths to utilities,
  7. rather than use target paths).
  8. Upstream-Status: Inappropriate [upstream wants the paths in .pc files]
  9. Signed-off-by: Alexander Kanavin <alex.kanavin@gmail.com>
  10. ---
  11. gio/meson.build | 17 +++++++++--------
  12. glib/meson.build | 7 ++++---
  13. 2 files changed, 13 insertions(+), 11 deletions(-)
  14. diff --git a/gio/meson.build b/gio/meson.build
  15. index 76d67cd..0584ff5 100644
  16. --- a/gio/meson.build
  17. +++ b/gio/meson.build
  18. @@ -885,17 +885,18 @@ libgio_dep = declare_dependency(link_with : libgio,
  19. pkg.generate(libgio,
  20. requires : ['glib-2.0', 'gobject-2.0'],
  21. variables : [
  22. + 'bindir=' + '${prefix}' / get_option('bindir'),
  23. 'schemasdir=' + '${datadir}' / schemas_subdir,
  24. 'dtdsdir=' + '${datadir}' / dtds_subdir,
  25. 'giomoduledir=' + pkgconfig_giomodulesdir,
  26. - 'gio=' + '${bindir}' / 'gio',
  27. - 'gio_querymodules=' + pkgconfig_multiarch_bindir / 'gio-querymodules',
  28. - 'glib_compile_schemas=' + pkgconfig_multiarch_bindir / 'glib-compile-schemas',
  29. - 'glib_compile_resources=' + '${bindir}' / 'glib-compile-resources',
  30. - 'gdbus=' + '${bindir}' /'gdbus',
  31. - 'gdbus_codegen=' + '${bindir}' / 'gdbus-codegen',
  32. - 'gresource=' + '${bindir}' / 'gresource',
  33. - 'gsettings=' + '${bindir}' / 'gsettings',
  34. + 'gio=gio',
  35. + 'gio_querymodules=gio-querymodules',
  36. + 'glib_compile_schemas=glib-compile-schemas',
  37. + 'glib_compile_resources=glib-compile-resources',
  38. + 'gdbus=gdbus',
  39. + 'gdbus_codegen=gdbus-codegen',
  40. + 'gresource=gresource',
  41. + 'gsettings=gsettings',
  42. ],
  43. version : glib_version,
  44. install_dir : glib_pkgconfigreldir,
  45. diff --git a/glib/meson.build b/glib/meson.build
  46. index 9f1515b..a40e4f5 100644
  47. --- a/glib/meson.build
  48. +++ b/glib/meson.build
  49. @@ -447,9 +447,10 @@ pkg.generate(libglib,
  50. subdirs : ['glib-2.0'],
  51. extra_cflags : ['-I${libdir}/glib-2.0/include'] + win32_cflags,
  52. variables : [
  53. - 'glib_genmarshal=' + '${bindir}' / 'glib-genmarshal',
  54. - 'gobject_query=' + '${bindir}' / 'gobject-query',
  55. - 'glib_mkenums=' + '${bindir}' / 'glib-mkenums',
  56. + 'bindir=' + '${prefix}' / get_option('bindir'),
  57. + 'glib_genmarshal=glib-genmarshal',
  58. + 'gobject_query=gobject-query',
  59. + 'glib_mkenums=glib-mkenums',
  60. 'glib_valgrind_suppressions=' + '${datadir}' /
  61. valgrind_suppression_file_install_subdir /
  62. fs.name(valgrind_suppression_file),