Update to libfprint-0.8.2.

ok robert@ (maintainer)
This commit is contained in:
ajacoutot 2019-05-11 14:51:24 +00:00
parent bcc4ea2349
commit ed9de7c8f5
5 changed files with 33 additions and 35 deletions

View File

@ -1,16 +1,15 @@
# $OpenBSD: Makefile,v 1.31 2018/11/15 20:21:33 solene Exp $
# $OpenBSD: Makefile,v 1.32 2019/05/11 14:51:24 ajacoutot Exp $
COMMENT= library for fingerprint reader devices
DISTNAME= libfprint-0.6.0
REVISION= 1
DISTNAME= libfprint-0.8.2
CATEGORIES= security
SHARED_LIBS += fprint 1.1 # 0.0
SHARED_LIBS += fprint 2.0 # 0.0.0
HOMEPAGE= https://www.freedesktop.org/wiki/Software/fprint/libfprint
MASTER_SITES= https://people.freedesktop.org/~hadess/
HOMEPAGE= https://fprint.freedesktop.org/
MASTER_SITES= https://gitlab.freedesktop.org/libfprint/libfprint/uploads/4272fab4f37516db5b20d07bb576a4b1/
EXTRACT_SUFX= .tar.xz
MAINTAINER= Robert Nagy <robert@openbsd.org>
@ -18,16 +17,20 @@ MAINTAINER= Robert Nagy <robert@openbsd.org>
# LGPLv2.1
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += glib-2.0 iconv intl m nspr4 nss3 nssutil3 pcre pixman-1
WANTLIB += plc4 plds4 pthread smime3 ssl3 usb-1.0
WANTLIB += glib-2.0 intl m nspr4 nss3 nssutil3 pixman-1 plc4 plds4
WANTLIB += usb-1.0
CONFIGURE_STYLE= gnu
MODULES= devel/meson
LIB_DEPENDS= devel/glib2 \
devel/libusb1 \
security/nss
post-install:
rm -r ${WRKINST}/rules.d
CONFIGURE_ENV= LDFLAGS="-L${X11BASE}/lib"
CONFIGURE_ARGS= -Ddoc=false \
-Dudev_rules=false
CFLAGS += -DENODATA=ENOENT \
-DETIME=ETIMEDOUT
.include <bsd.port.mk>

View File

@ -1,2 +1,2 @@
SHA256 (libfprint-0.6.0.tar.xz) = JYP8t9VCqRjAI3dvGIBn/O3sYU5lSU3VK8TWYb6APL4=
SIZE (libfprint-0.6.0.tar.xz) = 531572
SHA256 (libfprint-0.8.2.tar.xz) = +iVL3j0jTGS8VUPIbc3yBVKLdUGyUGpkAXsIYUJnhC4=
SIZE (libfprint-0.8.2.tar.xz) = 289988

View File

@ -1,19 +0,0 @@
$OpenBSD: patch-libfprint_fp_internal_h,v 1.4 2017/11/09 16:50:39 ajacoutot Exp $
Index: libfprint/fp_internal.h
--- libfprint/fp_internal.h.orig
+++ libfprint/fp_internal.h
@@ -93,6 +93,14 @@ enum fp_dev_state {
struct fp_driver **fprint_get_drivers (void);
+#if !defined(ENODATA) && defined(ENOENT)
+#define ENODATA ENOENT
+#endif
+
+#if !defined(ETIME) && defined(ETIMEDOUT)
+#define ETIME ETIMEDOUT
+#endif
+
struct fp_dev {
struct fp_driver *drv;
libusb_device_handle *udev;

View File

@ -0,0 +1,16 @@
$OpenBSD: patch-libfprint_poll_c,v 1.1 2019/05/11 14:51:24 ajacoutot Exp $
64bit time_t
Index: libfprint/poll.c
--- libfprint/poll.c.orig
+++ libfprint/poll.c
@@ -167,7 +167,7 @@ static int get_next_timeout_expiry(struct timeval *out
timerclear(out);
} else {
timersub(&next_timeout->expiry, &tv, out);
- fp_dbg("next timeout in %ld.%06lds", out->tv_sec, out->tv_usec);
+ fp_dbg("next timeout in %lld.%06lds", out->tv_sec, out->tv_usec);
}
return 1;

View File

@ -1,7 +1,5 @@
@comment $OpenBSD: PLIST,v 1.2 2015/03/16 18:07:54 naddy Exp $
@comment $OpenBSD: PLIST,v 1.3 2019/05/11 14:51:24 ajacoutot Exp $
include/libfprint/
include/libfprint/fprint.h
lib/libfprint.a
lib/libfprint.la
@lib lib/libfprint.so.${LIBfprint_VERSION}
lib/pkgconfig/libfprint.pc