From b97f10d63d9961321b421553b9767c4188045b37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Thu, 21 Jan 2021 17:45:17 +0100 Subject: [PATCH] debian/patches: Explicitly mark libfprint as a shared library --- ...y-mark-libfprint-as-a-shared-library.patch | 27 +++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 debian/patches/build-Explicitly-mark-libfprint-as-a-shared-library.patch diff --git a/debian/patches/build-Explicitly-mark-libfprint-as-a-shared-library.patch b/debian/patches/build-Explicitly-mark-libfprint-as-a-shared-library.patch new file mode 100644 index 00000000..b96c472c --- /dev/null +++ b/debian/patches/build-Explicitly-mark-libfprint-as-a-shared-library.patch @@ -0,0 +1,27 @@ +From: Benjamin Berg +Date: Thu, 21 Jan 2021 17:36:41 +0100 +Subject: build: Explicitly mark libfprint as a shared library + +While meson suggests to always use 'library' this leads to some unwanted +behaviors when it comes to generate pkg-config files for it, as they +will include `Libs.Private` / `Required.private` fields that should not +be really part of a shared library as libfprint is meant to be used. + +Origin: https://gitlab.freedesktop.org/libfprint/libfprint/-/commit/89890dbd +--- + libfprint/meson.build | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libfprint/meson.build b/libfprint/meson.build +index 110c458..9425e09 100644 +--- a/libfprint/meson.build ++++ b/libfprint/meson.build +@@ -258,7 +258,7 @@ libfprint_drivers = static_library('fprint-drivers', + mapfile = files('libfprint.ver') + vflag = '-Wl,--version-script,@0@/@1@'.format(meson.source_root(), mapfile[0]) + +-libfprint = library(versioned_libname.split('lib')[1], ++libfprint = shared_library(versioned_libname.split('lib')[1], + sources: [ + fp_enums, + libfprint_sources,