!22 fix biometric-authentication error
From: @peijiankang Reviewed-by: @dou33 Signed-off-by: @dou33
This commit is contained in:
commit
4a568661a1
32
0001-add-getenv.patch
Normal file
32
0001-add-getenv.patch
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
From 8fe61f2bf34569b0a0995c7ae77f6fb237d01e4d Mon Sep 17 00:00:00 2001
|
||||||
|
From: peijiankang <peijiankang@kylinos.cn>
|
||||||
|
Date: Tue, 7 Mar 2023 15:17:03 +0800
|
||||||
|
Subject: [PATCH] add getenv
|
||||||
|
|
||||||
|
---
|
||||||
|
src/drivers/community-multidevice/community_ops.c | 9 +++++----
|
||||||
|
1 file changed, 5 insertions(+), 4 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/src/drivers/community-multidevice/community_ops.c b/src/drivers/community-multidevice/community_ops.c
|
||||||
|
index 9766959..9f5bd15 100644
|
||||||
|
--- a/src/drivers/community-multidevice/community_ops.c
|
||||||
|
+++ b/src/drivers/community-multidevice/community_ops.c
|
||||||
|
@@ -56,10 +56,11 @@ int community_ops_discover(bio_dev *dev)
|
||||||
|
bio_print_debug ("bio_drv_demo_ops_discover start\n");
|
||||||
|
|
||||||
|
int ret = 0;
|
||||||
|
-
|
||||||
|
- if ((strcmp(getenv("BIO_PRINT_LEVEL"), "7") == 0) && (strcmp(getenv("BIO_PRINT_COLOR"), "1") == 0))
|
||||||
|
- setenv ("G_MESSAGES_DEBUG", "all", 0);
|
||||||
|
-
|
||||||
|
+ if (getenv("BIO_PRINT_LEVEL") != NULL && getenv("BIO_PRINT_COLOR") != NULL)
|
||||||
|
+ {
|
||||||
|
+ if ((strcmp(getenv("BIO_PRINT_LEVEL"), "7") == 0) && (strcmp(getenv("BIO_PRINT_COLOR"), "1") == 0))
|
||||||
|
+ setenv ("G_MESSAGES_DEBUG", "all", 0);
|
||||||
|
+ }
|
||||||
|
// 探测设备
|
||||||
|
ret = device_discover (dev);
|
||||||
|
if ( ret < 0 ) {
|
||||||
|
--
|
||||||
|
2.39.1
|
||||||
|
|
||||||
@ -1,20 +1,11 @@
|
|||||||
Name: biometric-authentication
|
Name: biometric-authentication
|
||||||
Version: 0.9.72
|
Version: 0.9.72
|
||||||
Release: 6
|
Release: 7
|
||||||
Summary: biometric-authentication
|
Summary: biometric-authentication
|
||||||
License: LGPL-3.0
|
License: LGPL-3.0
|
||||||
URL: http://www.ukui.org
|
URL: http://www.ukui.org
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: %{name}-%{version}.tar.gz
|
||||||
|
Patch01: 0001-add-getenv.patch
|
||||||
%ifarch x86_64
|
|
||||||
%global platform x86_64
|
|
||||||
%endif
|
|
||||||
%ifarch aarch64
|
|
||||||
%global platform aarch64
|
|
||||||
%endif
|
|
||||||
%ifarch riscv64
|
|
||||||
%global platform riscv64
|
|
||||||
%endif
|
|
||||||
|
|
||||||
BuildRequires: python3
|
BuildRequires: python3
|
||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
@ -42,6 +33,7 @@ biometric identification framework
|
|||||||
Summary: libs
|
Summary: libs
|
||||||
License: LGPL-3.0
|
License: LGPL-3.0
|
||||||
Provides: biometric-auth
|
Provides: biometric-auth
|
||||||
|
Requires: libbiometric0 systemd
|
||||||
|
|
||||||
%description -n biometric-auth
|
%description -n biometric-auth
|
||||||
Biometric Authentication Service
|
Biometric Authentication Service
|
||||||
@ -51,6 +43,7 @@ Biometric Authentication Service
|
|||||||
Summary: libs
|
Summary: libs
|
||||||
License: LGPL-3.0
|
License: LGPL-3.0
|
||||||
Provides: biometric-driver-community-multidevice
|
Provides: biometric-driver-community-multidevice
|
||||||
|
Requires: libbiometric0 biometric-utils
|
||||||
|
|
||||||
%description -n biometric-driver-community-multidevice
|
%description -n biometric-driver-community-multidevice
|
||||||
ometric Authentication Driver (community multidevice)
|
ometric Authentication Driver (community multidevice)
|
||||||
@ -59,6 +52,7 @@ ometric Authentication Driver (community multidevice)
|
|||||||
Summary: biometric-utils
|
Summary: biometric-utils
|
||||||
License: LGPL-3.0
|
License: LGPL-3.0
|
||||||
Provides: biometric-utils
|
Provides: biometric-utils
|
||||||
|
Requires: biometric-auth systemd python3-prettytable python3-dbus python3-gobject
|
||||||
|
|
||||||
%description -n biometric-utils
|
%description -n biometric-utils
|
||||||
Biometric authentication utils
|
Biometric authentication utils
|
||||||
@ -68,6 +62,7 @@ Biometric authentication utils
|
|||||||
%package -n libbiometric-devel
|
%package -n libbiometric-devel
|
||||||
Summary: libbiometric-devel
|
Summary: libbiometric-devel
|
||||||
License: LGPL-3.0
|
License: LGPL-3.0
|
||||||
|
Requires: libbiometric0 systemd
|
||||||
|
|
||||||
%description -n libbiometric-devel
|
%description -n libbiometric-devel
|
||||||
Biometric Identification DRIVER API - development files
|
Biometric Identification DRIVER API - development files
|
||||||
@ -76,6 +71,7 @@ Biometric Identification DRIVER API - development files
|
|||||||
|
|
||||||
%package -n libbiometric0
|
%package -n libbiometric0
|
||||||
Summary: libbiometric0
|
Summary: libbiometric0
|
||||||
|
Requires: systemd
|
||||||
License: LGPL-3.0 license
|
License: LGPL-3.0 license
|
||||||
|
|
||||||
%description -n libbiometric0
|
%description -n libbiometric0
|
||||||
@ -87,7 +83,7 @@ Biometric Identification library
|
|||||||
%build
|
%build
|
||||||
export prefix=/usr
|
export prefix=/usr
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
./configure --build=%{platform}-linux-gnu \
|
./configure \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--includedir=\${prefix}/include \
|
--includedir=\${prefix}/include \
|
||||||
--mandir=\${prefix}/share/man \
|
--mandir=\${prefix}/share/man \
|
||||||
@ -95,8 +91,7 @@ export prefix=/usr
|
|||||||
--sysconfdir=/etc \
|
--sysconfdir=/etc \
|
||||||
--localstatedir=/var \
|
--localstatedir=/var \
|
||||||
--disable-silent-rules \
|
--disable-silent-rules \
|
||||||
--libdir=\${prefix}/lib/%{platform}-linux-gnu \
|
--libdir=\${prefix}/lib64 \
|
||||||
--libexecdir=\${prefix}/lib/%{platform}-linux-gnu \
|
|
||||||
--disable-dependency-tracking \
|
--disable-dependency-tracking \
|
||||||
--enable-static \
|
--enable-static \
|
||||||
--enable-shared \
|
--enable-shared \
|
||||||
@ -160,16 +155,15 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%{_datadir}/locale/pt/LC_MESSAGES/biometric-authentication.mo
|
%{_datadir}/locale/pt/LC_MESSAGES/biometric-authentication.mo
|
||||||
%{_datadir}/locale/ru/LC_MESSAGES/biometric-authentication.mo
|
%{_datadir}/locale/ru/LC_MESSAGES/biometric-authentication.mo
|
||||||
%{_datadir}/locale/zh_CN/LC_MESSAGES/biometric-authentication.mo
|
%{_datadir}/locale/zh_CN/LC_MESSAGES/biometric-authentication.mo
|
||||||
/usr/lib/%{platform}-linux-gnu/libbiometric.a
|
%{_libdir}/libbiometric.*
|
||||||
/usr/lib/%{platform}-linux-gnu/libbiometric.la
|
%{_libdir}/pkgconfig/libbiometric.pc
|
||||||
/usr/lib/%{platform}-linux-gnu/libbiometric.so
|
|
||||||
/usr/lib/%{platform}-linux-gnu/libbiometric.so.0
|
|
||||||
/usr/lib/%{platform}-linux-gnu/libbiometric.so.0.0.0
|
|
||||||
/usr/lib/%{platform}-linux-gnu/pkgconfig/libbiometric.pc
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Mar 07 2023 peijiankang <peijiankang@kylinos.cn> - 0.9.72-7
|
||||||
|
- fix biometric-authentication error
|
||||||
|
|
||||||
* Wed Mar 01 2023 misaka00251 <liuxin@iscas.ac.cn> - 0.9.72-6
|
* Wed Mar 01 2023 misaka00251 <liuxin@iscas.ac.cn> - 0.9.72-6
|
||||||
- Fix riscv64 build error
|
- Fix riscv64 build error
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user