From ef550c33e05e0f698f14823ee0f8c35bb71679e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8D=8E=E4=BA=9A=E4=B8=9C?= Date: Sun, 18 Dec 2022 12:45:01 +0000 Subject: [PATCH] Fix unsafe compilation options STRIP, RPATH MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 华亚东 (cherry picked from commit 7fa8510035db49c5f23215c83e6f4ff42cbd1d80) --- biometric-authentication.spec | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/biometric-authentication.spec b/biometric-authentication.spec index 5e5b9ac..2403606 100644 --- a/biometric-authentication.spec +++ b/biometric-authentication.spec @@ -1,6 +1,6 @@ Name: biometric-authentication Version: 0.9.72 -Release: 4 +Release: 5 Summary: biometric-authentication License: LGPL-3.0 URL: http://www.ukui.org @@ -25,6 +25,7 @@ BuildRequires: sqlite-devel BuildRequires: libfprint-devel BuildRequires: polkit-devel BuildRequires: uuid-devel +BuildRequires: chrpath Requires: systemd Requires: python-prettytable @@ -108,6 +109,29 @@ make -j4 %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=%{buildroot} +chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/aes1610.so +chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/aes1660.so +chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/aes2501.so +chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/aes2550.so +chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/aes2660.so +chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/aes3500.so +chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/aes4000.so +chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/elan.so +chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/etes603.so +chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/fdu2000.so +chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/upeksonly.so +chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/upektc.so +chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/upektc_img.so +chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/upekts.so +chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/uru4000.so +chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/vcom5s.so +chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/vfs0050.so +chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/vfs101.so +chrpath -d %{buildroot}/usr/lib/biometric-authentication/drivers/vfs301.so +chrpath -d %{buildroot}/usr/lib/%{platform}-linux-gnu/libbiometric.so +chrpath -d %{buildroot}/usr/lib/%{platform}-linux-gnu/libbiometric.so.0 +chrpath -d %{buildroot}/usr/lib/%{platform}-linux-gnu/libbiometric.so.0.0.0 +chrpath -d %{buildroot}/usr/bin/biometric-config-tool %clean rm -rf $RPM_BUILD_ROOT @@ -163,6 +187,9 @@ rm -rf $RPM_BUILD_ROOT %changelog +* Thu Dec 15 2022 huayadong - 0.9.72-5 +- Fix unsafe compilation options STRIP, RPATH + * Thu Dec 08 2022 fushanqing - 0.9.72-4 - Enable debuginfo for fix strip -- Gitee