[gentoo-commits] repo/gentoo:master commit in: sys-auth/libfprint/files/, sys-auth/libfprint/

2021-11-19 Thread Marek Szuba
commit: 1ab901e96dcdb173ccc09ced723e58257ea2597d
Author: Marek Szuba  gentoo  org>
AuthorDate: Fri Nov 19 22:44:02 2021 +
Commit: Marek Szuba  gentoo  org>
CommitDate: Sat Nov 20 00:52:57 2021 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1ab901e9

sys-auth/libfprint-1.94.1-r1: increase timeout threshold for some tests

Signed-off-by: Marek Szuba  gentoo.org>

 .../libfprint/files/libfprint-1.94.1-test-timeout.patch   | 15 +++
 sys-auth/libfprint/libfprint-1.94.1-r1.ebuild |  5 -
 2 files changed, 19 insertions(+), 1 deletion(-)

diff --git a/sys-auth/libfprint/files/libfprint-1.94.1-test-timeout.patch 
b/sys-auth/libfprint/files/libfprint-1.94.1-test-timeout.patch
new file mode 100644
index ..cc5080e2a140
--- /dev/null
+++ b/sys-auth/libfprint/files/libfprint-1.94.1-test-timeout.patch
@@ -0,0 +1,15 @@
+Although most libfprint tests are vert quick, several of the VirtualImage
+ones come very close to the default time-out threshold of 30 seconds.
+Increase the relevant threshold to 45 seconds to make those tests less
+sensitive to CPU frequency, system load etc.
+
+--- a/tests/meson.build
 b/tests/meson.build
+@@ -88,6 +88,7 @@
+ suite: ut_suite,
+ depends: libfprint_typelib,
+ env: envs,
++timeout: 45,
+ )
+ endforeach
+ else

diff --git a/sys-auth/libfprint/libfprint-1.94.1-r1.ebuild 
b/sys-auth/libfprint/libfprint-1.94.1-r1.ebuild
index 3b98a35777fd..88248d7fdd71 100644
--- a/sys-auth/libfprint/libfprint-1.94.1-r1.ebuild
+++ b/sys-auth/libfprint/libfprint-1.94.1-r1.ebuild
@@ -35,7 +35,10 @@ BDEPEND="
introspection? ( dev-libs/gobject-introspection )
 "
 
-PATCHES=( ${FILESDIR}/${PN}-0.8.2-fix-implicit-declaration.patch )
+PATCHES=(
+   "${FILESDIR}"/${PN}-0.8.2-fix-implicit-declaration.patch
+   "${FILESDIR}"/${PN}-1.94.1-test-timeout.patch
+)
 
 src_configure() {
local emesonargs=(



[gentoo-commits] repo/gentoo:master commit in: sys-auth/libfprint/files/, sys-auth/libfprint/

2019-05-21 Thread Mikle Kolyada
commit: dcb243893ca57b491bf1dfdb23b266365df00cbf
Author: Mikle Kolyada  gentoo  org>
AuthorDate: Tue May 21 19:39:07 2019 +
Commit: Mikle Kolyada  gentoo  org>
CommitDate: Tue May 21 19:39:07 2019 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dcb24389

sys-auth/libfprint: Drop old

Signed-off-by: Mikle Kolyada  gentoo.org>
Package-Manager: Portage-2.3.62, Repoman-2.3.11

 sys-auth/libfprint/Manifest|  2 -
 .../files/libfprint-0.6.0-fix-udev-rules.patch | 23 -
 sys-auth/libfprint/libfprint-0.6.0-r2.ebuild   | 59 --
 3 files changed, 84 deletions(-)

diff --git a/sys-auth/libfprint/Manifest b/sys-auth/libfprint/Manifest
index 1b3ff85a28d..53cd28195cd 100644
--- a/sys-auth/libfprint/Manifest
+++ b/sys-auth/libfprint/Manifest
@@ -1,3 +1 @@
-DIST libfprint-0.6.0.tar.bz2 323590 BLAKE2B 
8a592241ded8826337db075dd26960a9712e1a01855c6fd2c461b73ea6e2fac5248bce16165144b48271b368d0b2a82963eab00a64a88c27539e19aee54b9ba4
 SHA512 
2ab9ceec0c357779c94d3b8e94c11a733825bd735bec0e5c762d215d69bf295da0c5db7fd365e2a7efdcf2574371f793b5e99d5c98e1bf9dcb1170e10ef9
-DIST libfprint-0.6.0_vfs0050.patch.gz 9944 BLAKE2B 
b53a74f64c9691cee7c4e7f2f54afcffe2b00b63914900ed107426a9e42721548caa1ec80e1e39251ee6a0daec6ecf7f80d6704d37bc984dd1ac76320d0b4256
 SHA512 
658f936c462cf50d4325d33da6c8298768dfbe4bf442933fc197c8f4bebd741ef6878bcfe123606790c3ddcc3e217fd5f97b3755d36b181c5837dc28e146d674
 DIST libfprint-0.99.0.tar.gz 473925 BLAKE2B 
799e3600393e4b25f7b0685ff0456ca391e5fcaef36e5b4475371cd07c848e40820dbbdc5a241fe11c6ee08b818380967129f85e177b5d8714b9dbc4d7b68ea1
 SHA512 
eca1d45baa23b7db1fcc5d7a9a396fe504aadc6ec2e68da32b5415fb0fff1227566d579271e0b34895ce7f3baa55314a0ccd20bb8c4adba253063b7b61284748

diff --git a/sys-auth/libfprint/files/libfprint-0.6.0-fix-udev-rules.patch 
b/sys-auth/libfprint/files/libfprint-0.6.0-fix-udev-rules.patch
deleted file mode 100644
index 128ac8ce311..000
--- a/sys-auth/libfprint/files/libfprint-0.6.0-fix-udev-rules.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-Remove spurious \n to fix udev rule generation
-
-Steven Newbury :
-libfprint generates 60-fprint-autosuspend.rules for all supported devices, 
-however there's a spurious \n before the ', MODE="0666"' which results in it 
-appearing on a new line after the match criteria.  At least on current 
-systemd/udev this results in MODE="0666" being applied unconditionally to all 
-device nodes.  This is an extremely serious security problem and effectively 
-gives root access to all users simply by having the ebuild emerged.
-
-https://bugs.gentoo.org/562218
-
 a/libfprint/fprint-list-udev-rules.c
-+++ b/libfprint/fprint-list-udev-rules.c
-@@ -74,7 +74,7 @@
-   if (num_printed == 0)
-   printf ("# %s\n", driver->full_name);
- 
--  printf ("SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"%04x\", 
ATTRS{idProduct}==\"%04x\", ATTRS{dev}==\"*\", TEST==\"power/control\", 
ATTR{power/control}=\"auto\"\n, MODE=\"0666\"\n", driver->id_table[i].vendor, 
driver->id_table[i].product);
-+  printf ("SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"%04x\", 
ATTRS{idProduct}==\"%04x\", ATTRS{dev}==\"*\", TEST==\"power/control\", 
ATTR{power/control}=\"auto\", MODE=\"0666\"\n", driver->id_table[i].vendor, 
driver->id_table[i].product);
-   printf ("SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"%04x\", 
ATTRS{idProduct}==\"%04x\", ENV{LIBFPRINT_DRIVER}=\"%s\"\n", 
driver->id_table[i].vendor, driver->id_table[i].product, driver->full_name);
-   num_printed++;
- }

diff --git a/sys-auth/libfprint/libfprint-0.6.0-r2.ebuild 
b/sys-auth/libfprint/libfprint-0.6.0-r2.ebuild
deleted file mode 100644
index 73bc12900ff..000
--- a/sys-auth/libfprint/libfprint-0.6.0-r2.ebuild
+++ /dev/null
@@ -1,59 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=6
-
-inherit autotools eutils udev vcs-snapshot
-
-MY_PV="V_${PV//./_}"
-DESCRIPTION="library to add support for consumer fingerprint readers"
-HOMEPAGE="https://cgit.freedesktop.org/libfprint/libfprint/;
-SRC_URI="https://cgit.freedesktop.org/${PN}/${PN}/snapshot/${MY_PV}.tar.bz2 -> 
${P}.tar.bz2
-   https://dev.gentoo.org/~xmw/${P}_vfs0050.patch.gz;
-
-LICENSE="LGPL-2.1"
-SLOT="0"
-KEYWORDS="alpha amd64 arm ia64 ppc ppc64 sparc x86"
-IUSE="debug static-libs vanilla"
-
-RDEPEND="virtual/libusb:1
-   dev-libs/glib:2
-   dev-libs/nss
-   x11-libs/pixman"
-DEPEND="${RDEPEND}
-   virtual/pkgconfig"
-
-PATCHES=(
-   "${FILESDIR}/${P}-fix-udev-rules.patch"
-)
-
-src_prepare() {
-   if ! use vanilla ; then
-   eapply "${WORKDIR}"/${P}_vfs0050.patch
-   fi
-
-   default
-
-   # upeke2 and fdu2000 were missing from all_drivers.
-   sed -e '/^all_drivers=/s:"$: upeke2 fdu2000":' \
-   -i configure.ac || die
-
-   eautoreconf
-}
-
-src_configure() {
-   econf \
-   

[gentoo-commits] repo/gentoo:master commit in: sys-auth/libfprint/files/, sys-auth/libfprint/

2018-09-02 Thread Mikle Kolyada
commit: b0cc774cd0ea9c63eb61c69d373998420e1fcc72
Author: Mikle Kolyada  gentoo  org>
AuthorDate: Sun Sep  2 15:16:00 2018 +
Commit: Mikle Kolyada  gentoo  org>
CommitDate: Sun Sep  2 15:16:00 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0cc774c

sys-auth/libfprint: Version bump (v0.8.2)

- migrate to meson
- make functions call explicit

Closes: https://bugs.gentoo.org/634242
Package-Manager: Portage-2.3.40, Repoman-2.3.9

 sys-auth/libfprint/Manifest|   1 +
 .../libfprint-0.8.2-fix-implicit-declaration.patch | 194 +
 sys-auth/libfprint/libfprint-0.8.2.ebuild  |  42 +
 sys-auth/libfprint/metadata.xml|   2 +-
 4 files changed, 238 insertions(+), 1 deletion(-)

diff --git a/sys-auth/libfprint/Manifest b/sys-auth/libfprint/Manifest
index d1826472c23..ddc840b3b2e 100644
--- a/sys-auth/libfprint/Manifest
+++ b/sys-auth/libfprint/Manifest
@@ -4,3 +4,4 @@ DIST libfprint-0.5.1-add-vfs5011-driver.patch 338763 BLAKE2B 
e86e22f76f0a261e6f4
 DIST libfprint-0.5.1.tar.bz2 277342 BLAKE2B 
ebf653f147d3c75ab9885ffc4a30fb07235ba80cf2fc1dfaa2db6e9b9afa52b20a9c4ec8d73fb15089731d20a6945b1e9920096ffbc7f9dadba88068efa7958e
 SHA512 
e1596e28f2730501b5957d2b4365f8eead7c0941434d064ceb6e5321d0e8495e71ab576b214881441bf1abc6ecba2b3ffafe5027f738f80c8c38b4e95866c8c7
 DIST libfprint-0.6.0.tar.bz2 323590 BLAKE2B 
8a592241ded8826337db075dd26960a9712e1a01855c6fd2c461b73ea6e2fac5248bce16165144b48271b368d0b2a82963eab00a64a88c27539e19aee54b9ba4
 SHA512 
2ab9ceec0c357779c94d3b8e94c11a733825bd735bec0e5c762d215d69bf295da0c5db7fd365e2a7efdcf2574371f793b5e99d5c98e1bf9dcb1170e10ef9
 DIST libfprint-0.6.0_vfs0050.patch.gz 9944 BLAKE2B 
b53a74f64c9691cee7c4e7f2f54afcffe2b00b63914900ed107426a9e42721548caa1ec80e1e39251ee6a0daec6ecf7f80d6704d37bc984dd1ac76320d0b4256
 SHA512 
658f936c462cf50d4325d33da6c8298768dfbe4bf442933fc197c8f4bebd741ef6878bcfe123606790c3ddcc3e217fd5f97b3755d36b181c5837dc28e146d674
+DIST libfprint-0.8.2.tar.gz 418437 BLAKE2B 
396fee3b84958f273462fe92553a6a2dbefcadfc54c56531855fcef94613cd03ba68705585802992f86aa8175cb7dda0e80e96931de4a11da973b1f9ce2c4777
 SHA512 
56f7927adcb40866bfef67624221b921ba3d68e770e707c432f47c0bb1f5e233fd2427bacb448544167257b6ad9edf9008a188f408142288f4dbfee2115e9a8f

diff --git 
a/sys-auth/libfprint/files/libfprint-0.8.2-fix-implicit-declaration.patch 
b/sys-auth/libfprint/files/libfprint-0.8.2-fix-implicit-declaration.patch
new file mode 100644
index 000..15b49597238
--- /dev/null
+++ b/sys-auth/libfprint/files/libfprint-0.8.2-fix-implicit-declaration.patch
@@ -0,0 +1,194 @@
+From 17cbe376872d8a0f579a0497942a5d2f19facaf5 Mon Sep 17 00:00:00 2001
+From: Mikle Kolyada 
+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 
++
+ #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 
++
+ #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 
++
+ #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 
++
+ #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 
++
+ #include "drivers_api.h"
+ #include "driver_ids.h"
+ 
+diff --git a/libfprint/drivers/upeksonly.c 

[gentoo-commits] repo/gentoo:master commit in: sys-auth/libfprint/files/, sys-auth/libfprint/

2016-02-16 Thread Lars Wendler
commit: 7c64231d37ba906f77ddc02e8f67b6d784e69b1f
Author: Lars Wendler  gentoo  org>
AuthorDate: Tue Feb 16 20:57:56 2016 +
Commit: Lars Wendler  gentoo  org>
CommitDate: Tue Feb 16 20:57:56 2016 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c64231d

sys-auth/libfprint: Security revbump fixing broken udev rule (bug #562218).

Package-Manager: portage-2.2.27
Signed-off-by: Lars Wendler  gentoo.org>

 .../files/libfprint-0.6.0-fix-udev-rules.patch | 23 +
 sys-auth/libfprint/libfprint-0.6.0-r2.ebuild   | 60 ++
 2 files changed, 83 insertions(+)

diff --git a/sys-auth/libfprint/files/libfprint-0.6.0-fix-udev-rules.patch 
b/sys-auth/libfprint/files/libfprint-0.6.0-fix-udev-rules.patch
new file mode 100644
index 000..128ac8c
--- /dev/null
+++ b/sys-auth/libfprint/files/libfprint-0.6.0-fix-udev-rules.patch
@@ -0,0 +1,23 @@
+Remove spurious \n to fix udev rule generation
+
+Steven Newbury :
+libfprint generates 60-fprint-autosuspend.rules for all supported devices, 
+however there's a spurious \n before the ', MODE="0666"' which results in it 
+appearing on a new line after the match criteria.  At least on current 
+systemd/udev this results in MODE="0666" being applied unconditionally to all 
+device nodes.  This is an extremely serious security problem and effectively 
+gives root access to all users simply by having the ebuild emerged.
+
+https://bugs.gentoo.org/562218
+
+--- a/libfprint/fprint-list-udev-rules.c
 b/libfprint/fprint-list-udev-rules.c
+@@ -74,7 +74,7 @@
+   if (num_printed == 0)
+   printf ("# %s\n", driver->full_name);
+ 
+-  printf ("SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"%04x\", 
ATTRS{idProduct}==\"%04x\", ATTRS{dev}==\"*\", TEST==\"power/control\", 
ATTR{power/control}=\"auto\"\n, MODE=\"0666\"\n", driver->id_table[i].vendor, 
driver->id_table[i].product);
++  printf ("SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"%04x\", 
ATTRS{idProduct}==\"%04x\", ATTRS{dev}==\"*\", TEST==\"power/control\", 
ATTR{power/control}=\"auto\", MODE=\"0666\"\n", driver->id_table[i].vendor, 
driver->id_table[i].product);
+   printf ("SUBSYSTEM==\"usb\", ATTRS{idVendor}==\"%04x\", 
ATTRS{idProduct}==\"%04x\", ENV{LIBFPRINT_DRIVER}=\"%s\"\n", 
driver->id_table[i].vendor, driver->id_table[i].product, driver->full_name);
+   num_printed++;
+ }

diff --git a/sys-auth/libfprint/libfprint-0.6.0-r2.ebuild 
b/sys-auth/libfprint/libfprint-0.6.0-r2.ebuild
new file mode 100644
index 000..4597a21
--- /dev/null
+++ b/sys-auth/libfprint/libfprint-0.6.0-r2.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+inherit autotools eutils udev vcs-snapshot
+
+MY_PV="V_${PV//./_}"
+DESCRIPTION="library to add support for consumer fingerprint readers"
+HOMEPAGE="http://cgit.freedesktop.org/libfprint/libfprint/;
+SRC_URI="http://cgit.freedesktop.org/${PN}/${PN}/snapshot/${MY_PV}.tar.bz2 -> 
${P}.tar.bz2
+   https://dev.gentoo.org/~xmw/${P}_vfs0050.patch.gz;
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~x86"
+IUSE="debug static-libs vanilla"
+
+RDEPEND="virtual/libusb:1
+   dev-libs/glib:2
+   dev-libs/nss
+   x11-libs/pixman"
+DEPEND="${RDEPEND}
+   virtual/pkgconfig"
+
+PATCHES=(
+   "${FILESDIR}/${P}-fix-udev-rules.patch"
+)
+
+src_prepare() {
+   if ! use vanilla ; then
+   eapply "${WORKDIR}"/${P}_vfs0050.patch
+   fi
+
+   default
+
+   # upeke2 and fdu2000 were missing from all_drivers.
+   sed -e '/^all_drivers=/s:"$: upeke2 fdu2000":' \
+   -i configure.ac || die
+
+   eautoreconf
+}
+
+src_configure() {
+   econf \
+   --with-drivers=all \
+   $(use_enable debug debug-log) \
+   $(use_enable static-libs static) \
+   -enable-udev-rules \
+   --with-udev-rules-dir=$(get_udevdir)/rules.d
+}
+
+src_install() {
+   default
+
+   prune_libtool_files
+
+   dodoc AUTHORS HACKING NEWS README THANKS TODO
+}