change format

This commit is contained in:
谢炜 2022-06-07 06:20:31 +00:00 committed by cckylin-cibot
parent 953bc74cee
commit 502e48d180
4 changed files with 87 additions and 56 deletions

View File

@ -1,50 +1,22 @@
Description: Add missing ETIME definition for kFreeBSD flavours. From: Steven Chamberlain <steven@pyro.eu.org>
Author: Steven Chamberlain <steven@pyro.eu.org> Date: Tue, 7 Jun 2022 06:20:31 +0000
Subject: Add missing ETIME definition for kFreeBSD flavours.
Bug-Debian: http://bugs.debian.org/673704 Bug-Debian: http://bugs.debian.org/673704
Forwarded: not-yet Forwarded: not-yet
Reviewed-by: Didier Raboud <odyx@debian.org> Reviewed-by: Didier Raboud <odyx@debian.org>
Last-Update: 2013-03-03
Last-Update: 2013-03-03 Last-Update: 2013-03-03
--- ---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ libfprint/drivers/elan.c | 4 ++++
--- a/libfprint/drivers/uru4000.c libfprint/drivers/uru4000.c | 4 ++++
+++ b/libfprint/drivers/uru4000.c libfprint/drivers/vfs101.c | 4 ++++
@@ -25,6 +25,10 @@ libfprint/drivers/vfs301.c | 4 ++++
4 files changed, 16 insertions(+)
#include "drivers_api.h" diff --git a/libfprint/drivers/elan.c b/libfprint/drivers/elan.c
index e9dad43..0026b01 100644
+#ifndef ETIME
+#define ETIME ETIMEDOUT /* For kFreeBSD */
+#endif
+
#define EP_INTR (1 | LIBUSB_ENDPOINT_IN)
#define EP_DATA (2 | LIBUSB_ENDPOINT_IN)
#define USB_RQ 0x04
--- a/libfprint/drivers/vfs101.c
+++ b/libfprint/drivers/vfs101.c
@@ -21,6 +21,10 @@
#include "drivers_api.h"
+#ifndef ETIME
+#define ETIME ETIMEDOUT /* For kFreeBSD */
+#endif
+
/* Input-Output usb endpoint */
#define EP_IN(n) (n | LIBUSB_ENDPOINT_IN)
#define EP_OUT(n) (n | LIBUSB_ENDPOINT_OUT)
--- a/libfprint/drivers/vfs301.c
+++ b/libfprint/drivers/vfs301.c
@@ -24,6 +24,10 @@
#include "drivers_api.h"
#include "vfs301_proto.h"
+#ifndef ETIME
+#define ETIME ETIMEDOUT /* For kFreeBSD */
+#endif
+
/************************** GENERIC STUFF *************************************/
/* Submit asynchronous sleep */
--- a/libfprint/drivers/elan.c --- a/libfprint/drivers/elan.c
+++ b/libfprint/drivers/elan.c +++ b/libfprint/drivers/elan.c
@@ -49,6 +49,10 @@ @@ -49,6 +49,10 @@
@ -58,3 +30,48 @@ This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
unsigned char elan_get_pixel(struct fpi_frame_asmbl_ctx *ctx, unsigned char elan_get_pixel(struct fpi_frame_asmbl_ctx *ctx,
struct fpi_frame *frame, unsigned int x, struct fpi_frame *frame, unsigned int x,
unsigned int y) unsigned int y)
diff --git a/libfprint/drivers/uru4000.c b/libfprint/drivers/uru4000.c
index 79c48c5..08b91b1 100644
--- a/libfprint/drivers/uru4000.c
+++ b/libfprint/drivers/uru4000.c
@@ -25,6 +25,10 @@
#include "drivers_api.h"
+#ifndef ETIME
+#define ETIME ETIMEDOUT /* For kFreeBSD */
+#endif
+
#define EP_INTR (1 | LIBUSB_ENDPOINT_IN)
#define EP_DATA (2 | LIBUSB_ENDPOINT_IN)
#define USB_RQ 0x04
diff --git a/libfprint/drivers/vfs101.c b/libfprint/drivers/vfs101.c
index 60f0a81..b4776df 100644
--- a/libfprint/drivers/vfs101.c
+++ b/libfprint/drivers/vfs101.c
@@ -21,6 +21,10 @@
#include "drivers_api.h"
+#ifndef ETIME
+#define ETIME ETIMEDOUT /* For kFreeBSD */
+#endif
+
/* Input-Output usb endpoint */
#define EP_IN(n) (n | LIBUSB_ENDPOINT_IN)
#define EP_OUT(n) (n | LIBUSB_ENDPOINT_OUT)
diff --git a/libfprint/drivers/vfs301.c b/libfprint/drivers/vfs301.c
index 94837de..3b7060d 100644
--- a/libfprint/drivers/vfs301.c
+++ b/libfprint/drivers/vfs301.c
@@ -24,6 +24,10 @@
#include "drivers_api.h"
#include "vfs301_proto.h"
+#ifndef ETIME
+#define ETIME ETIMEDOUT /* For kFreeBSD */
+#endif
+
/************************** GENERIC STUFF *************************************/
/* Submit asynchronous sleep */

View File

@ -1,6 +1,3 @@
# Upstream backports
# Debian specifics
kFreeBSD_FTBFS_add_ETIME_definition.patch kFreeBSD_FTBFS_add_ETIME_definition.patch
udev-rules-creation-add-Debian-specifics.patch udev-rules-creation-add-Debian-specifics.patch
use-non-versionned-libusbh-path.patch use-non-versionned-libusbh-path.patch

View File

@ -1,13 +1,21 @@
Description: Tweak the udev rules creator for Debian usage From: Didier Raboud <odyx@debian.org>
List all devices; automatic power/control only for the non-blacklisted Date: Tue, 7 Jun 2022 06:20:31 +0000
ones; mode and group to all. Subject: Tweak the udev rules creator for Debian usage
Author: Didier Raboud <odyx@debian.org>
Origin: vendor Origin: vendor
Last-Update: 2015-03-03 Last-Update: 2015-03-03
List all devices; automatic power/control only for the non-blacklisted
ones; mode and group to all.
---
libfprint/fprint-list-udev-rules.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/libfprint/fprint-list-udev-rules.c b/libfprint/fprint-list-udev-rules.c
index de291f1..428bf53 100644
--- a/libfprint/fprint-list-udev-rules.c --- a/libfprint/fprint-list-udev-rules.c
+++ b/libfprint/fprint-list-udev-rules.c +++ b/libfprint/fprint-list-udev-rules.c
@@ -63,9 +63,6 @@ static void print_driver (struct fp_driv @@ -63,9 +63,6 @@ static void print_driver (struct fp_driver *driver)
break; break;
} }
} }
@ -17,7 +25,7 @@ Last-Update: 2015-03-03
key = g_strdup_printf ("%04x:%04x", driver->id_table[i].vendor, driver->id_table[i].product); key = g_strdup_printf ("%04x:%04x", driver->id_table[i].vendor, driver->id_table[i].product);
if (g_hash_table_lookup (printed, key) != NULL) { if (g_hash_table_lookup (printed, key) != NULL) {
@@ -78,7 +75,10 @@ static void print_driver (struct fp_driv @@ -78,7 +75,10 @@ static void print_driver (struct fp_driver *driver)
if (num_printed == 0) if (num_printed == 0)
printf ("# %s\n", driver->full_name); printf ("# %s\n", driver->full_name);

View File

@ -1,9 +1,18 @@
Description: Use non-versionned libusb.h path From: Didier Raboud <odyx@debian.org>
Reference: http://thread.gmane.org/gmane.comp.lib.libusb.devel.general/11611 Date: Tue, 7 Jun 2022 06:20:31 +0000
. Subject: Use non-versionned libusb.h path
Hopefully fixes the kFreeBSD FTBFS.
Author: Didier Raboud <odyx@debian.org>
Last-Update: 2013-03-03 Last-Update: 2013-03-03
Reference: http://thread.gmane.org/gmane.comp.lib.libusb.devel.general/11611
Hopefully fixes the kFreeBSD FTBFS.
---
libfprint/drivers/vfs301_proto.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libfprint/drivers/vfs301_proto.h b/libfprint/drivers/vfs301_proto.h
index 2ae587a..2995135 100644
--- a/libfprint/drivers/vfs301_proto.h --- a/libfprint/drivers/vfs301_proto.h
+++ b/libfprint/drivers/vfs301_proto.h +++ b/libfprint/drivers/vfs301_proto.h
@@ -18,7 +18,7 @@ @@ -18,7 +18,7 @@