ports/188854: Updated port security/libfprint, (incomplete) new port security/fprintd

Martin Birgmeier Martin.Birgmeier at aon.at
Mon Apr 21 15:40:01 UTC 2014


>Number:         188854
>Category:       ports
>Synopsis:       Updated port security/libfprint, (incomplete) new port security/fprintd
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Apr 21 15:40:00 UTC 2014
>Closed-Date:
>Last-Modified:
>Originator:     Martin Birgmeier
>Release:        9.2
>Organization:
MBi at home
>Environment:
FreeBSD hal.xyzzy 9.2-RELEASE-p3 FreeBSD 9.2-RELEASE-p3 #0 r263038M: Wed Mar 12 18:06:33 CET 2014     root at hal.xyzzy:/usr/obj/z/SRC/FreeBSD/releng/9.2/sys/XYZZY_SMP  amd64
>Description:
This bug report deals with fingerprint reading devices.

The attached patch file updates security/libfprint from 0.4.0 to 0.5.1; this makes the fingerprint reader on a Thinkpad W520 work. In addition, it creates a new port security/fprintd; however, the latter is slightly incomplete because while enrollment and listing work, verification does not and fails with the following error:

# fprintd-verify martin
Using device /net/reactivated/Fprint/Device/0
Listing enrolled fingers:
 - #0: right-middle-finger
 - #1: right-index-finger
VerifyStart failed: Connection was disconnected before a reply was received

This seems to be some dbus interaction issue; maybe some kind soul can look into it and fix it. Also, I believe that the port probably needs a few more dependency specifications.

Note: The updated libfprint itself works nicely; this can be tested using the port security/fprint_demo.

>How-To-Repeat:
Please apply the attached patch to the ports tree and install security/fprintd. Running fprintd-verify will give the error message shown above.
>Fix:


Patch attached with submission follows:

diff -urN ports/security/fprintd/Makefile ports.NEW/security/fprintd/Makefile
--- ports/security/fprintd/Makefile	1970-01-01 01:00:00.000000000 +0100
+++ ports.NEW/security/fprintd/Makefile	2014-04-21 17:23:59.000000000 +0200
@@ -0,0 +1,26 @@
+# $FreeBSD$
+
+PORTNAME=	fprintd
+PORTVERSION=	0.5.1
+CATEGORIES=	security
+MASTER_SITES=	http://people.freedesktop.org/~hadess/
+
+MAINTAINER=	ports at FreeBSD.org
+COMMENT=	Daemon that provides fingerprint scanning functionality over D-Bus
+
+LICENSE=	GPLv2
+
+LIB_DEPENDS=	libfprint.so:${PORTSDIR}/security/libfprint
+
+GNU_CONFIGURE=	yes
+USE_XZ=		yes
+USES=		gmake libtool
+USE_GNOME=	glib20
+
+OPTIONS_DEFINE=	NLS
+OPTIONS_SUB=	yes
+
+NLS_USES=		gettext
+NLS_CONFIGURE_ENABLE=	nls
+
+.include <bsd.port.mk>
diff -urN ports/security/fprintd/distinfo ports.NEW/security/fprintd/distinfo
--- ports/security/fprintd/distinfo	1970-01-01 01:00:00.000000000 +0100
+++ ports.NEW/security/fprintd/distinfo	2014-04-21 17:11:31.000000000 +0200
@@ -0,0 +1,2 @@
+SHA256 (fprintd-0.5.1.tar.xz) = 9256970fe30cb0332c1932fc0dad3c8d83570eb8e153305e9430e3cd90806e58
+SIZE (fprintd-0.5.1.tar.xz) = 285336
diff -urN ports/security/fprintd/files/patch-pam-Makefile.in ports.NEW/security/fprintd/files/patch-pam-Makefile.in
--- ports/security/fprintd/files/patch-pam-Makefile.in	1970-01-01 01:00:00.000000000 +0100
+++ ports.NEW/security/fprintd/files/patch-pam-Makefile.in	2014-04-21 17:11:31.000000000 +0200
@@ -0,0 +1,11 @@
+--- ./pam/Makefile.in.ORIG	2013-08-11 18:21:32.000000000 +0200
++++ ./pam/Makefile.in	2014-04-21 15:40:09.000000000 +0200
+@@ -364,7 +364,7 @@
+ top_builddir = @top_builddir@
+ top_srcdir = @top_srcdir@
+ @HAVE_PAM_TRUE at pammod_LTLIBRARIES = pam_fprintd.la
+- at HAVE_PAM_TRUE@pammoddir = $(libdir)/security
++ at HAVE_PAM_TRUE@pammoddir = $(libdir)
+ @HAVE_PAM_TRUE at pam_fprintd_la_SOURCES = pam_fprintd.c $(MARSHALFILES)
+ @HAVE_PAM_TRUE at pam_fprintd_la_CFLAGS = -fPIC $(WARN_CFLAGS) $(GLIB_CFLAGS) -DLOCALEDIR="\"$(localedir)\""
+ @HAVE_PAM_TRUE at pam_fprintd_la_LDFLAGS = -avoid-version -module -Wl,-z,nodelete
diff -urN ports/security/fprintd/files/patch-po-Makefile.in.in ports.NEW/security/fprintd/files/patch-po-Makefile.in.in
--- ports/security/fprintd/files/patch-po-Makefile.in.in	1970-01-01 01:00:00.000000000 +0100
+++ ports.NEW/security/fprintd/files/patch-po-Makefile.in.in	2014-04-21 17:11:31.000000000 +0200
@@ -0,0 +1,11 @@
+--- ./po/Makefile.in.in.ORIG	2013-08-11 17:56:10.000000000 +0200
++++ ./po/Makefile.in.in	2014-04-21 15:36:34.000000000 +0200
+@@ -34,7 +34,7 @@
+ datarootdir = @datarootdir@
+ libdir = @libdir@
+ DATADIRNAME = @DATADIRNAME@
+-itlocaledir = $(prefix)/$(DATADIRNAME)/locale
++itlocaledir = @localedir@
+ subdir = po
+ install_sh = @install_sh@
+ # Automake >= 1.8 provides @mkdir_p at .
diff -urN ports/security/fprintd/pkg-descr ports.NEW/security/fprintd/pkg-descr
--- ports/security/fprintd/pkg-descr	1970-01-01 01:00:00.000000000 +0100
+++ ports.NEW/security/fprintd/pkg-descr	2014-04-21 17:24:06.000000000 +0200
@@ -0,0 +1,13 @@
+Fprintd is a D-Bus daemon that offers libfprint functionality over
+the D-Bus interprocess communication bus. By adding this daemon
+layer above libfprint, we solve various problems related to multiple
+applications simulatenously competing for fingerprint readers.
+
+While it is not very nice to think of a daemon being necessary in
+this scenario, fprintd will be launched by D-Bus through the
+activation mechanism. This means it is launched only when needed,
+and additionally it will shut itself down after a period of inactivity.
+
+(Text copied from link below.)
+
+WWW: http://www.freedesktop.org/wiki/Software/fprint/fprintd/
diff -urN ports/security/fprintd/pkg-plist ports.NEW/security/fprintd/pkg-plist
--- ports/security/fprintd/pkg-plist	1970-01-01 01:00:00.000000000 +0100
+++ ports.NEW/security/fprintd/pkg-plist	2014-04-21 17:11:31.000000000 +0200
@@ -0,0 +1,158 @@
+bin/fprintd-delete
+bin/fprintd-enroll
+bin/fprintd-list
+bin/fprintd-verify
+etc/dbus-1/system.d/net.reactivated.Fprint.conf
+etc/fprintd.conf
+share/locale/ar/LC_MESSAGES/fprintd.mo
+share/locale/bg_BG/LC_MESSAGES/fprintd.mo
+share/locale/bn_IN/LC_MESSAGES/fprintd.mo
+share/locale/ca/LC_MESSAGES/fprintd.mo
+share/locale/ca at valencia/LC_MESSAGES/fprintd.mo
+share/locale/cs/LC_MESSAGES/fprintd.mo
+share/locale/de/LC_MESSAGES/fprintd.mo
+share/locale/el/LC_MESSAGES/fprintd.mo
+share/locale/en_GB/LC_MESSAGES/fprintd.mo
+share/locale/eo/LC_MESSAGES/fprintd.mo
+share/locale/es/LC_MESSAGES/fprintd.mo
+share/locale/fa_IR/LC_MESSAGES/fprintd.mo
+share/locale/fi/LC_MESSAGES/fprintd.mo
+share/locale/fo/LC_MESSAGES/fprintd.mo
+share/locale/fr/LC_MESSAGES/fprintd.mo
+share/locale/ga/LC_MESSAGES/fprintd.mo
+share/locale/gl/LC_MESSAGES/fprintd.mo
+share/locale/he/LC_MESSAGES/fprintd.mo
+share/locale/hi/LC_MESSAGES/fprintd.mo
+share/locale/hr/LC_MESSAGES/fprintd.mo
+share/locale/hu/LC_MESSAGES/fprintd.mo
+share/locale/id/LC_MESSAGES/fprintd.mo
+share/locale/it/LC_MESSAGES/fprintd.mo
+share/locale/ja/LC_MESSAGES/fprintd.mo
+share/locale/kk/LC_MESSAGES/fprintd.mo
+share/locale/ko/LC_MESSAGES/fprintd.mo
+share/locale/lt/LC_MESSAGES/fprintd.mo
+share/locale/lv/LC_MESSAGES/fprintd.mo
+share/locale/nl/LC_MESSAGES/fprintd.mo
+share/locale/pa/LC_MESSAGES/fprintd.mo
+share/locale/pl/LC_MESSAGES/fprintd.mo
+share/locale/pt_BR/LC_MESSAGES/fprintd.mo
+share/locale/ro/LC_MESSAGES/fprintd.mo
+share/locale/ru/LC_MESSAGES/fprintd.mo
+share/locale/sk/LC_MESSAGES/fprintd.mo
+share/locale/sl/LC_MESSAGES/fprintd.mo
+share/locale/sr/LC_MESSAGES/fprintd.mo
+share/locale/sr at latin/LC_MESSAGES/fprintd.mo
+share/locale/sv/LC_MESSAGES/fprintd.mo
+share/locale/te/LC_MESSAGES/fprintd.mo
+share/locale/tr/LC_MESSAGES/fprintd.mo
+share/locale/uk/LC_MESSAGES/fprintd.mo
+share/locale/wa/LC_MESSAGES/fprintd.mo
+share/locale/zh_CN/LC_MESSAGES/fprintd.mo
+share/locale/zh_TW/LC_MESSAGES/fprintd.mo
+lib/pam_fprintd.a
+lib/pam_fprintd.la
+lib/pam_fprintd.so
+libexec/fprintd
+man/man1/fprintd.1.gz
+share/dbus-1/interfaces/net.reactivated.Fprint.Device.xml
+share/dbus-1/interfaces/net.reactivated.Fprint.Manager.xml
+share/dbus-1/system-services/net.reactivated.Fprint.service
+share/polkit-1/actions/net.reactivated.fprint.device.policy
+ at dirrmtry share/polkit-1/actions
+ at dirrmtry share/polkit-1
+ at dirrmtry share/dbus-1/system-services
+ at dirrmtry share/dbus-1/interfaces
+ at dirrmtry share/dbus-1
+ at dirrmtry share/locale/zh_TW/LC_MESSAGES
+ at dirrmtry share/locale/zh_TW
+ at dirrmtry share/locale/zh_CN/LC_MESSAGES
+ at dirrmtry share/locale/zh_CN
+ at dirrmtry share/locale/wa/LC_MESSAGES
+ at dirrmtry share/locale/wa
+ at dirrmtry share/locale/uk/LC_MESSAGES
+ at dirrmtry share/locale/uk
+ at dirrmtry share/locale/tr/LC_MESSAGES
+ at dirrmtry share/locale/tr
+ at dirrmtry share/locale/te/LC_MESSAGES
+ at dirrmtry share/locale/te
+ at dirrmtry share/locale/sv/LC_MESSAGES
+ at dirrmtry share/locale/sv
+ at dirrmtry share/locale/sr at latin/LC_MESSAGES
+ at dirrmtry share/locale/sr at latin
+ at dirrmtry share/locale/sr/LC_MESSAGES
+ at dirrmtry share/locale/sr
+ at dirrmtry share/locale/sl/LC_MESSAGES
+ at dirrmtry share/locale/sl
+ at dirrmtry share/locale/sk/LC_MESSAGES
+ at dirrmtry share/locale/sk
+ at dirrmtry share/locale/ru/LC_MESSAGES
+ at dirrmtry share/locale/ru
+ at dirrmtry share/locale/ro/LC_MESSAGES
+ at dirrmtry share/locale/ro
+ at dirrmtry share/locale/pt_BR/LC_MESSAGES
+ at dirrmtry share/locale/pt_BR
+ at dirrmtry share/locale/pl/LC_MESSAGES
+ at dirrmtry share/locale/pl
+ at dirrmtry share/locale/pa/LC_MESSAGES
+ at dirrmtry share/locale/pa
+ at dirrmtry share/locale/nl/LC_MESSAGES
+ at dirrmtry share/locale/nl
+ at dirrmtry share/locale/lv/LC_MESSAGES
+ at dirrmtry share/locale/lv
+ at dirrmtry share/locale/lt/LC_MESSAGES
+ at dirrmtry share/locale/lt
+ at dirrmtry share/locale/ko/LC_MESSAGES
+ at dirrmtry share/locale/ko
+ at dirrmtry share/locale/kk/LC_MESSAGES
+ at dirrmtry share/locale/kk
+ at dirrmtry share/locale/ja/LC_MESSAGES
+ at dirrmtry share/locale/ja
+ at dirrmtry share/locale/it/LC_MESSAGES
+ at dirrmtry share/locale/it
+ at dirrmtry share/locale/id/LC_MESSAGES
+ at dirrmtry share/locale/id
+ at dirrmtry share/locale/hu/LC_MESSAGES
+ at dirrmtry share/locale/hu
+ at dirrmtry share/locale/hr/LC_MESSAGES
+ at dirrmtry share/locale/hr
+ at dirrmtry share/locale/hi/LC_MESSAGES
+ at dirrmtry share/locale/hi
+ at dirrmtry share/locale/he/LC_MESSAGES
+ at dirrmtry share/locale/he
+ at dirrmtry share/locale/gl/LC_MESSAGES
+ at dirrmtry share/locale/gl
+ at dirrmtry share/locale/ga/LC_MESSAGES
+ at dirrmtry share/locale/ga
+ at dirrmtry share/locale/fr/LC_MESSAGES
+ at dirrmtry share/locale/fr
+ at dirrmtry share/locale/fo/LC_MESSAGES
+ at dirrmtry share/locale/fo
+ at dirrmtry share/locale/fi/LC_MESSAGES
+ at dirrmtry share/locale/fi
+ at dirrmtry share/locale/fa_IR/LC_MESSAGES
+ at dirrmtry share/locale/fa_IR
+ at dirrmtry share/locale/es/LC_MESSAGES
+ at dirrmtry share/locale/es
+ at dirrmtry share/locale/eo/LC_MESSAGES
+ at dirrmtry share/locale/eo
+ at dirrmtry share/locale/en_GB/LC_MESSAGES
+ at dirrmtry share/locale/en_GB
+ at dirrmtry share/locale/el/LC_MESSAGES
+ at dirrmtry share/locale/el
+ at dirrmtry share/locale/de/LC_MESSAGES
+ at dirrmtry share/locale/de
+ at dirrmtry share/locale/cs/LC_MESSAGES
+ at dirrmtry share/locale/cs
+ at dirrmtry share/locale/ca at valencia/LC_MESSAGES
+ at dirrmtry share/locale/ca at valencia
+ at dirrmtry share/locale/ca/LC_MESSAGES
+ at dirrmtry share/locale/ca
+ at dirrmtry share/locale/bn_IN/LC_MESSAGES
+ at dirrmtry share/locale/bn_IN
+ at dirrmtry share/locale/bg_BG/LC_MESSAGES
+ at dirrmtry share/locale/bg_BG
+ at dirrmtry share/locale/ar/LC_MESSAGES
+ at dirrmtry share/locale/ar
+ at dirrmtry share/locale
+ at dirrmtry etc/dbus-1/system.d
+ at dirrmtry etc/dbus-1
diff -urN ports/security/libfprint/Makefile ports.NEW/security/libfprint/Makefile
--- ports/security/libfprint/Makefile	2014-04-21 17:10:54.000000000 +0200
+++ ports.NEW/security/libfprint/Makefile	2014-04-21 09:29:24.691550000 +0200
@@ -2,8 +2,7 @@
 # $FreeBSD: head/security/libfprint/Makefile 341997 2014-01-31 14:56:46Z miwi $
 
 PORTNAME=	libfprint
-PORTVERSION=	0.4.0
-PORTREVISION=	3
+PORTVERSION=	0.5.1
 CATEGORIES=	security
 MASTER_SITES=	http://people.freedesktop.org/~hadess/
 
@@ -14,7 +13,7 @@
 		nss3:${PORTSDIR}/security/nss
 
 GNU_CONFIGURE=	yes
-USE_BZIP2=	yes
+USE_XZ=		yes
 USE_LDCONFIG=	yes
 USE_OPENSSL=	yes
 USES=		pathfix pkgconfig
diff -urN ports/security/libfprint/distinfo ports.NEW/security/libfprint/distinfo
--- ports/security/libfprint/distinfo	2014-04-21 17:10:54.000000000 +0200
+++ ports.NEW/security/libfprint/distinfo	2014-04-21 09:29:35.337583000 +0200
@@ -1,2 +1,2 @@
-SHA256 (libfprint-0.4.0.tar.bz2) = 318d5c3910e37a71a1b2b27fe676726ec14cafafe2f86ecbe3b1412cbe2a2132
-SIZE (libfprint-0.4.0.tar.bz2) = 476262
+SHA256 (libfprint-0.5.1.tar.xz) = 6d12563b91888b84b71eee6d2e113d8e9e9940c6a28a0915656b6f86b9568fb3
+SIZE (libfprint-0.5.1.tar.xz) = 494020
diff -urN ports/security/libfprint/files/patch-libfprint-drivers-vfs301.c ports.NEW/security/libfprint/files/patch-libfprint-drivers-vfs301.c
--- ports/security/libfprint/files/patch-libfprint-drivers-vfs301.c	1970-01-01 01:00:00.000000000 +0100
+++ ports.NEW/security/libfprint/files/patch-libfprint-drivers-vfs301.c	2014-04-21 11:09:34.000000000 +0200
@@ -0,0 +1,11 @@
+--- ./libfprint/drivers/vfs301.c.ORIG	2013-06-26 14:13:00.000000000 +0200
++++ ./libfprint/drivers/vfs301.c	2014-04-21 11:09:12.000000000 +0200
+@@ -27,7 +27,7 @@
+ #include <stdio.h>
+ #include <assert.h>
+ #include <stdlib.h>
+-#include <libusb-1.0/libusb.h>
++#include <libusb.h>
+ 
+ #include "vfs301_proto.h"
+ #include <unistd.h>
diff -urN ports/security/libfprint/files/patch-libfprint-drivers-vfs301_proto.c ports.NEW/security/libfprint/files/patch-libfprint-drivers-vfs301_proto.c
--- ports/security/libfprint/files/patch-libfprint-drivers-vfs301_proto.c	1970-01-01 01:00:00.000000000 +0100
+++ ports.NEW/security/libfprint/files/patch-libfprint-drivers-vfs301_proto.c	2014-04-21 11:09:44.000000000 +0200
@@ -0,0 +1,11 @@
+--- ./libfprint/drivers/vfs301_proto.c.ORIG	2013-06-26 14:13:00.000000000 +0200
++++ ./libfprint/drivers/vfs301_proto.c	2014-04-21 11:09:19.000000000 +0200
+@@ -33,7 +33,7 @@
+ #include <stdio.h>
+ #include <assert.h>
+ #include <stdlib.h>
+-#include <libusb-1.0/libusb.h>
++#include <libusb.h>
+ 
+ #include "vfs301_proto.h"
+ #include "vfs301_proto_fragments.h"
diff -urN ports/security/libfprint/files/patch-libfprint-drivers-vfs301_proto.h ports.NEW/security/libfprint/files/patch-libfprint-drivers-vfs301_proto.h
--- ports/security/libfprint/files/patch-libfprint-drivers-vfs301_proto.h	1970-01-01 01:00:00.000000000 +0100
+++ ports.NEW/security/libfprint/files/patch-libfprint-drivers-vfs301_proto.h	2014-04-21 11:09:34.000000000 +0200
@@ -0,0 +1,11 @@
+--- ./libfprint/drivers/vfs301_proto.h.ORIG	2013-06-26 14:13:00.000000000 +0200
++++ ./libfprint/drivers/vfs301_proto.h	2014-04-21 11:09:27.000000000 +0200
+@@ -18,7 +18,7 @@
+  * License along with this library; if not, write to the Free Software
+  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+  */
+-#include <libusb-1.0/libusb.h>
++#include <libusb.h>
+ 
+ enum {
+ 	VFS301_DEFAULT_WAIT_TIMEOUT = 300,


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-ports-bugs mailing list