fix build compile error

This commit is contained in:
tanyulong2021 2023-02-10 09:58:17 +08:00
parent 607cc617c4
commit 49a4809fd8
2 changed files with 30 additions and 1 deletions

View File

@ -0,0 +1,24 @@
From 6f41615756a3793420918265fba01148eab4b42b Mon Sep 17 00:00:00 2001
From: tanyulong2021 <tanyulong@kylinos.cn>
Date: Fri, 10 Feb 2023 09:56:04 +0800
Subject: [PATCH] fix build compile error
---
BiometricAuth/giodbus.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/BiometricAuth/giodbus.cpp b/BiometricAuth/giodbus.cpp
index 9e0490e..4ad8d27 100644
--- a/BiometricAuth/giodbus.cpp
+++ b/BiometricAuth/giodbus.cpp
@@ -1,6 +1,6 @@
#include "giodbus.h"
#include <gio/gio.h>
-#include <gio-unix-2.0/gio/gunixfdlist.h>
+#include <glib-2.0/gio/gunixfdlist.h>
#include <glib.h>
int get_server_gvariant_stdout (int drvid)
--
2.33.0

View File

@ -1,11 +1,12 @@
Name: ukui-screensaver
Version: 3.1.1
Release: 2
Release: 3
Summary: Screensaver for UKUI desktop environment
License: GPL-3+ and GPL-2+
URL: http://www.ukui.org
Source0: %{name}-%{version}.tar.gz
Patch01: 0001-fix-root-can-not-input-passwd-bug.patch
Patch02: 0002-fix-build-compile-error.patch
BuildRequires: cmake
BuildRequires: qt5-qtbase-devel
@ -37,6 +38,7 @@ provided by biometric-auth service.
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%build
cmake .
@ -71,6 +73,9 @@ glib-compile-schemas /usr/share/glib-2.0/schemas/ &> /dev/null ||:
%{_prefix}/lib/ukui-screensaver/screensaver-focus-helper
%changelog
* Fri Feb 10 2023 tanyulong <tanyulong@kylinos.cn> - 3.1.1-3
- fix build compile error
* Fri Dec 9 2022 peijiankang <peijiankang@kylinos.cn> - 3.1.1-2
- fix root can not input passwd bug