From 21e543fea8ffd1a968f67e23a8a85f6c5e5dde54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Cerveau?= Date: Mon, 2 Mar 2020 16:00:23 +0100 Subject: pkgconfig: Fix deprecation message (fixes #6720) Deprecation warning was unable to display because of patch c8f8d58273a40d94c820dccab54a7ae2d948cb8a fixes #6720 --- mesonbuild/modules/pkgconfig.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'mesonbuild/modules/pkgconfig.py') diff --git a/mesonbuild/modules/pkgconfig.py b/mesonbuild/modules/pkgconfig.py index cfdae4f..8de88c9 100644 --- a/mesonbuild/modules/pkgconfig.py +++ b/mesonbuild/modules/pkgconfig.py @@ -526,8 +526,7 @@ class PkgConfigModule(ExtensionModule): for lib in deps.pub_libs: if not isinstance(lib, str) and not hasattr(lib, 'generated_pc'): lib.generated_pc = filebase - location = types.SimpleNamespace(subdir=state.subdir, - lineno=state.current_lineno) + location = state.current_node lib.generated_pc_warn = [name, location] return ModuleReturnValue(res, [res]) -- cgit v1.1