summaryrefslogtreecommitdiff
path: root/sys-auth/fprintd/files/fprintd-1.90.7_0001-add-test-feature-and-make-tests-optional.patch
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2023-05-14 01:35:31 -0400
committerGravatar Chris Xiong <chirs241097@gmail.com> 2023-05-14 01:35:31 -0400
commit31e10a520a4d717c04cf693cec9ebc133a12f62f (patch)
treebac58aac498a88b6c8b2b8589f877b7186acb0e1 /sys-auth/fprintd/files/fprintd-1.90.7_0001-add-test-feature-and-make-tests-optional.patch
parenta0a42b14f66498e00208ebc25eae82698c1f11d5 (diff)
downloadppo-31e10a520a4d717c04cf693cec9ebc133a12f62f.tar.xz
drop fprintd
Diffstat (limited to 'sys-auth/fprintd/files/fprintd-1.90.7_0001-add-test-feature-and-make-tests-optional.patch')
-rw-r--r--sys-auth/fprintd/files/fprintd-1.90.7_0001-add-test-feature-and-make-tests-optional.patch74
1 files changed, 0 insertions, 74 deletions
diff --git a/sys-auth/fprintd/files/fprintd-1.90.7_0001-add-test-feature-and-make-tests-optional.patch b/sys-auth/fprintd/files/fprintd-1.90.7_0001-add-test-feature-and-make-tests-optional.patch
deleted file mode 100644
index 67fb29b..0000000
--- a/sys-auth/fprintd/files/fprintd-1.90.7_0001-add-test-feature-and-make-tests-optional.patch
+++ /dev/null
@@ -1,74 +0,0 @@
-From 7820465f078e9655af70036d8c570fd644b38f22 Mon Sep 17 00:00:00 2001
-From: Martin Gysel <me@bearsh.org>
-Date: Thu, 19 Nov 2020 07:04:10 +0100
-Subject: [PATCH 1/2] add test feature and make tests optional
-
----
- meson.build | 14 ++++++++++----
- meson_options.txt | 4 ++++
- 2 files changed, 14 insertions(+), 4 deletions(-)
-
-diff --git a/meson.build b/meson.build
-index 66aa2f7..ba44788 100644
---- a/meson.build
-+++ b/meson.build
-@@ -125,7 +125,7 @@ endif
- polkit_policy_directory = polkit_gobject_dep.get_pkgconfig_variable('policydir')
-
- # Tests dependencies
--pam_wrapper_dep = dependency('pam_wrapper', required: get_option('pam'))
-+pam_wrapper_dep = dependency('pam_wrapper', required: get_option('pam') and get_option('test').enabled() )
-
- xmllint = find_program('xmllint', required: false)
- python3 = find_program('python3') # No meson without it!
-@@ -139,11 +139,13 @@ python3_test_modules = {
- }
- python3_available_modules = []
-
-+if get_option('test').enabled()
- foreach module, required : python3_test_modules
- if required and run_command(python3, '-c', 'import @0@'.format(module)).returncode() != 0
- error('Python3 module \'' + module + '\' required by test suite not found')
- endif
- endforeach
-+endif
-
- cdata = configuration_data()
- cdata.set_quoted('GETTEXT_PACKAGE', meson.project_name())
-@@ -167,7 +169,9 @@ endif
- if get_option('gtk_doc')
- subdir('doc')
- endif
--subdir('tests')
-+if get_option('test').enabled()
-+ subdir('tests')
-+endif
- subdir('po')
-
- output = []
-@@ -189,7 +193,9 @@ output += ' PAM module: ' + pam_dep.found().to_string()
- output += ' Manuals: ' + get_option('man').to_string()
- output += ' GTK Doc: ' + get_option('gtk_doc').to_string()
- output += ' XML Linter ' + xmllint.found().to_string()
--output += '\nTest setup:\n'
--output += ' With address sanitizer: ' + address_sanitizer.to_string()
-+if get_option('test').enabled()
-+ output += '\nTest setup:\n'
-+ output += ' With address sanitizer: ' + address_sanitizer.to_string()
-+endif
-
- message('\n'+'\n'.join(output)+'\n')
-diff --git a/meson_options.txt b/meson_options.txt
-index be31fe1..92c01cd 100644
---- a/meson_options.txt
-+++ b/meson_options.txt
-@@ -19,3 +19,7 @@ option('gtk_doc',
- type: 'boolean',
- value: false,
- description: 'Use gtk-doc to build documentation')
-+option('test',
-+ type: 'feature',
-+ value: 'disabled',
-+ description: 'Enable tests')
---
-2.29.2