1
0
mirror of https://github.com/dguglielmi/sunny-overlay.git synced 2025-12-06 05:12:38 +01:00

sys-auth/*: move sys-auth/libfprint-tod-goodix-drivers to sys-auth/libfprint-2-tod1-goodix

This commit is contained in:
2025-06-17 13:45:46 +02:00
parent 26b285e26a
commit 549e2b8298
20 changed files with 78 additions and 802 deletions

2
profiles/updates/2Q-2025 Normal file
View File

@@ -0,0 +1,2 @@
move sys-auth/libfprint-tod-goodix-drivers sys-auth/libfprint-2-tod1-goodix
move sys-auth/libfprint-tod sys-auth/libfprint

View File

@@ -1,2 +0,0 @@
DIST fprintd-v1.94.2.tar.bz2 657989 BLAKE2B 5855ab453ae6d73e08c60c699a95609262fd121ab020f9ffeafb8d1891a60f761f47e4acd11554179b6d9cbed8a734aafb012a4b6de3e9ad67d4160534a0e6c6 SHA512 0b5ebc595b617fbe9167c41a80e31ae74e7bdc87350b0420839e1a6229d7709e51ff2836858c46d8d30549a1f0811b0f697034fcdd09512b5c1099f0f0a3b112
DIST fprintd-v1.94.4.tar.bz2 664460 BLAKE2B 42013d612f3790a8fe79a41cb64bbc9b7262a2dca2607f40885a2f83cb7c3a73db6fbb3e7af601eaa5bffb14acd3bcf97b72367b0ff13fdeb92c96c6345f4054 SHA512 d517310616c795ca100664ecbc1cc291e89ed9bb2e513d29e57ebc4b1f2b5668f8f304d15b977ed63a9629682f4742fd9e206edc1144ed0bb6cd526d19b819b7

View File

@@ -1,75 +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

View File

@@ -1,24 +0,0 @@
--- fprintd-v1.90.8/meson.build.orig 2020-12-13 08:08:13.886367478 +0100
+++ fprintd-v1.90.8/meson.build 2020-12-13 08:30:16.056756878 +0100
@@ -84,7 +84,7 @@
libfprint_dep = dependency('libfprint-2', version: '>=' + libfprint_min_version)
polkit_gobject_dep = dependency('polkit-gobject-1', version: '>= 0.91')
dbus_dep = dependency('dbus-1', required: false)
-libsystemd_dep = dependency('libsystemd', required: get_option('pam'))
+libsystemd_dep = dependency(get_option('libsystemd'), required: get_option('pam'))
pam_dep = cc.find_library('pam',
required: get_option('pam'),
has_headers: 'security/pam_modules.h',
--- fprintd-v1.90.8/meson_options.txt.orig 2020-12-13 08:08:13.886367478 +0100
+++ fprintd-v1.90.8/meson_options.txt 2020-12-13 08:26:57.111919403 +0100
@@ -10,6 +10,10 @@
description: 'Install system service files',
type: 'boolean',
value: true)
+option('libsystemd',
+ description: 'Libsystemd provider (libsystemd or libelogind)',
+ type: 'string',
+ value: 'libsystemd')
option('systemd_system_unit_dir',
description: 'Directory for systemd service files',
type: 'string')

View File

@@ -1,81 +0,0 @@
https://gitlab.freedesktop.org/libfprint/fprintd/-/merge_requests/199
From 494df63b916bbf3ebf5e0bfc843a1b5298de63b6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Zolt=C3=A1n=20B=C3=B6sz=C3=B6rm=C3=A9nyi?=
<zboszor@gmail.com>
Date: Thu, 30 Mar 2023 15:06:14 +0200
Subject: [PATCH] Make building tests optional
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Signed-off-by: Zoltán Böszörményi <zboszor@gmail.com>
---
meson.build | 10 +++++++++-
meson_options.txt | 4 ++++
2 files changed, 13 insertions(+), 1 deletion(-)
diff --git a/meson.build b/meson.build
index 859bcf2..2abdd1f 100644
--- a/meson.build
+++ b/meson.build
@@ -137,13 +137,16 @@ endif
polkit_policy_directory = polkit_gobject_dep.get_pkgconfig_variable('policydir')
# Tests dependencies
+if get_option('tests')
pam_wrapper_dep = dependency('pam_wrapper', required: false)
if get_option('pam') and not pam_wrapper_dep.found()
warning('Dependency "pam_wrapper" required by test suite not found')
endif
+endif
xmllint = find_program('xmllint', required: false)
python3 = find_program('python3') # No meson without it!
+if get_option('tests')
python3_test_modules = {
'cairo': true,
'dbus': true,
@@ -159,6 +162,7 @@ foreach module, required : python3_test_modules
warning('Python3 module \'' + module + '\' required by test suite not found')
endif
endforeach
+endif
cdata = configuration_data()
cdata.set_quoted('GETTEXT_PACKAGE', meson.project_name())
@@ -182,7 +186,9 @@ endif
if get_option('gtk_doc')
subdir('doc')
endif
-subdir('tests')
+if get_option('tests')
+ subdir('tests')
+endif
subdir('po')
output = []
@@ -205,6 +211,8 @@ 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'
+if get_option('tests')
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 286889e..73b28f2 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -28,3 +28,7 @@ option('gtk_doc',
type: 'boolean',
value: false,
description: 'Use gtk-doc to build documentation')
+option('tests',
+ type: 'boolean',
+ value: true,
+ description: 'Run tests')
--
GitLab

View File

@@ -1,101 +0,0 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..12} )
inherit meson pam python-any-r1 systemd
MY_P="${PN}-v${PV}"
DESCRIPTION="D-Bus service to access fingerprint readers"
HOMEPAGE="https://gitlab.freedesktop.org/libfprint/fprintd"
SRC_URI="https://gitlab.freedesktop.org/libfprint/${PN}/-/archive/v${PV}/${MY_P}.tar.bz2"
S="${WORKDIR}/${MY_P}"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~alpha amd64 arm arm64 ppc ppc64 ~riscv sparc x86"
IUSE="doc pam systemd test"
RESTRICT="!test? ( test )"
RDEPEND="
dev-libs/dbus-glib
dev-libs/glib:2
|| ( >=sys-auth/libfprint-1.94.0:2 >=sys-auth/libfprint-tod-1.94.2:2 )
sys-auth/polkit
pam? (
sys-libs/pam
systemd? ( sys-apps/systemd:= )
!systemd? ( sys-auth/elogind:= )
)
"
DEPEND="
${RDEPEND}
test? (
$(python_gen_any_dep '
dev-python/python-dbusmock[${PYTHON_USEDEP}]
dev-python/dbus-python[${PYTHON_USEDEP}]
dev-python/pycairo[${PYTHON_USEDEP}]
pam? ( sys-libs/pam_wrapper[${PYTHON_USEDEP}] )
')
)
"
BDEPEND="
dev-lang/perl
dev-util/gdbus-codegen
virtual/pkgconfig
doc? (
dev-libs/libxml2
dev-libs/libxslt
dev-util/gtk-doc
)
"
PATCHES=(
"${FILESDIR}/${PN}-1.90.7_0001-add-test-feature-and-make-tests-optional.patch"
"${FILESDIR}/${PN}-1.90.8_0002-add-configure-option-for-libsystemd-provider.patch"
)
python_check_deps() {
if use test; then
python_has_version -d "sys-libs/pam_wrapper[${PYTHON_USEDEP}]"
fi
python_has_version -d "dev-python/python-dbusmock[${PYTHON_USEDEP}]" &&
python_has_version -d "dev-python/dbus-python[${PYTHON_USEDEP}]" &&
python_has_version -d "dev-python/pycairo[${PYTHON_USEDEP}]"
}
pkg_setup() {
use test && python-any-r1_pkg_setup
}
src_configure() {
local emesonargs=(
$(meson_feature test)
$(meson_use pam)
-Dgtk_doc=$(usex doc true false)
-Dman=true
-Dsystemd_system_unit_dir=$(systemd_get_systemunitdir)
-Dpam_modules_dir=$(getpam_mod_dir)
-Dlibsystemd=$(usex systemd libsystemd libelogind)
)
meson_src_configure
}
src_install() {
meson_src_install
dodoc AUTHORS NEWS README TODO
newdoc pam/README README.pam_fprintd
}
pkg_postinst() {
elog "Please take a look at README.pam_fprintd for integration docs."
}

View File

@@ -1,100 +0,0 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..13} )
inherit meson pam python-any-r1 systemd
MY_P="${PN}-v${PV}"
DESCRIPTION="D-Bus service to access fingerprint readers"
HOMEPAGE="https://gitlab.freedesktop.org/libfprint/fprintd"
SRC_URI="https://gitlab.freedesktop.org/libfprint/${PN}/-/archive/v${PV}/${MY_P}.tar.bz2"
S="${WORKDIR}/${MY_P}"
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~sparc ~x86"
IUSE="doc pam selinux systemd test"
RESTRICT="!test? ( test )"
RDEPEND="
dev-libs/dbus-glib
dev-libs/glib:2
|| ( >=sys-auth/libfprint-1.94.0:2 >=sys-auth/libfprint-tod-1.94.2:2 )
sys-auth/polkit
pam? (
sys-libs/pam
systemd? ( sys-apps/systemd:= )
!systemd? ( sys-auth/elogind:= )
)
"
DEPEND="
${RDEPEND}
test? (
$(python_gen_any_dep '
dev-python/python-dbusmock[${PYTHON_USEDEP}]
dev-python/dbus-python[${PYTHON_USEDEP}]
dev-python/pycairo[${PYTHON_USEDEP}]
pam? ( sys-libs/pam_wrapper[${PYTHON_USEDEP}] )
')
)
"
BDEPEND="
dev-lang/perl
dev-util/gdbus-codegen
virtual/pkgconfig
doc? (
dev-libs/libxml2
dev-libs/libxslt
dev-util/gtk-doc
)
"
RDEPEND+=" selinux? ( sec-policy/selinux-fprintd )"
PATCHES=(
"${FILESDIR}/fprintd-1.94.3-test-optional.patch"
)
python_check_deps() {
if use test; then
python_has_version -d "sys-libs/pam_wrapper[${PYTHON_USEDEP}]"
fi
python_has_version -d "dev-python/python-dbusmock[${PYTHON_USEDEP}]" &&
python_has_version -d "dev-python/dbus-python[${PYTHON_USEDEP}]" &&
python_has_version -d "dev-python/pycairo[${PYTHON_USEDEP}]"
}
pkg_setup() {
use test && python-any-r1_pkg_setup
}
src_configure() {
local emesonargs=(
$(meson_use test tests)
$(meson_use pam)
-Dgtk_doc=$(usex doc true false)
-Dman=true
-Dsystemd_system_unit_dir=$(systemd_get_systemunitdir)
-Dpam_modules_dir=$(getpam_mod_dir)
-Dlibsystemd=$(usex systemd libsystemd libelogind)
)
meson_src_configure
}
src_install() {
meson_src_install
dodoc AUTHORS NEWS README TODO
newdoc pam/README README.pam_fprintd
}
pkg_postinst() {
elog "Please take a look at README.pam_fprintd for integration docs."
}

View File

@@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<upstream>
<remote-id type="freedesktop-gitlab">libfprint/fprintd</remote-id>
<bugs-to>https://gitlab.freedesktop.org/libfprint/fprintd/issues</bugs-to>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,2 @@
DIST libfprint-2-tod1-goodix_0.0.4-0ubuntu1somerville1.tar.gz 2089305 BLAKE2B a5576ebb5ed3b8ba8ca61929871e2cda46b8b022101193848676d7d5e776728b894ec5a56672f8dddc0b2896e794b478a920b916619556bc5a3da10e1ca6f917 SHA512 63afff1758c68b7987cde9a32d3a674e516d38787a89bad0eb0f8940e37e6c6683b4ada79fcc307c477eaeca69e659c9c882d8a0b417fcedfe20acb615c476c6
DIST libfprint-2-tod1-goodix_0.0.6.orig.tar.gz 654776 BLAKE2B 1329b320dfa4ed434b7dd0bbc019fe8086cd53a373df2627f1170d650c65f86db583e02eb16e43755a3f06d4729701ad019b3212cc7a77ffe15b2f88d646aed5 SHA512 f16df19a8c0dad93278f0ff1d6136030d0dca374effb627a8202d24077564712e33606c52b008c6696724c955bb14e5b978566a3d7db2d28e112a38965ad8c97

View File

@@ -0,0 +1,37 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit udev
DESCRIPTION="Goodix driver module for libfprint-2 Touch OEM Driver"
HOMEPAGE="https://git.launchpad.net/libfprint-2-tod1-goodix/"
SRC_URI="http://dell.archive.canonical.com/updates/pool/public/libf/libfprint-2-tod1-goodix/libfprint-2-tod1-goodix_${PV}-0ubuntu1somerville1.tar.gz"
LICENSE="Goodix"
SLOT="0"
S="${WORKDIR}/libfprint-2-tod1-goodix"
KEYWORDS="~amd64"
RESTRICT="bindist mirror"
QA_PREBUILT="*"
RDEPEND="
dev-libs/openssl:0/3
sys-auth/libfprint[tod(-)]
"
src_install() {
udev_dorules lib/udev/rules.d/60-libfprint-2-tod1-goodix.rules
exeinto usr/$(get_libdir)/libfprint-2/tod-1/
doexe usr/lib/x86_64-linux-gnu/libfprint-2/tod-1/libfprint-tod-goodix-53xc-${PV}.so
}
pkg_postinst() {
udev_reload
}
pkg_postrm() {
udev_reload
}

View File

@@ -0,0 +1,37 @@
# Copyright 2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit udev
DESCRIPTION="Goodix driver module for libfprint-2 Touch OEM Driver"
HOMEPAGE="https://git.launchpad.net/libfprint-2-tod1-goodix/"
SRC_URI="http://dell.archive.canonical.com/updates/pool/public/libf/libfprint-2-tod1-goodix/libfprint-2-tod1-goodix_${PV}.orig.tar.gz"
LICENSE="Goodix"
SLOT="0"
S="${WORKDIR}/libfprint-2-tod1-goodix"
KEYWORDS="~amd64"
RESTRICT="bindist mirror"
QA_PREBUILT="*"
RDEPEND="
dev-libs/openssl:0/3
sys-auth/libfprint[tod(-)]
"
src_install() {
udev_dorules lib/udev/rules.d/60-libfprint-2-tod1-goodix.rules
exeinto usr/$(get_libdir)/libfprint-2/tod-1/
doexe usr/lib/x86_64-linux-gnu/libfprint-2/tod-1/libfprint-tod-goodix-53xc-${PV}.so
}
pkg_postinst() {
udev_reload
}
pkg_postrm() {
udev_reload
}

View File

@@ -1,2 +0,0 @@
DIST libfprint-tod-goodix-53xc-0.0.4.so 1347136 BLAKE2B cc2cda5d8e3422d41c16916f674abee78101796bed71f86eefef1bb7cbdbcd761f3763c392baecb0a2b638bb45b0bedb4e07a84d68853fcb05b2ae8716fd13e0 SHA512 d92be0f5882e246cf80465f8017e334fdbe7141d504b1b8501705d5dfec128728d14d45c99ec4de3adb34eae41f2b07a083f7c0c1d9f27f9b74f7a9e0f7c9ebf
DIST libfprint-tod-goodix-53xc-0.0.6.so 1351416 BLAKE2B a603ffd95b82198a288fab0540a57f2c81bbc2c11de79393276f0362ea0c4958bfec054279900d67368f3a70e18c408a43d9fb65bfb217cc636e9bf0b46985a7 SHA512 adb9de60bf50a2d8ac9770a551e63690bf420afa594a3fd1d9424f1b63d9a7694256775d7c6e97a4b5ef5077b102894592e63b24534d55bc1e461bd0895be22f

View File

@@ -1,9 +0,0 @@
# Goodix Fingerprint Sensor
SUBSYSTEM=="usb", ATTRS{idVendor}=="27c6", ATTRS{idProduct}=="538c", ATTRS{dev}=="*", TEST=="power/control", ATTR{power/control}="auto", MODE="0660", GROUP="plugdev"
SUBSYSTEM=="usb", ATTRS{idVendor}=="27c6", ATTRS{idProduct}=="538c", ENV{LIBFPRINT_DRIVER}="Goodix Fingerprint Sensor"
SUBSYSTEM=="usb", ATTRS{idVendor}=="27c6", ATTRS{idProduct}=="533c", ATTRS{dev}=="*", TEST=="power/control", ATTR{power/control}="auto", MODE="0660", GROUP="plugdev"
SUBSYSTEM=="usb", ATTRS{idVendor}=="27c6", ATTRS{idProduct}=="533c", ENV{LIBFPRINT_DRIVER}="Goodix Fingerprint Sensor"
SUBSYSTEM=="usb", ATTRS{idVendor}=="27c6", ATTRS{idProduct}=="530c", ATTRS{dev}=="*", TEST=="power/control", ATTR{power/control}="auto", MODE="0660", GROUP="plugdev"
SUBSYSTEM=="usb", ATTRS{idVendor}=="27c6", ATTRS{idProduct}=="530c", ENV{LIBFPRINT_DRIVER}="Goodix Fingerprint Sensor"
SUBSYSTEM=="usb", ATTRS{idVendor}=="27c6", ATTRS{idProduct}=="5840", ATTRS{dev}=="*", TEST=="power/control", ATTR{power/control}="auto", MODE="0660", GROUP="plugdev"
SUBSYSTEM=="usb", ATTRS{idVendor}=="27c6", ATTRS{idProduct}=="5840", ENV{LIBFPRINT_DRIVER}="Goodix Fingerprint Sensor"

View File

@@ -1,41 +0,0 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit udev
DESCRIPTION="Goodix driver module for libfprint-2 Touch OEM Driver"
HOMEPAGE="https://git.launchpad.net/~oem-solutions-engineers/libfprint-2-tod1-goodix"
SRC_URI="
https://git.launchpad.net/~oem-solutions-engineers/libfprint-2-tod1-goodix/plain/usr/lib/x86_64-linux-gnu/libfprint-2/tod-1/${PN/-drivers/}-53xc-${PV}.so?id=8ec36981e28288f3e895946528eded0e09831de6
-> ${PN/-drivers/}-53xc-${PV}.so
"
S="${WORKDIR}"
LICENSE="Goodix"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="
sys-auth/libfprint-tod:2
"
RDEPEND="
${DEPEND}
acct-group/plugdev
"
RESTRICT="strip"
src_unpack() {
:
}
src_install() {
insopts -m0755
insinto /usr/$(get_libdir)/libfprint-2/tod-1
doins "${DISTDIR}"/libfprint-tod-goodix-53xc-${PV}.so
udev_newrules "${FILESDIR}"/60-libfprint-2-tod1-goodix.rules 60-libfprint-2-tod1-goodix.rules
}

View File

@@ -1,41 +0,0 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit udev
DESCRIPTION="Goodix driver module for libfprint-2 Touch OEM Driver"
HOMEPAGE="https://git.launchpad.net/~oem-solutions-engineers/libfprint-2-tod1-goodix"
SRC_URI="
https://git.launchpad.net/~oem-solutions-engineers/libfprint-2-tod1-goodix/plain/usr/lib/x86_64-linux-gnu/libfprint-2/tod-1/${PN/-drivers/}-53xc-${PV}.so?id=f17770af882d9b13832f16c77d739aa5387e2545
-> ${PN/-drivers/}-53xc-${PV}.so
"
S="${WORKDIR}"
LICENSE="Goodix"
SLOT="0"
KEYWORDS="~amd64"
DEPEND="
sys-auth/libfprint-tod:2
"
RDEPEND="
${DEPEND}
acct-group/plugdev
"
RESTRICT="strip"
src_unpack() {
:
}
src_install() {
insopts -m0755
insinto /usr/$(get_libdir)/libfprint-2/tod-1
doins "${DISTDIR}"/libfprint-tod-goodix-53xc-${PV}.so
udev_newrules "${FILESDIR}"/60-libfprint-2-tod1-goodix.rules 60-libfprint-2-tod1-goodix.rules
}

View File

@@ -1,2 +0,0 @@
DIST libfprint-tod-1.94.8.tar.bz2 9277760 BLAKE2B bc6e5a2ffc57a9674f60303b1caec3be3a57a8cebb1340d2dd8ef6499e1f25dff35bddece683168655687d284046d4bc85dfa1746c9b28fc218fd99686ec2b9c SHA512 58d4a11514755e0e981bb42f7927d507e1fbc9115914ee973aff55d39a3a58df167d065037d163d03d6297355d7b73163767aa6a0bbcee35b220304e4d56157c
DIST libfprint-tod-1.94.9.tar.bz2 9291260 BLAKE2B 152cacd41a0317cda8b38b40922d018633088d77b61c17fc1655548181de60c18a3191ae984a97ebcc764d21115f7f7f919c018a6c4ee98c3a3484b21baa6cbd SHA512 5420ce7da8bc49630f428083dc9c774786ced7920dc472602f363d73da639bdd34380c7c0299160a13ada23a740957dccadfeae6526e2840b5dceac61531246d

View File

@@ -1,194 +0,0 @@
From 17cbe376872d8a0f579a0497942a5d2f19facaf5 Mon Sep 17 00:00:00 2001
From: Mikle Kolyada <zlogene@gentoo.org>
Date: Sun, 2 Sep 2018 17:20:03 +0300
Subject: [PATCH] Fix implicit declaration warnings
---
libfprint/drivers/aes1610.c | 2 ++
libfprint/drivers/aes2501.c | 2 ++
libfprint/drivers/aes2550.c | 2 ++
libfprint/drivers/aesx660.c | 2 ++
libfprint/drivers/etes603.c | 2 ++
libfprint/drivers/upeksonly.c | 2 ++
libfprint/drivers/upektc.c | 2 ++
libfprint/drivers/upektc_img.c | 2 ++
libfprint/drivers/upekts.c | 2 ++
libfprint/drivers/vfs0050.c | 2 ++
libfprint/drivers/vfs101.c | 3 +++
libfprint/drivers/vfs301.c | 3 +++
libfprint/drivers/vfs5011.c | 2 ++
13 files changed, 28 insertions(+)
diff --git a/libfprint/drivers/aes1610.c b/libfprint/drivers/aes1610.c
index f307a3b..9dc3383 100644
--- a/libfprint/drivers/aes1610.c
+++ b/libfprint/drivers/aes1610.c
@@ -25,6 +25,8 @@
#define FP_COMPONENT "aes1610"
+#include <string.h>
+
#include "drivers_api.h"
#include "aeslib.h"
diff --git a/libfprint/drivers/aes2501.c b/libfprint/drivers/aes2501.c
index 87879a4..caaf3ea 100644
--- a/libfprint/drivers/aes2501.c
+++ b/libfprint/drivers/aes2501.c
@@ -23,6 +23,8 @@
#define FP_COMPONENT "aes2501"
+#include <string.h>
+
#include "drivers_api.h"
#include "aeslib.h"
#include "aes2501.h"
diff --git a/libfprint/drivers/aes2550.c b/libfprint/drivers/aes2550.c
index ab4acaa..c838e54 100644
--- a/libfprint/drivers/aes2550.c
+++ b/libfprint/drivers/aes2550.c
@@ -23,6 +23,8 @@
#define FP_COMPONENT "aes2550"
+#include <string.h>
+
#include "drivers_api.h"
#include "aes2550.h"
#include "aeslib.h"
diff --git a/libfprint/drivers/aesx660.c b/libfprint/drivers/aesx660.c
index e443e21..17c0245 100644
--- a/libfprint/drivers/aesx660.c
+++ b/libfprint/drivers/aesx660.c
@@ -23,6 +23,8 @@
#define FP_COMPONENT "aesX660"
+#include <string.h>
+
#include "drivers_api.h"
#include "aeslib.h"
#include "aesx660.h"
diff --git a/libfprint/drivers/etes603.c b/libfprint/drivers/etes603.c
index fdaf7f2..0782f9e 100644
--- a/libfprint/drivers/etes603.c
+++ b/libfprint/drivers/etes603.c
@@ -35,6 +35,8 @@
#define FP_COMPONENT "etes603"
+#include <string.h>
+
#include "drivers_api.h"
#include "driver_ids.h"
diff --git a/libfprint/drivers/upeksonly.c b/libfprint/drivers/upeksonly.c
index 9cccb86..e035408 100644
--- a/libfprint/drivers/upeksonly.c
+++ b/libfprint/drivers/upeksonly.c
@@ -25,6 +25,8 @@
#define FP_COMPONENT "upeksonly"
+#include <string.h>
+
#include "drivers_api.h"
#include "upeksonly.h"
diff --git a/libfprint/drivers/upektc.c b/libfprint/drivers/upektc.c
index ffa31f3..e4d7de5 100644
--- a/libfprint/drivers/upektc.c
+++ b/libfprint/drivers/upektc.c
@@ -20,6 +20,8 @@
#define FP_COMPONENT "upektc"
+#include <string.h>
+
#include "drivers_api.h"
#include "upektc.h"
diff --git a/libfprint/drivers/upektc_img.c b/libfprint/drivers/upektc_img.c
index f0f2f18..a500623 100644
--- a/libfprint/drivers/upektc_img.c
+++ b/libfprint/drivers/upektc_img.c
@@ -19,6 +19,8 @@
#define FP_COMPONENT "upektc_img"
+#include <string.h>
+
#include "drivers_api.h"
#include "aeslib.h"
#include "upektc_img.h"
diff --git a/libfprint/drivers/upekts.c b/libfprint/drivers/upekts.c
index b448e36..1094e66 100644
--- a/libfprint/drivers/upekts.c
+++ b/libfprint/drivers/upekts.c
@@ -27,6 +27,8 @@
#define FP_COMPONENT "upekts"
+#include <string.h>
+
#include "drivers_api.h"
#define EP_IN (1 | LIBUSB_ENDPOINT_IN)
diff --git a/libfprint/drivers/vfs0050.c b/libfprint/drivers/vfs0050.c
index dcf5d69..60a720e 100644
--- a/libfprint/drivers/vfs0050.c
+++ b/libfprint/drivers/vfs0050.c
@@ -19,6 +19,8 @@
#define FP_COMPONENT "vfs0050"
+#include <string.h>
+
#include "drivers_api.h"
#include "vfs0050.h"
diff --git a/libfprint/drivers/vfs101.c b/libfprint/drivers/vfs101.c
index 3304b1f..473adf2 100644
--- a/libfprint/drivers/vfs101.c
+++ b/libfprint/drivers/vfs101.c
@@ -19,6 +19,9 @@
#define FP_COMPONENT "vfs101"
+#include <stdlib.h>
+#include <string.h>
+
#include "drivers_api.h"
/* Input-Output usb endpoint */
diff --git a/libfprint/drivers/vfs301.c b/libfprint/drivers/vfs301.c
index a34ee31..6f52316 100644
--- a/libfprint/drivers/vfs301.c
+++ b/libfprint/drivers/vfs301.c
@@ -21,6 +21,9 @@
#define FP_COMPONENT "vfs301"
+#include <stdlib.h>
+#include <string.h>
+
#include "drivers_api.h"
#include "vfs301_proto.h"
diff --git a/libfprint/drivers/vfs5011.c b/libfprint/drivers/vfs5011.c
index 8b460ac..1355394 100644
--- a/libfprint/drivers/vfs5011.c
+++ b/libfprint/drivers/vfs5011.c
@@ -18,6 +18,8 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <string.h>
+
#include "drivers_api.h"
#include "vfs5011_proto.h"
--
2.16.4

View File

@@ -1,55 +0,0 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson udev
DESCRIPTION="light fork of libfprint to expose internal Drivers API"
HOMEPAGE="https://gitlab.freedesktop.org/3v1n0/libfprint/-/tree/tod/"
SRC_URI="https://gitlab.freedesktop.org/3v1n0/libfprint/-/archive/v${PV}+tod1/libfprint-v${PV}+tod1.tar.bz2 -> ${P}.tar.bz2"
S="${WORKDIR}/${PN/-tod/}-v${PV}+tod1"
LICENSE="LGPL-2.1+"
SLOT="2"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="examples gtk-doc +introspection"
RDEPEND="
dev-libs/glib:2
dev-libs/libgudev
dev-libs/libgusb
dev-libs/nss
virtual/libusb:1=
x11-libs/gtk+:3
x11-libs/libX11
x11-libs/libXv
x11-libs/pixman
!>=sys-auth/libfprint-1.90:0
"
DEPEND="${RDEPEND}"
BDEPEND="
virtual/pkgconfig
gtk-doc? ( dev-util/gtk-doc )
introspection? ( dev-libs/gobject-introspection )
"
PATCHES=( "${FILESDIR}"/${PN/-tod/}-0.8.2-fix-implicit-declaration.patch )
src_configure() {
local emesonargs=(
$(meson_use examples gtk-examples)
$(meson_use gtk-doc doc)
$(meson_use introspection)
-Dtod=true
-Ddrivers=all
-Dudev_rules=enabled
-Dudev_rules_dir=$(get_udevdir)/rules.d
--libdir=/usr/$(get_libdir)
)
meson_src_configure
}

View File

@@ -1,55 +0,0 @@
# Copyright 2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson udev
DESCRIPTION="light fork of libfprint to expose internal Drivers API"
HOMEPAGE="https://gitlab.freedesktop.org/3v1n0/libfprint/-/tree/tod/"
SRC_URI="https://gitlab.freedesktop.org/3v1n0/libfprint/-/archive/v${PV}+tod1/libfprint-v${PV}+tod1.tar.bz2 -> ${P}.tar.bz2"
S="${WORKDIR}/${PN/-tod/}-v${PV}+tod1"
LICENSE="LGPL-2.1+"
SLOT="2"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86"
IUSE="examples gtk-doc +introspection"
RDEPEND="
dev-libs/glib:2
dev-libs/libgudev
dev-libs/libgusb
dev-libs/nss
virtual/libusb:1=
x11-libs/gtk+:3
x11-libs/libX11
x11-libs/libXv
x11-libs/pixman
!>=sys-auth/libfprint-1.90:0
"
DEPEND="${RDEPEND}"
BDEPEND="
virtual/pkgconfig
gtk-doc? ( dev-util/gtk-doc )
introspection? ( dev-libs/gobject-introspection )
"
PATCHES=( "${FILESDIR}"/${PN/-tod/}-0.8.2-fix-implicit-declaration.patch )
src_configure() {
local emesonargs=(
$(meson_use examples gtk-examples)
$(meson_use gtk-doc doc)
$(meson_use introspection)
-Dtod=true
-Ddrivers=all
-Dudev_rules=enabled
-Dudev_rules_dir=$(get_udevdir)/rules.d
--libdir=/usr/$(get_libdir)
)
meson_src_configure
}

View File

@@ -1,12 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<name>David GUGLIELMI</name>
<email>david.guglielmi@gmail.com</email>
</maintainer>
<upstream>
<remote-id type="freedesktop-gitlab">3v1n0/libfprint</remote-id>
<bugs-to>https://gitlab.freedesktop.org/3v1n0/libfprint/-/issues</bugs-to>
</upstream>
</pkgmetadata>